Add MAINTAINERS
[platform/upstream/glibc.git] / ChangeLog
1 2017-05-11  DJ Delorie  <dj@redhat.com>
2
3         * MAINTAINERS: New.  Points to wiki.
4
5 2017-05-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6
7         * scripts/gen-tunables.awk: Add attribute_relro to
8         tunable_list.
9
10 2017-05-11  Joseph Myers  <joseph@codesourcery.com>
11
12         [BZ #21457]
13         * sysdeps/arm/sys/ucontext.h (R0): Condition on [__USE_MISC].
14         (R1): Likewise.
15         (R2): Likewise.
16         (R3): Likewise.
17         (R4): Likewise.
18         (R5): Likewise.
19         (R6): Likewise.
20         (R7): Likewise.
21         (R8): Likewise.
22         (R9): Likewise.
23         (R10): Likewise.
24         (R11): Likewise.
25         (R12): Likewise.
26         (R13): Likewise.
27         (R14): Likewise.
28         (R15): Likewise.
29         * sysdeps/i386/sys/ucontext.h (REG_GS): Likewise.
30         (REG_FS): Likewise.
31         (REG_ES): Likewise.
32         (REG_DS): Likewise.
33         (REG_EDI): Likewise.
34         (REG_ESI): Likewise.
35         (REG_EBP): Likewise.
36         (REG_ESP): Likewise.
37         (REG_EBX): Likewise.
38         (REG_EDX): Likewise.
39         (REG_ECX): Likewise.
40         (REG_EAX): Likewise.
41         (REG_TRAPNO): Likewise.
42         (REG_ERR): Likewise.
43         (REG_EIP): Likewise.
44         (REG_CS): Likewise.
45         (REG_EFL): Likewise.
46         (REG_UESP): Likewise.
47         (REG_SS): Likewise.
48         * sysdeps/m68k/sys/ucontext.h (R_D0): Likewise.
49         (R_D1): Likewise.
50         (R_D2): Likewise.
51         (R_D3): Likewise.
52         (R_D4): Likewise.
53         (R_D5): Likewise.
54         (R_D6): Likewise.
55         (R_D7): Likewise.
56         (R_A0): Likewise.
57         (R_A1): Likewise.
58         (R_A2): Likewise.
59         (R_A3): Likewise.
60         (R_A4): Likewise.
61         (R_A5): Likewise.
62         (R_A6): Likewise.
63         (R_A7): Likewise.
64         (R_SP): Likewise.
65         (R_PC): Likewise.
66         (R_PS): Likewise.
67         (fpregset_t): Likewise.
68         (MCONTEXT_VERSION): Likewise.
69         * sysdeps/mips/sys/ucontext.h (CTX_R0): Likewise.
70         (CTX_AT): Likewise.
71         (CTX_V0): Likewise.
72         (CTX_V1): Likewise.
73         (CTX_A0): Likewise.
74         (CTX_A1): Likewise.
75         (CTX_A2): Likewise.
76         (CTX_A3): Likewise.
77         (CTX_T0): Likewise.
78         (CTX_T1): Likewise.
79         (CTX_T2): Likewise.
80         (CTX_T3): Likewise.
81         (CTX_T4): Likewise.
82         (CTX_T5): Likewise.
83         (CTX_T6): Likewise.
84         (CTX_T7): Likewise.
85         (CTX_S0): Likewise.
86         (CTX_S1): Likewise.
87         (CTX_S2): Likewise.
88         (CTX_S3): Likewise.
89         (CTX_S4): Likewise.
90         (CTX_S5): Likewise.
91         (CTX_S6): Likewise.
92         (CTX_S7): Likewise.
93         (CTX_T8): Likewise.
94         (CTX_T9): Likewise.
95         (CTX_K0): Likewise.
96         (CTX_K1): Likewise.
97         (CTX_GP): Likewise.
98         (CTX_SP): Likewise.
99         (CTX_S8): Likewise.
100         (CTX_RA): Likewise.
101         (CTX_MDLO): Likewise.
102         (CTX_MDHI): Likewise.
103         (CTX_CAUSE): Likewise.
104         (CTX_EPC): Likewise.
105         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Condition
106         inclusion of <sys/procfs.h> on [__USE_MISC].
107         (greg_t): Condition on [__USE_MISC].
108         (gregset_t): Likewise.
109         (fpregset_t): Likewise.
110         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (greg_t): Likewise.
111         (NGREG): Likewise.
112         (gregset_t): Likewise.
113         (REG_R0): Likewise.
114         (REG_R1): Likewise.
115         (REG_R2): Likewise.
116         (REG_R3): Likewise.
117         (REG_R4): Likewise.
118         (REG_R5): Likewise.
119         (REG_R6): Likewise.
120         (REG_R7): Likewise.
121         (REG_R8): Likewise.
122         (REG_R9): Likewise.
123         (REG_R10): Likewise.
124         (REG_R11): Likewise.
125         (REG_R12): Likewise.
126         (REG_R13): Likewise.
127         (REG_R14): Likewise.
128         (REG_R15): Likewise.
129         (struct _libc_fpstate): Likewise.
130         (fpregset_t): Likewise.
131         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (NGREG): Likewise.
132         (NFPREG): Likewise.
133         (gregset_t): Likewise.
134         (fpregset_t): Likewise.
135         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (R_D0): Likewise.
136         (R_D1): Likewise.
137         (R_D2): Likewise.
138         (R_D3): Likewise.
139         (R_D4): Likewise.
140         (R_D5): Likewise.
141         (R_D6): Likewise.
142         (R_D7): Likewise.
143         (R_A0): Likewise.
144         (R_A1): Likewise.
145         (R_A2): Likewise.
146         (R_A3): Likewise.
147         (R_A4): Likewise.
148         (R_A5): Likewise.
149         (R_A6): Likewise.
150         (R_A7): Likewise.
151         (R_SP): Likewise.
152         (R_PC): Likewise.
153         (R_PS): Likewise.
154         (fpregset_t): Likewise.
155         (MCONTEXT_VERSION): Likewise.
156         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (MCONTEXT_VERSION):
157         Likewise.
158         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (REG_R0): Likewise.
159         (REG_R1): Likewise.
160         (REG_R2): Likewise.
161         (REG_R3): Likewise.
162         (REG_R4): Likewise.
163         (REG_R5): Likewise.
164         (REG_R6): Likewise.
165         (REG_R7): Likewise.
166         (REG_R8): Likewise.
167         (REG_R9): Likewise.
168         (REG_R10): Likewise.
169         (REG_R11): Likewise.
170         (REG_R12): Likewise.
171         (REG_R13): Likewise.
172         (REG_R14): Likewise.
173         (REG_R15): Likewise.
174         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Condition inclusion
175         of <arch/abi.h> on [__USE_MISC].
176         (greg_t): Condition on [__USE_MISC].
177         (NGREG): Likewise.
178         (gregset_t): Likewise.
179
180 2017-05-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
181
182         * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
183         (__pthread_rwlock_arch_t): Remove __data definition.
184         * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
185         (__pthread_rwlock_arch_t): Likewise.
186
187 2017-05-11  Florian Weimer  <fweimer@redhat.com>
188
189         * resolv/inet_pton.c: Reformat in GNU style.  Remove
190         internal_function on static functions.
191
192 2017-05-11  Florian Weimer  <fweimer@redhat.com>
193
194         * support/support_format_addrinfo.c (format_ai_flags_1): Renamed
195         from format_ai_flags.
196         (format_ai_flags): New function.  Incorporate flag formatting code
197         from format_ai_one.
198         (format_ai_canonname): New function.
199         (format_ai_one): Remove flags parameter.
200         (format_ai_family): Likewise.
201         (support_format_addrinfo): Call format_ai_flags,
202         format_ai_canonname.
203         * resolv/tst-resolv-basic.c (check_ai_hints): Extracted from
204         check_ai.
205         (check_ai): Call check_ai_hints.
206         (do_test): Add AI_CANONNAME tests.
207
208 2017-05-11  Florian Weimer  <fweimer@redhat.com>
209
210         * sysdeps/posix/getaddrinfo.c (gethosts): Remove malloc_addrmem.
211         (gaih_inet): Likewise.
212
213 2017-05-10  Andreas Schwab  <schwab@suse.de>
214
215         * nptl/tst-fork1.c: Include <support/test-driver.c>.
216         (main): Rename to do_test and make static.
217
218 2017-05-10  Joseph Myers  <joseph@codesourcery.com>
219
220         * string/rawmemchr.c: Include <libc-diag.h>.
221         (RAWMEMCHR): Disable -Wstringop-overflow around call to memchr
222         with size (size_t)-1.
223
224 2017-05-09  Joseph Myers  <joseph@codesourcery.com>
225
226         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Remove file.
227         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
228         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
229
230         * sysdeps/unix/sysv/linux/accept4.c (accept4): Use syscall if
231         [__ASSUME_ACCEPT4_SYSCALL], otherwise socketcall.
232         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Use syscall if
233         [__ASSUME_RECVMMSG_SYSCALL], otherwise socketcall.
234         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Use syscall if
235         [__ASSUME_SENDMMSG_SYSCALL], otherwise socketcall.
236         * sysdeps/unix/sysv/linux/kernel-features.h
237         (__ASSUME_ACCEPT4_SYSCALL): Move to general list of macros for
238         socket syscalls.
239         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
240         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
241         * sysdeps/unix/sysv/linux/i386/kernel-features.h
242         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Remove.
243         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
244         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
245         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Remove.
246         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
247         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
248         * sysdeps/unix/sysv/linux/sh/kernel-features.h
249         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
250         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
251         (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
252         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
253         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
254
255 2017-05-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
256
257         * posix/Makefile (headers): Add pthreadtypes-arch.h and
258         thread-shared-types.h.
259         * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h: New file: arch
260         specific thread definition.
261         * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h: Likewise.
262         * sysdeps/arm/nptl/bits/pthreadtypes-arch.h: Likewise.
263         * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h: Likewise.
264         * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h: Likewise.
265         * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h: Likewise.
266         * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h: Likewise.
267         * sysdeps/mips/nptl/bits/pthreadtypes-arch.h: Likewise.
268         * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h: Likewise.
269         * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h: Likewise.
270         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
271         * sysdeps/sh/nptl/bits/pthreadtypes-arch.h: Likewise.
272         * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h: Likewise.
273         * sysdeps/tile/nptl/bits/pthreadtypes-arch.h: Likewise.
274         * sysdeps/x86/nptl/bits/pthreadtypes-arch.h: Likewise.
275         * sysdeps/nptl/bits/thread-shared-types.h: New file: shared
276         thread definition between POSIX and C11.
277         * sysdeps/aarch64/nptl/bits/pthreadtypes.h.: Remove file.
278         * sysdeps/alpha/nptl/bits/pthreadtypes.h: Likewise.
279         * sysdeps/arm/nptl/bits/pthreadtypes.h: Likewise.
280         * sysdeps/hppa/nptl/bits/pthreadtypes.h: Likewise.
281         * sysdeps/m68k/nptl/bits/pthreadtypes.h: Likewise.
282         * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Likewise.
283         * sysdeps/mips/nptl/bits/pthreadtypes.h: Likewise.
284         * sysdeps/nios2/nptl/bits/pthreadtypes.h: Likewise.
285         * sysdeps/ia64/nptl/bits/pthreadtypes.h: Likewise.
286         * sysdeps/powerpc/nptl/bits/pthreadtypes.h: Likewise.
287         * sysdeps/s390/nptl/bits/pthreadtypes.h: Likewise.
288         * sysdeps/sh/nptl/bits/pthreadtypes.h: Likewise.
289         * sysdeps/sparc/nptl/bits/pthreadtypes.h: Likewise.
290         * sysdeps/tile/nptl/bits/pthreadtypes.h: Likewise.
291         * sysdeps/x86/nptl/bits/pthreadtypes.h: Likewise.
292         * sysdeps/nptl/bits/pthreadtypes.h: New file: common thread
293         definitions shared across all architectures.
294
295 2017-05-09  Joseph Myers  <joseph@codesourcery.com>
296
297         * sysdeps/unix/sysv/linux/kernel-features.h
298         (__ASSUME_SENDMMSG_SYSCALL): Define unconditionally.
299         (__ASSUME_SENDMMSG): Likewise.
300         (__ASSUME_SENDMMSG_SOCKETCALL): Remove macro.
301         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Define using
302         sendmmsg syscall if that can be assumed to be present, socketcall
303         otherwise, with no fallback for runtime failure.
304
305         * sysdeps/unix/sysv/linux/kernel-features.h
306         (__ASSUME_RECVMMSG_SYSCALL): Define unconditionally.
307         (__ASSUME_RECVMMSG_SOCKETCALL): Remove macro.
308         (__ASSUME_RECVMMSG): Likewise.
309         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Define using
310         recvmmsg syscall if it can be assumed to be present, socketcall
311         otherwise, with no fallback for runtime failure.
312
313 2017-05-09  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
314             Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
315
316         * bits/libc-header-start.h:
317         (__GLIBC_USE_IEC_60559_TYPES_EXT): New macro.
318         * include/features.h: Describe __STDC_WANT_IEC_60559_TYPES_EXT__.
319         * manual/creature.texi: Likewise.
320
321 2017-05-09  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
322             Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
323
324         * math/Makefile:
325         (type-float128-suffix): New variable
326         (type-float128-routines): Likewise
327         (type-float128-yes): Likewise
328         (types): Append float128 if supported
329         (types-basic): New variable to control the use of templates for
330         float, double, and long double, but not for float128 or newer types.
331         (type-basic-foreach): Likewise.
332
333         * sysdeps/ieee754/float128/Makeconfig: New file.
334         * sysdeps/ieee754/float128/Versions: New file.
335
336 2017-05-09  Joseph Myers  <joseph@codesourcery.com>
337
338         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRLIMIT64):
339         Remove macro.
340         * sysdeps/unix/sysv/linux/getrlimit64.c (__getrlimit64): Assume
341         prlimit64 is always available and does not give an ENOSYS error.
342         * sysdeps/unix/sysv/linux/prlimit.c [__NR_prlimit64]: Make code
343         unconditional.
344         [!__NR_prlimit64]: Remove conditional code.
345         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Assume
346         prlimit64 is always available and does not give an ENOSYS error.
347         * sysdeps/unix/sysv/linux/setrlimit64.c (__setrlimit64): Likewise.
348
349 2017-05-09  Zack Weinberg  <zackw@panix.com>
350
351         * sunrpc/tst-xdrmem2.c: Include stdint.h.
352
353 2017-05-09  Florian Weimer  <fweimer@redhat.com>
354
355         [BZ #21474]
356         * resolv/res_libc.c (res_init): Use RES_DFLRETRY.
357         (__res_maybe_init): Likewise.
358
359 2017-05-09  Zack Weinberg  <zackw@panix.com>
360
361         * extra-modules.mk: Delete file.
362         * cppflags-iterator.mk: Rename to ...
363         * libof-iterator.mk: ...this.  Adjust comments.
364
365         * Makerules, extra-lib.mk, benchtests/Makefile, elf/Makefile
366         * elf/rtld-Rules, iconv/Makefile, locale/Makefile, malloc/Makefile
367         * nscd/Makefile, sunrpc/Makefile, sysdeps/s390/Makefile:
368         Use libof-iterator.mk instead of cppflags-iterator.mk or
369         extra-modules.mk.
370
371         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Remove
372         extra-modules.mk and cppflags-iterator.mk, add libof-iterator.mk.
373
374 2017-05-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
375
376         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
377
378 2017-05-08  Carlos O'Donell  <carlos@redhat.com>
379
380         * stdio-common/vfprintf.c (EXTSIZ): Define.
381         (vfprintf): Use EXTSIZ.
382         (printf_positional): Likewise.
383
384 2017-05-08  Joseph Myers  <joseph@codesourcery.com>
385
386         * sysdeps/unix/sysv/linux/kernel-features.h
387         (__ASSUME_PROC_PID_TASK_COMM): Remove macro.
388         * sysdeps/unix/sysv/linux/tst-setgetname.c: Do not include
389         <kernel-features.h>.
390         (do_test) [!__ASSUME_PROC_PID_TASK_COMM]: Remove conditional code.
391
392         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h
393         (__ASSUME_GETCPU_SYSCALL): Remove macro.
394
395 2017-05-08  Florian Weimer  <fweimer@redhat.com>
396
397         Prevent multiple deletion of temporary files.
398         * support/temp_file.c (struct temp_name_list): Add owner member.
399         (add_temp_file): Record owner.
400         (support_delete_temp_files): Delete file only if owner matches.
401         * posix/tst-exec.c (temp_fd1, temp_fd2): Define.
402         (do_prepare): Use create_temp_file instead of add_temp_file.
403         Initialize temp_fd1, temp_fd2.
404         (do_test): Use global temp_fd1, temp_fd2 variables.  Let the test
405         framework remove the temporary files.
406         * posix/tst-exec.c (temp_fd1, temp_fd2, temp_fd3): Define.
407         (do_prepare): Use create_temp_file instead of add_temp_file.
408         Initialize temp_fd1, temp_fd2, temp_fd3.
409         (do_test): Use global temp_fd1, temp_fd2, temp_fd3 variables.  Let
410         the test framework remove the temporary files.
411         * posix/tst-vfork3.c (do_prepare): Adjust for LIFO order of file
412         deletion.
413         * posix/tst-pathconf.c (do_test): Do not call rmdir on the
414         temporary directory.  It is removed by the test framework.
415         * dirent/tst-scandir.c (do_test): Likewise.
416
417 2017-05-08  Florian Weimer  <fweimer@redhat.com>
418
419         Delete temporary files in LIFO order.
420         * support/temp_file.c (struct temp_name_list): Replace q member
421         with next.
422         (add_temp_file): Add new file to front of linked list.
423         (support_delete_temp_files): Use next member.
424         (support_print_temp_files): Likewise.
425
426 2017-05-08  Florian Weimer  <fweimer@redhat.com>
427
428         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
429         sys/ultrasound.h.
430         * sysdeps/unix/sysv/linux/sys/ultrasound.h: Remove file.
431
432 2017-05-08  Joseph Myers  <joseph@codesourcery.com>
433
434         * sysdeps/unix/sysv/linux/i386/configure.ac (arch_minimum_kernel):
435         Remove.
436         * sysdeps/unix/sysv/linux/i386/configure: Regenerated.
437         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac
438         (arch_minimum_kernel): Remove.
439         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerated.
440         * README: Update statement about Linux kernel requirements.
441
442 2017-05-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
443
444         * manual/llio.texi: Add preadv and pwritev documentation.
445
446 2017-05-04  Joseph Myers  <joseph@codesourcery.com>
447
448         [BZ #21455]
449         * bits/stdint-intn.h: New file.
450         * bits/stdint-uintn.h: Likewise.
451         * stdlib/Makefile (headers): Add bits/stdint-intn.h and
452         bits/stdint-uintn.h.
453         * inet/netinet/in.h: Include <bits/stdint-uintn.h> instead of
454         <stdint.h>.
455         * posix/sys/types.h: Include <bits/stdint-intn.h>.
456         (__int8_t_defined): Do not define here.
457         (int8_t): Likewise.
458         (int16_t): Likewise.
459         (int32_t): Likewise.
460         (int64_t): Likewise.
461         [__GNUC_PREREQ (2, 7)] (__intN_t): Likewise.
462         * resolv/netdb.h: Include <bits/stdint-uintn.h> instead of
463         <stdint.h>.
464         * include/netdb.h [_ISOMAC]: Do not include <stdint.h>.
465         * sysdeps/generic/stdint.h: Include <bits/stdint-intn.h> and
466         <bits/stdint-uintn.h>.
467         (int8_t): Do not define here.
468         (int16_t): Likewise.
469         (int32_t): Likewise.
470         (int64_t): Likewise.
471         (uint8_t): Likewise.
472         (uint16_t): Likewise.
473         (uint32_t): Likewise.
474         (uint64_t): Likewise.
475         * conform/Makefile (test-xfail-XPG42/arpa/inet.h/conform): Remove
476         variable.
477         (test-xfail-XPG42/netdb.h/conform): Likewise.
478         (test-xfail-XPG42/netinet/in.h/conform): Likewise.
479         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
480         (test-xfail-UNIX98/netdb.h/conform): Likewise.
481         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
482
483 2017-05-04  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
484
485         * sysdeps/generic/math_private.h (mathx_hidden_def): New macro.
486         * sysdeps/ieee754/ldbl-128/s_finitel.c: Replace hidden_def with
487         the above.
488         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
489         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
490
491 2017-05-04  Joseph Myers  <joseph@codesourcery.com>
492
493         [BZ #21445]
494         * signal/signal.h [__USE_XOPEN2K8] (bsd_signal): Do not declare.
495
496         [BZ #21457]
497         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h
498         [_MIPS_SIM != _ABIO32] (mcontext_t): Rename field reserved to
499         __glibc_reserved1.
500         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
501         (struct _fpx_sw_bytes): Rename field padding to __glibc_reserved1.
502         (struct _fpxreg): Likewise.
503         [!__x86_64__] (struct _fpstate): Rename field reserved to
504         __glibc_reserved1.  Rename field padding to __glibc_reserved2.
505         [__x86_64__] (struct _fpstate): Rename field padding to
506         __glibc_reserved1.
507         (struct _xsave_hdr): Rename field reserved1 to __glibc_reserved1.
508         Rename field reserved2 to __glibc_reserved2.
509         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h
510         [__x86_64__] (struct _libc_fpxreg): Rename field padding to
511         __glibc_reserved1.
512         [__x86_64__] (struct _libc_fpstate): Rename field padding to
513         __glibc_reserved1.
514
515 2017-05-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
516
517         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Correct hwcap
518         variable name.
519
520 2017-05-03  H.J. Lu  <hongjiu.lu@intel.com>
521
522         [BZ #21391]
523         * sysdeps/i386/dl-machine.h (dl_platform_init) [IS_IN (rtld)]:
524         Only call init_cpu_features.
525         [!IS_IN (rtld)]: Only set GLRO(dl_platform) to NULL if needed.
526         * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
527         * sysdeps/i386/dl-procinfo.h: Removed.
528         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Don't include
529         <sysdeps/i386/dl-procinfo.h> nor <ldsodefs.h>.  Include
530         <sysdeps/x86/dl-procinfo.h>.
531         (_dl_procinfo): Replace _DL_HWCAP_COUNT with 32.
532         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h [!IS_IN (ldconfig)]:
533         Include <sysdeps/x86/dl-procinfo.h> instead of
534          <sysdeps/generic/dl-procinfo.h>.
535         * sysdeps/x86/cpu-features.c: Include <dl-hwcap.h>.
536         (init_cpu_features): Set dl_platform, dl_hwcap and dl_hwcap_mask.
537         * sysdeps/x86/cpu-features.h (bit_cpu_LZCNT): New.
538         (bit_cpu_MOVBE): Likewise.
539         (bit_cpu_BMI1): Likewise.
540         (bit_cpu_BMI2): Likewise.
541         (index_cpu_BMI1): Likewise.
542         (index_cpu_BMI2): Likewise.
543         (index_cpu_LZCNT): Likewise.
544         (index_cpu_MOVBE): Likewise.
545         (index_cpu_POPCNT): Likewise.
546         (reg_BMI1): Likewise.
547         (reg_BMI2): Likewise.
548         (reg_LZCNT): Likewise.
549         (reg_MOVBE): Likewise.
550         (reg_POPCNT): Likewise.
551         * sysdeps/x86/dl-hwcap.h: New file.
552         * sysdeps/x86/dl-procinfo.h: Likewise.
553         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): New.
554         (_dl_x86_platforms): Likewise.
555
556 2017-05-03  DJ Delorie  <dj@redhat.com>
557
558         [BZ #21411]
559         * malloc/malloc.c: Tweak realloc/MREMAP comment to be more accurate.
560
561 2017-05-03  Phil Blundell  <pb@pbcl.net>
562
563         * inet/netinet/in.h (struct ip_mreq_source): Correct misplaced
564         comments.
565
566 2017-05-03  Carlos O'Donell  <carlos@redhat.com>
567
568         [BZ #20116]
569         * nptl/pthread_create.c: Expand comments to describe
570         semaphore-like and mutex-like uses of PD->lock.
571
572 2017-04-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
573
574         * sysdeps/unix/sysv/linux/epoll_wait.c: New file.
575         * sysdeps/unix/sysv/linux/generic/epoll_wait.c: Remove file.
576         * sysdeps/unix/sysv/linux/syscalls.list: Remove epoll_wait from
577         auto-generation list.
578         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
579         epoll_wait.
580         * sysdeps/unix/sysv/linux/generic/Makefile (sysdep_routines):
581         Remove epoll_wait.
582
583         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Add
584         osf_select.
585         * sysdeps/unix/sysv/linux/alpha/select.c: New file.
586         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove select and
587         osf_select from auto-generation list.
588         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
589         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
590         * sysdeps/unix/sysv/linux/generic/select.c: Remove file.
591         * sysdeps/unix/sysv/linux/select.c: New file.
592
593         * sysdeps/unix/sysv/linux/generic/poll.c: Remove file.
594         * sysdeps/unix/sysv/linux/poll.c: New file.
595         * sysdeps/unix/sysv/linux/syscalls.list: Remove poll from
596         auto-generation list.
597
598 2017-05-03  Joseph Myers  <joseph@codesourcery.com>
599
600         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDRDM):
601         New macro.
602
603 2017-05-02  Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
604
605         [BZ #21179]
606         * sysdeps/sparc/sparc64/dl-machine.h: Handle R_SPARC_DISP64 and
607         R_SPARC_REGISTER relocations.
608
609 2017-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
610
611         * include/unistd.h (__pread): Add libc_hidden_proto.
612         (__pread64): Likewise.
613         (__pwrite): Likewise.
614         * sysdeps/unix/sysv/linux/microblaze/localplt.data [libc.so]
615         (__pread64): Remove.
616         * sysdeps/unix/sysv/linux/pread.c (__pread64): Add libc_hidden_weak.
617         * sysdeps/unix/sysv/linux/pread64.c (__pread64): Likewise.
618         * sysdeps/unix/sysv/linux/pwrite.c (__pwrite): Likewise.
619
620 2017-05-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
621
622         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
623
624 2017-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
625
626         * nptl/tst-cancel4-common.c: Use libsupport.
627         * nptl/tst-cancel4-common.h: Likewise.
628         * nptl/tst-cancel4.c (tf_read): Likewise.
629         (tf_readv): Likewise.
630         (tf_write): Likewise.
631         (tf_writev): Likewise.
632         (tf_sleep): Likewise.
633         (tf_usleep): Likewise.
634         (tf_nanosleep): Likewise.
635         (tf_select): Likewise.
636         (tf_pselect): Likewise.
637         (tf_poll): Likewise.
638         (tf_ppoll): Likewise.
639         (tf_wait): Likewise.
640         (tf_waitpid): Likewise.
641         (tf_waitid): Likewise.
642         (tf_sigpause): Likewise.
643         (tf_sigsuspend): Likewise.
644         (tf_sigwait): Likewise.
645         (tf_sigwaitinfo): Likewise.
646         (tf_sigtimedwait): Likewise.
647         (tf_pause): Likewise.
648         (tf_accept): Likewise.
649         (tf_send): Likewise.
650         (tf_recv): Likewise.
651         (tf_recvfrom): Likewise.
652         (tf_recvmsg): Likewise.
653         (tf_open): Likewise.
654         (tf_close): Likewise.
655         (tf_pread): Likewise.
656         (tf_pwrite): Likewise.
657         (tf_preadv): Likewise.
658         (tf_pwritev): Likewise.
659         (tf_fsync): Likewise.
660         (tf_fdatasync): Likewise.
661         (tf_msync): Likewise.
662         (tf_sendto): Likewise.
663         (tf_sendmsg): Likewise.
664         (tf_creat): Likewise.
665         (tf_connect): Likewise.
666         (tf_tcdrain): Likewise.
667         (tf_msgrcv): Likewise.
668         (tf_msgsnd): Likewise.
669         * nptl/tst-cancel4_1.c (tf_sendmmsg): Likewise.
670         * nptl/tst-cancel4_2.c (tf_recvmmsg): Likewise.
671
672         * misc/tst-preadvwritev-common.c (do_prepare): Use libsupport
673         expected arguments.
674         (do_test): Adapt to use libsupport.
675
676 2017-05-01  Joseph Myers  <joseph@codesourcery.com>
677
678         * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_CONNECT): New macro.
679
680         * sysdeps/unix/sysv/linux/bits/socket.h (PF_SMC): New macro.
681         (PF_MAX): Set to 44.
682         (AF_SMC): New macro.
683
684         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
685         kernel version to 4.11.
686
687 2017-04-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
688
689         [BZ #21280]
690         * sysdeps/powerpc/power7/fpu/s_logbl.c (__logbl): Ignore the
691         signal of subnormals and adjust the exponent of power of 2 down
692         when low part has opposite sign.
693
694 2017-04-28  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
695
696         * sysdeps/powerpc/powerpc64le/Implies: New file.
697         * sysdeps/powerpc/powerpc64le/fpu/Implies: New file.
698         * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: New file.
699         * sysdeps/powerpc/powerpc64le/multiarch/Implies: New file.
700         * sysdeps/powerpc/powerpc64le/power7/Implies: New file.
701         * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: New file.
702         * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: New file.
703         * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: New file.
704         * sysdeps/powerpc/powerpc64le/power8/Implies: New file.
705         * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: New file.
706         * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: New file.
707         * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: New file.
708         * sysdeps/powerpc/powerpc64le/power9/Implies: New file.
709         * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: New file.
710         * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: New file.
711         * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: New file.
712         * sysdeps/powerpc/preconfigure: New file.
713         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: New file.
714         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: New file.
715
716 2017-04-28  Joseph Myers  <joseph@codesourcery.com>
717
718         * conform/data/semaphore.h-data [XOPEN2K] (time.h): Allow header
719         inclusion.
720         * conform/Makefile (test-xfail-XOPEN2K/semaphore.h/conform):
721         Remove.
722
723 2017-04-27  Joseph Myers  <joseph@codesourcery.com>
724
725         * conform/GlibcConform.pm (XPG4): Rename standard to XPG42.
726         (XPG3): Rename standard to XPG4.
727         * conform/Makefile: Likewise.
728         * conform/list-header-symbols.pl: Likewise.
729         * conform/data/aio.h-data: Likewise.
730         * conform/data/arpa/inet.h-data: Likewise.
731         * conform/data/complex.h-data: Likewise.
732         * conform/data/ctype.h-data: Likewise.
733         * conform/data/dlfcn.h-data: Likewise.
734         * conform/data/fcntl.h-data: Likewise.
735         * conform/data/fenv.h-data: Likewise.
736         * conform/data/float.h-data: Likewise.
737         * conform/data/fmtmsg.h-data: Likewise.
738         * conform/data/ftw.h-data: Likewise.
739         * conform/data/grp.h-data: Likewise.
740         * conform/data/inttypes.h-data: Likewise.
741         * conform/data/iso646.h-data: Likewise.
742         * conform/data/langinfo.h-data: Likewise.
743         * conform/data/libgen.h-data: Likewise.
744         * conform/data/limits.h-data: Likewise.
745         * conform/data/locale.h-data: Likewise.
746         * conform/data/math.h-data: Likewise.
747         * conform/data/mqueue.h-data: Likewise.
748         * conform/data/ndbm.h-data: Likewise.
749         * conform/data/net/if.h-data: Likewise.
750         * conform/data/netdb.h-data: Likewise.
751         * conform/data/netinet/in.h-data: Likewise.
752         * conform/data/poll.h-data: Likewise.
753         * conform/data/pthread.h-data: Likewise.
754         * conform/data/pwd.h-data: Likewise.
755         * conform/data/sched.h-data: Likewise.
756         * conform/data/search.h-data: Likewise.
757         * conform/data/semaphore.h-data: Likewise.
758         * conform/data/signal.h-data: Likewise.
759         * conform/data/spawn.h-data: Likewise.
760         * conform/data/stdbool.h-data: Likewise.
761         * conform/data/stdint.h-data: Likewise.
762         * conform/data/stdio.h-data: Likewise.
763         * conform/data/stdlib.h-data: Likewise.
764         * conform/data/string.h-data: Likewise.
765         * conform/data/strings.h-data: Likewise.
766         * conform/data/stropts.h-data: Likewise.
767         * conform/data/sys/mman.h-data: Likewise.
768         * conform/data/sys/resource.h-data: Likewise.
769         * conform/data/sys/select.h-data: Likewise.
770         * conform/data/sys/socket.h-data: Likewise.
771         * conform/data/sys/stat.h-data: Likewise.
772         * conform/data/sys/statvfs.h-data: Likewise.
773         * conform/data/sys/time.h-data: Likewise.
774         * conform/data/sys/timeb.h-data: Likewise.
775         * conform/data/sys/types.h-data: Likewise.
776         * conform/data/sys/uio.h-data: Likewise.
777         * conform/data/sys/un.h-data: Likewise.
778         * conform/data/sys/wait.h-data: Likewise.
779         * conform/data/syslog.h-data: Likewise.
780         * conform/data/termios.h-data: Likewise.
781         * conform/data/tgmath.h-data: Likewise.
782         * conform/data/time.h-data: Likewise.
783         * conform/data/ucontext.h-data: Likewise.
784         * conform/data/unistd.h-data: Likewise.
785         * conform/data/utmpx.h-data: Likewise.
786         * conform/data/varargs.h-data: Likewise.
787         * conform/data/wchar.h-data: Likewise.
788         * conform/data/wctype.h-data: Likewise.
789
790 2017-04-26  Joseph Myers  <joseph@codesourcery.com>
791
792         * scripts/build-many-glibcs.py (Context.checkout): Default gcc
793         version to 7 branch.
794
795 2017-04-25  Uros Bizjak  <ubizjak@gmail.com>
796
797         * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Add
798         earlyclobber to output operand of sqrt insn.
799         (__ieee754_sqrtf): Ditto.
800
801 2017-04-25  Joseph Myers  <joseph@codesourcery.com>
802
803         [BZ #21426]
804         * misc/bits/types/struct_iovec.h: New file.
805         * misc/Makefile (headers): Add bits/types/struct_iovec.h.
806         * include/bits/types/struct_iovec.h: New file.
807         * bits/uio.h (struct iovec): Replace by inclusion of
808         <bits/types/struct_iovec.h>.
809         * sysdeps/unix/sysv/linux/bits/uio.h (struct iovec): Likewise.
810         * socket/sys/socket.h: Include <bits/types/struct_iovec.h> instead
811         of <sys/uio.h>.
812         * nptl/tst-cancel4.c: Include <sys/uio.h>
813         * posix/test-errno.c: Likewise.
814         * support/resolv_test.c: Likewise.
815         * conform/Makefile (test-xfail-POSIX2008/arpa/inet.h/conform):
816         Remove.
817         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
818         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
819         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
820
821         * conform/data/sys/socket.h-data (*_t): Allow.
822
823 2017-04-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
824
825         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Remove ununsed
826         assignment.
827
828 2017-04-24  Daurnimator  <quae@daurnimator.com>
829             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
830
831         [BZ #21340]
832         * posix/Makefile (tests): Add tst-posix_spawn-setsid to list of tests.
833         * posix/spawn.h: define POSIX_SPAWN_SETSID flag.
834         * posix/spawnattr_setflags.c (ALL_FLAGS): Add POSIX_SPAWN_SETSID to
835         valid flags.
836         * posix/tst-posix_spawn-setsid.c: Add test for POSIX_SPAWN_SETSID.
837         * sysdeps/mach/hurd/spawni.c (__spawni): Implementation of
838         POSIX_SPAWN_SETSID.
839         * sysdeps/posix/spawni.c (__spawni): Likewise.
840         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
841         * NEWS: Add note about POSIX_SPAWN_SETSID support.
842
843 2017-04-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
844
845         * sysdeps/generic/math_private.h: Move the declaration of many
846         functions to sysdeps/generic/math_private_calls.h.
847         * sysdeps/generic/math_private_calls.h: New file with the
848         declarations of the functions removed from math_private.h
849         macroized by floating-point type.
850
851 2017-04-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
852
853         * sysdeps/s390/multiarch/utf8-utf32-z9.c: New File.
854         * sysdeps/s390/utf8-utf32-z9.c: Move ifunc resolvers to multiarch
855         folder and define ifunc versions depending on HAVE_[FROM|TO]_[C|CU|VX].
856         (HAVE_FROM_C, HAVE_FROM_CU, HAVE_FROM_VX, HAVE_TO_C, HAVE_TO_VX,
857         FROM_LOOP_DEFAULT, FROM_LOOP_C, FROM_LOOP_CU, FROM_LOOP_VX,
858         TO_LOOP_DEFAULT, TO_LOOP_C, TO_LOOP_VX): New Define.
859
860 2017-04-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
861
862         * sysdeps/s390/multiarch/utf16-utf32-z9.c: New File.
863         * sysdeps/s390/utf16-utf32-z9.c: Move ifunc resolvers to multiarch
864         folder and define ifunc versions depending on HAVE_[FROM|TO]_[C|VX].
865         (HAVE_FROM_C, HAVE_FROM_VX, HAVE_TO_C, HAVE_TO_VX, FROM_LOOP_DEFAULT,
866         FROM_LOOP_C, FROM_LOOP_VX, TO_LOOP_DEFAULT, TO_LOOP_C, TO_LOOP_VX):
867         New Define.
868
869 2017-04-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
870
871         * sysdeps/s390/multiarch/utf8-utf16-z9.c: New File.
872         * sysdeps/s390/utf8-utf16-z9.c: Move ifunc resolvers to multiarch
873         folder and define ifunc versions depending on HAVE_[FROM|TO]_[C|CU|VX].
874         (HAVE_FROM_C, HAVE_FROM_CU, HAVE_FROM_VX, HAVE_TO_C, HAVE_TO_VX,
875         FROM_LOOP_DEFAULT, FROM_LOOP_C, FROM_LOOP_CU, FROM_LOOP_VX,
876         TO_LOOP_DEFAULT, TO_LOOP_C, TO_LOOP_VX): New Define.
877
878 2017-04-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
879
880         * sysdeps/s390/multiarch/ifunc-resolve.h
881         (s390_libc_ifunc_expr_init, s390_libc_ifunc_expr): New Define.
882         * sysdeps/s390/multiarch/8bit-generic.c
883         (__to_generic, __from_generic): Use s390_libc_ifunc_expr to
884         define ifunc resolvers.
885
886 2017-04-21  Florian Weimer  <fweimer@redhat.com>
887
888         [BZ #20424]
889         * manual/memory.texi (Replacing malloc): New section.
890         (Allocating Storage For Program Data): Reference it.
891         (The GNU Allocator): Likewise.
892
893 2017-04-20  Joseph Myers  <joseph@codesourcery.com>
894
895         * stdlib/Versions (__strtod_internal): List explicitly, not as
896         wildcard.
897         (__strtof_internal): Likewise.
898         (__strtold_internal): Likewise.
899         (__strtol_internal): Likewise.
900         (__strtoll_internal): Likewise.
901         (__strtoul_internal): Likewise.
902         (__strtoull_internal): Likewise.
903         (__strtoq_internal): Likewise.
904         (__strtouq_internal): Likewise.
905         * wcsmbs/Versions (__wcstod_internal): Likewise.
906         (__wcstof_internal): Likewise.
907         (__wcstold_internal): Likewise.
908         (__wcstol_internal): Likewise.
909         (__wcstoll_internal): Likewise.
910         (__wcstoul_internal): Likewise.
911         (__wcstoull_internal): Likewise.
912
913 2017-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
914
915         * io/sys/stat.h: Use __USE_XOPEN2K8 insteaf of __USE_ATFILE for
916         struct timespec definition.
917
918 2017-04-19  Florian Weimer  <fweimer@redhat.com>
919
920         * resolv/nss_dns/dns-host.c (getanswer_r): Fix parentheses.
921
922 2017-04-19  Florian Weimer  <fweimer@redhat.com>
923
924         * inet/rcmd.c (rresvport_af): Fix typo in comment.
925         * inet/rexec.c (rexec_af): Likewise.
926
927 2017-04-19  Zack Weinberg  <zackw@panix.com>
928
929         * posix/tst-mmap-offset.c: Include stdint.h.
930         * resolv/tst-ns_name_compress.c: Include string.h.
931         * resolv/tst-resolv-edns.c: Include resolv.h.
932
933 2017-04-19  Florian Weimer  <fweimer@redhat.com>
934
935         * resolv/gai_suspend.c (gai_suspend): Replace __builtin_expect
936         with __glibc_likely.
937         * resolv/nss_dns/dns-host.c (getanswer_r, gaih_getanswer_slice):
938         Replace __builtin_expect with __glibc_unlikely.
939         * resolv/res_init.c (__res_vinit): Likewise.
940         * resolv/res_query.c (__libc_res_nquery): Likewise.
941         * resolv/res_send.c (__libc_res_nsend): Likewise.
942
943 2017-04-19  Florian Weimer  <fweimer@redhat.com>
944
945         [BZ #15722]
946         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Create socket
947         with SOCK_CLOEXEC.
948         * resolv/res_send.c (send_vc, reopen): Likewise.
949         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
950         * sysdeps/unix/sysv/linux/check_native.c (__check_native):
951         Likewise.
952         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_open): Likewise.
953         * inet/rexec.c (rexec_af): Add comment.
954         * inet/rcmd.c (rresvport_af): Likewise.
955
956 2017-04-19  Florian Weimer  <fweimer@redhat.com>
957
958         * nscd/connections.c (have_accept4): Removed definition.
959         (nscd_run_worker, main_loop_poll, main_loop_epolll): Assume that
960         accept4 works.
961         * manual/install.texi (Linux): Require at least kernel 3.2.18 for
962         ia64 because that was the first version with accept4 support.
963         * support/Makefile (libsupport-routines): Add xaccept4.
964         * support/xsocket.h (xaccept4): Declare.
965         * support/xaccept4.c: New file.
966         * socket/tst-accept4.c: New file.
967         * socket/Makefile (tests): Add tst-accept4.
968         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Remove
969         definition.
970         * sysdeps/nacl/kernel-features.h (__ASSUME_ACCEPT4): Remove
971         comment.
972         * sysdeps/unix/sysv/linux/accept4.c: Assume that an accept4
973         implementation is available.
974         (accept4): Use the system call if available, otherwise use the
975         socket call.
976         * sysdeps/unix/sysv/linux/ia64/configure.ac (arch_minimum_kernel):
977         Set to 3.2.18.
978         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
979         (__ASSUME_ACCEPT4_SYSCALL, __ASSUME_ACCEPT4): Do not undefine.
980         accept4 is unconditionally available in later 3.2 stable kernels.
981         (__ASSUME_ACCEPT4_SYSCALL): Define.
982         * sysdeps/unix/sysv/linux/kernel-features.h
983         (__ASSUME_ACCEPT4_SOCKETCALL, __ASSUME_ACCEPT4): Remove
984         definitions.
985         * sysdeps/unix/sysv/linux/i386/kernel-features.h
986         (__ASSUME_ACCEPT4_SYSCALL): Define for Linux 4.3 or later.
987
988 2017-04-18  Joseph Myers  <joseph@codesourcery.com>
989
990         * conform/Makefile (tests-special): Do not make addition of
991         $(conformtest-header-tests) conditional on [$(cross-compiling) = no].
992         (generated): Do not make addition of $(conformtest-header-base)
993         conditional on [$(cross-compiling) = no].
994
995         [BZ #21267]
996         * sysdeps/unix/sysv/linux/bits/socket.h (IOCSIZE_MASK): Undefine
997         if defined by <asm/socket.h> and not previously defined.
998         (IOCSIZE_SHIFT): Likewise.
999         (IOC_IN): Likewise.
1000         (IOC_INOUT): Likewise.
1001         (IOC_OUT): Likewise.
1002
1003 2017-04-18  H.J. Lu  <hongjiu.lu@intel.com>
1004
1005         [BZ #21396]
1006         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
1007         Prefer_No_AVX512 if AVX512ER isn't available.
1008         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_No_AVX512): New.
1009         (index_arch_Prefer_No_AVX512): Likewise.
1010         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Don't use
1011         AVX512 version if Prefer_No_AVX512 is set.
1012         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk):
1013         Likewise.
1014         * sysdeps/x86_64/multiarch/memmove.S (__libc_memmove): Likewise.
1015         * sysdeps/x86_64/multiarch/memmove_chk.S (__memmove_chk):
1016         Likewise.
1017         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
1018         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk):
1019         Likewise.
1020         * sysdeps/x86_64/multiarch/memset.S (memset): Likewise.
1021         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk):
1022         Likewise.
1023
1024 2017-04-18  H.J. Lu  <hongjiu.lu@intel.com>
1025
1026         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
1027         Prefer_No_VZEROUPPER if AVX512ER is available.
1028         * sysdeps/x86/cpu-features.h
1029         (bit_cpu_AVX512PF): New.
1030         (bit_cpu_AVX512ER): Likewise.
1031         (bit_cpu_AVX512CD): Likewise.
1032         (bit_cpu_AVX512BW): Likewise.
1033         (bit_cpu_AVX512VL): Likewise.
1034         (index_cpu_AVX512PF): Likewise.
1035         (index_cpu_AVX512ER): Likewise.
1036         (index_cpu_AVX512CD): Likewise.
1037         (index_cpu_AVX512BW): Likewise.
1038         (index_cpu_AVX512VL): Likewise.
1039         (reg_AVX512PF): Likewise.
1040         (reg_AVX512ER): Likewise.
1041         (reg_AVX512CD): Likewise.
1042         (reg_AVX512BW): Likewise.
1043         (reg_AVX512VL): Likewise.
1044
1045 2017-04-18  Florian Weimer  <fweimer@redhat.com>
1046
1047         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Assume that
1048         O_CLOEXEC is defined.
1049         * include/fcntl.h (__have_o_cloexec): Remove declaration.
1050         * io/Makefile (aux): Remove.
1051         * io/have_o_cloexec.c: Remove file.
1052         * libio/fileops.c (_IO_new_file_fopen): Assume that O_CLOEXEC is
1053         defined and works.
1054         * libio/iopopen.c (_IO_new_proc_open): Assume that O_CLOEXEC is
1055         defined.
1056         * login/utmp_file.c (O_flags): Remove definition.
1057         (setutent_file): Use O_CLOEXEC instead of O_flags.  Assume that
1058         O_CLOEXEC works.
1059         (pututline_file): Likewise.
1060         * malloc/mtrace.c: Assume that O_CLOEXEC works.
1061         * nis/nss_compat/compat-grp.c (__compat_have_cloexec): Remove
1062         definition.
1063         (internal_setgrent): Assume that O_CLOEXEC works.
1064         * nis/nss_compat/compat-initgroups.c (__compat_have_cloexec):
1065         Remove definition.
1066         (internal_setgrent): Assume that O_CLOEXEC works.
1067         * nis/nss_compat/compat-pwd.c (__compat_have_cloexec): Remove
1068         definition.
1069         (internal_setpwent): Assume that O_CLOEXEC works.
1070         * nis/nss_compat/compat-spwd.c (__compat_have_cloexec): Remove
1071         definition.
1072         (internal_setspent): Assume that O_CLOEXEC works.
1073         * nscd/connections.c (EXTRA_O_FLAGS): Remove definition.
1074         (nscd_init): Use O_CLOEXEC instead of EXTRA_O_FLAGS.  Assume that
1075         O_CLOEXEC is defined and works.
1076         * nss/Makefile (libnss_files-routines): Remove
1077         files-have_o_cloexec.
1078         * nss/nss_db/db-open.c (internal_setent): Assume that O_CLOEXEC is
1079         defined.
1080         * nss/nss_files/files-XXX.c (internal_setent): Assume that
1081         O_CLOEXEC is defined and works.
1082         * nss/nss_files/files-alias.c (internal_setent): Likewise.
1083         * nss/nss_files/files-have_o_cloexec.c: Remove.
1084         * posix/wordexp.c (exec_comm_child): Assume that O_CLOEXEC is
1085         defined.
1086         * shadow/lckpwdf.c (__lckpwdf): Assume that O_CLOEXEC is defined
1087         and works.
1088         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_O_CLOEXEC): Remove
1089         definition.
1090         * sysdeps/nacl/kernel-features.h (__ASSUME_O_CLOEXEC): Likewise.
1091         * sysdeps/posix/getcwd.c (__getcwd): Assume that O_CLOEXEC works.
1092         * sysdeps/posix/opendir.c (opendir_oflags): Turn into enum constant.
1093         (__opendirat, __opendir): Adjust opendir_oflags call.
1094         (check_have_o_cloexec): Remove.
1095         (__alloc_dir): Assume that O_CLOEXEC is defined and works.
1096         * sysdeps/posix/shm_open.c (shm_open): Assume that O_CLOEXEC is
1097         defined.
1098         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_O_CLOEXEC):
1099         Remove definition.
1100
1101 2017-04-18  Florian Weimer  <fweimer@redhat.com>
1102
1103         * include/unistd.h (__have_dup3): Remove declaration.
1104         * libio/freopen.c (freopen): Assume that O_CLOEXEC is defined and
1105         dup3 is available.
1106         * libio/freopen64.c (freopen64): Likewise.
1107         * socket/Makefile (aux): Remove have_sock_cloexec.
1108         * socket/have_sock_cloexec.c: Remove file.
1109         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Remove
1110         definition.
1111         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_DUP3):
1112         Likewise.
1113         * sysdeps/nacl/kernel-features.h: Update comment.
1114
1115 2017-04-18  Florian Weimer  <fweimer@redhat.com>
1116
1117         * include/unistd.h (__have_pipe2): Remove declaration.
1118         * socket/have_sock_cloexec.c (__have_pipe2): Remove definition.
1119         * libio/iopopen.c (_IO_new_proc_open): Assume that pipe2 is
1120         available.
1121         * posix/wordexp.c (exec_comm_child, exec_comm): Likewise.
1122         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PIPE2):
1123         Remove definition.
1124
1125 2017-04-18  Florian Weimer  <fweimer@redhat.com>
1126
1127         * malloc/malloc.c (cfree): Turn into compat symbol.
1128         (__cfree): Remove alias.
1129         * stdlib/stdlib.h (cfree): Remove declaration.
1130         * malloc/malloc.h (cfree): Likewise.
1131         * manual/memory.texi (Freeing after Malloc): Remove cfree.
1132         * malloc/Versions (GLIBC_2.26): Add.
1133
1134 2017-04-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1135
1136         * sysdeps/powerpc/powerpc64/multiarch/Makefile
1137         (sysdep_routines): Add strrchr-power8.
1138         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1139         (strrchr): Add __strrchr_power8 to list of strrchr functions.
1140         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: New file.
1141         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c
1142         (strrchr): Add __strrchr_power8 to ifunc list.
1143         * sysdeps/powerpc/powerpc64/power8/strrchr.S: New file.
1144
1145 2017-04-17  Rabin Vincent  <rabinv@axis.com>
1146
1147         [BZ #21357]
1148         * sysdeps/generic/unwind-dw2-fde.c (__deregister_frame_info_bases):
1149         Call free() outside of mutex.
1150
1151 2017-04-13  Florian Weimer  <fweimer@redhat.com>
1152
1153         * csu/check_fds.c (__libc_check_standard_fds): Assume O_NOFOLLOW
1154         is defined.
1155         * elf/rtld.c (process_envvars): Likewise.
1156         * sysdeps/posix/shm_open.c (shm_open): Likewise.
1157         * elf/dl-profile.c (EXTRA_FLAGS): Remove definition.  Use
1158         O_NOFOLLOW directly.
1159         * gmon/gmon.c (O_NOFOLLOW): Remove definition.
1160
1161 2017-04-13  Florian Weimer  <fweimer@redhat.com>
1162
1163         [BZ #21369]
1164         Remove EDNS fallback.
1165         * resolv/res_query.c (__libc_res_nquery): Remove RES_F_EDNS0ERR
1166         handling.
1167         * resolv/res_send.c (send_dg): Likewise.
1168         * resolv/tst-resolv-edns.c (response): Handle "formerr." and
1169         "tcp." prefixes.
1170         (do_test): Send a "formerr."-prefixed query in an attempt to
1171         trigger EDNS fallback.
1172
1173 2017-04-13  Florian Weimer  <fweimer@redhat.com>
1174
1175         [BZ #21361]
1176         Limit EDNS buffer size to 1200 bytes.
1177         * include/resolv.h (__res_nopt): Remove declaration.
1178         * resolv/Makefile (tests): tst-resolv-edns.
1179         (tst-resolv-edns): Link with -lresolv, -lpthread.
1180         * resolv/res_mkquery.c (__res_ntop): Limit EDNS buffer size to the
1181         interval [512, 1200].
1182         * resolv/res_query.c (__libc_res_nquery): Use 1200 buffer size if
1183         we can resize the buffer.
1184         * resolv/resolv-internal.h (RESOLV_EDNS_BUFFER_SIZE): Define.
1185         (__res_nopt): Declare.
1186         * resolv/tst-resolv-edns.c: New file.
1187         * resolv/resolv_test.h (struct resolv_edns_info): Define.
1188         (struct resolv_response_context): Add edns member.
1189         * resolv/resolv_test.c (struct query_info): Add edns member.
1190         (parse_query): Extract EDNS information from the query.
1191         (server_thread_udp_process_one): Propagate EDNS data.
1192         (server_thread_tcp_client): Likewise.
1193
1194 2017-04-13  Florian Weimer  <fweimer@redhat.com>
1195
1196         [BZ #21359]
1197         * resolv/ns_name.c (ns_name_pack): Do not require an additional
1198         byte in the destination buffer.  Avoid out-of-bounds pointer
1199         arithmetic.
1200         * resolv/Makefile (tests): Add tst-ns_name_compress.
1201         (tst-ns_name_compress): Link with -lresolv.
1202         * resolv/tst-ns_name_compress.c: New file.
1203         * resolv/tst-resolv-basic.c (LONG_NAME): Define.
1204         (response): Recognize LONG_NAME.
1205         (do_test): Add LONG_NAME tests.
1206         * resolv/tst-ns_name.c (run_test_case): Fix expected data check
1207         for ns_name_unpack.  Add tests for ns_name_pton and
1208         ns_name_compress.
1209
1210 2017-04-13  Florian Weimer  <fweimer@redhat.com>
1211
1212         * resolv/resolv.h (RES_EXHAUSTIVE, p_section, res_npquery)
1213         (res_nisourserver): Remove definition.
1214         (p_section, res_npquery, res_nisourserver): Remove declaration.
1215         (RES_F_VC, RES_F_CONN, RES_F_EDNS0ERR): Move ...
1216         * resolv/resolv-internal.h (RES_F_VC, RES_F_CONN, RES_F_EDNS0ERR):
1217         ... here.
1218         * resolv/res_send.c: Include <resolv/resolv-internal.h> instead of
1219         <resolv.h>.
1220         * resolv/res_query.c: Likewise.
1221         * resolv/res_debug.c (p_section): Define as static.
1222
1223 2017-04-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1224
1225         * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines): Add
1226         strncat-power8.
1227         * sysdeps/powerpc/powerpc64/multiarch/strncat.c (strncat): Add
1228         __strncat_power8 to ifunc list.
1229         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1230         (strncat): Add __strncat_power8 to list of strncat functions.
1231         * sysdeps/powerpc/powerpc64/multiarch/strncat-power8.c: New file.
1232
1233 2017-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1234
1235         [BZ #21270]
1236         * posix/tst-mmap-offset.c (do_prepare): New function.
1237         (do_test): Rename to do_test_bz18877 and use FAIL_RET.
1238         (do_test_bz21270): New function.
1239         * sysdeps/unix/sysv/linux/aarch64/mmap.c: Remove file.
1240         * sysdeps/unix/sysv/linux/arm/mmap.c: Remove file.
1241         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c: Likewise.
1242         * sysdeps/unix/sysv/linux/hppa/mmap.c: Likewise.
1243         * sysdeps/unix/sysv/linux/i386/mmap.c: Likewise.
1244         * sysdeps/unix/sysv/linux/m68k/mmap.S: Likewise.
1245         * sysdeps/unix/sysv/linux/m68k/mmap64.c: Likewise.
1246         * sysdeps/unix/sysv/linux/microblaze/mmap.S: Likewise.
1247         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: Likewise.
1248         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: Likewise.
1249         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: Likewise.
1250         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
1251         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
1252         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
1253         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: Likewise.
1254         * sysdeps/unix/sysv/linux/wordsize-64/mmap64.c: Likewise.
1255         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
1256         * sysdeps/unix/sysv/linux/mmap_internal.h: New file.
1257         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h: Likewise.
1258         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap_internal.h: Likewise.
1259         * sysdeps/unix/sysv/linux/s390/mmap_internal.h: Likewise.
1260         * sysdeps/unix/sysv/linux/x86_64/64/mmap_internal.h: Likewise.
1261         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Remove mmap
1262         from auto-generation list.
1263         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list: Likewise.
1264         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
1265         * sysdeps/unix/sysv/linux/mmap.c: New file.
1266         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Add check for invalid
1267         offsets and support for mmap2 syscall.
1268
1269         * posix/globtest.sh: Add cleanup routine on trap 0.
1270
1271 2017-04-11  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
1272
1273         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Define the
1274         implementation-specific function name and remove unneeded
1275         macros definition.
1276         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
1277         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
1278         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Set a default function
1279         name if not defined and pass as parameter to macros accordingly.
1280         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
1281         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
1282
1283         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Define the
1284         implementation-specific function name and remove unneeded
1285         macros definition.
1286         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
1287         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
1288         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
1289         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
1290         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
1291         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
1292         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Set a default function
1293         name if not defined and pass as parameter to macros accordingly.
1294         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
1295         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
1296         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
1297         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
1298         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
1299         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.
1300
1301         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Define the
1302         implementation-specific function name and remove unneeded macros
1303         definition.
1304         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
1305         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
1306         * sysdeps/powerpc/powerpc64/power7/memchr.S: Set a default
1307         function name if not defined and pass as parameter to macros
1308         accordingly.
1309         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
1310         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Likewise.
1311
1312         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Define the
1313         implementation-specific function name and remove unneeded macros
1314         definition.
1315         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
1316         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
1317         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
1318         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
1319         * sysdeps/powerpc/powerpc64/memset.S: Set a default function name if
1320         not defined and pass as parameter to macros accordingly.
1321         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
1322         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
1323         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
1324         * sysdeps/powerpc/powerpc64/power8/memset.S: Likewise.
1325
1326         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Define the
1327         strcasestr implementation name and remove unneeded macros definition.
1328         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Define
1329         strstr implementation name and remove unneeded macros definition.
1330         * sysdeps/powerpc/powerpc64/power7/strstr.S: Set a default function
1331         name if not defined and pass as parameter to macros accordingly.
1332         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: Likewise.
1333
1334         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Define the
1335         implementation-specific function name and remove unneeded macros
1336         definition.
1337         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
1338         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
1339         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
1340         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
1341         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
1342         * sysdeps/powerpc/powerpc64/power7/strchr.S: Set a default
1343         function name if not defined and pass as parameter to macros
1344         accordingly.
1345         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Likewise.
1346         * sysdeps/powerpc/powerpc64/power7/strrchr.S: Likewise.
1347         * sysdeps/powerpc/powerpc64/power8/strchr.S: Likewise.
1348         * sysdeps/powerpc/powerpc64/strchr.S: Likewise.
1349
1350         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Define
1351         the strlen implementation name and remove unneeded macros definition.
1352         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
1353         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
1354         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Define
1355         the strnlen implementation name and remove unneeded macros definition.
1356         * sysdeps/powerpc/powerpc64/power7/strlen.S: Set a default function
1357         name if not defined and pass as parameter to macros accordingly.
1358         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Likewise.
1359         * sysdeps/powerpc/powerpc64/power8/strlen.S: Likewise.
1360         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
1361
1362         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Define
1363         the implementation-specific function name and remove unneeded
1364         macros definition.
1365         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
1366         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S Likewise.
1367         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
1368         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
1369         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
1370         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
1371         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
1372         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
1373         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
1374         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Set a default function
1375         name if not defined and pass as parameter to macros accordingly.
1376         * sysdeps/powerpc/powerpc64/power7/strcmp.S: Likewise.
1377         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
1378         * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
1379         * sysdeps/powerpc/powerpc64/power8/strncmp.S: Likewise.
1380         * sysdeps/powerpc/powerpc64/power9/strcmp.S: Likewise.
1381         * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
1382         * sysdeps/powerpc/powerpc64/strcmp.S: Likewise.
1383         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
1384
1385         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Define the
1386         implementation-specific function name and remove unneeded macros
1387         definition.
1388         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
1389         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
1390         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
1391         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
1392         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
1393         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Set a default
1394         function name if not defined.
1395         * sysdeps/powerpc/powerpc64/power8/strcpy.S: Likewise.
1396         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Likewise.
1397
1398 2017-04-11  Paul Clarke  <pc@us.ibm.com>
1399
1400         * elf/elf.h (AT_L1I_CACHESIZE, AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE,
1401         AT_L1D_CACHEGEOMETRY, AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY,
1402         AT_L3_CACHESIZE, AT_L3_CACHEGEOMETRY): New.  Add auxvec
1403         identifiers from kernel arch/powerpc/include/uapi/asm/auxvec.h.
1404
1405 2017-04-11  Florian Weimer  <fweimer@redhat.com>
1406             Zack Weinberg  <zackw@panix.com>
1407
1408         * manual/filesys.texi (Reading/Closing Directory): Mark readdir,
1409         readdir64 as thread-safe.  Update warning about readdir_r.
1410
1411 2017-04-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1412
1413         * sysdeps/unix/sysv/linux/x86/Implies: New file.
1414         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Move to ...
1415         * sysdeps/alpha/nptl/bits/pthreadtypes.h: ... here.
1416         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Move to ...
1417         * sysdeps/powerpc/nptl/bits/pthreadtypes.h: ... here.
1418         * sysdeps/x86/bits/pthreadtypes.h: Move to ...
1419         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
1420
1421 2017-04-10  H.J. Lu  <hongjiu.lu@intel.com>
1422
1423         * sysdeps/i386/dl-procinfo.c: Include
1424         <sysdeps/x86/dl-procinfo.c>.
1425         * sysdeps/x86_64/dl-procinfo.c: Likewise.
1426         * sysdeps/x86/dl-procinfo.c: New file.
1427
1428 2017-04-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1429
1430         * sysdeps/generic/math_private.h: Remove declarations of
1431         many functions that are already declared in math.h.
1432         * sysdeps/ieee754/ldbl-128/e_logl.c: Include math.h to get the
1433         declaration for __frexpl.
1434         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Include math.h to get
1435         the declarations for __scalbnl and fabsl.
1436
1437 2017-04-09  Dmitry V. Levin  <ldv@altlinux.org>
1438
1439         [BZ #20831]
1440         * elf/dl-map-segments.h (_dl_map_segments): Check for failure
1441         of __mprotect to change protection on the excess portion
1442         to disallow all access.
1443
1444 2017-04-07  H.J. Lu  <hongjiu.lu@intel.com>
1445
1446         * sysdeps/i386/fpu/fclrexcpt.c (__feclearexcept): Use
1447         HAS_CPU_FEATURE to check for SSE.
1448         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
1449         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Likewise.
1450         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Likewise.
1451         * sysdeps/i386/fpu/fegetmode.c (fegetmode): Likewise.
1452         * sysdeps/i386/fpu/feholdexcpt.c (__feholdexcept): Likewise.
1453         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Likewise.
1454         * sysdeps/i386/fpu/fesetmode.c (fesetmode): Likewise.
1455         * sysdeps/i386/fpu/fesetround.c (__fesetround): Likewise.
1456         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
1457         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Likewise.
1458         * sysdeps/i386/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
1459         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
1460         * sysdeps/i386/setfpucw.c (__setfpucw): Likewise.
1461         * sysdeps/x86/cpu-features.h (bit_cpu_SSE): New.
1462         (index_cpu_SSE): Likewise.
1463         (reg_SSE): Likewise.
1464
1465 2017-04-07  Paul Eggert  <eggert@cs.ucla.edu>
1466
1467         * posix/getopt1.c: Include <config.h>, not "config.h".
1468
1469 2017-04-07  Zack Weinberg  <zackw@panix.com>
1470
1471         * posix/bits/getopt_core.h, posix/bits/getopt_ext.h
1472         * posix/getopt.c, posix/getopt1.c, posix/getopt_int.h:
1473         Mention in top-of-file boilerplate that these files are shared
1474         with gnulib.
1475         * posix/getopt.h, posix/bits/getopt_posix.h:
1476         Mention in top-of-file boilerplate that these files are NOT shared
1477         with gnulib, unlike the rest of the getopt implementation.
1478
1479         * posix/bits/getopt_core.h, posix/bits/getopt_ext.h:
1480         New files, intended to be shared with gnulib.
1481         * posix/bits/getopt_posix.h:
1482         New file, not intended to be shared with gnulib.
1483         * posix/getopt.h: Now just includes features.h,
1484         bits/getopt_core.h, and bits/getopt_ext.h.  Will
1485         no longer be shared with gnulib.
1486         * include/bits/getopt_core.h, include/bits/getopt_ext.h
1487         * include/bits/getopt_posix.h: New wrappers.
1488         * posix/Makefile: Install new headers.
1489         * posix/unistd.h, libio/stdio.h:
1490         Include bits/getopt_posix.h instead of getopt.h.
1491
1492         * include/libc-symbols.h: For gnulib compatibility, define
1493         _GL_UNUSED, _GL_UNUSED_LABEL, _GL_ATTRIBUTE_PURE, and
1494         _GL_ATTRIBUTE_CONST.
1495         * posix/getopt.c (_getopt_initialize): Mark argc and argv
1496         parameters with _GL_UNUSED.
1497
1498         * posix/getopt.c: When used standalone, define __libc_use_alloca
1499         as always false and alloca to abort if called.
1500         (process_long_option): Rewrite handling of ambiguous long options
1501         to use a single boolean vector, not a linked list; use
1502         __libc_use_alloca to decide whether to allocate this using alloca.
1503         * posix/tst-getopt_long1.c: Adjust text of expected error message.
1504
1505         * posix/getopt.c (process_long_option): New function split out
1506         from _getopt_internal_r.
1507         (_getopt_internal_r): Replace both copies of the long-option
1508         processing code with calls to process_long_option.
1509         * posix/bug-getopt4.c (one_test): Print argv[0] in error messages.
1510         (do_test): Differentiate argv[0] in the two subtests.
1511
1512         * posix/getopt_int.h (_getopt_data): Remove __posixly_correct field.
1513         * posix/getopt.c (_getopt_internal_r): Move some initialization code...
1514         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
1515
1516         * posix/getopt.h: Add backup definition of __nonnull for
1517         consistency with gnulib.  Define __getopt_argv_const to const
1518         if not already defined.
1519         (getopt): Update doc comment from gnulib.  Prototype
1520         unconditionally.  Add __nonnull annotation.
1521         (__posix_getopt): Add __nonnull annotation.
1522         (getopt_long, getopt_long_only): Use __getopt_argv_const in
1523         prototypes for consistency with gnulib.  Add __nonnull
1524         annotations.
1525         * posix/getopt.c (_getopt_initialize, _getopt_internal_r)
1526         (getopt_internal): Change 'argv' argument to type 'char **'.
1527         Remove now-unnecessary casts.
1528         (getopt, __posix_getopt): Eliminate repetition with a macro.
1529         Cast 'argv' to 'char **' when calling _getopt_internal.
1530         * posix/getopt1.c (getopt_long, getopt_long_only):
1531         Use __getopt_argv_const for consistency with gnulib.
1532         Cast 'argv' to 'char **' when calling _getopt_internal.
1533         (_getopt_long_r, _getopt_long_only_r):
1534         Change 'argv' argument to type 'char **'.
1535         (main): Constify 'long_options'.
1536         * posix/getopt_int.h (getopt_internal, _getopt_internal_r)
1537         (_getopt_long_r, _getopt_long_only_r):
1538         Change 'argv' argument to type 'char **'.
1539
1540         * stdio-common/fxprintf.c (__fxprintf_nocancel): New function.
1541         (locked_vfxprintf): New helper function. Handle arbitrary
1542         multibyte strings, not just ASCII.
1543         * include/stdio.h: Declare __fxprintf_nocancel.
1544         * posix/getopt.c: When _LIBC is defined, define fprintf to
1545         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
1546         to _IO_funlockfile.  When neither _LIBC nor
1547         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
1548         funlockfile as no-ops.
1549         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks;
1550         the standalone error-printing code can now be used for libc as
1551         well.  Add an flockfile/funlockfile pair around one case where
1552         the error message is printed in several chunks.  Don't use fputc.
1553         * posix/tst-getopt-cancel.c: New test.
1554         * posix/Makefile: Run it.
1555
1556         * posix/getopt.c (_getopt_internal_r): Don't increment
1557         d->optind a second time when reporting ambiguous -W options.
1558
1559         * posix/getopt_int.h: Include getopt.h.
1560         Use impl-namespace names for all arguments to _getopt_internal and
1561         _getopt_internal_r.
1562         Declare __ordering enum outside the struct.
1563         Harmonize comments with gnulib.
1564         * posix/getopt1.c: Simplify #ifdeffage at top of file. Remove
1565         ELIDE_CODE logic entirely.  Move inclusion of stdlib.h to
1566         #ifdef TEST block and make unconditional.  Do not define NULL.
1567         * posix/getopt.c: Partial merge from gnulib, covering the
1568         initial includes and global declarations, commentary, and
1569         a couple of semantically-neutral code changes.
1570
1571         * posix/getopt.c, posix/getopt.h, posix/getopt1.c, posix/getopt_int.h:
1572         Use '...' instead of `...' for quotation marks inside
1573         comments and strings.
1574
1575         * config.h.in (USE_NONOPTION_FLAGS): Remove.
1576         * csu/init-first.c: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
1577         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
1578         * posix/getopt_int.h: Likewise.
1579         * posix/getopt.c: Likewise. Also remove SWAP_FLAGS and the
1580         __libc_argc and __libc_argv externs, which were only used by
1581         #ifdef USE_NONOPTION_FLAGS blocks.
1582         * posix/getopt_init.c: Remove file.
1583         * posix/Makefile (routines): Remove getopt_init.
1584         * include/getopt.h: Don't declare __getopt_initialize_environment.
1585         * manual/getopt.texi: Remove mention of USE_NONOPTION_FLAGS in
1586         a comment.
1587
1588 2017-04-07  Florian Weimer  <fweimer@redhat.com>
1589
1590         * resolv/res_mkquery.c (res_nmkquery): Remove IQUERY support.
1591
1592 2017-04-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1593
1594         * sysdeps/sparc/sparc32/Makefile (libc.so-gnulib): New rule.
1595         * sysdeps/sparc/sparc32/sparcv8/udiv.S (.udiv): Make a strong_alias
1596         to __wrap_.udiv.
1597         * sysdeps/sparc/sparc32/sparcv9/udiv.S (.udiv): Likewise.
1598         * sysdeps/sparc/sparc32/udiv.S (.udiv): Likewise.
1599
1600         * sysdeps/i386/symbol-hacks.h: New file.
1601         * sysdeps/m68k/symbol-hacks.h: New file.
1602         * sysdeps/powerpc/powerpc32/symbol-hacks.h: New file.
1603         * sysdeps/s390/s390-32/symbol-hacks.h: New file.
1604         * sysdeps/unix/sysv/linux/i386/Makefile
1605         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
1606         [$(subdir) = csu] (sysdep-only-routines): Likewise.
1607         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
1608         * sysdeps/unix/sysv/linux/m68k/Makefile
1609         [$(subdir) = csu] (sysdep_routines): Likewise.
1610         [$(subdir) = csu] (sysdep-only-routines): Likewise.
1611         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
1612         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
1613         [$(subdir) = csu] (sysdep_routines): Likewise.
1614         [$(subdir) = csu] (sysdep-only-routines): Likewise.
1615         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
1616         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile
1617         [$(subdir) = csu] (sysdep_routines): Likewise.
1618         [$(subdir) = csu] (sysdep-only-routines): Likewise.
1619         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
1620         * sysdeps/wordsize-32/Makefile: Remove file.
1621         * sysdeps/wordsize-32/symbol-hacks.h: Definitions move to ...
1622         * sysdeps/wordsize-32/divdi3-symbol-hacks.h: ... here.
1623
1624 2017-04-05  H.J. Lu  <hongjiu.lu@intel.com>
1625
1626         * elf/tst-dlopen-aout.c (TEST_FUNCTION): Removed.
1627         (TEST_FUNCTION_ARGV): New.
1628
1629 2017-04-05  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
1630
1631         * elf/next.c: Import support/test-driver.c instead of
1632         test-skeleton.c and delete TEST_FUNCTION macro definition.
1633         * elf/nodelete.c: Likewise.
1634         * elf/order2.c: Likewise.
1635         * elf/tst-_dl_addr_inside_object.c: Likewise.
1636         * elf/tst-addr1.c: Likewise.
1637         * elf/tst-align.c: Likewise.
1638         * elf/tst-align2.c: Likewise.
1639         * elf/tst-audit11.c: Likewise.
1640         * elf/tst-audit12.c: Likewise.
1641         * elf/tst-audit2.c: Likewise.
1642         * elf/tst-audit9.c: Likewise.
1643         * elf/tst-auxv.c: Likewise and define TEST_FUNCTION_ARGV macro.
1644         * elf/tst-deep1.c: Likewise.
1645         * elf/tst-dl-iter-static.c: Likewise.
1646         * elf/tst-dlmodcount.c: Likewise.
1647         * elf/tst-dlmopen1.c: Likewise.
1648         * elf/tst-dlmopen2.c: Likewise.
1649         * elf/tst-dlmopen3.c: Likewise.
1650         * elf/tst-dlopen-aout.c: Likewise.
1651         * elf/tst-dlopenrpath.c: Likewise.
1652         * elf/tst-dlsym-error.c: Likewise.
1653         * elf/tst-execstack-needed.c: Likewise.
1654         * elf/tst-execstack-prog.c: Likewise.
1655         * elf/tst-execstack.c: Likewise.
1656         * elf/tst-global1.c: Likewise.
1657         * elf/tst-gnu2-tls1.c: Likewise.
1658         * elf/tst-latepthread.c: Likewise.
1659         * elf/tst-leaks1.c: Likewise.
1660         * elf/tst-linkall-static.c: Likewise.
1661         (do_test): New function.
1662         * elf/tst-nodelete-opened.c: Likewise.
1663         * elf/tst-nodelete.cc: Likewise.
1664         * elf/tst-nodelete2.c: Likewise.
1665         * elf/tst-noload.c: Likewise.
1666         * elf/tst-null-argv.c: Likewise and define TEST_FUNCTION_ARGV marcro.
1667         * elf/tst-order-main.c: Likewise.
1668         * elf/tst-pathopt.c: Likewise.
1669         * elf/tst-pie2.c: Likewise.
1670         * elf/tst-piemod1.c: Likewise.
1671         * elf/tst-prelink.c: Likewise.
1672         * elf/tst-protected1a.c: Likewise.
1673         * elf/tst-protected1b.c: Likewise.
1674         * elf/tst-ptrguard1.c: Likewise, import getopt.h,
1675         and define _GNU_SOURCE macro.
1676         (cmdline_process_function): New function.
1677         * elf/tst-relsort1.c: Likewise.
1678         * elf/tst-stackguard1.c: Likewise, import getopt.h,
1679         and define _GNU_SOURCE macro.
1680         (cmdline_process_function): New function.
1681         * elf/tst-thrlock.c: Likewise.
1682         * elf/tst-tls-dlinfo.c: Likewise.
1683         * elf/tst-tls-manydynamic.c: Likewise and import support/xthread.h.
1684         * elf/tst-tls1.c: Likewise.
1685         * elf/tst-tls10.c: Likewise.
1686         * elf/tst-tls11.c: Likewise.
1687         * elf/tst-tls12.c: Likewise.
1688         * elf/tst-tls13.c: Likewise.
1689         * elf/tst-tls14.c: Likewise.
1690         * elf/tst-tls15.c: Likewise.
1691         * elf/tst-tls16.c: Likewise.
1692         * elf/tst-tls17.c: Likewise.
1693         * elf/tst-tls18.c: Likewise.
1694         * elf/tst-tls19.c: Likewise.
1695         * elf/tst-tls2.c: Likewise.
1696         * elf/tst-tls3.c: Likewise.
1697         * elf/tst-tls4.c: Likewise.
1698         * elf/tst-tls5.c: Likewise.
1699         * elf/tst-tls6.c: Likewise.
1700         * elf/tst-tls7.c: Likewise.
1701         * elf/tst-tls8.c: Likewise.
1702         * elf/tst-tls9.c: Likewise.
1703         * elf/tst-tlsalign-extern.c: Likewise.
1704         * elf/tst-tlsalign.c: Likewise.
1705         * elf/tst-unique1.c: Likewise.
1706         * elf/tst-unique2.c: Likewise.
1707         * elf/vismain.c: Likewise.
1708
1709 2017-04-05  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
1710
1711         * string/test-strnlen.c (do_page_tests): New function
1712         to check length of strings ending at the page boundary.
1713         (test_main): Added call to the do_page_tests function.
1714
1715 2017-04-05  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
1716             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1717
1718         * sysdeps/powerpc/powerpc64/multiarch/Makefile
1719         (sysdep_routines): Add strnlen-power8.
1720         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1721         (strnlen): Add __strnlen_power8 to list of strnlen functions.
1722         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: New file.
1723         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c
1724         (__strnlen): Add __strnlen_power8 to ifunc list.
1725         * sysdeps/powerpc/powerpc64/power8/strnlen.S: New file.
1726
1727 2017-04-04  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
1728
1729         * wcsmbs/tst-btowc.c: Import support/test-driver.c and remove
1730         the TEST_FUNCTION macro definition.
1731         * wcsmbs/tst-mbrtowc2.c: Likewise.
1732         * wcsmbs/tst-mbsrtowcs.c: Likewise.
1733         * wcsmbs/tst-wchar-h.c: Likewise.
1734         * wcsmbs/tst-wcpncpy.c: Likewise.
1735         * wcsmbs/tst-wcrtomb.c: Likewise.
1736         * wcsmbs/tst-wcsnlen.c: Likewise.
1737         * wcsmbs/tst-wcstof.c: Likewise.
1738
1739 2017-04-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1740
1741         * nptl/pthread_create.c (START_THREAD_DEFN): Remove
1742         CALL_THREAD_FCT macro usage.
1743         * sysdeps/i386/nptl/tls.h (CALL_THREAD_FCT): Remove definition.
1744         * sysdeps/x86_64/nptl/tls.h (CALL_THREAD_FCT): Likewise.
1745         * sysdeps/x86_64/32/nptl/tls.h: Remove file.
1746
1747         * nptl/pthreadP.h (USE_REQUEUE_PI): Remove ununsed macro.
1748         * sysdeps/unix/sysv/linux/arm/kernel-features.h
1749         (__ASSUME_REQUEUE_PI): Likewise.
1750         * sysdeps/unix/sysv/linux/kernel-features.h
1751         (__ASSUME_REQUEUE_PI): Likewise.
1752         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
1753         (__ASSUME_REQUEUE_PI): Likewise.
1754         * sysdeps/unix/sysv/linux/mips/kernel-features.h
1755         (__ASSUME_REQUEUE_PI): Likewise.
1756         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
1757         (__ASSUME_REQUEUE_PI): Likewise.
1758
1759 2017-04-04  Florian Weimer  <fweimer@redhat.com>
1760
1761         * resolv/tst-resolv-canonname.c: New file.
1762         * resolv/Makefile (tests): Add tst-resolv-canonname.
1763         (tst-resolv-canonname): Link with -ldl, -lresolv, -lpthread.
1764
1765 2017-04-04  Florian Weimer  <fweimer@redhat.com>
1766
1767         * include/arpa/nameser.h (__ns_name_ntop, __ns_name_unpack):
1768         Declare.
1769         * resolv/nss_dns/dns-network.c: Include <arpa/nameser.h>.
1770         (NS_MAXCDNAME): Remove definition.
1771         (__ns_name_ntop, __ns_name_unpack): Remove declaration.
1772         * resolv/nss_dns/dns-host.c: Include <arpa/nameser.h>.
1773         (NS_MAXCDNAME): Remove definition.
1774         (__ns_name_ntop, __ns_name_unpack): Remove declaration.
1775
1776 2017-04-04  Florian Weimer  <fweimer@redhat.com>
1777
1778         * resolv/nss_dns/dns-network.c (getanswer_r): Remove __dn_expand
1779         call whose result is not used.
1780
1781 2017-04-04  Florian Weimer  <fweimer@redhat.com>
1782
1783         * resolv/tst-ns_name.c, resolv/tst-ns_name.data: New file.
1784         * resolv/Makefile (tests): Add tst-ns_name.
1785         (tst-ns_name): Link with -lresolv.
1786         (tst-ns_name.out): Depend on the input data file.
1787
1788 2017-04-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
1789
1790         * sysdeps/s390/s390-32/tls-macros.h (TLS_LD, TLS_GD):
1791         Clobber also r14.
1792
1793 2017-04-03  Mike Frysinger  <vapier@gentoo.org>
1794
1795         [BZ #21253]
1796         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Increase argv_size
1797         slack space by 32KiB.
1798
1799 2017-04-01  Wladimir van der Laan  <laanwj@gmail.com>
1800
1801         [BZ #21338]
1802         * malloc/malloc.c: Call do_set_arena_max for M_ARENA_MAX
1803         instead of incorrect do_set_arena_test
1804
1805 2017-03-31  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1806
1807         * math/math.h: Fix check for __MATH_DECLARE_LDOUBLE.
1808         * math/bits/math-finite.h: Likewise.
1809
1810 2017-03-31  Slava Barinov  <v.barinov@samsung.com>
1811
1812         [BZ #21289]
1813         * io/fts.h (fts_set): Replace __REDIRECT with __REDIRECT_NTH.
1814
1815 2017-03-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1816
1817         * sysdeps/unix/sysv/linux/test-errno-linux.c (do_test): Handle
1818         non expected inotify_add_watch and quotactl return.
1819
1820 2017-03-30  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1821
1822         * math/e_rem_pio2l.c (__ieee754_rem_pio2l): Change return type
1823         to int32_t.
1824         * sysdeps/generic/math_private.h: Declare __ieee754_rem_pio2l
1825         as returning int32_t.
1826
1827 2017-03-30  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1828
1829         * math/math.h: Include bits/math-finite.h once per
1830         floating-point type.
1831         * math/bits/math-finite.h: Macroize all declarations by
1832         floating-point type.
1833
1834 2017-03-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1835
1836         [BZ #21182]
1837         * string/test-memchr.c (do_test): Add BZ#21182 checks for address
1838         near end of a page.
1839         * sysdeps/i386/i686/multiarch/memchr-sse2.S (__memchr): Fix
1840         overflow calculation.
1841
1842 2017-03-28  Steve Ellcey  <sellcey@caviumnetworks.com>
1843
1844         * benchtests/bench-memcpy-random.c (TEST_NAME): Change to memcpy.
1845         (IMPL) Call with 1 instead of 0 as argument.
1846
1847 2017-03-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1848
1849         * sysdeps/unix/sysv/linux/arm/setegid.c: Remove file.
1850         * sysdeps/unix/sysv/linux/arm/seteuid.c: Likewise.
1851         * sysdeps/unix/sysv/linux/arm/setgid.c: Likewise.
1852         * sysdeps/unix/sysv/linux/arm/setgroups.c: Likewise.
1853         * sysdeps/unix/sysv/linux/arm/setregid.c: Likewise.
1854         * sysdeps/unix/sysv/linux/arm/setresgid.c: Likewise.
1855         * sysdeps/unix/sysv/linux/arm/setresuid.c: Likewise.
1856         * sysdeps/unix/sysv/linux/arm/setreuid.c: Likewise.
1857         * sysdeps/unix/sysv/linux/arm/setuid.c: Likewise.
1858         * sysdeps/unix/sysv/linux/i386/setegid.c: Likewise.
1859         * sysdeps/unix/sysv/linux/i386/seteuid.c: Likewise.
1860         * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
1861         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
1862         * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
1863         * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
1864         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
1865         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
1866         * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
1867         * sysdeps/unix/sysv/linux/m68k/setegid.c: Likewise.
1868         * sysdeps/unix/sysv/linux/m68k/seteuid.c: Likewise.
1869         * sysdeps/unix/sysv/linux/m68k/setgid.c: Likewise.
1870         * sysdeps/unix/sysv/linux/m68k/setgroups.c: Likewise.
1871         * sysdeps/unix/sysv/linux/m68k/setregid.c: Likewise.
1872         * sysdeps/unix/sysv/linux/m68k/setresgid.c: Likewise.
1873         * sysdeps/unix/sysv/linux/m68k/setresuid.c: Likewise.
1874         * sysdeps/unix/sysv/linux/m68k/setreuid.c: Likewise.
1875         * sysdeps/unix/sysv/linux/m68k/setuid.c: Likewise.
1876         * sysdeps/unix/sysv/linux/microblaze/setgroups.c: Likewise.
1877         * sysdeps/unix/sysv/linux/s390/s390-32/setegid.c: Likewise.
1878         * sysdeps/unix/sysv/linux/s390/s390-32/seteuid.c: Likewise.
1879         * sysdeps/unix/sysv/linux/s390/s390-32/setgid.c: Likewise.
1880         * sysdeps/unix/sysv/linux/s390/s390-32/setgroups.c: Likewise.
1881         * sysdeps/unix/sysv/linux/s390/s390-32/setregid.c: Likewise.
1882         * sysdeps/unix/sysv/linux/s390/s390-32/setresgid.c: Likewise.
1883         * sysdeps/unix/sysv/linux/s390/s390-32/setresuid.c: Likewise.
1884         * sysdeps/unix/sysv/linux/s390/s390-32/setreuid.c: Likewise.
1885         * sysdeps/unix/sysv/linux/s390/s390-32/setuid.c: Likewise.
1886         * sysdeps/unix/sysv/linux/sh/setegid.c: Likewise.
1887         * sysdeps/unix/sysv/linux/sh/seteuid.c: Likewise.
1888         * sysdeps/unix/sysv/linux/sh/setgid.c: Likewise.
1889         * sysdeps/unix/sysv/linux/sh/setgroups.c: Likewise.
1890         * sysdeps/unix/sysv/linux/sh/setregid.c: Likewise.
1891         * sysdeps/unix/sysv/linux/sh/setresgid.c: Likewise.
1892         * sysdeps/unix/sysv/linux/sh/setresuid.c: Likewise.
1893         * sysdeps/unix/sysv/linux/sh/setreuid.c: Likewise.
1894         * sysdeps/unix/sysv/linux/sh/setuid.c: Likewise.
1895         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c: Likewise.
1896         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c: Likewise.
1897         * sysdeps/unix/sysv/linux/sparc/sparc32/setgid.c: Likewise.
1898         * sysdeps/unix/sysv/linux/sparc/sparc32/setgroups.c: Likewise.
1899         * sysdeps/unix/sysv/linux/sparc/sparc32/setregid.c: Likewise.
1900         * sysdeps/unix/sysv/linux/sparc/sparc32/setresgid.c: Likewise.
1901         * sysdeps/unix/sysv/linux/sparc/sparc32/setresuid.c: Likewise.
1902         * sysdeps/unix/sysv/linux/sparc/sparc32/setreuid.c: Likewise.
1903         * sysdeps/unix/sysv/linux/sparc/sparc32/setuid.c: Likewise.
1904         * sysdeps/unix/sysv/linux/setegid.c (setegid): Use
1905         INLINE_SYSCALL_ERROR_RETURN_VALUE.
1906         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
1907         * sysdeps/unix/sysv/linux/setgid.c (setgid): Use __NR_setgid32 if
1908         defined.
1909         * sysdeps/unix/sysv/linux/setgroups.c (setgroups): Use
1910         __NR_setgroups32 if defined.
1911         * sysdeps/unix/sysv/linux/setregid.c (__setregid): Use __NR_setregid32
1912         if defined.
1913         * sysdeps/unix/sysv/linux/setresgid.c (__setresgid): Use
1914         __NR_setresgid32 is defined.
1915         * sysdeps/unix/sysv/linux/setresuid.c (__setresuid): Use
1916         __NR_setresuid32 if defined.
1917         * sysdeps/unix/sysv/linux/setreuid.c (__setreuid): Use
1918         __NR_setreuid32 if defined.
1919         * sysdeps/unix/sysv/linux/setuid.c (__setuid): Use __NR_setuid32 if
1920         defined.
1921         * sysdeps/unix/sysv/linux/arm/setegid.c: Remove file.
1922         * sysdeps/unix/sysv/linux/arm/seteuid.c: Likewise.
1923         * sysdeps/unix/sysv/linux/arm/setgid.c: Likewise.
1924         * sysdeps/unix/sysv/linux/arm/setgroups.c: Likewise.
1925         * sysdeps/unix/sysv/linux/arm/setregid.c: Likewise.
1926         * sysdeps/unix/sysv/linux/arm/setresgid.c: Likewise.
1927         * sysdeps/unix/sysv/linux/arm/setresuid.c: Likewise.
1928         * sysdeps/unix/sysv/linux/arm/setreuid.c: Likewise.
1929         * sysdeps/unix/sysv/linux/arm/setuid.c: Likewise.
1930         * sysdeps/unix/sysv/linux/i386/setegid.c: Likewise.
1931         * sysdeps/unix/sysv/linux/i386/seteuid.c: Likewise.
1932         * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
1933         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
1934         * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
1935         * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
1936         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
1937         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
1938         * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
1939         * sysdeps/unix/sysv/linux/m68k/setegid.c: Likewise.
1940         * sysdeps/unix/sysv/linux/m68k/seteuid.c: Likewise.
1941         * sysdeps/unix/sysv/linux/m68k/setgid.c: Likewise.
1942         * sysdeps/unix/sysv/linux/m68k/setgroups.c: Likewise.
1943         * sysdeps/unix/sysv/linux/m68k/setregid.c: Likewise.
1944         * sysdeps/unix/sysv/linux/m68k/setresgid.c: Likewise.
1945         * sysdeps/unix/sysv/linux/m68k/setresuid.c: Likewise.
1946         * sysdeps/unix/sysv/linux/m68k/setreuid.c: Likewise.
1947         * sysdeps/unix/sysv/linux/m68k/setuid.c: Likewise.
1948         * sysdeps/unix/sysv/linux/microblaze/setgroups.c: Likewise.
1949         * sysdeps/unix/sysv/linux/s390/s390-32/setegid.c: Likewise.
1950         * sysdeps/unix/sysv/linux/s390/s390-32/seteuid.c: Likewise.
1951         * sysdeps/unix/sysv/linux/s390/s390-32/setgid.c: Likewise.
1952         * sysdeps/unix/sysv/linux/s390/s390-32/setgroups.c: Likewise.
1953         * sysdeps/unix/sysv/linux/s390/s390-32/setregid.c: Likewise.
1954         * sysdeps/unix/sysv/linux/s390/s390-32/setresgid.c: Likewise.
1955         * sysdeps/unix/sysv/linux/s390/s390-32/setresuid.c: Likewise.
1956         * sysdeps/unix/sysv/linux/s390/s390-32/setreuid.c: Likewise.
1957         * sysdeps/unix/sysv/linux/s390/s390-32/setuid.c: Likewise.
1958         * sysdeps/unix/sysv/linux/sh/setegid.c: Likewise.
1959         * sysdeps/unix/sysv/linux/sh/seteuid.c: Likewise.
1960         * sysdeps/unix/sysv/linux/sh/setgid.c: Likewise.
1961         * sysdeps/unix/sysv/linux/sh/setgroups.c: Likewise.
1962         * sysdeps/unix/sysv/linux/sh/setregid.c: Likewise.
1963         * sysdeps/unix/sysv/linux/sh/setresgid.c: Likewise.
1964         * sysdeps/unix/sysv/linux/sh/setresuid.c: Likewise.
1965         * sysdeps/unix/sysv/linux/sh/setreuid.c: Likewise.
1966         * sysdeps/unix/sysv/linux/sh/setuid.c: Likewise.
1967         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c: Likewise.
1968         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c: Likewise.
1969         * sysdeps/unix/sysv/linux/sparc/sparc32/setgid.c: Likewise.
1970         * sysdeps/unix/sysv/linux/sparc/sparc32/setgroups.c: Likewise.
1971         * sysdeps/unix/sysv/linux/sparc/sparc32/setregid.c: Likewise.
1972         * sysdeps/unix/sysv/linux/sparc/sparc32/setresgid.c: Likewise.
1973         * sysdeps/unix/sysv/linux/sparc/sparc32/setresuid.c: Likewise.
1974         * sysdeps/unix/sysv/linux/sparc/sparc32/setreuid.c: Likewise.
1975         * sysdeps/unix/sysv/linux/sparc/sparc32/setuid.c: Likewise.
1976         * sysdeps/unix/sysv/linux/setegid.c (setegid): Use
1977         INLINE_SYSCALL_ERROR_RETURN_VALUE.
1978         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
1979         * sysdeps/unix/sysv/linux/setgid.c (setgid): Use __NR_setgid32 if
1980         defined.
1981         * sysdeps/unix/sysv/linux/setgroups.c (setgroups): Use
1982         __NR_setgroups32 if defined.
1983         * sysdeps/unix/sysv/linux/setregid.c (__setregid): Use __NR_setregid32
1984         if defined.
1985         * sysdeps/unix/sysv/linux/setresgid.c (__setresgid): Use
1986         __NR_setresgid32 is defined.
1987         * sysdeps/unix/sysv/linux/setresuid.c (__setresuid): Use
1988         __NR_setresuid32 if defined.
1989         * sysdeps/unix/sysv/linux/setreuid.c (__setreuid): Use
1990         __NR_setreuid32 if defined.
1991         * sysdeps/unix/sysv/linux/setuid.c (__setuid): Use __NR_setuid32 if
1992         defined.
1993
1994 2017-03-27  Joseph Myers  <joseph@codesourcery.com>
1995
1996         [BZ #21277]
1997         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (IUCLC): Define
1998         unconditionally.
1999         (IMAXBEL): Likewise.
2000         (IUTF8): Likewise.
2001
2002 2017-03-27  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2003
2004         * sysdeps/aarch64/libm-test-ulps: Update.
2005
2006 2017-03-24  Sunyeop Lee  <sunyeop97@gmail.com>
2007
2008         * README.tunables: Updated descriptions.
2009         * elf/dl-tunables.list: Fixed typo: SXID_NONE -> NONE.
2010         * scripts/gen-tunables.awk: Updated the code related to the
2011         commit.
2012
2013 2017-03-23  Wilco Dijkstra  <wdijkstr@arm.com>
2014
2015         * benchtests/Makefile (string-benchset): Add memcpy-random.
2016         * benchtests/bench-memcpy-random.c: New file.
2017
2018 2017-03-23  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2019
2020         * stdio-common/printf.h (register_printf_modifier): Change the
2021         order of __wur and __THROW.
2022         (register_printf_type): Likewise.
2023
2024 2017-03-23  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
2025
2026         * string/test-string.h (TEST_FUNCTION): Use test_main instead of
2027         test_main ().
2028         (CMDLINE_PROCESS): Use function instead of defined macro.
2029         * debug/test-strcpy_chk.c: Import support/test-driver.c and also
2030         <suppport/support.h> to use set_fortify_handler().
2031         * string/bug-envz1.c: Import support/test-driver.c instead of
2032         test-skeleton.c.
2033         * string/bug-strcoll2.c: Likewise.
2034         * string/bug-strtok1.c: Likewise.
2035         * string/stratcliff.c: Likewise.
2036         * string/test-ffs.c: Likewise.
2037         * string/test-memccpy.c: Likewise.
2038         * string/test-memchr.c: Likewise.
2039         * string/test-memcmp.c: Likewise.
2040         * string/test-memcpy.c: Likewise.
2041         * string/test-memmem.c: Likewise.
2042         * string/test-memmove.c: Likewise.
2043         * string/test-memrchr.c: Likewise.
2044         * string/test-memset.c: Likewise.
2045         * string/test-rawmemchr.c: Likewise.
2046         * string/test-strcasecmp.c: Likewise.
2047         * string/test-strcasestr.c: Likewise.
2048         * string/test-strcat.c: Likewise.
2049         * string/test-strchr.c: Likewise.
2050         * string/test-strcmp.c: Likewise.
2051         * string/test-strcpy.c: Likewise.
2052         * string/test-string.h: Likewise.
2053         * string/test-strlen.c: Likewise.
2054         * string/test-strncasecmp.c: Likewise.
2055         * string/test-strncat.c: Likewise.
2056         * string/test-strncmp.c: Likewise.
2057         * string/test-strncpy.c: Likewise.
2058         * string/test-strnlen.c: Likewise.
2059         * string/test-strpbrk.c: Likewise.
2060         * string/test-strrchr.c: Likewise.
2061         * string/test-strspn.c: Likewise.
2062         * string/test-strstr.c: Likewise.
2063         * string/tst-bswap.c: Likewise.
2064         * string/tst-cmp.c: Likewise.
2065         * string/tst-endian.c: Likewise.
2066         * string/tst-inlcall.c: Likewise.
2067         * string/tst-strcoll-overflow.c: Likewise.
2068         * string/tst-strfry.c: Likewise.
2069         * string/tst-strlen.c: Likewise.
2070         * string/tst-strtok.c: Likewise.
2071         * string/tst-strtok_r.c: Likewise.
2072         * string/tst-strxfrm.c: Likewise.
2073         * string/tst-strxfrm2.c: Likewise.
2074         * string/tst-svc.c: Likewise.
2075         * string/tst-svc2.c: Likewise.
2076
2077 2017-03-22  Zack Weinberg  <zackw@panix.com>
2078
2079         * stdio-common/bug25.c: Include stdlib.h.
2080         * support/tst-support_format_dns_packet.c: Include stdio.h,
2081         stdlib.h, and string.h.
2082         * support/tst-support_record_failure.c: Include string.h.
2083         * support/tst-support_record_failure-2.sh: Adjust line number
2084         expectations and correct a typo in an error message.
2085
2086 2017-03-21  H.J. Lu  <hongjiu.lu@intel.com>
2087
2088         [BZ #21258]
2089         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve_opt):
2090         Define only if _dl_runtime_resolve is defined to
2091         _dl_runtime_resolve_sse_vex.
2092         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_opt):
2093         Fallthrough to _dl_runtime_resolve_sse_vex.
2094
2095 2017-03-21  Joseph Myers  <joseph@codesourcery.com>
2096
2097         * INSTALL: Regenerated.
2098
2099 2017-03-21  Thorsten Kukuk  <kukuk@suse.com>
2100
2101         * config.h.in: Add LINK_OBSOLETE_NSL.
2102         * config.make.in: Add build-obsolete-nsl.
2103         * configure.ac: Add obsolete-nsl option.
2104         * include/libc-symbols.h: Define libnsl_hidden_nolink_def.
2105         * include/rpcsvc/yp.h: Add missing functions as libnsl_hidden_proto.
2106         * include/rpcsvc/nislib.h: Likewise.
2107         * include/rpcsvc/ypclnt.h: Likewise.
2108         * manual/install.texi: Document --enable-obsolete-nsl.
2109         * nis/Makefile: Build only libnsl by default (add build-obsolete-nsl).
2110         * nis/nis_add.c: Replace libnsl_hidden_def with
2111         libnsl_hidden_nolink_def.
2112         * nis/nis_addmember.c: Likewise.
2113         * nis/nis_call.c: Likewise.
2114         * nis/nis_clone_obj.c: Likewise.
2115         * nis/nis_defaults.c: Likeise.
2116         * nis/nis_domain_of_r.c: Likewise.
2117         * nis/nis_error.c: Likewise.
2118         * nis/nis_file.c: Likewise.
2119         * nis/nis_free.c: Likewise.
2120         * nis_local_names.c: Likewise.
2121         * nis/nis_lookup.c: Likewise.
2122         * nis/nis_modify.c: Likewise.
2123         * nis/nis_print.c: Likewise.
2124         * nis/nis_remove.c: Likewise.
2125         * nis/nis_table.c: Likewise.
2126         * nis/nis_util.c: Likewise.
2127         * nis/nis_xdr.c: Likewise.
2128         * nis/yp_xdr.c: Likewise.
2129         * nis/ypclnt.c: Likewise.
2130         * nis/ypupdate_xdr.c: Likewise.
2131         * nis/nis_checkpoint.c: Add libnsl_hidden_nolink_def to all functions.
2132         * nis/nis_clone_dir.c: Likewise.
2133         * nis/nis_clone_res.c: Likewise.
2134         * nis/nis_creategroup.c: Likewise.
2135         * nis/nis_destroygroup.c: Likewise.
2136         * nis/nis_domain_of.c: Likewise.
2137         * nis/nis_getservlist.c: Likewise.
2138         * nis/nis_ismember.c: Likewise.
2139         * nis/nis_mkdir.c: Likewise.
2140         * nis/nis_ping.c: Likewise.
2141         * nis/nis_print_group_entry.c: Likewise.
2142         * nis/nis_removemember.c: Likewise.
2143         * nis/nis_rmdir.c: Likewise.
2144         * nis/nis_server.c: Likewise.
2145         * nis/nis_subr.c: Likewise.
2146         * nis/nis_verifygroup.c: Likewise.
2147
2148 2017-03-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
2149
2150         * malloc/tst-interpose-aux.c (check_for_allocations):
2151         Move compiler barrier before free.
2152
2153 2017-03-20  Joseph Myers  <joseph@codesourcery.com>
2154
2155         [BZ #21279]
2156         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile
2157         [$(subdir) = conform] (conformtest-xfail-conds): Update comment.
2158         * conform/data/mqueue.h-data (mq_attr.mq_flags): XFAIL for
2159         x86_64-x32-linux.
2160         (mq_attr.mq_maxmsg): Likewise.
2161         (mq_attr.mq_msgsize): Likewise.
2162         (mq_attr.mq_curmsgs): Likewise.
2163
2164         [BZ #21278]
2165         * sysdeps/unix/sysv/linux/mips/mips32/Makefile
2166         [$(subdir) = conform] (conformtest-xfail-conds): Update comment.
2167         * conform/data/sys/stat.h-data (stat.st_rdev): XFAIL for
2168         mips-o32-linux.
2169
2170         [BZ #21268]
2171         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (NL2): Define only
2172         if [__USE_MISC]
2173         (NL3): Likewise.
2174
2175 2017-03-20  Mike Frysinger  <vapier@gentoo.org>
2176
2177         [BZ #21275]
2178         * sysdeps/unix/sysv/linux/spawni.c [__ia64__] (CLONE): Rename
2179         __stack to __stackbase.
2180         (STACK): Invert _STACK_GROWS_DOWN and _STACK_GROWS_UP order of
2181         checks so we can include defined(__ia64__) first.
2182
2183 2017-03-19  Christian Brauner  <christian.brauner@ubuntu.com>
2184
2185         * sysdeps/unix/sysv/linux/ttyname.h: New file.
2186         * sysdeps/unix/sysv/linux/ttyname.c: Include "ttyname.h".
2187         (ttyname) [!_STATBUF_ST_RDEV]: Make code unconditional.
2188         Call is_pty when the link does not exist or does not match, fail
2189         with ENODEV when it returns true.
2190         * sysdeps/unix/sysv/linux/ttyname_r.c: Include "ttyname.h".
2191         (__ttyname_r) [!_STATBUF_ST_RDEV]: Make code unconditional.
2192         Call is_pty when the link does not exist or does not match, fail
2193         with ENODEV when it returns true.
2194
2195 2017-03-18  Joseph Myers  <joseph@codesourcery.com>
2196
2197         [BZ #16437]
2198         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile
2199         [$(subdir) = conform] (conformtest-xfail-conds): New variable.
2200         * conform/data/signal.h-data (timespec.tv_nsec): XFAIL for
2201         x86_64-x32-linux.
2202         * conform/data/sys/select.h-data (timespec.tv_nsec): Likewise.
2203         * conform/data/sys/stat.h-data (timespec.tv_nsec): Likewise.
2204         * conform/data/time.h-data (timespec.tv_nsec): Likewise.
2205
2206         [BZ #21261]
2207         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h
2208         [__WORDSIZE == 64 && !_ASM] (__sparc64_jmp_buf): Use reserved
2209         names for all fields.
2210         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Update
2211         for jmp_buf field renaming.
2212         (_JMPBUF_UNWINDS_ADJ): Likewise.
2213
2214         * conform/conformtest.pl: Handle xfail[cond]- in header mentioned
2215         with allow-header.
2216
2217 2017-03-17  Chris Evans  <scarybeasts@gmail.com>
2218
2219         * malloc/malloc.c (unlink): Add consistency check between size and
2220         next->prev->size, to further harden against 1-byte overflows.
2221
2222 2017-03-17  H.J. Lu  <hongjiu.lu@intel.com>
2223
2224         * sysdeps/x86/cpu-features.c (init_cpu_features): Check AVX with
2225         CPU_FEATURES_CPU_P.
2226
2227 2017-03-17  Joseph Myers  <joseph@codesourcery.com>
2228
2229         [BZ #21259]
2230         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (IXANY): Define
2231         unconditionally, not just for [__USE_MISC].
2232
2233         [BZ #17786]
2234         * sysdeps/unix/sysv/linux/mips/mips32/Makefile: New file.
2235         * conform/data/sys/stat.h-data (stat.st_dev): XFAIL for
2236         mips-o32-linux.
2237
2238         [BZ #21260]
2239         * sysdeps/unix/sysv/linux/alpha/Makefile
2240         [$(subdir) = conform] (conformtest-xfail-conds): New variable.
2241         * conform/data/netdb.h-data (netent.n_net): XFAIL for alpha-linux.
2242
2243         * conform/conformtest.pl ($cross): New variable.
2244         (--cross): New command-line option.
2245         (runtest): Skip test execution when cross-compiling.
2246         * conform/Makefile (conformtest-cross): New variable.
2247         ($(conformtest-header-tests)): Pass $(conformtest-cross) to
2248         conformtest.pl.
2249
2250         * conform/conformtest.pl ($xfail_str): New variable.
2251         (--xfail=): New command-line option.
2252         (top level): Handle expectations starting xfail[cond]-.
2253         * conform/Makefile (conformtest-xfail): New variable.
2254         ($(conformtest-header-tests)): Pass $(conformtest-xfail) to
2255         conformtest.pl.
2256
2257 2017-03-16  Joseph Myers  <joseph@codesourcery.com>
2258
2259         * conform/conformtest.pl: Use compilation instead of execution
2260         tests for testing values of constants and usability in #if.
2261
2262 2017-03-16  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2263
2264         * math/auto-libm-test-in: Mark some catan and catanh as
2265         xfail-rounding:ibm128-libgcc.
2266         * math/auto-libm-test-out-catan: Regenerate.
2267         * math/auto-libm-test-out-catanh: Likewise.
2268
2269 2017-03-16  Joseph Myers  <joseph@codesourcery.com>
2270
2271         * misc/sys/cdefs.h (__BEGIN_NAMESPACE_STD): Remove macro.
2272         (__END_NAMESPACE_STD): Likewise.
2273         (__USING_NAMESPACE_STD): Likewise.
2274         (__BEGIN_NAMESPACE_C99): Likewise.
2275         (__END_NAMESPACE_C99): Likewise.
2276         (__USING_NAMESPACE_C99): Likewise.
2277         * math/math.h (_Mdouble_BEGIN_NAMESPACE): Do not define and
2278         undefine macro.
2279         (_Mdouble_END_NAMESPACE): Likewise.
2280         * ctype/ctype.h: Do not handle C++ namespaces.
2281         * libio/bits/stdio-ldbl.h: Likewise.
2282         * libio/stdio.h: Likewise.
2283         * locale/locale.h: Likewise.
2284         * math/bits/mathcalls.h: Likewise.
2285         * setjmp/setjmp.h: Likewise.
2286         * signal/signal.h: Likewise.
2287         * stdlib/bits/stdlib-float.h: Likewise.
2288         * stdlib/bits/stdlib-ldbl.h: Likewise.
2289         * stdlib/stdlib.h: Likewise.
2290         * string/string.h: Likewise.
2291         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
2292         * time/bits/types/clock_t.h: Likewise.
2293         * time/bits/types/struct_tm.h: Likewise.
2294         * time/bits/types/time_t.h: Likewise.
2295         * time/time.h: Likewise.
2296         * wcsmbs/bits/wchar-ldbl.h: Likewise.
2297         * wcsmbs/uchar.h: Likewise.
2298         * wcsmbs/wchar.h: Likewise.
2299         [_GLIBCPP_USE_NAMESPACES] (wint_t): Remove conditional definition.
2300         * wctype/wctype.h: Do not handle C++ namespaces.
2301         * scripts/begin-end-check.pl: Remove.
2302         * Makefile (installed-headers): Likewise.
2303         (tests-special): Do not add $(objpfx)begin-end-check.out.
2304         ($(objpfx)begin-end-check.out): Remove.
2305
2306 2017-03-15  Steve Ellcey  <sellcey@caviumnetworks.com>
2307             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2308
2309         * sysdeps/aarch64/dl-machine.h: Include cpu-features.c.
2310         (DL_PLATFORM_INIT): New define.
2311         (dl_platform_init): New function.
2312         * sysdeps/aarch64/ldsodefs.h: Include cpu-features.h.
2313         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: New file.
2314         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h: Likewise.
2315         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c: Likewise.
2316         * sysdeps/unix/sysv/linux/aarch64/libc-start.c: Likewise.
2317
2318 2017-03-15  Mike Frysinger  <vapier@gentoo.org>
2319
2320         * sysdeps/x86_64/mempcpy_chk.S (__mempcpy_chk): Check for SHARED
2321         instead of PIC.
2322
2323 2017-03-15  Joseph Myers  <joseph@codesourcery.com>
2324
2325         [BZ #21094]
2326         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
2327         24+24+24-bit pi for wider range of values around pi/2.
2328         * math/auto-libm-test-in: Add more tests of cos and tan.
2329         * math/auto-libm-test-out-cos: Regenerated.
2330         * math/auto-libm-test-out-tan: Likewise.
2331
2332 2017-03-15  John David Anglin  <danglin@gcc.gnu.org>
2333
2334         * sysdeps/hppa/dl-machine.h (DL_STACK_END): Define.
2335         (RTLD_START): Don't record stack end address in _dl_start_user.
2336
2337 2017-03-15  Alexey Neyman  <stilor@att.net>
2338
2339         [BZ #21088]
2340         * nss/nsswitch.c (nscd_init_cb, is_nscd): Make the #if check
2341         around definitions match those around use.
2342
2343 2017-03-15  Alexey Neyman  <stilor@att.net>
2344
2345         * configure.ac: Avoid empty subexpression in grep.
2346         * configure: Regenerate.
2347
2348 2017-03-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2349
2350         * posix/test-errno.c (do_test): Initialize setsockopt optlen.
2351         * sysdeps/unix/sysv/linux/test-errno.c: Move to ...
2352         * sysdeps/unix/sysv/linux/test-errno-linux.c: ... here.
2353         (test_wrp_rv): Fix format.
2354         (test_wrp_rv2): New macro.
2355         (do_test): Handle mlock return on 64 bits kernels with 32 bits
2356         binaries.
2357
2358 2017-03-15  Joseph Myers  <joseph@codesourcery.com>
2359
2360         * sysdeps/x86/fpu/test-math-vector-sincos.h (INIT_VEC_PTRS_LOOP):
2361         Use a union when storing pointers.
2362         (VECTOR_WRAPPER_fFF_2): Do not take address of integer vector and
2363         cast result when passing to INIT_VEC_PTRS_LOOP.
2364         (VECTOR_WRAPPER_fFF_3): Likewise.
2365         (VECTOR_WRAPPER_fFF_4): Likewise.
2366
2367 2017-03-14  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2368
2369         * include/bits/mathcalls-helper-functions.h: New file.
2370         * math/Makefile (headers): Add bits/mathcalls-helper-functions.h.
2371         * math/bits/mathcalls.h (__finite, __fpclassify, __iseqsig)
2372         (__isinf, __isnan, __issignaling, __signbit): Move declarations to
2373         math/bits/mathcalls-helper-functions.h.
2374         * math/bits/mathcalls-helper-functions.h: New file.
2375         * math/math.h: Include bits/mathcalls-helper-functions.h for
2376         float, double, and long double.
2377
2378 2017-03-15  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2379
2380         * math/s_iseqsig_template.c (__iseqsig): Use __feraiseexcept
2381         instead of feraiseexcept.
2382
2383 2017-03-15  Florian Weimer  <fweimer@redhat.com>
2384
2385         [BZ #21243]
2386         * support/temp_file.c (support_delete_temp_files): Add comment
2387         about ignored errors.
2388
2389 2017-03-15  Florian Weimer  <fweimer@redhat.com>
2390
2391         [BZ #21244]
2392         * support/xclose.c: New file.
2393         * support/Makefile (libsupport-routines): Add xclose.
2394         * support/xunistd.h (xclose): Declare.
2395         * support/resolv_test.c (server_thread_tcp_client)
2396         (server_thread_tcp, make_server_sockets, resolv_test_start)
2397         (resolv_test_end): Call xclose instead of close.
2398         * support/support_enter_network_namespace.c
2399         (support_enter_network_namespace): Likewise.
2400         * support/support_run_diff.c (write_to_temp_file): Likewise.
2401
2402 2017-03-15  Florian Weimer  <fweimer@redhat.com>
2403
2404         * support/support_format_dns_packet.c (support_format_dns_packet):
2405         Handle CNAME records in the response.  Extract RDATA names from
2406         rdata, not the whole packet.  Check AAAA record length.
2407         * support/tst-support_format_dns_packet.c: New file.
2408         * support/Makefile (tests): Add tst-support_format_dns_packet.
2409         (tst-support_format_dns_packet): Link against libresolv.
2410
2411 2017-03-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2412
2413         [BZ #21232]
2414         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c: Add
2415         posix_fadvise64 weak_alias for static build.
2416
2417 2017-03-14  Andreas Schwab  <schwab@suse.de>
2418
2419         * sysdeps/generic/dl-procinfo.h (_dl_platform_string): Remove.
2420         * sysdeps/alpha/dl-procinfo.h (_dl_platform_string): Remove.
2421         (_dl_string_platform): Use GLRO(dl_alpha_platforms) directly.
2422         * sysdeps/i386/dl-procinfo.h (_dl_platform_string): Remove.
2423         * sysdeps/mips/dl-procinfo.h (_dl_platform_string): Remove.
2424         (_dl_string_platform): Use GLRO(dl_mips_platforms) directly.
2425         * sysdeps/s390/dl-procinfo.h (_dl_platform_string): Remove.
2426         * sysdeps/sparc/dl-procinfo.h (_dl_platform_string): Remove.
2427
2428 2017-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2429
2430         * sysdeps/mach/hurd/send.c (__send): Convert hurdish error code into
2431         posix error code.
2432         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
2433
2434 2017-03-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2435
2436         * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
2437         no_isolate usage for SH.
2438
2439 2017-03-13  Wilco Dijkstra  <wdijkstr@arm.com>
2440
2441         [BZ #15105]
2442         [BZ #19463]
2443         * elf/dl-cache.c (_dl_load_cache_lookup): Use __strdup.
2444         * inet/rcmd.c (rcmd_af): Likewise.
2445         * inet/rexec.c   (rexec_af): Likewise.
2446         * intl/dcigettext.c (_LIBC): Likewise.
2447         * intl/finddomain.c (_nl_find_domain): Use strdup expansion.
2448         * locale/loadarchive.c (_nl_load_locale_from_archive): Use __strdup.
2449         * locale/setlocale.c (setlocale): Likewise.
2450         * posix/spawn_faction_addopen.c
2451         (posix_spawn_file_actions_addopen): Likewise.
2452         * stdlib/putenv.c (putenv): Use __strndup.
2453         * sunrpc/svc_simple.c (__registerrpc): Use __strdup.
2454         * sysdeps/posix/getaddrinfo.c (gaih_inet): Use __strdup/__strndup.
2455         * include/stdlib.h (__need_malloc_and_calloc): Remove uses.
2456         (__Need_M_And_C) Remove define/undef.
2457         * stdlib/stdlib.h (__need_malloc_and_calloc): Remove uses.
2458         (__malloc_and_calloc_defined): Remove define.
2459         * string/bits/string2.h (__strdup): Remove define.
2460         (strdup): Likewise.
2461         (__strndup): Likewise.
2462         (strndup): Likewise.
2463
2464 2017-03-13  Joseph Myers  <joseph@codesourcery.com>
2465
2466         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_AUTOFLOWLABEL): New
2467         macro.
2468         (IPV6_ADDR_PREFERENCES): Likewise.
2469         (IPV6_MINHOPCOUNT): Likewise.
2470         (IPV6_ORIGDSTADDR): Likewise.
2471         (IPV6_RECVORIGDSTADDR): Likewise.
2472         (IPV6_TRANSPARENT): Likewise.
2473         (IPV6_UNICAST_IF): Likewise.
2474         (IPV6_RECVFRAGSIZE): Likewise.
2475
2476 2017-03-13  Thorsten Kukuk  <kukuk@suse.com>
2477
2478         * sunrpc/Makefile: only run rpcgen tests if we build rpcgen.
2479
2480 2017-03-12  Alexey Neyman <stilor@att.net>
2481
2482         * sysdeps/sh/dl-machine.h (elf_machine_rela): The condition
2483         in R_SH_DIR32 case is always false when inlined from
2484         dl-conflict.c. Ifdef out to prevent GCC from insertin an
2485
2486 2016-03-12  Marko Myllynen  <myllynen@redhat.com>
2487
2488         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2489         (__ASSUME_RECV_SYSCALL): Replace duplicate by
2490         __ASSUME_SEND_SYSCALL.
2491
2492 2017-03-11  Thorsten Kukuk  <kukuk@suse.com>
2493
2494         * sunrpc/Makefile: don't build and install rpcsvc header
2495         files, rpcgen and librpcsvc.a by default.
2496
2497 2017-03-10  Stefan Liebler  <stli@linux.vnet.ibm.com>
2498
2499         * math/auto-libm-test-out-catan: Regenerated.
2500         * math/auto-libm-test-out-catanh: Likewise.
2501         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
2502
2503 2017-03-09  Joseph Myers  <joseph@codesourcery.com>
2504
2505         * sysdeps/mips/mips64/libm-test-ulps: Update catan and catanh ulps
2506         for long double with corrected test expectations.
2507
2508 2016-03-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2509
2510         * sysdeps/unix/sysv/linux/sysdep.h (HAVE_INTERNAL_SEND_SYMBOL):
2511         Define.
2512         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
2513         (HAVE_INTERNAL_SEND_SYMBOL): Undefine.
2514         * sysdeps/unix/sysv/linux/nios2/sysdep.h
2515         (HAVE_INTERNAL_SEND_SYMBOL): Likewise.
2516         * sysdeps/unix/sysv/linux/tile/sysdep.h
2517         (HAVE_INTERNAL_SEND_SYMBOL): Likewise.
2518         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2519         (__ASSUME_RECV_SYSCALL): Define.
2520         * sysdeps/unix/sysv/linux/arm/kernel-features.h
2521         (__ASSUME_RECV_SYSCALL): Likewise.
2522         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
2523         (__ASSUME_RECV_SYSCALL): Likewise.
2524         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
2525         (__ASSUME_RECV_SYSCALL): Likewise.
2526         * sysdeps/unix/sysv/linux/mips/kernel-features.h
2527         (__ASSUME_RECV_SYSCALL): Likewise.
2528         * sysdeps/unix/sysv/linux/i386/kernel-features.h
2529         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Remove define.
2530         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2531         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
2532         * sysdeps/unix/sysv/linux/s390/kernel-features.h
2533         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
2534         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove send from
2535         auto-generation list.
2536         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
2537         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2538         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewike.
2539         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2540         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2541         * sysdeps/unix/sysv/linux/send.c: Simplify includes.
2542         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Replace by
2543         __ASSUME_SENDTO_SYSCALL.
2544         * sysdeps/unix/sysv/linux/x86_64/send.c: Remove file.
2545         * sysdeps/unix/sysv/linux/mips/mips64/send.c: Likewise.
2546         * sysdeps/unix/sysv/linux/generic/send.c: Likewise.
2547
2548         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sendto from
2549         auto-generation list.
2550         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
2551         * sysdeps/unix/sysv/linux/generic/syscalls.list: Likewise.
2552         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2553         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2554         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2555         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2556         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2557         * sysdeps/unix/sysv/linux/kernel-features.h
2558         (__ASSUME_SENDTO_SYSCALL): Define by default.
2559         * sysdeps/unix/sysv/linux/i386/kernel-features.h
2560         (__ASSUME_SENDTO_SYSCALL): Undef it is kernel does not support
2561         __NR_sendto.
2562         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2563         (__ASSUME_SENDTO_SYSCALL): Likewise.
2564         * sysdeps/unix/sysv/linux/s390/kernel-features.h
2565         (__ASSUME_SENDTO_SYSCALL): Likewise.
2566         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2567         (__ASSUME_SENDTO_SYSCALL): Remove definition.
2568         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
2569         (__ASSUME_SENDTO_SYSCALL): Likewise.
2570         * sysdeps/unix/sysv/linux/sh/kernel-features.h:
2571         (__ASSUME_SENDTO_SYSCALL): Likewise.
2572         * sysdeps/unix/sysv/linux/sendto.c: Simplify includes.
2573
2574         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove recv from
2575         auto-generation list.
2576         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
2577         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2578         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2579         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2580         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2581         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2582         (__ASSUME_RECV_SYSCALL): New define.
2583         * sysdeps/unix/sysv/linux/arm/kernel-features.h
2584         (__ASSUME_RECV_SYSCALL): Likewise.
2585         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
2586         (__ASSUME_RECV_SYSCALL): Likewise.
2587         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
2588         (__ASSUME_RECV_SYSCALL): Likewise.
2589         * sysdeps/unix/sysv/linux/mips/kernel-features.h
2590         (__ASSUME_RECV_SYSCALL): Likewise.
2591         * sysdeps/unix/sysv/linux/i386/kernel-features.h
2592         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Remove define.
2593         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2594         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Remove define.
2595         * sysdeps/unix/sysv/linux/s390/kernel-features.h
2596         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Remove define.
2597         * sysdeps/unix/sysv/linux/generic/recv.c: Remove file.
2598         * sysdeps/unix/sysv/linux/mips/mips64/recv.c: Likewise.
2599         * sysdeps/unix/sysv/linux/x86_64/recv.c: Likewise.
2600         * sysdeps/unix/sysv/linux/recv.c: Simplify includes.
2601         (__libc_recv): Use __ASSUME_RECVFROM_SYSCALL instead of
2602         __ASSUME_RECVFROM_FOR_RECV_SYSCALL to issue recvfrom syscall.
2603
2604         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove recvfrom from
2605         auto-generation list.
2606         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
2607         * sysdeps/unix/sysv/linux/generic/syscalls.list: Likewise.
2608         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2609         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2610         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2611         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2612         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2613         * sysdeps/unix/sysv/linux/i386/kernel-features.h
2614         (__ASSUME_RECVFROM_SYSCALL): Define by default.
2615         * sysdeps/unix/sysv/linux/kernel-features.h
2616         (__ASSUME_RECVFROM_SYSCALL): Undef it if kernel does not support
2617         __NR_recvfrom.
2618         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2619         (__ASSUME_RECVFROM_SYSCALL): Likewise.
2620         * sysdeps/unix/sysv/linux/s390/kernel-features.h
2621         (__ASSUME_RECVFROM_SYSCALL): Likewise.
2622         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2623         (__ASSUME_RECVFROM_SYSCALL): Remove definition.
2624         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
2625         (__ASSUME_RECVFROM_SYSCALL): Likewise.
2626         * sysdeps/unix/sysv/linux/sh/kernel-features.h
2627         (__ASSUME_RECVFROM_SYSCALL): Likewise.
2628         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
2629         (__ASSUME_RECVFROM_SYSCALL): Likewise.
2630         * sysdeps/unix/sysv/linux/recvfrom.c: Simplify includes.
2631
2632         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove connect from
2633         auto-generation list.
2634         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
2635         * sysdeps/unix/sysv/linux/generic/syscalls.list: Likewise.
2636         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2637         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2638         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2639         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2640         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2641         * sysdeps/unix/sysv/linux/connect.c: Simplify include list.
2642         * sysdeps/unix/sysv/linux/kernel-features.h
2643         (__ASSUME_CONNECT_SYSCALL): Define.
2644         * sysdeps/unix/sysv/linux/i386/kernel-features.h
2645         (__ASSUME_CONNECT_SYSCALL): Undef if kernel does not support it.
2646         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2647         (__ASSUME_CONNECT_SYSCALL): Likewise.
2648         * sysdeps/unix/sysv/linux/s390/kernel-features.h
2649         (__ASSUME_CONNECT_SYSCALL): Likewise.
2650         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
2651         (__ASSUME_CONNECT_SYSCALL): Likewise.
2652
2653         * sysdeps/unix/sysv/linux/accept.c (__libc_accept): Replace
2654         __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL by __ASSUME_ACCEPT4_SYSCALL.
2655         * sysdeps/unix/sysv/linux/alpha/syscalls.list?: Remove accept from
2656         auto-generation list.
2657         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
2658         * sysdeps/unix/sysv/linux/generic/syscalls.list: Likewise.
2659         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2660         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2661         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2662         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2663         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2664         * sysdeps/unix/sysv/linux/i386/kernel-features.h
2665         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Remove define.
2666         (__ASSUME_ACCEPT_SYSCALL): Undefine.
2667         * sysdeps/unix/sysv/linux/kernel-features.h
2668         (__ASSUME_ACCEPT_SYSCALL): New define.
2669         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2670         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Remove define.
2671         (__ASSUME_ACCEPT_SYSCALL): Define wheter kernel version supports.
2672         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2673         (__ASSUME_ACCEPT_SYSCALL): Define.
2674         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
2675         (__ASSUME_ACCEPT_SYSCALL): Undefine.
2676         * sysdeps/unix/sysv/linux/s390/kernel-features.h
2677         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Remove define.
2678         (__ASSUME_ACCEPT_SYSCALL): Undefine.
2679         * sysdeps/unix/sysv/linux/sh/kernel-features.h
2680         (__ASSUME_ACCEPT_SYSCALL): Undefine.
2681         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
2682         (__ASSUME_ACCEPT_SYSCALL): Undefine for 32 bits.
2683
2684 2017-03-08  Yury Norov <ynorov@caviumnetworks.com>
2685             Zack Weinberg  <zackw@panix.com>
2686
2687         * posix/test-errno.c: New file.
2688         * posix/Makefile (tests): Add test-errno.
2689         * sysdeps/unix/sysv/linux/test-errno.c: New file.
2690         * sysdeps/unix/sysv/linux/Makefile (tests): Add test-errno.
2691
2692 2017-03-08  Stefan Liebler  <stli@linux.vnet.ibm.com>
2693
2694         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
2695
2696 2017-03-07  Florian Weimer  <fweimer@redhat.com>
2697
2698         * time/tzset.c (compute_offset): Open-code min macro.
2699         (min, max, sign): Remove.
2700
2701 2017-03-07  Florian Weimer  <fweimer@redhat.com>
2702
2703         [BZ #15576]
2704         Remove TZNAME_MAX limit from sysconf.
2705         * include/time.h (__tzname_cur_max, __tzname_max): Remove
2706         declaration.
2707         * time/tzfile.c (__tzfile_read, __tzfile_default): Do not call
2708         compute_tzname_max.
2709         (compute_tzname_max): Remove.
2710         * time/tzset.c (__tzname_cur_max, __tzname_max): Remove.
2711         (update_vars): Do not update __tzname_cur_max.
2712         (tzset_internal): Remove argument.
2713         (__tzset): Adjust call to tzset_internal.
2714         (__tz_convert): Likewise.
2715
2716         * posix/sysconf.c (__sysconf): Return -1 for _SC_TZNAME_MAX.
2717         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
2718         * manual/conf.texi (Sysconf Definition): Update comment.
2719
2720 2017-03-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2721
2722         [BZ #21209]
2723         * elf/rtld.c (process_envvars): Ignore LD_HWCAP_MASK for
2724         AT_SECURE processes.
2725         * sysdeps/generic/unsecvars.h: Add LD_HWCAP_MASK.
2726         * elf/tst-env-setuid.c (test_parent): Test LD_HWCAP_MASK.
2727         (test_child): Likewise.
2728         * elf/Makefile (tst-env-setuid-ENV): Add LD_HWCAP_MASK.
2729
2730 2017-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2731
2732         * sysdeps/unix/sysv/linux/hppa/ipc_priv.h: New file.
2733
2734 2017-03-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
2735
2736         * sysdeps/s390/atomic-machine.h
2737         (USE_ATOMIC_COMPILER_BUILTINS): Define to 1.
2738         (__arch_compare_and_exchange_val_8_acq,
2739         __arch_compare_and_exchange_val_16_acq,
2740         __arch_compare_and_exchange_val_32_acq,
2741         __arch_compare_and_exchange_val_64_acq):
2742         Delete macro.
2743         (atomic_compare_and_exchange_val_acq,
2744         atomic_compare_and_exchange_val_rel,
2745         atomic_compare_and_exchange_bool_acq,
2746         catomic_compare_and_exchange_bool_acq,
2747         atomic_exchange_acq, atomic_exchange_rel,
2748         atomic_exchange_and_add_acq,
2749         atomic_exchange_and_add_rel,
2750         catomic_exchange_and_add, atomic_or_val,
2751         atomic_or, catomic_or, atomic_bit_test_set,
2752         atomic_and_val, atomic_and, catomic_and):
2753         Define macros with help of C11 atomic builtins.
2754
2755 2017-03-03  Justus Winter <justus@gnupg.org>
2756
2757         * sysdeps/mach/hurd/ftruncate64.c: New file.
2758         * sysdeps/mach/hurd/truncate64.c: Likewise.
2759
2760 2017-03-03  Florian Weimer  <fweimer@redhat.com>
2761
2762         * time/tzfile.c (NOID): Do not define.
2763         * time/tzset.c (NOID): Likewise.
2764
2765 2017-03-03  Florian Weimer  <fweimer@redhat.com>
2766
2767         * time/tzset.c (compute_offset): Remove __attribute_noinline__.
2768
2769 2017-03-02  Florian Weimer  <fweimer@redhat.com>
2770
2771         * elf/get-dynamic-info.h: Remove header file inclusion guard.
2772
2773 2017-03-02  Florian Weimer  <fweimer@redhat.com>
2774
2775         [BZ #21015]
2776         * manual/install.texi (Configuring and compiling): Document
2777         --enable-bind-now.
2778         * Makeconfig [bind-now] (LDFLAGS-lib.so): Set.
2779         (build-shlib-helper): Use $(LDFLAGS-lib.so).
2780         (format.lds): Likewise.
2781         [bind-now] (LDFLAGS-c.so): Remove.
2782         * sysdeps/x86_64/localplt.data (libm.so): matherr relocation can
2783         be R_X86_64_GLOB_DAT.
2784         * sysdeps/unix/sysv/linux/i386/localplt.data (libm.so): matherr
2785         relocation can be R_386_GLOB_DAT.
2786         * sysdeps/unix/sysv/linux/alpha/localplt.data (libm.so): matherr
2787         relocaiton can be R_ALPHA_GLOB_DAT.
2788         * iconvdata/Makefile [bind-now] (LDFLAGS.so): Add -Wl,-z,now.
2789
2790 2017-03-01  Zack Weinberg  <zackw@panix.com>
2791
2792         * include/libc-pointer-arith.h: New file.  Define
2793         cast_to_integer, ALIGN_UP, ALIGN_DOWN, PTR_ALIGN_UP, and
2794         PTR_ALIGN_DOWN here.
2795         * include/libc-internal.h: Definitions of above macros
2796         moved from here.  Don't include libc-diag.h anymore either.
2797         * posix/wordexp-test.c: Include stdint.h and libc-pointer-arith.h.
2798         Don't include libc-internal.h.
2799
2800         * debug/pcprofile.c, elf/dl-tunables.c, elf/soinit.c, io/openat.c
2801         * io/openat64.c, misc/ptrace.c, nptl/pthread_clock_gettime.c
2802         * nptl/pthread_clock_settime.c, nptl/pthread_cond_common.c
2803         * string/strcoll_l.c, sysdeps/nacl/brk.c
2804         * sysdeps/unix/clock_settime.c
2805         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c
2806         * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c
2807         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
2808         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c:
2809         Don't include libc-internal.h.
2810
2811         * elf/get-dynamic-info.h, iconv/loop.c
2812         * iconvdata/iso-2022-cn-ext.c, locale/weight.h, locale/weightwc.h
2813         * misc/reboot.c, nis/nis_table.c, nptl_db/thread_dbP.h
2814         * nscd/connections.c, resolv/res_send.c, soft-fp/fmadf4.c
2815         * soft-fp/fmasf4.c, soft-fp/fmatf4.c, stdio-common/vfscanf.c
2816         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
2817         * sysdeps/ieee754/dbl-64/k_rem_pio2.c
2818         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
2819         * sysdeps/ieee754/flt-32/k_rem_pio2f.c
2820         * sysdeps/ieee754/ldbl-128/k_tanl.c
2821         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
2822         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
2823         * sysdeps/ieee754/ldbl-96/k_tanl.c, sysdeps/nptl/futex-internal.h:
2824         Include libc-diag.h instead of libc-internal.h.
2825
2826         * elf/dl-load.c, elf/dl-reloc.c, locale/programs/locarchive.c
2827         * nptl/nptl-init.c, string/strcspn.c, string/strspn.c
2828         * malloc/malloc.c, sysdeps/i386/nptl/tls.h
2829         * sysdeps/nacl/dl-map-segments.h, sysdeps/x86_64/atomic-machine.h
2830         * sysdeps/unix/sysv/linux/spawni.c
2831         * sysdeps/x86_64/nptl/tls.h:
2832         Include libc-pointer-arith.h instead of libc-internal.h.
2833
2834         * elf/get-dynamic-info.h, sysdeps/nacl/dl-map-segments.h
2835         * sysdeps/x86_64/atomic-machine.h:
2836         Add multiple include guard.
2837
2838         * nss/tst-cancel-getpwuid_r.c: Include nss.h.
2839         * string/strcasestr.c: No need to include config.h.
2840         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
2841         sys/auxv.h. Don't include sysdep.h.
2842         * sysdeps/powerpc/tst-set_ppr.c: Don't include dl-procinfo.h.
2843
2844         * dlfcn/tst-dladdr.c: Don't include ldsodefs.h.  Don't use
2845         DL_LOOKUP_ADDRESS.
2846         * math/test-misc.c: Instead of testing NO_LONG_DOUBLE, test whether
2847         LDBL_MANT_DIG is greater than DBL_MANT_DIG.
2848         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Use
2849         sysconf (_SC_PAGESIZE) instead of __getpagesize in definition
2850         of ARTIFICIAL_LIMIT.
2851         * sysdeps/unix/sysv/linux/tst-clone.c [__ia64__]: Add extern
2852         declaration of __clone2.
2853
2854 2017-02-28  Florian Weimer  <fweimer@redhat.com>
2855
2856         * scripts/backport-support.sh (latest_commit): New file.
2857
2858 2017-02-28  Florian Weimer  <fweimer@redhat.com>
2859
2860         [BZ #20257]
2861         * inet/Makefile (routines): Add deadline.
2862         (tests-static): Add tst-deadline.
2863         * inet/net-internal.h (struct deadline_current_time)
2864         (__deadline_current_time, struct deadline, __deadline_is_infinite)
2865         (__deadline_elapsed, __deadline_first, __deadline_from_timeval)
2866         (__deadline_to_ms, __is_timeval_valid_timeout): Declare.
2867         * inet/deadline.c: New file.
2868         * inet/tst-deadline.c: Likewise.
2869         * sunrpc/Makefile (tests): Add tst-udp-nonblocking,
2870         tst-udp-timeout, tst-udp-garbage.
2871         (tst-udp-nonblocking, tst-udp-timeout): Link against libc.so
2872         explicitly.
2873         (tst-udp-garbage): Likewise.  Also link against thread library.
2874         * sunrpc/clnt_udp.c (struct cu_data): Mention in comment that the
2875         struct layout is part of the ABI.
2876         (clntudp_call): Rework timeout handling.
2877         * sunrpc/tst-udp-garbage.c: New file.
2878         * sunrpc/tst-udp-nonblocking.c: Likewise.
2879         * sunrpc/tst-udp-timeout.c: Likewise.
2880
2881 2017-02-28  Florian Weimer  <fweimer@redhat.com>
2882
2883         [BZ #5010]
2884         * sunrpc/svc.c (svc_is_mapped): Remove.
2885         (svc_unregister): Obtain mapped status while the service is still
2886         registered.
2887         * sunrpc/Makefile [have-thread-library] (tests): Add
2888         tst-svc_register.
2889         (tst-svc_register): Link against libc.so explicitly and the thread
2890         library.
2891         * sunrpc/tst-svc_register.c: New file.
2892
2893 2017-02-28  Andreas Schwab  <schwab@linux-m68k.org>
2894
2895         * bits/sigthread.h: Refer to <signal.h>, not <pthread.h>.
2896         * sysdeps/pthread/bits/sigthread.h: Likewise.
2897
2898 2017-02-27  Florian Weimer  <fweimer@redhat.com>
2899
2900         [BZ #21115]
2901         * sunrpc/clnt_udp.c (clntudp_call): Free ancillary data later.
2902         * sunrpc/Makefile (tests): Add tst-udp-error.
2903         (tst-udp-error): Link against libc.so explicitly.
2904         * sunrpc/tst-udp-error: New file.
2905
2906 2017-02-25  Zack Weinberg  <zackw@panix.com>
2907
2908         * sysdeps/generic/math_private.h: Use __BIG_ENDIAN and
2909         __LITTLE_ENDIAN, not BIG_ENDIAN and LITTLE_ENDIAN.
2910
2911         * sysdeps/generic/math_ldbl.h
2912         * sysdeps/ia64/fpu/math_ldbl.h
2913         * sysdeps/ieee754/ldbl-128/math_ldbl.h
2914         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
2915         * sysdeps/ieee754/ldbl-96/math_ldbl.h
2916         * sysdeps/powerpc/fpu/math_ldbl.h
2917         * sysdeps/x86_64/fpu/math_ldbl.h:
2918         Allow direct inclusion.  Use uintNN_t instead of u_intNN_t.
2919         Use __BIG_ENDIAN and __LITTLE_ENDIAN, not BIG_ENDIAN and
2920         LITTLE_ENDIAN.  Include endian.h and/or stdint.h if necessary.
2921         Add copyright notices.
2922
2923         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
2924         Don't use EXTRACT_WORDS64.
2925
2926         * sysdeps/ieee754/ldbl-96/test-canonical-ldbl-96.c
2927         * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c
2928         * sysdeps/ieee754/ldbl-128ibm/test-canonical-ldbl-128ibm.c
2929         * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c:
2930         Include math_ldbl.h, not math_private.h.
2931
2932 2017-02-25  Zack Weinberg  <zackw@panix.com>
2933
2934         * include/libc-diag.h: New file.  Define ignore_value,
2935         DIAG_PUSH_NEEDS_COMMENT, DIAG_POP_NEEDS_COMMENT,
2936         DIAG_IGNORE_NEEDS_COMMENT, and DIAG_IGNORE_Os_NEEDS_COMMENT here.
2937
2938         * include/libc-internal.h: Definitions of above macros moved from
2939         here.  Include libc-diag.h.  Add copyright notice.
2940
2941         * malloc/tst-malloc.c, malloc/tst-memcheck.c, malloc/tst-realloc.c
2942         * misc/tst-error1.c, posix/tst-dir.c, stdio-common/bug21.c
2943         * stdio-common/scanf14.c, stdio-common/scanf4.c, stdio-common/scanf7.c
2944         * stdio-common/test-vfprintf.c, stdio-common/tst-printf.c
2945         * stdio-common/tst-printfsz.c, stdio-common/tst-sprintf.c
2946         * stdio-common/tst-unlockedio.c, stdio-common/tstdiomisc.c
2947         * stdlib/bug-getcontext.c, string/tester.c, string/tst-endian.c
2948         * time/tst-strptime2.c, wcsmbs/tst-wcstof.c:
2949         Include libc-diag.h instead of libc-internal.h.
2950
2951         * stdlib/tst-environ.c: Include libc-diag.h.  Suppress -Wnonnull for
2952         call to unsetenv (NULL).
2953         * nptl/tst-mutex1.c: Include libc-diag.h.  Suppress -Wnonnull for
2954         call to pthread_mutexattr_destroy (NULL).
2955
2956 2017-02-25  Zack Weinberg  <zackw@panix.com>
2957
2958         * include/features.h (__GLIBC_USE_DEPRECATED_GETS): New macro.
2959         * libio/stdio.h, libio/bits/stdio2.h: Condition gets on
2960         __GLIBC_USE (DEPRECATED_GETS).  Update comments to indicate
2961         gets was removed from C++ in C++14.
2962         * include/stdio.h: Remove redundant declaration of gets.
2963         * debug/tst-chk1.c, stdio-common/tst-gets.c: Force gets to
2964         be declared, since we are testing it.
2965         * stdio-common/Makefile (tst-gets.c): Compile with
2966         -Wno-deprecated-declarations.
2967         * debug/Makefile (tst-chk1.c, tst-chk2.c, tst-chk3.c, tst-chk4.cc)
2968         (tst-chk5.cc, tst-chk6.cc, tst-lfschk1.c, tst-lfschk2.c)
2969         (tst-lfschk3.c, tst-lfschk4.cc, tst-lfschk5.cc, tst-lfschk6.cc):
2970         Compile with -Wno-deprecated-declarations.
2971
2972 2017-02-24  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2973
2974         * math/libm-test-support.c (check_ulp): Use LIT() around literal
2975         numbers.
2976
2977 2017-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2978
2979         * resolv/tst-resolv-qtypes.c (domain):
2980         Change type to const pointer to const char.
2981
2982 2017-02-24  Joseph Myers  <joseph@codesourcery.com>
2983
2984         * math/Makefile (libm-tests-generated): Remove variable.
2985         (libm-tests-base-normal): New variable.
2986         (libm-tests-base-finite): Likewise.
2987         (libm-tests-base-inline): Likewise.
2988         (libm-tests-base): Likewise.
2989         (libm-tests-normal): Likewise.
2990         (libm-tests-finite): Likewise.
2991         (libm-tests-inline): Likewise.
2992         (libm-tests-vector): Likewise.
2993         (libm-tests): Define in terms of these new variables.
2994         (libm-tests-for-type): New variable.
2995         (libm-tests.o): Move definition.
2996         (tests): Move addition of $(libm-tests).
2997         (generated): Update for new and removed libm test files.
2998         ($(objpfx)libm-test.c): Remove target.
2999         ($(objpfx)libm-have-vector-test.h): Likewise.
3000         (CFLAGS-test-double-vlen2.c): Remove variable.
3001         (CFLAGS-test-double-vlen4.c): Likewise.
3002         (CFLAGS-test-double-vlen8.c): Likewise.
3003         (CFLAGS-test-float-vlen4.c): Likewise.
3004         (CFLAGS-test-float-vlen8.c): Likewise.
3005         (CFLAGS-test-float-vlen16.c): Likewise.
3006         (CFLAGS-test-float.c): Likewise.
3007         (CFLAGS-test-float-finite.c): Likewise.
3008         (CFLAGS-libm-test-support-float.c): Likewise.
3009         (CFLAGS-test-double.c): Likewise.
3010         (CFLAGS-test-double-finite.c): Likewise.
3011         (CFLAGS-libm-test-support-double.c): Likewise.
3012         (CFLAGS-test-ldouble.c): Likewise.
3013         (CFLAGS-test-ldouble-finite.c): Likewise.
3014         (CFLAGS-libm-test-support-ldouble.c): Likewise.
3015         (libm-test-inline-cflags): New variable.
3016         (CFLAGS-test-ifloat.c): Remove variable.
3017         (CFLAGS-test-idouble.c): Likewise.
3018         (CFLAGS-test-ildouble.c): Likewise.
3019         ($(addprefix $(objpfx), $(libm-tests.o))): Move target and update
3020         dependencies.
3021         ($(foreach t,$(libm-tests-normal),$(objpfx)$(t).c)): New rule.
3022         ($(foreach t,$(libm-tests-finite),$(objpfx)$(t).c)): Likewise.
3023         ($(foreach t,$(libm-tests-inline),$(objpfx)$(t).c)): Likewise.
3024         ($(foreach t,$(libm-tests-vector),$(objpfx)$(t).c)): Likewise.
3025         ($(foreach t,$(types),$(objpfx)libm-test-support-$(t).c)):
3026         Likewise.
3027         (dependencies on libm-test-support-*.o): Remove.
3028         ($(foreach f,$(libm-test-funcs-all),$(objpfx)$(o)-$(f).o)): New
3029         rules using iterators.
3030         ($(addprefix $(objpfx),$(call libm-tests-for-type,$(o)))):
3031         Likewise.
3032         ($(objpfx)libm-test-support-$(o).o): Likewise.
3033         ($(addprefix $(objpfx),$(filter-out $(tests-static)
3034         $(libm-vec-tests),$(tests)))): Filter out $(libm-tests-vector)
3035         instead.
3036         ($(addprefix $(objpfx), $(libm-vec-tests))): Use iterator to
3037         define rule instead.
3038         * math/README.libm-test: Update.
3039         * math/libm-test-acos.inc: Include libm-test-driver.c.
3040         (do_test): New function.
3041         * math/libm-test-acosh.inc: Include libm-test-driver.c.
3042         (do_test): New function.
3043         * math/libm-test-asin.inc: Include libm-test-driver.c.
3044         (do_test): New function.
3045         * math/libm-test-asinh.inc: Include libm-test-driver.c.
3046         (do_test): New function.
3047         * math/libm-test-atan.inc: Include libm-test-driver.c.
3048         (do_test): New function.
3049         * math/libm-test-atan2.inc: Include libm-test-driver.c.
3050         (do_test): New function.
3051         * math/libm-test-atanh.inc: Include libm-test-driver.c.
3052         (do_test): New function.
3053         * math/libm-test-cabs.inc: Include libm-test-driver.c.
3054         (do_test): New function.
3055         * math/libm-test-cacos.inc: Include libm-test-driver.c.
3056         (do_test): New function.
3057         * math/libm-test-cacosh.inc: Include libm-test-driver.c.
3058         (do_test): New function.
3059         * math/libm-test-canonicalize.inc: Include libm-test-driver.c.
3060         (do_test): New function.
3061         * math/libm-test-carg.inc: Include libm-test-driver.c.
3062         (do_test): New function.
3063         * math/libm-test-casin.inc: Include libm-test-driver.c.
3064         (do_test): New function.
3065         * math/libm-test-casinh.inc: Include libm-test-driver.c.
3066         (do_test): New function.
3067         * math/libm-test-catan.inc: Include libm-test-driver.c.
3068         (do_test): New function.
3069         * math/libm-test-catanh.inc: Include libm-test-driver.c.
3070         (do_test): New function.
3071         * math/libm-test-cbrt.inc: Include libm-test-driver.c.
3072         (do_test): New function.
3073         * math/libm-test-ccos.inc: Include libm-test-driver.c.
3074         (do_test): New function.
3075         * math/libm-test-ccosh.inc: Include libm-test-driver.c.
3076         (do_test): New function.
3077         * math/libm-test-ceil.inc: Include libm-test-driver.c.
3078         (do_test): New function.
3079         * math/libm-test-cexp.inc: Include libm-test-driver.c.
3080         (do_test): New function.
3081         * math/libm-test-cimag.inc: Include libm-test-driver.c.
3082         (do_test): New function.
3083         * math/libm-test-clog.inc: Include libm-test-driver.c.
3084         (do_test): New function.
3085         * math/libm-test-clog10.inc: Include libm-test-driver.c.
3086         (do_test): New function.
3087         * math/libm-test-conj.inc: Include libm-test-driver.c.
3088         (do_test): New function.
3089         * math/libm-test-copysign.inc: Include libm-test-driver.c.
3090         (do_test): New function.
3091         * math/libm-test-cos.inc: Include libm-test-driver.c.
3092         (do_test): New function.
3093         * math/libm-test-cosh.inc: Include libm-test-driver.c.
3094         (do_test): New function.
3095         * math/libm-test-cpow.inc: Include libm-test-driver.c.
3096         (do_test): New function.
3097         * math/libm-test-cproj.inc: Include libm-test-driver.c.
3098         (do_test): New function.
3099         * math/libm-test-creal.inc: Include libm-test-driver.c.
3100         (do_test): New function.
3101         * math/libm-test-csin.inc: Include libm-test-driver.c.
3102         (do_test): New function.
3103         * math/libm-test-csinh.inc: Include libm-test-driver.c.
3104         (do_test): New function.
3105         * math/libm-test-csqrt.inc: Include libm-test-driver.c.
3106         (do_test): New function.
3107         * math/libm-test-ctan.inc: Include libm-test-driver.c.
3108         (do_test): New function.
3109         * math/libm-test-ctanh.inc: Include libm-test-driver.c.
3110         (do_test): New function.
3111         * math/libm-test-erf.inc: Include libm-test-driver.c.
3112         (do_test): New function.
3113         * math/libm-test-erfc.inc: Include libm-test-driver.c.
3114         (do_test): New function.
3115         * math/libm-test-exp.inc: Include libm-test-driver.c.
3116         (do_test): New function.
3117         * math/libm-test-exp10.inc: Include libm-test-driver.c.
3118         (do_test): New function.
3119         * math/libm-test-exp2.inc: Include libm-test-driver.c.
3120         (do_test): New function.
3121         * math/libm-test-expm1.inc: Include libm-test-driver.c.
3122         (do_test): New function.
3123         * math/libm-test-fabs.inc: Include libm-test-driver.c.
3124         (do_test): New function.
3125         * math/libm-test-fdim.inc: Include libm-test-driver.c.
3126         (do_test): New function.
3127         * math/libm-test-floor.inc: Include libm-test-driver.c.
3128         (do_test): New function.
3129         * math/libm-test-fma.inc: Include libm-test-driver.c.
3130         (do_test): New function.
3131         * math/libm-test-fmax.inc: Include libm-test-driver.c.
3132         (do_test): New function.
3133         * math/libm-test-fmaxmag.inc: Include libm-test-driver.c.
3134         (do_test): New function.
3135         * math/libm-test-fmin.inc: Include libm-test-driver.c.
3136         (do_test): New function.
3137         * math/libm-test-fminmag.inc: Include libm-test-driver.c.
3138         (do_test): New function.
3139         * math/libm-test-fmod.inc: Include libm-test-driver.c.
3140         (do_test): New function.
3141         * math/libm-test-fpclassify.inc: Include libm-test-driver.c.
3142         (do_test): New function.
3143         * math/libm-test-frexp.inc: Include libm-test-driver.c.
3144         (do_test): New function.
3145         * math/libm-test-fromfp.inc: Include libm-test-driver.c.
3146         (do_test): New function.
3147         * math/libm-test-fromfpx.inc: Include libm-test-driver.c.
3148         (do_test): New function.
3149         * math/libm-test-getpayload.inc: Include libm-test-driver.c.
3150         (do_test): New function.
3151         * math/libm-test-hypot.inc: Include libm-test-driver.c.
3152         (do_test): New function.
3153         * math/libm-test-ilogb.inc: Include libm-test-driver.c.
3154         (do_test): New function.
3155         * math/libm-test-iscanonical.inc: Include libm-test-driver.c.
3156         (do_test): New function.
3157         * math/libm-test-iseqsig.inc: Include libm-test-driver.c.
3158         (do_test): New function.
3159         * math/libm-test-isfinite.inc: Include libm-test-driver.c.
3160         (do_test): New function.
3161         * math/libm-test-isgreater.inc: Include libm-test-driver.c.
3162         (do_test): New function.
3163         * math/libm-test-isgreaterequal.inc: Include libm-test-driver.c.
3164         (do_test): New function.
3165         * math/libm-test-isinf.inc: Include libm-test-driver.c.
3166         (do_test): New function.
3167         * math/libm-test-isless.inc: Include libm-test-driver.c.
3168         (do_test): New function.
3169         * math/libm-test-islessequal.inc: Include libm-test-driver.c.
3170         (do_test): New function.
3171         * math/libm-test-islessgreater.inc: Include libm-test-driver.c.
3172         (do_test): New function.
3173         * math/libm-test-isnan.inc: Include libm-test-driver.c.
3174         (do_test): New function.
3175         * math/libm-test-isnormal.inc: Include libm-test-driver.c.
3176         (do_test): New function.
3177         * math/libm-test-issignaling.inc: Include libm-test-driver.c.
3178         (do_test): New function.
3179         * math/libm-test-issubnormal.inc: Include libm-test-driver.c.
3180         (do_test): New function.
3181         * math/libm-test-isunordered.inc: Include libm-test-driver.c.
3182         (do_test): New function.
3183         * math/libm-test-iszero.inc: Include libm-test-driver.c.
3184         (do_test): New function.
3185         * math/libm-test-j0.inc: Include libm-test-driver.c.
3186         (do_test): New function.
3187         * math/libm-test-j1.inc: Include libm-test-driver.c.
3188         (do_test): New function.
3189         * math/libm-test-jn.inc: Include libm-test-driver.c.
3190         (do_test): New function.
3191         * math/libm-test-lgamma.inc: Include libm-test-driver.c.
3192         (do_test): New function.
3193         * math/libm-test-llogb.inc: Include libm-test-driver.c.
3194         (do_test): New function.
3195         * math/libm-test-llrint.inc: Include libm-test-driver.c.
3196         (do_test): New function.
3197         * math/libm-test-llround.inc: Include libm-test-driver.c.
3198         (do_test): New function.
3199         * math/libm-test-log.inc: Include libm-test-driver.c.
3200         (do_test): New function.
3201         * math/libm-test-log10.inc: Include libm-test-driver.c.
3202         (do_test): New function.
3203         * math/libm-test-log1p.inc: Include libm-test-driver.c.
3204         (do_test): New function.
3205         * math/libm-test-log2.inc: Include libm-test-driver.c.
3206         (do_test): New function.
3207         * math/libm-test-logb.inc: Include libm-test-driver.c.
3208         (do_test): New function.
3209         * math/libm-test-lrint.inc: Include libm-test-driver.c.
3210         (do_test): New function.
3211         * math/libm-test-lround.inc: Include libm-test-driver.c.
3212         (do_test): New function.
3213         * math/libm-test-modf.inc: Include libm-test-driver.c.
3214         (do_test): New function.
3215         * math/libm-test-nearbyint.inc: Include libm-test-driver.c.
3216         (do_test): New function.
3217         * math/libm-test-nextafter.inc: Include libm-test-driver.c.
3218         (do_test): New function.
3219         * math/libm-test-nextdown.inc: Include libm-test-driver.c.
3220         (do_test): New function.
3221         * math/libm-test-nexttoward.inc: Include libm-test-driver.c.
3222         (do_test): New function.
3223         * math/libm-test-nextup.inc: Include libm-test-driver.c.
3224         (do_test): New function.
3225         * math/libm-test-pow.inc: Include libm-test-driver.c.
3226         (do_test): New function.
3227         * math/libm-test-remainder.inc: Include libm-test-driver.c.
3228         (do_test): New function.
3229         * math/libm-test-remquo.inc: Include libm-test-driver.c.
3230         (do_test): New function.
3231         * math/libm-test-rint.inc: Include libm-test-driver.c.
3232         (do_test): New function.
3233         * math/libm-test-round.inc: Include libm-test-driver.c.
3234         (do_test): New function.
3235         * math/libm-test-roundeven.inc: Include libm-test-driver.c.
3236         (do_test): New function.
3237         * math/libm-test-scalb.inc: Include libm-test-driver.c.
3238         (do_test): New function.
3239         * math/libm-test-scalbln.inc: Include libm-test-driver.c.
3240         (do_test): New function.
3241         * math/libm-test-scalbn.inc: Include libm-test-driver.c.
3242         (do_test): New function.
3243         * math/libm-test-setpayload.inc: Include libm-test-driver.c.
3244         (do_test): New function.
3245         * math/libm-test-setpayloadsig.inc: Include libm-test-driver.c.
3246         (do_test): New function.
3247         * math/libm-test-signbit.inc: Include libm-test-driver.c.
3248         (do_test): New function.
3249         * math/libm-test-significand.inc: Include libm-test-driver.c.
3250         (do_test): New function.
3251         * math/libm-test-sin.inc: Include libm-test-driver.c.
3252         (do_test): New function.
3253         * math/libm-test-sincos.inc: Include libm-test-driver.c.
3254         (do_test): New function.
3255         * math/libm-test-sinh.inc: Include libm-test-driver.c.
3256         (do_test): New function.
3257         * math/libm-test-sqrt.inc: Include libm-test-driver.c.
3258         (do_test): New function.
3259         * math/libm-test-tan.inc: Include libm-test-driver.c.
3260         (do_test): New function.
3261         * math/libm-test-tanh.inc: Include libm-test-driver.c.
3262         (do_test): New function.
3263         * math/libm-test-tgamma.inc: Include libm-test-driver.c.
3264         (do_test): New function.
3265         * math/libm-test-totalorder.inc: Include libm-test-driver.c.
3266         (do_test): New function.
3267         * math/libm-test-totalordermag.inc: Include libm-test-driver.c.
3268         (do_test): New function.
3269         * math/libm-test-trunc.inc: Include libm-test-driver.c.
3270         (do_test): New function.
3271         * math/libm-test-ufromfp.inc: Include libm-test-driver.c.
3272         (do_test): New function.
3273         * math/libm-test-ufromfpx.inc: Include libm-test-driver.c.
3274         (do_test): New function.
3275         * math/libm-test-y0.inc: Include libm-test-driver.c.
3276         (do_test): New function.
3277         * math/libm-test-y1.inc: Include libm-test-driver.c.
3278         (do_test): New function.
3279         * math/libm-test-yn.inc: Include libm-test-driver.c.
3280         (do_test): New function.
3281         * math/libm-test-driver.c: Do not include libm-have-vector-test.h.
3282         (HAVE_VECTOR): Remove macro.
3283         (START): Do not call HAVE_VECTOR.
3284         * math/test-double-vlen2.h (FUNC_TEST): Remove macro.
3285         * math/test-double-vlen4.h (FUNC_TEST): Remove macro.
3286         * math/test-double-vlen8.h (FUNC_TEST): Remove macro.
3287         * math/test-float-vlen16.h (FUNC_TEST): Remove macro.
3288         * math/test-float-vlen4.h (FUNC_TEST): Remove macro.
3289         * math/test-float-vlen8.h (FUNC_TEST): Remove macro.
3290         * math/test-math-vector.h (FUNC_TEST): New macro.
3291         (WRAPPER_DECL): Rename to WRAPPER_DECL_f.
3292         * sysdeps/x86_64/fpu/Makefile (double-vlen2-funcs): New variable.
3293         (double-vlen4-funcs): Likewise.
3294         (double-vlen4-avx2-funcs): Likewise.
3295         (double-vlen8-funcs): Likewise.
3296         (float-vlen4-funcs): Likewise.
3297         (float-vlen8-funcs): Likewise.
3298         (float-vlen8-avx2-funcs): Likewise.
3299         (float-vlen16-funcs): Likewise.
3300         (CFLAGS-test-double-vlen4-avx2.c): Remove variable.
3301         (CFLAGS-test-float-vlen8-avx2.c): Likewise.
3302         * sysdeps/x86_64/fpu/test-double-vlen4.h (TEST_VECTOR_cos): Remove
3303         macro.
3304         (TEST_VECTOR_sin): Likewise.
3305         (TEST_VECTOR_sincos): Likewise.
3306         (TEST_VECTOR_log): Likewise.
3307         (TEST_VECTOR_exp): Likewise.
3308         (TEST_VECTOR_pow): Likewise.
3309         * sysdeps/x86_64/fpu/test-double-vlen8.h (TEST_VECTOR_cos):
3310         Likewise.
3311         (TEST_VECTOR_sin): Likewise.
3312         (TEST_VECTOR_sincos): Likewise.
3313         (TEST_VECTOR_log): Likewise.
3314         (TEST_VECTOR_exp): Likewise.
3315         (TEST_VECTOR_pow): Likewise.
3316         * sysdeps/x86_64/fpu/test-float-vlen16.h (TEST_VECTOR_cosf):
3317         Likewise.
3318         (TEST_VECTOR_sinf): Likewise.
3319         (TEST_VECTOR_sincosf): Likewise.
3320         (TEST_VECTOR_logf): Likewise.
3321         (TEST_VECTOR_expf): Likewise.
3322         (TEST_VECTOR_powf): Likewise.
3323         * sysdeps/x86_64/fpu/test-float-vlen8.h (TEST_VECTOR_cosf):
3324         Likewise.
3325         (TEST_VECTOR_sinf): Likewise.
3326         (TEST_VECTOR_sincosf): Likewise.
3327         (TEST_VECTOR_logf): Likewise.
3328         (TEST_VECTOR_expf): Likewise.
3329         (TEST_VECTOR_powf): Likewise.
3330         * math/gen-libm-have-vector-test.sh: Remove file.
3331         * math/libm-test.inc: Likewise.
3332         * math/libm-test-support-double.c: Likewise.
3333         * math/libm-test-support-float.c: Likewise.
3334         * math/libm-test-support-ldouble.c: Likewise.
3335         * math/test-double-finite.c: Likewise.: Likewise.
3336         * math/test-double.c: Likewise.
3337         * math/test-float-finite.c: Likewise.
3338         * math/test-float.c: Likewise.
3339         * math/test-idouble.c: Likewise.
3340         * math/test-ifloat.c: Likewise.
3341         * math/test-ildouble.c: Likewise.
3342         * math/test-ldouble-finite.c: Likewise.
3343         * math/test-ldouble.c: Likewise.
3344         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
3345         * sysdeps/x86_64/fpu/test-double-vlen2.h: Likewise.
3346         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
3347         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
3348         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
3349         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
3350         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
3351         * sysdeps/x86_64/fpu/test-float-vlen4.h: Likewise.
3352         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
3353         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
3354
3355 2017-02-23 Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3356            Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3357
3358         * math/Makefile: Add wrappers to gen-libm-calls.
3359         * math/w_acos_template.c: New file.
3360         * math/w_acosh_template.c: Likewise.
3361         * math/w_asin_template.c: Likewise.
3362         * math/w_atan2_template.c: Likewise.
3363         * math/w_atanh_template.c: Likewise.
3364         * math/w_cosh_template.c: Likewise.
3365         * math/w_exp10_template.c: Likewise.
3366         * math/w_exp2_template.c: Likewise.
3367         * math/w_exp_template.c: Likewise.
3368         * math/w_fmod_template.c: Likewise.
3369         * math/w_hypot_template.c: Likewise.
3370         * math/w_j0_template.c: Likewise.
3371         * math/w_j1_template.c: Likewise.
3372         * math/w_jn_template.c: Likewise.
3373         * math/w_lgamma_r_template.c: Likewise.
3374         * math/w_lgamma_template.c: Likewise.
3375         * math/w_log10_template.c: Likewise.
3376         * math/w_log2_template.c: Likewise.
3377         * math/w_log_template.c: Likewise.
3378         * math/w_pow_template.c: Likewise.
3379         * math/w_remainder_template.c: Likewise.
3380         * math/w_sinh_template.c: Likewise.
3381         * math/w_sqrt_template.c: Likewise.
3382         * math/w_tgamma_template.c: Likewise.: Likewise.
3383         * sysdeps/generic/math-type-macros-double.h
3384         (__USE_WRAPPER_TEMPLATE): New macro to control inclusion of
3385         the new wrappers.
3386         * sysdeps/generic/math-type-macros-float.h: Likewise.
3387         * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
3388
3389 2017-02-22  Joseph Myers  <joseph@codesourcery.com>
3390
3391         * sysdeps/unix/sysv/linux/sys/timerfd.h (TFD_TIMER_CANCEL_ON_SET):
3392         New enum constant and macro.
3393
3394         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
3395         kernel version to 4.10.
3396
3397 2017-02-21  Joseph Myers  <joseph@codesourcery.com>
3398
3399         * sysdeps/unix/sysv/linux/bits/in.h (IP_RECVFRAGSIZE): New macro.
3400
3401 2017-02-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3402
3403         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3404
3405 2017-02-21  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
3406
3407         * sysdeps/powerpc/tst-set_ppr.c: New file.
3408         Implement test cases for __ppc_set_ppr_* functions.
3409         * sysdeps/powerpc/Makefile ($(subdir),misc): Add tst-set_ppr
3410         in the list of tests.
3411
3412 2017-02-21  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
3413
3414         * sysdeps/powerpc/test-get_hwcap.c: Use <support/test-driver.c>
3415         instead of test-skeleton.c.
3416         (do_test): Replaced pthread_create and pthread_join with
3417         xpthread_create and xpthread_join.  Use TEST_VERIFY_EXIT macro.
3418         Removed unneeded status variable.
3419         * sysdeps/powerpc/test-gettimebase.c: Use <support/test-driver.c>
3420         instead of test-skeleton.c.
3421         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Likewise.
3422
3423 2017-02-20  Mike FABIAN  <mfabian@redhat.com>
3424
3425         [BZ #20313]
3426         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
3427         201605L, for Unicode 9.
3428
3429 2017-02-20  Joseph Myers  <joseph@codesourcery.com>
3430
3431         * math/libm-test-support.h (EXCEPTIONS_OK): Remove macro.
3432         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
3433         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
3434         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
3435         (UNDERFLOW_EXCEPTION_OK_DOUBLE): Likewise.
3436         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
3437
3438 2017-02-19  Zack Weinberg  <zackw@panix.com>
3439
3440         * rt/tst-mqueue4.c: Include stdint.h.
3441
3442 2017-02-17  Joseph Myers  <joseph@codesourcery.com>
3443
3444         * sysdeps/arm/libm-test-ulps: Update.
3445         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
3446         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
3447         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
3448
3449 2017-01-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3450
3451         [BZ #21029]
3452         * config.h.in [CAN_USE_REGISTER_ASM_EBP]: New define.
3453         * sysdeps/unix/sysv/linux/i386/Makefile
3454         [$(subdir) = elf] (sysdep-dl-routines): Add libc-do-syscall.
3455         (uses-6-syscall-arguments): Remove.
3456         [$(subdir) = misc] (CFLAGS-epoll_pwait.o): Likewise.
3457         [$(subdir) = misc] (CFLAGS-epoll_pwait.os): Likewise.
3458         [$(subdir) = misc] (CFLAGS-mmap.o): Likewise.
3459         [$(subdir) = misc] (CFLAGS-mmap.os): Likewise.
3460         [$(subdir) = misc] (CFLAGS-mmap64.o): Likewise.
3461         [$(subdir) = misc] (CFLAGS-mmap64.os): Likewise.
3462         [$(subdir) = misc] (CFLAGS-pselect.o): Likewise.
3463         [$(subdir) = misc] (cflags-pselect.o): Likewise.
3464         [$(subdir) = misc] (cflags-pselect.os): Likewise.
3465         [$(subdir) = misc] (cflags-rtld-mmap.os): Likewise.
3466         [$(subdir) = sysvipc] (cflags-semtimedop.o): Likewise.
3467         [$(subdir) = sysvipc] (cflags-semtimedop.os): Likewise.
3468         [$(subdir) = io] (CFLAGS-posix_fadvise64.o): Likewise.
3469         [$(subdir) = io] (CFLAGS-posix_fadvise64.os): Likewise.
3470         [$(subdir) = io] (CFLAGS-posix_fallocate.o): Likewise.
3471         [$(subdir) = io] (CFLAGS-posix_fallocate.os): Likewise.
3472         [$(subdir) = io] (CFLAGS-posix_fallocate64.o): Likewise.
3473         [$(subdir) = io] (CFLAGS-posix_fallocate64.os): Likewise.
3474         [$(subdir) = io] (CFLAGS-sync_file_range.o): Likewise.
3475         [$(subdir) = io] (CFLAGS-sync_file_range.os): Likewise.
3476         [$(subdir) = io] (CFLAGS-fallocate.o): Likewise.
3477         [$(subdir) = io] (CFLAGS-fallocate.os): Likewise.
3478         [$(subdir) = io] (CFLAGS-fallocate64.o): Likewise.
3479         [$(subdir) = io] (CFLAGS-fallocate64.os): Likewise.
3480         [$(subdir) = nptl] (CFLAGS-pthread_rwlock_timedrdlock.o):
3481         Likewise.
3482         [$(subdir) = nptl] (CFLAGS-pthread_rwlock_timedrdlock.os):
3483         Likewise.
3484         [$(subdir) = nptl] (CFLAGS-pthread_rwlock_timedrwlock.o):
3485         Likewise.
3486         [$(subdir) = nptl] (CFLAGS-pthread_rwlock_timedrwlock.os):
3487         Likewise.
3488         [$(subdir) = nptl] (CFLAGS-sem_wait.o): Likewise.
3489         [$(subdir) = nptl] (CFLAGS-sem_wait.os): Likewise.
3490         [$(subdir) = nptl] (CFLAGS-sem_timedwait.o): Likewise.
3491         [$(subdir) = nptl] (CFLAGS-sem_timedwait.os): Likewise.
3492         * sysdeps/unix/sysv/linux/i386/configure.ac: Add check if compiler allows
3493         ebp on inline assembly.
3494         * sysdeps/unix/sysv/linux/i386/configure: Regenerate.
3495         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
3496         Set if CAN_USE_REGISTER_ASM_EBP is set.
3497
3498 2017-02-17  H.J. Lu  <hongjiu.lu@intel.com>
3499
3500         * sysdeps/x86/cpu-features.c (init_cpu_features): Use
3501         index_cpu_RTM and reg_RTM to clear the bit_cpu_RTM bit.
3502
3503 2017-02-17  Joseph Myers  <joseph@codesourcery.com>
3504
3505         * math/auto-libm-test-in: Add tests of catan and catanh.
3506         * math/auto-libm-test-out-catan: New generated file.
3507         * math/auto-libm-test-out-catanh: Likewise.
3508         * math/libm-test-catan.inc (catan_test_data): Use AUTO_TESTS_c_c.
3509         Move tests with finite inputs, except divide-by-zero cases, to
3510         auto-libm-test-in.
3511         * math/libm-test-catanh.inc (catanh_test_data): Likewise.
3512         * math/Makefile (libm-test-funcs-auto): Add catan and catanh.
3513         (libm-test-funcs-noauto): Remove catan and catanh.
3514         * sysdeps/i386/fpu/libm-test-ulps: Update.
3515         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
3516         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3517
3518         * math/auto-libm-test-in: Add tests of casin and casinh.
3519         * math/auto-libm-test-out-casin: New generated file.
3520         * math/auto-libm-test-out-casinh: Likewise.
3521         * math/libm-test-casin.inc (casin_test_data): Use AUTO_TESTS_c_c.
3522         Move tests with finite inputs to auto-libm-test-in.
3523         * math/libm-test-casinh.inc (casinh_test_data): Likewise.
3524         * math/Makefile (libm-test-funcs-auto): Add casin and casinh.
3525         (libm-test-funcs-noauto): Remove casin and casinh.
3526         * sysdeps/i386/fpu/libm-test-ulps: Update.
3527         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
3528         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3529
3530         * math/auto-libm-test-in: Add tests of cacos and cacosh.
3531         * math/auto-libm-test-out-cacos: New generated file.
3532         * math/auto-libm-test-out-cacosh: Likewise.
3533         * math/libm-test-cacos.inc (cacos_test_data): Use AUTO_TESTS_c_c.
3534         Move tests with finite inputs to auto-libm-test-in.
3535         * math/libm-test-cacosh.inc (cacosh_test_data): Likewise.
3536         * math/Makefile (libm-test-funcs-auto): Add cacos and cacosh.
3537         (libm-test-funcs-noauto): Remove cacos and cacosh.
3538         * sysdeps/i386/fpu/libm-test-ulps: Update.
3539         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
3540         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3541
3542         Revert:
3543         2017-02-16  Zack Weinberg  <zackw@panix.com>
3544
3545         * sysdeps/x86_64/fpu/math-tests-arch.h: Include cpu-features.h.
3546         Don't include init-arch.h.
3547         * sysdeps/x86_64/multiarch/test-multiarch.h: Include cpu-features.h.
3548         Don't include init-arch.h.
3549
3550 2017-02-17  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3551
3552         [BZ #21171]
3553         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Return
3554         +Inf and raise divide-by-zero when x is negative.
3555         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Likewise.
3556         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Likewise.
3557         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10):  Return
3558         -Inf and raise divide-by-zero when x = +-0.
3559         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
3560         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
3561         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
3562         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
3563         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
3564         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
3565         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
3566
3567 2017-02-16  Zack Weinberg  <zackw@panix.com>
3568
3569         * scripts/build-many-glibcs.py (bot_build_mail): If the
3570         bot_config does not contain all of the necessary email-
3571         related settings, just print a warning and continue.
3572
3573 2017-02-16  Zack Weinberg  <zackw@panix.com>
3574
3575         * crypt/md5.h: Test _LIBC with #if defined, not #if.
3576         * dirent/opendir-tst1.c: Include sys/stat.h.
3577         * dirent/tst-fdopendir.c: Include sys/stat.h.
3578         * dirent/tst-fdopendir2.c: Include stdlib.h.
3579         * dirent/tst-scandir.c: Include stdbool.h.
3580         * elf/tst-auditmod1.c: Include link.h and stddef.h.
3581         * elf/tst-tls15.c: Include stdlib.h.
3582         * elf/tst-tls16.c: Include stdlib.h.
3583         * elf/tst-tls17.c: Include stdlib.h.
3584         * elf/tst-tls18.c: Include stdlib.h.
3585         * iconv/tst-iconv6.c: Include endian.h.
3586         * iconvdata/bug-iconv11.c: Include limits.h.
3587         * io/test-utime.c: Include stdint.h.
3588         * io/tst-faccessat.c: Include sys/stat.h.
3589         * io/tst-fchmodat.c: Include sys/stat.h.
3590         * io/tst-fchownat.c: Include sys/stat.h.
3591         * io/tst-fstatat.c: Include sys/stat.h.
3592         * io/tst-futimesat.c: Include sys/stat.h.
3593         * io/tst-linkat.c: Include sys/stat.h.
3594         * io/tst-mkdirat.c: Include sys/stat.h and stdbool.h.
3595         * io/tst-mkfifoat.c: Include sys/stat.h and stdbool.h.
3596         * io/tst-mknodat.c: Include sys/stat.h and stdbool.h.
3597         * io/tst-openat.c: Include stdbool.h.
3598         * io/tst-readlinkat.c: Include sys/stat.h.
3599         * io/tst-renameat.c: Include sys/stat.h.
3600         * io/tst-symlinkat.c: Include sys/stat.h.
3601         * io/tst-unlinkat.c: Include stdbool.h.
3602         * libio/bug-memstream1.c: Include stdlib.h.
3603         * libio/bug-wmemstream1.c: Include stdlib.h.
3604         * libio/tst-fwrite-error.c: Include stdlib.h.
3605         * libio/tst-memstream1.c: Include stdlib.h.
3606         * libio/tst-memstream2.c: Include stdlib.h.
3607         * libio/tst-memstream3.c: Include stdlib.h.
3608         * malloc/tst-interpose-aux.c: Include stdint.h.
3609         * misc/tst-preadvwritev-common.c: Include sys/stat.h.
3610         * nptl/tst-basic7.c: Include limits.h.
3611         * nptl/tst-cancel25.c: Include pthread.h, not pthreadP.h.
3612         * nptl/tst-cancel4.c: Include stddef.h, limits.h, and sys/stat.h.
3613         * nptl/tst-cancel4_1.c: Include stddef.h.
3614         * nptl/tst-cancel4_2.c: Include stddef.h.
3615         * nptl/tst-cond16.c: Include limits.h.
3616         Use sysconf(_SC_PAGESIZE) instead of __getpagesize.
3617         * nptl/tst-cond18.c: Include limits.h.
3618         Use sysconf(_SC_PAGESIZE) instead of __getpagesize.
3619         * nptl/tst-cond4.c: Include stdint.h.
3620         * nptl/tst-cond6.c: Include stdint.h.
3621         * nptl/tst-stack2.c: Include limits.h.
3622         * nptl/tst-stackguard1.c: Include stddef.h.
3623         * nptl/tst-tls4.c: Include stdint.h. Don't include tls.h.
3624         * nptl/tst-tls4moda.c: Include stddef.h.
3625         Don't include stdio.h, unistd.h, or tls.h.
3626         * nptl/tst-tls4modb.c: Include stddef.h.
3627         Don't include stdio.h, unistd.h, or tls.h.
3628         * nptl/tst-tls5.h: Include stddef.h. Don't include stdlib.h or tls.h.
3629         * posix/tst-getaddrinfo2.c: Include stdio.h.
3630         * posix/tst-getaddrinfo5.c: Include stdio.h.
3631         * posix/tst-pathconf.c: Include sys/stat.h.
3632         * posix/tst-posix_fadvise-common.c: Include stdint.h.
3633         * posix/tst-preadwrite-common.c: Include sys/stat.h.
3634         * posix/tst-regex.c: Include stdint.h.
3635         Don't include spawn.h or spawn_int.h.
3636         * posix/tst-regexloc.c: Don't include spawn.h or spawn_int.h.
3637         * posix/tst-vfork3.c: Include sys/stat.h.
3638         * resolv/tst-bug18665-tcp.c: Include stdlib.h.
3639         * resolv/tst-res_hconf_reorder.c: Include stdlib.h.
3640         * resolv/tst-resolv-search.c: Include stdlib.h.
3641         * stdio-common/tst-fmemopen2.c: Include stdint.h.
3642         * stdio-common/tst-vfprintf-width-prec.c: Include stdlib.h.
3643         * stdlib/test-canon.c: Include sys/stat.h.
3644         * stdlib/tst-tls-atexit.c: Include stdbool.h.
3645         * string/test-memchr.c: Include stdint.h.
3646         * string/tst-cmp.c: Include stdint.h.
3647         * sysdeps/pthread/tst-timer.c: Include stdint.h.
3648         * sysdeps/unix/sysv/linux/tst-sync_file_range.c: Include stdint.h.
3649         * sysdeps/wordsize-64/tst-writev.c: Include limits.h and stdint.h.
3650         * sysdeps/x86_64/fpu/math-tests-arch.h: Include cpu-features.h.
3651         Don't include init-arch.h.
3652         * sysdeps/x86_64/multiarch/test-multiarch.h: Include cpu-features.h.
3653         Don't include init-arch.h.
3654         * sysdeps/x86_64/tst-auditmod10b.c: Include link.h and stddef.h.
3655         * sysdeps/x86_64/tst-auditmod3b.c: Include link.h and stddef.h.
3656         * sysdeps/x86_64/tst-auditmod4b.c: Include link.h and stddef.h.
3657         * sysdeps/x86_64/tst-auditmod5b.c: Include link.h and stddef.h.
3658         * sysdeps/x86_64/tst-auditmod6b.c: Include link.h and stddef.h.
3659         * sysdeps/x86_64/tst-auditmod6c.c: Include link.h and stddef.h.
3660         * sysdeps/x86_64/tst-auditmod7b.c: Include link.h and stddef.h.
3661         * time/clocktest.c: Include stdint.h.
3662         * time/tst-posixtz.c: Include stdint.h.
3663         * timezone/tst-timezone.c: Include stdint.h.
3664
3665 2017-02-16  Zack Weinberg  <zackw@panix.com>
3666
3667         * string/string.h [__USE_MISC]: Include strings.h.
3668         (__bzero, bcmp, bcopy, bzero, index, rindex)
3669         (strcasecmp, strncasecmp, strcasecmp_l, strncasecmp_l)
3670         (ffs, ffsl, ffsll): Don't declare.
3671         * string/strings.h: Do not suppress the file if string.h has
3672         already been included.
3673         (bcmp, bcopy, bzero, strcasecmp, strncasecmp): Add __nonnull
3674         annotations.
3675         (index, rindex): Define inline forwarders even if
3676         __CORRECT_ISO_CPP_STRING_H_PROTO is defined.
3677         (ffs): Use __attribute_const__.
3678         (ffsl, ffsll): Declare here.
3679         (strcasecmp_l, strncasecmp_l): Correct comments; these functions
3680         have now been standardized.
3681         * include/string.h (__bzero): Declare here.
3682
3683         * bits/types.h: Move to posix/bits.
3684         * include/bits/types.h: New wrapper.
3685
3686 2017-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
3687
3688         * string/bits/string2.h (strcmp): Remove define.
3689         (__strcmp_cg): Likewise.
3690         (strncmp): Likewise.
3691
3692 2017-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
3693
3694         * include/string.h: Add __cplusplus check.
3695
3696 2017-02-15  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3697
3698         [BZ #21134]
3699         * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_y0): Raise the
3700         "divide by zero" exception when the input is zero.
3701         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_y1): Likewise.
3702         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Likewise.
3703         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Likewise.
3704         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Likewise.
3705         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
3706
3707 2017-02-15  Joseph Myers  <joseph@codesourcery.com>
3708
3709         * sysdeps/x86_64/fpu/test-double-vlen2.c: Move most contents to,
3710         and include ...
3711         * sysdeps/x86_64/fpu/test-double-vlen2.h: ... here.  New file.
3712         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Move most contents
3713         to, and include ...
3714         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.h: ... here.  New
3715         file.
3716         * sysdeps/x86_64/fpu/test-double-vlen4.c: Move most contents to,
3717         and include ...
3718         * sysdeps/x86_64/fpu/test-double-vlen4.h: ... here.  New file.
3719         * sysdeps/x86_64/fpu/test-double-vlen8.c: Move most contents to,
3720         and include ...
3721         * sysdeps/x86_64/fpu/test-double-vlen8.h: ... here.  New file.
3722         * sysdeps/x86_64/fpu/test-float-vlen16.c: Move most contents to,
3723         and include ...
3724         * sysdeps/x86_64/fpu/test-float-vlen16.h: ... here.  New file.
3725         * sysdeps/x86_64/fpu/test-float-vlen4.c: Move most contents to,
3726         and include ...
3727         * sysdeps/x86_64/fpu/test-float-vlen4.h: ... here.  New file.
3728         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Move most contents
3729         to, and include ...
3730         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.h: ... here.  New file.
3731         * sysdeps/x86_64/fpu/test-float-vlen8.c: Move most contents to,
3732         and include ...
3733         * sysdeps/x86_64/fpu/test-float-vlen8.h: ... here.  New file.
3734
3735 2017-02-14  Joseph Myers  <joseph@codesourcery.com>
3736
3737         * math/libm-test-support.h: Do not include <math-tests-arch.h>
3738         here.
3739         * math/libm-test-support.c (libm_test_init): Do not call
3740         INIT_ARCH_EXT here.
3741         * math/libm-test-driver.c: Include <math-tests-arch.h>.
3742         (main): Call INIT_ARCH_EXT.
3743
3744 2017-02-12  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3745
3746         [BZ #21130]
3747         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Return NAN
3748         with the "invalid" exception raised when x is -Inf.
3749         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
3750
3751 2017-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
3752
3753         * string/bits/string2.h (strchr): Remove define.
3754
3755 2017-02-09  H.J. Lu  <hongjiu.lu@intel.com>
3756
3757         * sysdeps/x86_64/Makefile (tests): Add tst-sse, tst-avx and
3758         tst-avx512.
3759         (test-extras): Add tst-avx-aux and tst-avx512-aux.
3760         (extra-test-objs): Add tst-avx-aux.o and tst-avx512-aux.o.
3761         (modules-names): Add tst-ssemod, tst-avxmod and tst-avx512mod.
3762         ($(objpfx)tst-sse): New rule.
3763         ($(objpfx)tst-avx): Likewise.
3764         ($(objpfx)tst-avx512): Likewise.
3765         (CFLAGS-tst-avx-aux.c): New.
3766         (CFLAGS-tst-avxmod.c): Likewise.
3767         (CFLAGS-tst-avx512-aux.c): Likewise.
3768         (CFLAGS-tst-avx512mod.c): Likewise.
3769         * sysdeps/x86_64/tst-avx-aux.c: New file.
3770         * sysdeps/x86_64/tst-avx.c: Likewise.
3771         * sysdeps/x86_64/tst-avx512-aux.c: Likewise.
3772         * sysdeps/x86_64/tst-avx512.c: Likewise.
3773         * sysdeps/x86_64/tst-avx512mod.c: Likewise.
3774         * sysdeps/x86_64/tst-avxmod.c: Likewise.
3775         * sysdeps/x86_64/tst-sse.c: Likewise.
3776         * sysdeps/x86_64/tst-ssemod.c: Likewise.
3777
3778 2017-02-09  Joseph Myers  <joseph@codesourcery.com>
3779
3780         * math/auto-libm-test-in: Add more tests of csin and csinh.
3781         * math/auto-libm-test-out-csin: Regenerated.
3782         * math/auto-libm-test-out-csinh: Likewise.
3783         * math/libm-test-csin.inc (csin_test_data): Remove tests moved to
3784         auto-libm-test-in.
3785         * math/libm-test-csinh.inc (csinh_test_data): Likewise.
3786
3787 2017-02-09  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3788
3789         * math/Makefile (libm-compat-calls-ldouble-yes): Merge into
3790         libm-compat-calls-auto.
3791         (libm-compat-calls): Likewise.
3792         (libm-compat-calls-auto): Rename to libm-compat-calls and add
3793         w_lgamma_compatF and k_standardF (merged from the items above).
3794         (libm-routines): Use libm-compat-calls, instead of
3795         libm-compat-calls-auto, with type-foreach.
3796
3797 2017-02-09  Joseph Myers  <joseph@codesourcery.com>
3798
3799         * math/test-math-inline.h (__LIBC_INTERNAL_MATH_INLINES): Undefine
3800         macro.
3801         * math/Makefile (CPPFLAGS-test-ifloat.c): Rename to ...
3802         (CFLAGS-test-ifloat.c): ... this.  Remove
3803         -U__LIBC_INTERNAL_MATH_INLINES.
3804         * math/Makefile (CPPFLAGS-test-idouble.c): Rename to ...
3805         (CFLAGS-test-idouble.c): ... this.  Remove
3806         -U__LIBC_INTERNAL_MATH_INLINES.
3807         * math/Makefile (CPPFLAGS-test-ildouble.c): Rename to ...
3808         (CFLAGS-test-ildouble.c): ... this.  Remove
3809         -U__LIBC_INTERNAL_MATH_INLINES.
3810
3811 2017-02-08  Joseph Myers  <joseph@codesourcery.com>
3812
3813         * math/libm-test-support.c: New file.  Content from
3814         math/libm-test-driver.c.
3815         * math/libm-test-support.h: Likewise.
3816         * math/libm-test-support-double.c: New file.
3817         * math/libm-test-support-float.c: Likewise.
3818         * math/libm-test-support-ldouble.c: Likewise.
3819         * math/libm-test-driver.c: Remove main comment and header
3820         includes.  Include libm-test-support.h.
3821         [!_GNU_SOURCE] (_GNU_SOURCE): Do not define.
3822         (flag_test_errno): Remove static.
3823         (flag_test_exceptions): Likewise.
3824         (flag_test_finite): Likewise.
3825         (flag_test_inline): Likewise.
3826         (flag_test_mathvec): Likewise.
3827         (test_msg): Likewise.
3828         (NO_EXCEPTION): Remove.
3829         (INVALID_EXCEPTION): Likewise.
3830         (DIVIDE_BY_ZERO_EXCEPTION): Likewise.
3831         (OVERFLOW_EXCEPTION): Likewise.
3832         (UNDERFLOW_EXCEPTION): Likewise.
3833         (INEXACT_EXCEPTION): Likewise.
3834         (INVALID_EXCEPTION_OK): Likewise.
3835         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
3836         (OVERFLOW_EXCEPTION_OK): Likewise.
3837         (UNDERFLOW_EXCEPTION_OK): Likewise.
3838         (NO_INEXACT_EXCEPTION): Likewise.
3839         (EXCEPTIONS_OK): Likewise.
3840         (IGNORE_ZERO_INF_SIGN): Likewise.
3841         (TEST_NAN_SIGN): Likewise.
3842         (TEST_NAN_PAYLOAD): Likewise.
3843         (NO_TEST_INLINE): Likewise.
3844         (XFAIL_TEST): Likewise.
3845         (ERRNO_UNCHANGED): Likewise.
3846         (ERRNO_EDOM): Likewise.
3847         (ERRNO_ERANGE): Likewise.
3848         (IGNORE_RESULT): Likewise.
3849         (NON_FINITE): Likewise.
3850         (TEST_SNAN): Likewise.
3851         (NO_TEST_MATHVEC): Likewise.
3852         (__CONCATX): Likewise.
3853         (TYPE_MIN): Likewise.
3854         (TYPE_TRUE_MIN): Likewise.
3855         (TYPE_MAX): Likewise.
3856         (MIN_EXP): Likewise.
3857         (MAX_EXP): Likewise.
3858         (MANT_DIG): Likewise.
3859         (FSTR_MAX): Likewise.
3860         (ulp_idx): Likewise.
3861         (qtype_str): Remove static.
3862         (TEST_COND_binary32): Remove.
3863         (TEST_COND_binary64): Likewise.
3864         (TEST_COND_binary128): Likewise.
3865         (TEST_COND_ibm128): Likewise.
3866         (TEST_COND_intel96): Likewise.
3867         (TEST_COND_m68k96): Likewise.
3868         (TEST_COND_ibm128_libgcc): Likewise.
3869         (XFAIL_IBM128_LIBGCC): Likewise.
3870         (PAYLOAD_DIG): Likewise.
3871         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
3872         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
3873         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
3874         (UNDERFLOW_EXCEPTION_OK_DOUBLE): Likewise.
3875         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
3876         (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): Likewise.
3877         (TEST_COND_long32): Likewise.
3878         (TEST_COND_long64): Likewise.
3879         (TEST_COND_before_rounding): Likewise.
3880         (TEST_COND_after_rounding): Likewise.
3881         (ulps_file_name): Likewise.
3882         (ulps_file): Likewise.
3883         (output_ulps): Likewise.
3884         (output_dir): Likewise.
3885         (noErrors): Likewise.
3886         (noTests): Likewise.
3887         (noExcTests): Likewise.
3888         (noErrnoTests): Likewise.
3889         (verbose): Likewise.
3890         (output_max_error): Likewise.
3891         (output_points): Likewise.
3892         (ignore_max_ulp): Likewise.
3893         (max_error): Likewise.
3894         (real_max_error): Likewise.
3895         (imag_max_error): Likewise.
3896         (prev_max_error): Likewise.
3897         (prev_real_max_error): Likewise.
3898         (prev_imag_max_error): Likewise.
3899         (max_valid_error): Likewise.
3900         (TYPE_DECIMAL_DIG): Likewise.
3901         (TYPE_HEX_DIG): Likewise.
3902         (fmt_ftostr): Likewise.
3903         (compare_ulp_data): Likewise.
3904         (find_ulps): Likewise.
3905         (init_max_error): Likewise.
3906         (set_max_error): Likewise.
3907         (print_float): Likewise.
3908         (print_screen): Likewise.
3909         (print_screen_max_error): Likewise.
3910         (update_stats): Likewise.
3911         (print_function_ulps): Likewise.
3912         (print_complex_function_ulps): Likewise.
3913         (fpstack_test): Likewise.
3914         (print_max_error): Likewise.
3915         (print_complex_max_error): Likewise.
3916         (test_single_exception): Likewise.
3917         (test_exceptions): Likewise.
3918         (test_single_errno): Likewise.
3919         (test_errno): Likewise.
3920         (ULPDIFF): Likewise.
3921         (ulp): Likewise.
3922         (check_float_internal): Likewise.
3923         (check_float): Likewise.
3924         (check_complex): Likewise.
3925         (check_int): Likewise.
3926         (check_long): Likewise.
3927         (check_bool): Likewise.
3928         (check_longlong): Likewise.
3929         (check_intmax_t): Likewise.
3930         (check_uintmax_t): Likewise.
3931         (enable_test): Likewise.
3932         (matherr): Likewise.
3933         (initialize): Likewise.
3934         (options): Likewise.
3935         (doc): Remove static.
3936         (argp): Likewise.
3937         (parse_opt): Remove.
3938         (check_ulp): Likewise.
3939         (libm_test_init): Likewise.
3940         (libm_test_finish): Likewise.
3941         * math/Makefile (libm-test-support): New variable.
3942         (test-extras): Add libm-test-support files.
3943         (extra-test-objs): Likewise.
3944         (CFLAGS-libm-test-support-float.c): New variable.
3945         (CFLAGS-libm-test-support-double.c): Likewise.
3946         (CFLAGS-libm-test-support-ldouble.c): Likewise.
3947         ($(addprefix $(objpfx),$(libm-tests)): Depend on appropriate
3948         libm-test-support objects.
3949
3950 2017-02-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3951
3952         * math/Makefile (libm-calls): Move w_exp...
3953         (libm-compat-calls-auto): Here.
3954
3955         * math/w_expl.c: Add suffix "_compat" to filename.
3956         * sysdeps/ia64/fpu/w_expl.c: Likewise.
3957         * sysdeps/ia64/fpu/w_expf.c: Likewise.
3958         * sysdeps/ia64/fpu/w_exp.c: Likewise.
3959         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
3960         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
3961         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
3962         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
3963         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
3964
3965         * math/w_expl_compat.c: New file, copied from above.
3966         * sysdeps/ia64/fpu/w_exp_compat.c: Likewise.
3967         * sysdeps/ia64/fpu/w_expf_compat.c: Likewise.
3968         * sysdeps/ia64/fpu/w_expl_compat.c: Likewise.
3969         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
3970         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
3971         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
3972         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
3973         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
3974
3975         * sysdeps/ieee754/ldbl-64-128/w_expl.c: Add suffix "_compat"
3976         to filename.
3977         * sysdeps/ieee754/ldbl-opt/w_exp.c: Likewise.
3978
3979         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: New file,
3980         copied from above and adjusted for the new filenames.
3981         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
3982
3983 2017-02-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3984
3985         * math/Makefile (libm-calls): Move w_lgammaF...
3986         (libm-compat-calls-auto): Here.
3987
3988         * math/w_lgamma.c: Add suffix "_compat2" to filename.
3989         * math/w_lgammaf.c: Likewise.
3990         * math/w_lgammal.c: Likewise.
3991
3992         * math/w_lgamma_compat2.c: New file, copied from above.
3993         * math/w_lgammaf_compat2.c: Likewise.
3994         * math/w_lgammal_compat2.c: Likewise.
3995
3996 2017-02-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3997
3998         * math/Makefile (libm-calls): Move w_lgammaF_r...
3999         (libm-compat-calls-auto): Here.
4000
4001         * math/w_lgamma_r.c: Add suffix "_compat" to filename.
4002         * math/w_lgammaf_r.c: Likewise.
4003         * math/w_lgammal_r.c: Likewise.
4004         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
4005         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
4006         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
4007
4008         * math/w_lgamma_r_compat.c: New file, copied from above.
4009         * math/w_lgammaf_r_compat.c: Likewise.
4010         * math/w_lgammal_r_compat.c: Likewise.
4011         * sysdeps/ia64/fpu/w_lgamma_r_compat.c: Likewise.
4012         * sysdeps/ia64/fpu/w_lgammaf_r_compat.c: Likewise.
4013         * sysdeps/ia64/fpu/w_lgammal_r_compat.c: Likewise.
4014
4015         * sysdeps/ieee754/ldbl-opt/w_lgamma_r.c: Add suffix "_compat"
4016         to filename.
4017         * sysdeps/ieee754/ldbl-opt/w_lgammal_r.c: Likewise.
4018
4019         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: New file
4020         copied from above and adjusted for the new filenames.
4021         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
4022
4023 2017-02-08  Yury Norov  <ynorov@caviumnetworks.com>
4024
4025         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: use PTR_REG() for offset
4026         calculation in SYSCALL_ERROR_HANDLER().
4027
4028 2017-02-08  Rical Jasan  <ricaljasan@pacific.net>
4029
4030         * manual/contrib.texi: Fix typo.
4031
4032 2017-02-08  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4033
4034         [BZ #21109]
4035         * elf/dl-tunable-types.h (tunable_callback_t): Accept
4036         tunable_val_t as argument.
4037         * elf/dl-tunables.c (__tunable_set_val): Add comment.
4038         * malloc/arena.c (set_mallopt_check): Take tunable_val_t as
4039         argument.
4040         (DL_TUNABLE_CALLBACK_FNDECL): Likewise.
4041
4042 2017-02-08  Kir Kolyshkin  <kir@openvz.org>
4043
4044         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_eventcodes):
4045         Add PTRACE_EVENT_STOP.
4046         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
4047         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
4048         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
4049         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
4050         * sysdeps/unix/sysv/linux/sys/ptrace.h: Likewise.
4051         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
4052
4053 2017-02-07  Joseph Myers  <joseph@codesourcery.com>
4054
4055         * math/test-math-finite.h (TEST_EXCEPTIONS): New macro.
4056         * math/test-math-no-finite.h (TEST_EXCEPTIONS): Likewise.
4057         * math/test-math-vector.h (TEST_EXCEPTIONS): Likewise.
4058         * math/test-math-no-inline.h (TEST_EXCEPTIONS): Remove macro.
4059         * math/test-double-vlen2.h (EXCEPTION_TESTS_double): Likewise.
4060         * math/test-double-vlen4.h (EXCEPTION_TESTS_double): Likewise.
4061         * math/test-double-vlen8.h (EXCEPTION_TESTS_double): Likewise.
4062         * math/test-float-vlen4.h (EXCEPTION_TESTS_float): Likewise.
4063         * math/test-float-vlen8.h (EXCEPTION_TESTS_float): Likewise.
4064         * math/test-float-vlen16.h (EXCEPTION_TESTS_float): Likewise.
4065
4066         [BZ #21112]
4067         * sysdeps/ieee754/flt-32/e_powf.c (cp_h): Use value with trailing
4068         12 bits zero.
4069         (cp_l): Update for new value of cp_h.
4070         * math/auto-libm-test-in: Add another test of pow.
4071         * math/auto-libm-test-out-pow: Regenerated.
4072
4073 2017-02-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4074
4075         * manual/contrib.texi: Fix typo.
4076
4077 2017-02-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4078
4079         [BZ #15998]
4080         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
4081         (arch_minimum_kernel): Set as 3.10.0 for ppc64le.
4082         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
4083
4084 2017-02-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4085
4086         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Redefine
4087         STRCHR as __strchr_power8.
4088         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: Redefine
4089         strlen as __strlen_power8.
4090
4091 2017-02-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4092
4093         * sysdeps/powerpc/powerpc64/power8/strcmp.S: Adjust address for
4094         unaligned load for shorter strings.
4095         * sysdeps/powerpc/powerpc64/power9/strcmp.S: Likewise.
4096
4097 2017-02-06  Joseph Myers  <joseph@codesourcery.com>
4098
4099         * math/libm-test-driver.c (flag_test_errno): New variable.
4100         (flag_test_exceptions): Likewise.
4101         (flag_test_finite): Likewise.
4102         (flag_test_inline): Likewise.
4103         (flag_test_mathvec): Likewise.
4104         (test_msg): Likewise.
4105         (ulp_idx): Likewise.
4106         (qtype_str): Likewise.
4107         (ULP_IDX): Remove macro.
4108         (QTYPE_STR): Likewise.
4109         (find_ulps): Use ulp_idx not ULP_IDX.
4110         (print_function_ulps): Use qtype_str, printed with %s, not
4111         QTYPE_STR, printed with concatentation to format string.
4112         (print_complex_function_ulps): Likewise.
4113         (test_exceptions): Use flag_test_exceptions not TEST_EXCEPTIONS.
4114         (test_errno): Use flag_test_errno not TEST_ERRNO.
4115         (enable_test): Use flag_test_inline, flag_test_finite and
4116         flag_test_mathvec instead of TEST_INLINE, TEST_FINITE and
4117         TEST_MATHVEC.
4118         (libm_test_init): New function.  Factored out of main.
4119         (libm_test_finish): Likewise.
4120         (main): Call libm_test_init and libm_test_finish and move most
4121         code to those functions.
4122
4123         * math/libm-test-driver.c (STRX): New macro.
4124         (STR): Likewise.
4125         (STR_FLOAT): Likewise.
4126         (STR_VEC_LEN): Likewise.
4127         (TEST_MSG): Likewise.  Define here instead of expecting to be
4128         defined by including file.
4129         * math/test-double-finite.c (TEST_MSG): Remove macro.
4130         * math/test-double-vlen2.h (TEST_MSG): Likewise.
4131         * math/test-double-vlen4.h (TEST_MSG): Likewise.
4132         * math/test-double-vlen8.h (TEST_MSG): Likewise.
4133         * math/test-double.c (TEST_MSG): Likewise.
4134         * math/test-float-finite.c (TEST_MSG): Likewise.
4135         * math/test-float-vlen16.h (TEST_MSG): Likewise.
4136         * math/test-float-vlen4.h (TEST_MSG): Likewise.
4137         * math/test-float-vlen8.h (TEST_MSG): Likewise.
4138         * math/test-float.c (TEST_MSG): Likewise.
4139         * math/test-idouble.c (TEST_MSG): Likewise.
4140         * math/test-ifloat.c (TEST_MSG): Likewise.
4141         * math/test-ildouble.c (TEST_MSG): Likewise.
4142         * math/test-ldouble-finite.c (TEST_MSG): Likewise.
4143         * math/test-ldouble.c (TEST_MSG): Likewise.
4144
4145         * math/libm-test.inc: Move all tests of individual functions to
4146         libm-test-*.inc and #include libm-test-*.c files.
4147         (acos_test_data): Remove.
4148         (acos_test): Likewise.
4149         (acosh_test_data): Likewise.
4150         (acosh_test): Likewise.
4151         (asin_test_data): Likewise.
4152         (asin_test): Likewise.
4153         (asinh_test_data): Likewise.
4154         (asinh_test): Likewise.
4155         (atan_test_data): Likewise.
4156         (atan_test): Likewise.
4157         (atanh_test_data): Likewise.
4158         (atanh_test): Likewise.
4159         (atan2_test_data): Likewise.
4160         (atan2_test): Likewise.
4161         (cabs_test_data): Likewise.
4162         (cabs_test): Likewise.
4163         (cacos_test_data): Likewise.
4164         (cacos_test): Likewise.
4165         (cacosh_test_data): Likewise.
4166         (cacosh_test): Likewise.
4167         (canonicalize_test_data): Likewise.
4168         (canonicalize_test): Likewise.
4169         (carg_test_data): Likewise.
4170         (carg_test): Likewise.
4171         (casin_test_data): Likewise.
4172         (casin_test): Likewise.
4173         (casinh_test_data): Likewise.
4174         (casinh_test): Likewise.
4175         (catan_test_data): Likewise.
4176         (catan_test): Likewise.
4177         (catanh_test_data): Likewise.
4178         (catanh_test): Likewise.
4179         (cbrt_test_data): Likewise.
4180         (cbrt_test): Likewise.
4181         (ccos_test_data): Likewise.
4182         (ccos_test): Likewise.
4183         (ccosh_test_data): Likewise.
4184         (ccosh_test): Likewise.
4185         (ceil_test_data): Likewise.
4186         (ceil_test): Likewise.
4187         (cexp_test_data): Likewise.
4188         (cexp_test): Likewise.
4189         (cimag_test_data): Likewise.
4190         (cimag_test): Likewise.
4191         (clog_test_data): Likewise.
4192         (clog_test): Likewise.
4193         (clog10_test_data): Likewise.
4194         (clog10_test): Likewise.
4195         (conj_test_data): Likewise.
4196         (conj_test): Likewise.
4197         (copysign_test_data): Likewise.
4198         (copysign_test): Likewise.
4199         (cos_test_data): Likewise.
4200         (cos_test): Likewise.
4201         (cosh_test_data): Likewise.
4202         (cosh_test): Likewise.
4203         (cpow_test_data): Likewise.
4204         (cpow_test): Likewise.
4205         (cproj_test_data): Likewise.
4206         (cproj_test): Likewise.
4207         (creal_test_data): Likewise.
4208         (creal_test): Likewise.
4209         (csin_test_data): Likewise.
4210         (csin_test): Likewise.
4211         (csinh_test_data): Likewise.
4212         (csinh_test): Likewise.
4213         (csqrt_test_data): Likewise.
4214         (csqrt_test): Likewise.
4215         (ctan_test_data): Likewise.
4216         (ctan_test): Likewise.
4217         (ctanh_test_data): Likewise.
4218         (ctanh_test): Likewise.
4219         (erf_test_data): Likewise.
4220         (erf_test): Likewise.
4221         (erfc_test_data): Likewise.
4222         (erfc_test): Likewise.
4223         (exp_test_data): Likewise.
4224         (exp_test): Likewise.
4225         (exp10_test_data): Likewise.
4226         (exp10_test): Likewise.
4227         (pow10_test): Likewise.
4228         (exp2_test_data): Likewise.
4229         (exp2_test): Likewise.
4230         (expm1_test_data): Likewise.
4231         (expm1_test): Likewise.
4232         (fabs_test_data): Likewise.
4233         (fabs_test): Likewise.
4234         (fdim_test_data): Likewise.
4235         (fdim_test): Likewise.
4236         (floor_test_data): Likewise.
4237         (floor_test): Likewise.
4238         (fma_test_data): Likewise.
4239         (fma_test): Likewise.
4240         (fmax_test_data): Likewise.
4241         (fmax_test): Likewise.
4242         (fmaxmag_test_data): Likewise.
4243         (fmaxmag_test): Likewise.
4244         (fmin_test_data): Likewise.
4245         (fmin_test): Likewise.
4246         (fminmag_test_data): Likewise.
4247         (fminmag_test): Likewise.
4248         (fmod_test_data): Likewise.
4249         (fmod_test): Likewise.
4250         (fpclassify_test_data): Likewise.
4251         (fpclassify_test): Likewise.
4252         (frexp_test_data): Likewise.
4253         (frexp_test): Likewise.
4254         (fromfp_test_data): Likewise.
4255         (fromfp_test): Likewise.
4256         (fromfpx_test_data): Likewise.
4257         (fromfpx_test): Likewise.
4258         (getpayload_test_data): Likewise.
4259         (getpayload_test): Likewise.
4260         (hypot_test_data): Likewise.
4261         (hypot_test): Likewise.
4262         (ilogb_test_data): Likewise.
4263         (ilogb_test): Likewise.
4264         (iscanonical_test_data): Likewise.
4265         (iscanonical_test): Likewise.
4266         (iseqsig_test_data): Likewise.
4267         (iseqsig_test): Likewise.
4268         (isfinite_test_data): Likewise.
4269         (isfinite_test): Likewise.
4270         (finite_test): Likewise.
4271         (isgreater_test_data): Likewise.
4272         (isgreater_test): Likewise.
4273         (isgreaterequal_test_data): Likewise.
4274         (isgreaterequal_test): Likewise.
4275         (isinf_test_data): Likewise.
4276         (isinf_test): Likewise.
4277         (isless_test_data): Likewise.
4278         (isless_test): Likewise.
4279         (islessequal_test_data): Likewise.
4280         (islessequal_test): Likewise.
4281         (islessgreater_test_data): Likewise.
4282         (islessgreater_test): Likewise.
4283         (isnan_test_data): Likewise.
4284         (isnan_test): Likewise.
4285         (isnormal_test_data): Likewise.
4286         (isnormal_test): Likewise.
4287         (issignaling_test_data): Likewise.
4288         (issignaling_test): Likewise.
4289         (issubnormal_test_data): Likewise.
4290         (issubnormal_test): Likewise.
4291         (isunordered_test_data): Likewise.
4292         (isunordered_test): Likewise.
4293         (iszero_test_data): Likewise.
4294         (iszero_test): Likewise.
4295         (j0_test_data): Likewise.
4296         (j0_test): Likewise.
4297         (j1_test_data): Likewise.
4298         (j1_test): Likewise.
4299         (jn_test_data): Likewise.
4300         (jn_test): Likewise.
4301         (lgamma_test_data): Likewise.
4302         (lgamma_test): Likewise.
4303         (gamma_test): Likewise.
4304         (llogb_test_data): Likewise.
4305         (llogb_test): Likewise.
4306         (lrint_test_data): Likewise.
4307         (lrint_test): Likewise.
4308         (llrint_test_data): Likewise.
4309         (llrint_test): Likewise.
4310         (log_test_data): Likewise.
4311         (log_test): Likewise.
4312         (log10_test_data): Likewise.
4313         (log10_test): Likewise.
4314         (log1p_test_data): Likewise.
4315         (log1p_test): Likewise.
4316         (log2_test_data): Likewise.
4317         (log2_test): Likewise.
4318         (logb_test_data): Likewise.
4319         (logb_test): Likewise.
4320         (lround_test_data): Likewise.
4321         (lround_test): Likewise.
4322         (llround_test_data): Likewise.
4323         (llround_test): Likewise.
4324         (modf_test_data): Likewise.
4325         (modf_test): Likewise.
4326         (nearbyint_test_data): Likewise.
4327         (nearbyint_test): Likewise.
4328         (nextafter_test_data): Likewise.
4329         (nextafter_test): Likewise.
4330         (nextup_test_data): Likewise.
4331         (nextup_test): Likewise.
4332         (nextdown_test_data): Likewise.
4333         (nextdown_test): Likewise.
4334         (nexttoward_test_data): Likewise.
4335         (nexttoward_test): Likewise.
4336         (pow_test_data): Likewise.
4337         (pow_test): Likewise.
4338         (remainder_test_data): Likewise.
4339         (remainder_test): Likewise.
4340         (drem_test): Likewise.
4341         (remquo_test_data): Likewise.
4342         (remquo_test): Likewise.
4343         (rint_test_data): Likewise.
4344         (rint_test): Likewise.
4345         (round_test_data): Likewise.
4346         (round_test): Likewise.
4347         (roundeven_test_data): Likewise.
4348         (roundeven_test): Likewise.
4349         (scalb_test_data): Likewise.
4350         (scalb_test): Likewise.
4351         (scalbn_test_data): Likewise.
4352         (scalbn_test): Likewise.
4353         (ldexp_test): Likewise.
4354         (scalbln_test_data): Likewise.
4355         (scalbln_test): Likewise.
4356         (setpayload_test_data): Likewise.
4357         (setpayload_test): Likewise.
4358         (setpayloadsig_test_data): Likewise.
4359         (setpayloadsig_test): Likewise.
4360         (signbit_test_data): Likewise.
4361         (signbit_test): Likewise.
4362         (sin_test_data): Likewise.
4363         (sin_test): Likewise.
4364         (sincos_test_data): Likewise.
4365         (sincos_test): Likewise.
4366         (sinh_test_data): Likewise.
4367         (sinh_test): Likewise.
4368         (sqrt_test_data): Likewise.
4369         (sqrt_test): Likewise.
4370         (tan_test_data): Likewise.
4371         (tan_test): Likewise.
4372         (tanh_test_data): Likewise.
4373         (tanh_test): Likewise.
4374         (tgamma_test_data): Likewise.
4375         (tgamma_test): Likewise.
4376         (totalorder_test_data): Likewise.
4377         (totalorder_test): Likewise.
4378         (totalordermag_test_data): Likewise.
4379         (totalordermag_test): Likewise.
4380         (trunc_test_data): Likewise.
4381         (trunc_test): Likewise.
4382         (ufromfp_test_data): Likewise.
4383         (ufromfp_test): Likewise.
4384         (ufromfpx_test_data): Likewise.
4385         (ufromfpx_test): Likewise.
4386         (y0_test_data): Likewise.
4387         (y0_test): Likewise.
4388         (y1_test_data): Likewise.
4389         (y1_test): Likewise.
4390         (yn_test_data): Likewise.
4391         (yn_test): Likewise.
4392         (significand_test_data): Likewise.
4393         (significand_test): Likewise.
4394         * math/Makefile (auto-libm-test-out-files): Remove variable.
4395         (libm-test-funcs-noauto): New variable.
4396         (libm-test-funcs-all): Likewise.
4397         (libm-test-c-auto): Likewise.
4398         (libm-test-c-noauto): Likewise.
4399         (libm-tests-generated): Add $(libm-test-c-auto) and
4400         $(libm-test-c-noauto).
4401         (generated): Do not add auto-libm-test-out.
4402         (libm-test-c-auto-obj): New variable.
4403         (libm-test-c-noauto-obj): Likewise.
4404         ($(objpfx)libm-test.c): Do not generate or use auto-libm-test-out.
4405         ($(libm-test-c-noauto-obj)): New static pattern rule.
4406         ($(libm-test-c-auto-obj)): Likewise.
4407         (libm-test-incs): New variable.
4408         ($(objpfx)libm-have-vector-test.h): Depend on $(libm-test-incs)
4409         and pass it to gen-libm-have-vector-test.sh.
4410         * math/gen-libm-have-vector-test.sh: Expect list of .inc files to
4411         be passed on command line.
4412         * math/libm-test-acos.inc: New file.  Content from
4413         math/libm-test.inc.
4414         * math/libm-test-acosh.inc: Likewise.
4415         * math/libm-test-asin.inc: Likewise.
4416         * math/libm-test-asinh.inc: Likewise.
4417         * math/libm-test-atan.inc: Likewise.
4418         * math/libm-test-atan2.inc: Likewise.
4419         * math/libm-test-atanh.inc: Likewise.
4420         * math/libm-test-cabs.inc: Likewise.
4421         * math/libm-test-cacos.inc: Likewise.
4422         * math/libm-test-cacosh.inc: Likewise.
4423         * math/libm-test-canonicalize.inc: Likewise.
4424         * math/libm-test-carg.inc: Likewise.
4425         * math/libm-test-casin.inc: Likewise.
4426         * math/libm-test-casinh.inc: Likewise.
4427         * math/libm-test-catan.inc: Likewise.
4428         * math/libm-test-catanh.inc: Likewise.
4429         * math/libm-test-cbrt.inc: Likewise.
4430         * math/libm-test-ccos.inc: Likewise.
4431         * math/libm-test-ccosh.inc: Likewise.
4432         * math/libm-test-ceil.inc: Likewise.
4433         * math/libm-test-cexp.inc: Likewise.
4434         * math/libm-test-cimag.inc: Likewise.
4435         * math/libm-test-clog.inc: Likewise.
4436         * math/libm-test-clog10.inc: Likewise.
4437         * math/libm-test-conj.inc: Likewise.
4438         * math/libm-test-copysign.inc: Likewise.
4439         * math/libm-test-cos.inc: Likewise.
4440         * math/libm-test-cosh.inc: Likewise.
4441         * math/libm-test-cpow.inc: Likewise.
4442         * math/libm-test-cproj.inc: Likewise.
4443         * math/libm-test-creal.inc: Likewise.
4444         * math/libm-test-csin.inc: Likewise.
4445         * math/libm-test-csinh.inc: Likewise.
4446         * math/libm-test-csqrt.inc: Likewise.
4447         * math/libm-test-ctan.inc: Likewise.
4448         * math/libm-test-ctanh.inc: Likewise.
4449         * math/libm-test-erf.inc: Likewise.
4450         * math/libm-test-erfc.inc: Likewise.
4451         * math/libm-test-exp.inc: Likewise.
4452         * math/libm-test-exp10.inc: Likewise.
4453         * math/libm-test-exp2.inc: Likewise.
4454         * math/libm-test-expm1.inc: Likewise.
4455         * math/libm-test-fabs.inc: Likewise.
4456         * math/libm-test-fdim.inc: Likewise.
4457         * math/libm-test-floor.inc: Likewise.
4458         * math/libm-test-fma.inc: Likewise.
4459         * math/libm-test-fmax.inc: Likewise.
4460         * math/libm-test-fmaxmag.inc: Likewise.
4461         * math/libm-test-fmin.inc: Likewise.
4462         * math/libm-test-fminmag.inc: Likewise.
4463         * math/libm-test-fmod.inc: Likewise.
4464         * math/libm-test-fpclassify.inc: Likewise.
4465         * math/libm-test-frexp.inc: Likewise.
4466         * math/libm-test-fromfp.inc: Likewise.
4467         * math/libm-test-fromfpx.inc: Likewise.
4468         * math/libm-test-getpayload.inc: Likewise.
4469         * math/libm-test-hypot.inc: Likewise.
4470         * math/libm-test-ilogb.inc: Likewise.
4471         * math/libm-test-iscanonical.inc: Likewise.
4472         * math/libm-test-iseqsig.inc: Likewise.
4473         * math/libm-test-isfinite.inc: Likewise.
4474         * math/libm-test-isgreater.inc: Likewise.
4475         * math/libm-test-isgreaterequal.inc: Likewise.
4476         * math/libm-test-isinf.inc: Likewise.
4477         * math/libm-test-isless.inc: Likewise.
4478         * math/libm-test-islessequal.inc: Likewise.
4479         * math/libm-test-islessgreater.inc: Likewise.
4480         * math/libm-test-isnan.inc: Likewise.
4481         * math/libm-test-isnormal.inc: Likewise.
4482         * math/libm-test-issignaling.inc: Likewise.
4483         * math/libm-test-issubnormal.inc: Likewise.
4484         * math/libm-test-isunordered.inc: Likewise.
4485         * math/libm-test-iszero.inc: Likewise.
4486         * math/libm-test-j0.inc: Likewise.
4487         * math/libm-test-j1.inc: Likewise.
4488         * math/libm-test-jn.inc: Likewise.
4489         * math/libm-test-lgamma.inc: Likewise.
4490         * math/libm-test-llogb.inc: Likewise.
4491         * math/libm-test-llrint.inc: Likewise.
4492         * math/libm-test-llround.inc: Likewise.
4493         * math/libm-test-log.inc: Likewise.
4494         * math/libm-test-log10.inc: Likewise.
4495         * math/libm-test-log1p.inc: Likewise.
4496         * math/libm-test-log2.inc: Likewise.
4497         * math/libm-test-logb.inc: Likewise.
4498         * math/libm-test-lrint.inc: Likewise.
4499         * math/libm-test-lround.inc: Likewise.
4500         * math/libm-test-modf.inc: Likewise.
4501         * math/libm-test-nearbyint.inc: Likewise.
4502         * math/libm-test-nextafter.inc: Likewise.
4503         * math/libm-test-nextdown.inc: Likewise.
4504         * math/libm-test-nexttoward.inc: Likewise.
4505         * math/libm-test-nextup.inc: Likewise.
4506         * math/libm-test-pow.inc: Likewise.
4507         * math/libm-test-remainder.inc: Likewise.
4508         * math/libm-test-remquo.inc: Likewise.
4509         * math/libm-test-rint.inc: Likewise.
4510         * math/libm-test-round.inc: Likewise.
4511         * math/libm-test-roundeven.inc: Likewise.
4512         * math/libm-test-scalb.inc: Likewise.
4513         * math/libm-test-scalbln.inc: Likewise.
4514         * math/libm-test-scalbn.inc: Likewise.
4515         * math/libm-test-setpayload.inc: Likewise.
4516         * math/libm-test-setpayloadsig.inc: Likewise.
4517         * math/libm-test-signbit.inc: Likewise.
4518         * math/libm-test-significand.inc: Likewise.
4519         * math/libm-test-sin.inc: Likewise.
4520         * math/libm-test-sincos.inc: Likewise.
4521         * math/libm-test-sinh.inc: Likewise.
4522         * math/libm-test-sqrt.inc: Likewise.
4523         * math/libm-test-tan.inc: Likewise.
4524         * math/libm-test-tanh.inc: Likewise.
4525         * math/libm-test-tgamma.inc: Likewise.
4526         * math/libm-test-totalorder.inc: Likewise.
4527         * math/libm-test-totalordermag.inc: Likewise.
4528         * math/libm-test-trunc.inc: Likewise.
4529         * math/libm-test-ufromfp.inc: Likewise.
4530         * math/libm-test-ufromfpx.inc: Likewise.
4531         * math/libm-test-y0.inc: Likewise.
4532         * math/libm-test-y1.inc: Likewise.
4533         * math/libm-test-yn.inc: Likewise.
4534         * math/README.libm-test: Update.
4535
4536         * math/gen-auto-libm-tests.c: Update comment about use of program.
4537         (generate_output): Add argument FUNCTION.
4538         (main): Require extra argument.  Pass function name to
4539         generate_output.
4540         * math/Makefile (generated): Add auto-libm-test-out.
4541         (libm-test-funcs-auto): New variable.
4542         (auto-libm-test-out-files): New variable.
4543         ($(objpfx)libm-test.c): Depend on $(auto-libm-test-out-files).
4544         Concatenate those files to form $(objpfx)auto-libm-test-out and
4545         use it as input to gen-libm-test.pl.
4546         * math/README.libm-test: Update.
4547         * math/auto-libm-test-out: Remove.
4548         * math/auto-libm-test-out-acos: New generated file.
4549         * math/auto-libm-test-out-acosh: Likewise.
4550         * math/auto-libm-test-out-asin: Likewise.
4551         * math/auto-libm-test-out-asinh: Likewise.
4552         * math/auto-libm-test-out-atan: Likewise.
4553         * math/auto-libm-test-out-atan2: Likewise.
4554         * math/auto-libm-test-out-atanh: Likewise.
4555         * math/auto-libm-test-out-cabs: Likewise.
4556         * math/auto-libm-test-out-carg: Likewise.
4557         * math/auto-libm-test-out-cbrt: Likewise.
4558         * math/auto-libm-test-out-ccos: Likewise.
4559         * math/auto-libm-test-out-ccosh: Likewise.
4560         * math/auto-libm-test-out-cexp: Likewise.
4561         * math/auto-libm-test-out-clog: Likewise.
4562         * math/auto-libm-test-out-clog10: Likewise.
4563         * math/auto-libm-test-out-cos: Likewise.
4564         * math/auto-libm-test-out-cosh: Likewise.
4565         * math/auto-libm-test-out-cpow: Likewise.
4566         * math/auto-libm-test-out-csin: Likewise.
4567         * math/auto-libm-test-out-csinh: Likewise.
4568         * math/auto-libm-test-out-csqrt: Likewise.
4569         * math/auto-libm-test-out-ctan: Likewise.
4570         * math/auto-libm-test-out-ctanh: Likewise.
4571         * math/auto-libm-test-out-erf: Likewise.
4572         * math/auto-libm-test-out-erfc: Likewise.
4573         * math/auto-libm-test-out-exp: Likewise.
4574         * math/auto-libm-test-out-exp10: Likewise.
4575         * math/auto-libm-test-out-exp2: Likewise.
4576         * math/auto-libm-test-out-expm1: Likewise.
4577         * math/auto-libm-test-out-fma: Likewise.
4578         * math/auto-libm-test-out-hypot: Likewise.
4579         * math/auto-libm-test-out-j0: Likewise.
4580         * math/auto-libm-test-out-j1: Likewise.
4581         * math/auto-libm-test-out-jn: Likewise.
4582         * math/auto-libm-test-out-lgamma: Likewise.
4583         * math/auto-libm-test-out-log: Likewise.
4584         * math/auto-libm-test-out-log10: Likewise.
4585         * math/auto-libm-test-out-log1p: Likewise.
4586         * math/auto-libm-test-out-log2: Likewise.
4587         * math/auto-libm-test-out-pow: Likewise.
4588         * math/auto-libm-test-out-sin: Likewise.
4589         * math/auto-libm-test-out-sincos: Likewise.
4590         * math/auto-libm-test-out-sinh: Likewise.
4591         * math/auto-libm-test-out-sqrt: Likewise.
4592         * math/auto-libm-test-out-tan: Likewise.
4593         * math/auto-libm-test-out-tanh: Likewise.
4594         * math/auto-libm-test-out-tgamma: Likewise.
4595         * math/auto-libm-test-out-y0: Likewise.
4596         * math/auto-libm-test-out-y1: Likewise.
4597         * math/auto-libm-test-out-yn: Likewise.
4598
4599         * math/Makefile (generated): Do not include libm-test.stmp.
4600         ($(addprefix $(objpfx), $(libm-tests-generated))): Do not depend
4601         on $(objpfx)libm-test.stmp.
4602         ($(objpfx)libm-test.stmp): Remove rule.
4603         ($(objpfx)libm-test-ulps.h): New rule.
4604         ($(objpfx)libm-test.c): Likewise.
4605         ($(objpfx)libm-have-vector-test.h): Likewise.
4606         ($(addprefix $(objpfx), $(libm-tests.o)): Depend directly on
4607         individual generated files, not libm-test.stmp.
4608
4609         * math/gen-libm-test.pl ($output_dir): Remove variable.
4610         ($srcdir): Likewise.
4611         ($opt_a): New variable.
4612         ($opt_c): Likewise.
4613         ($opt_C): Likewise.
4614         ($opt_H): Likewise.
4615         (-n): Make option take argument and use it as NewUlps output.
4616         (-a): New option.  Use its argument for auto-libm-test-out input.
4617         (-c): New option.  Use its argument for libm-test.inc input.
4618         (-C): New option.  Use its argument for libm-test.c output.
4619         (-H): New option.  Use its argument for libm-test-ulps.h output.
4620         (top level): Only process inputs needed to generate outputs
4621         specified by command-line options.  Only generate outputs
4622         specified by command-line options.
4623         * math/README.libm-test: Update example gen-libm-test.pl command.
4624         * math/Makefile ($(objpfx)libm-test.stmp): Update gen-libm-test.pl
4625         commands.
4626         (regen-ulps): Likewise.
4627
4628 2017-02-06  Wilco Dijkstra  <wdijkstr@arm.com>
4629
4630         * hurd/path-lookup.c (file_name_path_scan): Rename index to strchr.
4631         * include/string.h (index): Remove define.
4632         (rindex): Likewise.
4633         * misc/getttyent.c (__getttyent): Rename index to strchr.
4634         * misc/ttyslot.c (ttyslot): Rename rindex to strrchr.
4635         * sunrpc/rpc_main.c (mkfile_output): Likewise.
4636
4637 2017-02-06  Joseph Myers  <joseph@codesourcery.com>
4638
4639         * math/libm-test-driver.c: New file.  Based on math/libm-test.inc.
4640         * math/libm-test.inc: Move all contents, other than tests of
4641         individual functions, to libm-test-driver.c.
4642         [!FE_TONEAREST] (FE_TONEAREST): Move to libm-test-driver.c.
4643         [!FE_TOWARDZERO] (FE_TOWARDZERO): Likewise.
4644         [!FE_UPWARD] (FE_UPWARD): Likewise.
4645         [!FE_DOWNWARD] (FE_DOWNWARD): Likewise.
4646         (NO_EXCEPTION): Likewise.
4647         (INVALID_EXCEPTION): Likewise.
4648         (DIVIDE_BY_ZERO_EXCEPTION): Likewise.
4649         (OVERFLOW_EXCEPTION): Likewise.
4650         (UNDERFLOW_EXCEPTION): Likewise.
4651         (INEXACT_EXCEPTION): Likewise.
4652         (INVALID_EXCEPTION_OK): Likewise.
4653         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
4654         (OVERFLOW_EXCEPTION_OK): Likewise.
4655         (UNDERFLOW_EXCEPTION_OK): Likewise.
4656         (NO_INEXACT_EXCEPTION): Likewise.
4657         (EXCEPTIONS_OK): Likewise.
4658         (IGNORE_ZERO_INF_SIGN): Likewise.
4659         (TEST_NAN_SIGN): Likewise.
4660         (TEST_NAN_PAYLOAD): Likewise.
4661         (NO_TEST_INLINE): Likewise.
4662         (XFAIL_TEST): Likewise.
4663         (ERRNO_UNCHANGED): Likewise.
4664         (ERRNO_EDOM): Likewise.
4665         (ERRNO_ERANGE): Likewise.
4666         (IGNORE_RESULT): Likewise.
4667         (NON_FINITE): Likewise.
4668         (TEST_SNAN): Likewise.
4669         (NO_TEST_MATHVEC): Likewise.
4670         (TEST_NAN_PAYLOAD_CANONICALIZE): Likewise.
4671         (__CONCATX): Likewise.
4672         (TYPE_MIN): Likewise.
4673         (TYPE_TRUE_MIN): Likewise.
4674         (TYPE_MAX): Likewise.
4675         (MIN_EXP): Likewise.
4676         (MAX_EXP): Likewise.
4677         (MANT_DIG): Likewise.
4678         (FSTR_MAX): Likewise.
4679         (ULP_IDX): Likewise.
4680         (QTYPE_STR): Likewise.
4681         (TEST_COND_binary32): Likewise.
4682         (TEST_COND_binary64): Likewise.
4683         (TEST_COND_binary128): Likewise.
4684         (TEST_COND_ibm128): Likewise.
4685         (TEST_COND_intel96): Likewise.
4686         (TEST_COND_m68k96): Likewise.
4687         (TEST_COND_ibm128_libgcc): Likewise.
4688         (XFAIL_IBM128_LIBGCC): Likewise.
4689         (PAYLOAD_DIG): Likewise.
4690         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
4691         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
4692         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
4693         (UNDERFLOW_EXCEPTION_OK_DOUBLE): Likewise.
4694         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
4695         (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): Likewise.
4696         (TEST_COND_long32): Likewise.
4697         (TEST_COND_long64): Likewise.
4698         (TEST_COND_before_rounding): Likewise.
4699         (TEST_COND_after_rounding): Likewise.
4700         (lit_pi_3_m_4_d): Likewise.
4701         (lit_pi_3_m_4_ln10_m_d): Likewise.
4702         (lit_pi_2_ln10_m_d): Likewise.
4703         (lit_pi_4_ln10_m_d): Likewise.
4704         (lit_pi_ln10_d): Likewise.
4705         (lit_pi_2_d): Likewise.
4706         (lit_pi_4_d): Likewise.
4707         (lit_pi): Likewise.
4708         (lit_e): Likewise.
4709         (ulps_file_name): Likewise.
4710         (ulps_file): Likewise.
4711         (output_ulps): Likewise.
4712         (output_dir): Likewise.
4713         (noErrors): Likewise.
4714         (noTests): Likewise.
4715         (noExcTests): Likewise.
4716         (noErrnoTests): Likewise.
4717         (verbose): Likewise.
4718         (output_max_error): Likewise.
4719         (output_points): Likewise.
4720         (ignore_max_ulp): Likewise.
4721         (plus_zero): Likewise.
4722         (minus_zero): Likewise.
4723         (plus_infty): Likewise.
4724         (minus_infty): Likewise.
4725         (qnan_value_pl): Likewise.
4726         (qnan_value): Likewise.
4727         (snan_value_pl): Likewise.
4728         (snan_value): Likewise.
4729         (max_value): Likewise.
4730         (min_value): Likewise.
4731         (min_subnorm_value): Likewise.
4732         (snan_value_ld): Likewise.
4733         (max_error): Likewise.
4734         (real_max_error): Likewise.
4735         (imag_max_error): Likewise.
4736         (prev_max_error): Likewise.
4737         (prev_real_max_error): Likewise.
4738         (prev_imag_max_error): Likewise.
4739         (max_valid_error): Likewise.
4740         (TYPE_DECIMAL_DIG): Likewise.
4741         (TYPE_HEX_DIG): Likewise.
4742         (fmt_ftostr): Likewise.
4743         (compare_ulp_data): Likewise.
4744         (find_ulps): Likewise.
4745         (init_max_error): Likewise.
4746         (set_max_error): Likewise.
4747         (print_float): Likewise.
4748         (print_screen): Likewise.
4749         (print_screen_max_error): Likewise.
4750         (update_stats): Likewise.
4751         (print_function_ulps): Likewise.
4752         (print_complex_function_ulps): Likewise.
4753         (fpstack_test): Likewise.
4754         (print_max_error): Likewise.
4755         (print_complex_max_error): Likewise.
4756         (test_single_exception): Likewise.
4757         (test_exceptions): Likewise.
4758         (test_single_errno): Likewise.
4759         (test_errno): Likewise.
4760         (ULPDIFF): Likewise.
4761         (ulp): Likewise.
4762         (check_float_internal): Likewise.
4763         (check_float): Likewise.
4764         (check_complex): Likewise.
4765         (check_int): Likewise.
4766         (check_long): Likewise.
4767         (check_bool): Likewise.
4768         (check_longlong): Likewise.
4769         (check_intmax_t): Likewise.
4770         (check_uintmax_t): Likewise.
4771         (enable_test): Likewise.
4772         (struct test_f_f_data): Likewise.
4773         (struct test_ff_f_data): Likewise.
4774         (struct test_fj_f_data): Likewise.
4775         (struct test_fi_f_data): Likewise.
4776         (struct test_fl_f_data): Likewise.
4777         (struct test_if_f_data): Likewise.
4778         (struct test_fff_f_data): Likewise.
4779         (struct test_fiu_M_data): Likewise.
4780         (struct test_fiu_U_data): Likewise.
4781         (struct test_c_f_data): Likewise.
4782         (struct test_f_f1_data): Likewise.
4783         (struct test_fF_f1_data): Likewise.
4784         (struct test_ffI_f1_data): Likewise.
4785         (struct test_c_c_data): Likewise.
4786         (struct test_cc_c_data): Likewise.
4787         (struct test_f_i_data): Likewise.
4788         (struct test_ff_i_data): Likewise.
4789         (struct test_f_l_data): Likewise.
4790         (struct test_f_L_data): Likewise.
4791         (struct test_fFF_11_data): Likewise.
4792         (struct test_Ff_b1_data): Likewise.
4793         (IF_ROUND_INIT_): Likewise.
4794         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
4795         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
4796         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
4797         (IF_ROUND_INIT_FE_UPWARD): Likewise.
4798         (ROUND_RESTORE_): Likewise.
4799         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
4800         (ROUND_RESTORE_FE_TONEAREST): Likewise.
4801         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
4802         (ROUND_RESTORE_FE_UPWARD): Likewise.
4803         (RM_): Likewise.
4804         (RM_FE_DOWNWARD): Likewise.
4805         (RM_FE_TONEAREST): Likewise.
4806         (RM_FE_TOWARDZERO): Likewise.
4807         (RM_FE_UPWARD): Likewise.
4808         (COMMON_TEST_SETUP): Likewise.
4809         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
4810         (COMMON_TEST_CLEANUP): Likewise.
4811         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
4812         (RUN_TEST_f_f): Likewise.
4813         (RUN_TEST_LOOP_f_f): Likewise.
4814         (RUN_TEST_fp_f): Likewise.
4815         (RUN_TEST_LOOP_fp_f): Likewise.
4816         (RUN_TEST_2_f): Likewise.
4817         (RUN_TEST_LOOP_2_f): Likewise.
4818         (RUN_TEST_ff_f): Likewise.
4819         (RUN_TEST_LOOP_ff_f): Likewise.
4820         (RUN_TEST_LOOP_fj_f): Likewise.
4821         (RUN_TEST_fi_f): Likewise.
4822         (RUN_TEST_LOOP_fi_f): Likewise.
4823         (RUN_TEST_fl_f): Likewise.
4824         (RUN_TEST_LOOP_fl_f): Likewise.
4825         (RUN_TEST_if_f): Likewise.
4826         (RUN_TEST_LOOP_if_f): Likewise.
4827         (RUN_TEST_fff_f): Likewise.
4828         (RUN_TEST_LOOP_fff_f): Likewise.
4829         (RUN_TEST_fiu_M): Likewise.
4830         (RUN_TEST_LOOP_fiu_M): Likewise.
4831         (RUN_TEST_fiu_U): Likewise.
4832         (RUN_TEST_LOOP_fiu_U): Likewise.
4833         (RUN_TEST_c_f): Likewise.
4834         (RUN_TEST_LOOP_c_f): Likewise.
4835         (RUN_TEST_f_f1): Likewise.
4836         (RUN_TEST_LOOP_f_f1): Likewise.
4837         (RUN_TEST_fF_f1): Likewise.
4838         (RUN_TEST_LOOP_fF_f1): Likewise.
4839         (RUN_TEST_fI_f1): Likewise.
4840         (RUN_TEST_LOOP_fI_f1): Likewise.
4841         (RUN_TEST_ffI_f1_mod8): Likewise.
4842         (RUN_TEST_LOOP_ffI_f1_mod8): Likewise.
4843         (RUN_TEST_Ff_b1): Likewise.
4844         (RUN_TEST_LOOP_Ff_b1): Likewise.
4845         (RUN_TEST_Ffp_b1): Likewise.
4846         (RUN_TEST_LOOP_Ffp_b1): Likewise.
4847         (RUN_TEST_c_c): Likewise.
4848         (RUN_TEST_LOOP_c_c): Likewise.
4849         (RUN_TEST_cc_c): Likewise.
4850         (RUN_TEST_LOOP_cc_c): Likewise.
4851         (RUN_TEST_f_i): Likewise.
4852         (RUN_TEST_LOOP_f_i): Likewise.
4853         (RUN_TEST_f_i_tg): Likewise.
4854         (RUN_TEST_LOOP_f_i_tg): Likewise.
4855         (RUN_TEST_ff_b): Likewise.
4856         (RUN_TEST_LOOP_ff_b): Likewise.
4857         (RUN_TEST_ff_i_tg): Likewise.
4858         (RUN_TEST_LOOP_ff_i_tg): Likewise.
4859         (RUN_TEST_f_b): Likewise.
4860         (RUN_TEST_LOOP_f_b): Likewise.
4861         (RUN_TEST_f_b_tg): Likewise.
4862         (RUN_TEST_LOOP_f_b_tg): Likewise.
4863         (RUN_TEST_f_l): Likewise.
4864         (RUN_TEST_LOOP_f_l): Likewise.
4865         (RUN_TEST_f_L): Likewise.
4866         (RUN_TEST_LOOP_f_L): Likewise.
4867         (RUN_TEST_fFF_11): Likewise.
4868         (RUN_TEST_LOOP_fFF_11): Likewise.
4869         (VEC_SUFF): Likewise.
4870         (STR_CONCAT): Likewise.
4871         (STR_CON3): Likewise.
4872         (HAVE_VECTOR): Likewise.
4873         (START): Likewise.
4874         (END): Likewise.
4875         (END_COMPLEX): Likewise.
4876         (ALL_RM_TEST): Likewise.
4877         (matherr): Likewise.
4878         (initialize): Likewise.
4879         (options): Likewise.
4880         (doc): Likewise.
4881         (parse_opt): Likewise.
4882         (argp): Likewise.
4883         (check_ulp): Likewise.
4884         (main): Likewise.
4885         (do_test): New function.  Call tests of individual functions
4886         previously called from main.
4887
4888         * math/libm-test.inc: Remove comment listing functions tested and
4889         not tested.
4890
4891 2016-02-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4892
4893         * nptl/allocatestack.c [COLORING_INCREMENT] (nptl_ncreated): Remove.
4894         (allocate_stack): Remove COLORING_INCREMENT usage.
4895         * nptl/stack-aliasing.h (COLORING_INCREMENT). Likewise.
4896         * sysdeps/i386/i686/stack-aliasing.h (COLORING_INCREMENT): Likewise.
4897
4898 2017-02-06  Joseph Myers  <joseph@codesourcery.com>
4899
4900         * manual/libm-err-tab.pl (@all_functions): Change to
4901         %all_functions.  Initialize as empty.
4902         (parse_ulps): Add to %all_functions based on functions found in
4903         ulps files.  Ignore results for non-default rounding modes and
4904         vector functions.
4905         (print_platforms): Use %all_platforms.
4906         * manual/math.texi (Errors in Math Functions): Document omissions
4907         from the table.
4908
4909         * math/Makefile (before-compile): Remove.
4910
4911 2017-02-06  Ivo Raisr <ivo.raisr@oracle.com>
4912
4913         [BZ #21075]
4914         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Remove
4915         unused assignment.
4916         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
4917
4918 2017-02-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
4919
4920         * sysdeps/nptl/lowlevellock.h (lll_trylock, lll_cond_trylock):
4921         Add __glibc_unlikely hint.
4922
4923 2017-02-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4924
4925         [BZ #16640]
4926         * sysdeps/i386/i686/strtok.S: Remove file.
4927         * sysdeps/i386/i686/strtok_r.S: Likewise.
4928         * sysdeps/i386/strtok.S: Likewise.
4929         * sysdeps/i386/strtok_r.S: Likewise.
4930         * sysdeps/powerpc/powerpc64/strtok.S: Likewise.
4931         * sysdeps/powerpc/powerpc64/strtok_r.S: Likewise.
4932         * sysdeps/x86_64/strtok.S: Likewise.
4933         * sysdeps/x86_64/strtok_r.S: Likewise.
4934
4935         * sysdeps/unix/sysv/linux/arm/posix_fadvise.c: Remove file.
4936         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise.c: Likewise.
4937         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4938         (__ASSUME_FADVISE64_AS_64_64): Define.
4939         * sysdeps/unix/sysv/linux/posix_fadvise.c [__NR_fadvise64]: Add
4940         !defined __ASSUME_FADVISE64_AS_64_64 to use syscall issue.
4941         [!__NR_fadvise64 && __ASSUME_FADVISE64_64_6ARG]: Remove
4942         __ALIGNMENT_ARG usage.
4943         [!__NR_fadvise64 && !__ASSUME_FADVISE64_64_6ARG]: Define
4944         __NR_fadvise64_64 if it is not defined.
4945
4946 2017-02-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4947
4948         * version.h (RELEASE): Set to "development"
4949         (VERSION): Set to 2.25.90.
4950         * NEWS: Add 2.26 section.
4951
4952         * version.h (RELEASE): Set to "stable"
4953         (VERSION): Set to 2.25.
4954         * include/features.h (__GLIBC_MINOR__): Set to 25.
4955
4956         * manual/contrib.texi: Add more contributors from this release
4957         and past releases.
4958
4959         * NEWS (2.25): Add list of bugs fixed.
4960
4961         * NEWS: Add missing news items.
4962
4963 2017-02-04  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4964
4965         * elf/tst-env-setuid.c (do_execve): Return EXIT_UNSUPPORTED in
4966         parent if child exited in that manner.  Print WEXITSTATUS
4967         instead of the raw status.
4968         (do_test_prep): Rename to do_test.
4969         (do_test): Return the result of run_executable_sgid.
4970         (TEST_FUNCTION_ARGV): Adjust.
4971
4972 2017-02-03  Alexandre Oliva  <aoliva@redhat.com>
4973             Florian Weimer  <fweimer@redhat.com>
4974             Carlos O'Donell  <carlos@redhat.com>
4975
4976         [BZ #20915]
4977         * elf/dl-reloc.c (_dl_nothread_init_static_tls):
4978         Do not initialize DTV.
4979         * nptl/allocatestack.c (init_one_static_tls): Likewise.
4980
4981 2017-02-03  David S. Miller  <davem@davemloft.net>
4982
4983         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax-vis3.S: Remove file.
4984         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
4985         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: Likewise.
4986         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
4987         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: Likewise.
4988         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
4989         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: Likewise.
4990         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
4991         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
4992         (libm-sysdep_routines): Update.
4993         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Remove file.
4994         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: Likewise.
4995         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
4996         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: Likewise.
4997         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
4998         * sysdeps/sparc/sparc64/fpu/s_fmax.S: Likewise.
4999         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: Likewise.
5000         * sysdeps/sparc/sparc64/fpu/s_fmin.S: Likewise.
5001         * sysdeps/sparc/sparc64/fpu/s_fminf.S: Likewise.
5002         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S:
5003         Likewise.
5004         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
5005         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S:
5006         Likewise.
5007         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
5008         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S:
5009         Likewise.
5010         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
5011         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S:
5012         Likewise.
5013         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
5014         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
5015         (libm-sysdep_routines): Update.
5016
5017 2017-02-02  H.J. Lu  <hongjiu.lu@intel.com>
5018
5019         * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
5020         _dl_fatal_printf with _dl_error_printf for IFUNC relocation
5021         against unrelocated shared library.
5022         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
5023
5024 2017-02-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5025
5026         * sysdeps/generic/unsecvars.h: Add GLIBC_TUNABLES.
5027         * elf/tst-env-setuid-tunables.c
5028         (test_child_tunables)[!HAVE_TUNABLES]: Verify that
5029         GLIBC_TUNABLES is removed in a setgid process.
5030
5031         [BZ #21073]
5032         * elf/dl-tunable-types.h (tunable_seclevel_t): New enum.
5033         * elf/dl-tunables.c (tunables_strdup): Remove.
5034         (get_next_env): Also return the previous envp.
5035         (parse_tunables): Erase tunables of category
5036         TUNABLES_SECLEVEL_SXID_ERASE.
5037         (maybe_enable_malloc_check): Make MALLOC_CHECK_
5038         TUNABLE_SECLEVEL_NONE if /etc/setuid-debug is accessible.
5039         (__tunables_init)[TUNABLES_FRONTEND ==
5040         TUNABLES_FRONTEND_valstring]: Update GLIBC_TUNABLES envvar
5041         after parsing.
5042         [TUNABLES_FRONTEND != TUNABLES_FRONTEND_valstring]: Erase
5043         tunable envvars of category TUNABLES_SECLEVEL_SXID_ERASE.
5044         * elf/dl-tunables.h (struct _tunable): Change member is_secure
5045         to security_level.
5046         * elf/dl-tunables.list: Add security_level annotations for all
5047         tunables.
5048         * scripts/gen-tunables.awk: Recognize and generate enum values
5049         for security_level.
5050         * elf/tst-env-setuid.c: New test case.
5051         * elf/tst-env-setuid-tunables: new test case.
5052         * elf/Makefile (tests-static): Add them.
5053
5054 2017-02-01  Richard Henderson  <rth@twiddle.net>
5055
5056         * sysdeps/alpha/memchr.c (__memchr): Use saturating arithmetic
5057         adjusting the byte count.
5058
5059 2017-02-01  Andreas Schwab  <schwab@linux-m68k.org>
5060
5061         * conform/Makefile (linknamespace-libs): Define.
5062
5063         * sysdeps/m68k/m680x0/m68020/atomic-machine.h
5064         (__arch_compare_and_exchange_val_64_acq, atomic_exchange_acq)
5065         (atomic_exchange_and_add, atomic_add): Add casts to 64 bit asm
5066         operands.
5067
5068 2017-01-31  Chung-Lin Tang  <cltang@codesourcery.com>
5069
5070         * sysdeps/unix/sysv/linux/nios2/ipc_priv.h: New file.
5071
5072 2017-01-30  H.J. Lu  <hongjiu.lu@intel.com>
5073
5074         [BZ #21081]
5075         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
5076         (L(stosb)): Add VZEROUPPER before ret.
5077
5078 2016-01-28  Carlos O'Donell  <carlos@redhat.com>
5079             Alexey Makhalov <amakhalov@vmware.com>
5080             Florian Weimer <fweimer@redhat.com>
5081
5082         [BZ #20116]
5083         * nptl/pthread_create.c: Document concurrency notes.
5084         Enhance thread creation notes.
5085         (create_thread): Use bool *stopped_start.
5086         (START_THREAD_DEFN): Comment ownership of PD.
5087         (__pthread_create_2_1): Add local bool stopped_start and use
5088         that instead of pd->stopped_start where appropriate.
5089         * nptl/createthread.c (create_thread): Use bool *stopped_start.
5090         * sysdeps/nacl/createthread.c (create_thread): Use bool *stopped_start.
5091         * sysdeps/unix/sysv/linux/createthread.c (create_thread): Likewise.
5092         * nptl/tst-create-detached.c: New file.
5093         * nptl/Makefile (tests): Add tst-create-detached.
5094         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
5095         Reference the enhanced thread creation notes.
5096         * nptl/pthread_setschedparam.c (__pthread_setschedparam): Likewise.
5097         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
5098         * nptl/tpp.c (__pthread_tpp_change_priority): Likewise.
5099         (__pthread_current_priority): Likewise.
5100         * support/Makefile (libsupport-routines): Add xpthread_attr_destroy
5101         xpthread_attr_init, xpthread_attr_setdetachstate, and
5102         xpthread_attr_setstacksize.
5103         * support/xpthread_attr_destroy.c: New file.
5104         * support/xpthread_attr_init.c: New file.
5105         * support/xpthread_attr_setdetachstate.c: New file.
5106         * support/xpthread_attr_setstacksize.c: New file.
5107         * support/xthread.h: Define prototypes for xpthread_attr_destroy
5108         xpthread_attr_init, xpthread_attr_setdetachstate, and
5109         xpthread_attr_setstacksize.
5110
5111 2017-01-27  Florian Weimer  <fweimer@redhat.com>
5112
5113         * nptl/Makefile (tests): Add tst-robust-fork.
5114         * nptl/tst-robust-fork.c: New file.
5115         * support/Makefile (libsupport-routines): Add xmmap, xmunmap,
5116         xpthread_mutex_consistent, xpthread_mutex_destroy,
5117         xpthread_mutex_init, xpthread_mutexattr_destroy,
5118         xpthread_mutexattr_init, xpthread_mutexattr_setprotocol,
5119         xpthread_mutexattr_setpshared, xpthread_mutexattr_setrobust,
5120         xpthread_mutexattr_settype.
5121         * support/xmmap.c: New file.
5122         * support/xmunmap.c: Likewise.
5123         * support/xpthread_mutex_consistent.c: Likewise.
5124         * support/xpthread_mutex_destroy.c: Likewise.
5125         * support/xpthread_mutex_init.c: Likewise.
5126         * support/xpthread_mutexattr_destroy.c: Likewise.
5127         * support/xpthread_mutexattr_init.c: Likewise.
5128         * support/xpthread_mutexattr_setprotocol.c: Likewise.
5129         * support/xpthread_mutexattr_setpshared.c: Likewise.
5130         * support/xpthread_mutexattr_setrobust.c: Likewise.
5131         * support/xpthread_mutexattr_settype.c: Likewise.
5132         * support/xthread.h (xpthread_mutexattr_destroy)
5133         (xpthread_mutexattr_init, xpthread_mutexattr_setprotocol)
5134         (xpthread_mutexattr_setpshared, xpthread_mutexattr_setrobust)
5135         (xpthread_mutexattr_settype, xpthread_mutex_init)
5136         (xpthread_mutex_destroy, xpthread_mutex_consistent): Declare.
5137         * support/xunistd.h (xmmap, xmunmap): Likewise.
5138
5139 2017-01-25  Florian Weimer  <fweimer@redhat.com>
5140
5141         * string/Makefile (xtests): Add comment.
5142         (LOCALES): Add en_GB.UTF-8.
5143         (tst-strcoll-overflow.out): Depend on generated locales.
5144         * string/tst-strcoll-overflow.c: Convert to support/test-driver.c.
5145         (SIZE, TIMEOUT): Update comments.
5146         (do_test): Define as static.  Fail test if setlocale fails.
5147         Return EXIT_UNSUPPORTED if insufficient memory.  Enhance output
5148         messages.
5149         (EXPECTED_SIGNAL, EXPECTED_STATUS, TEST_FUNCTION): Remove.
5150         TIMEOUT at 300 seconds should be enough to run this test
5151         successfully.
5152
5153 2017-01-24  Jakub Jelinek  <jakub@redhat.com>
5154
5155         * soft-fp/op-common.h (_FP_MUL, _FP_FMA, _FP_DIV): Add
5156         /* FALLTHRU */ comments.
5157
5158 2017-01-24  James Clarke  <jrtc27@jrtc27.com>
5159
5160         [BZ #21053]
5161         * sysdeps/unix/sysv/linux/sh/sh3/ucontext_i.sym: Use new REG_R*
5162         constants instead of the old R* ones.
5163         * sysdeps/unix/sysv/linux/sh/sh4/ucontext_i.sym: Likewise.
5164         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (NGPREG): Rename...
5165         (NGREG): ... to this, to fit in with other architectures.
5166         (gpregset_t): Use new NGREG macro.
5167         [__USE_GNU]: Remove condition; all architectures other than tile
5168         are unconditional.
5169         (R*): Rename to REG_R*.
5170
5171 2017-01-20  DJ Delorie  <dj@redhat.com>
5172
5173         * elf/dl-tunables.c (tunable_set_val_if_valid_range): Split into ...
5174         (tunable_set_val_if_valid_range_signed) ... this, and ...
5175         (tunable_set_val_if_valid_range_unsigned) ... this.
5176         (tunable_initialize): Call the correct one of the above based on type.
5177
5178 2017-01-20  Joseph Myers  <joseph@codesourcery.com>
5179
5180         * sysdeps/hppa/fpu/libm-test-ulps: Remove *_tonearest entries.
5181         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
5182         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
5183         * sysdeps/microblaze/libm-test-ulps: Likewise.
5184         * sysdeps/sh/libm-test-ulps: Likewise.
5185
5186         * math/README.libm-test: Update list of characters for input and
5187         output types.
5188
5189 2017-01-20  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5190
5191         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
5192         (__lll_unlock_elision): Fix adapt_count decrement.
5193
5194 2017-01-14  Martin Galvan  <martingalvan@sourceware.org>
5195
5196         * README.pretty-printers (Known issues): Warn about printers not
5197         always covering everything.
5198         * nptl/nptl-printers.py (MutexPrinter): Change output.
5199         * nptl/test-mutex-printers.py: Fix test and adapt to changed output.
5200
5201 2017-01-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
5202
5203         * sysdeps/unix/sysv/linux/s390/htm.h: Adjust comments.
5204         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
5205         * sysdeps/unix/sysv/linux/s390/elision-lock.c: Adjust comments.
5206         (__lll_lock_elision): Do not test futex before starting a
5207         transaction.  Use __glibc_likely instead of __builtin_expect.
5208         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Adjust comments.
5209         (__lll_trylock_elision): Do not test futex before starting a
5210         transaction.  Use __glibc_likely instead of __builtin_expect.
5211
5212 2017-01-20  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5213
5214         * po/Makefile (update-translations): New target.
5215
5216 2017-01-19  Joseph Myers  <joseph@codesourcery.com>
5217
5218         [BZ #21061]
5219         * sysdeps/unix/sysv/linux/microblaze/clock-compat.c: New file.
5220
5221 2017-01-19  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5222
5223         * elf/dl-tunables (get_next_env): Always advance envp.
5224         * stdlib/tst-empty-env.c: New test case.
5225         * stdlib/Makefile (tests): Use it.
5226
5227 2017-01-19  Joseph Myers  <joseph@codesourcery.com>
5228
5229         [BZ #21047]
5230         * sysdeps/arm/fpu_control.h [!__SOFTFP__] (_FPU_GETCW): Use VFP
5231         name for instruction.
5232         [!__SOFTFP__] (_FPU_SETCW): Likewise.
5233
5234 2017-01-18  Joseph Myers  <joseph@codesourcery.com>
5235
5236         * scripts/build-many-glibcs.py (Config.build_cross_tool): Use -j1
5237         for make install.
5238
5239 2017-01-18  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5240
5241         * po/bg.po: Merge from Translation Project.
5242         * po/fr.po: Likewise.
5243         * po/ko.po: Likewise.
5244         * po/nl.po: Likewise.
5245         * po/sv.po: Likewise.
5246
5247 2017-01-18  Joseph Myers  <joseph@codesourcery.com>
5248
5249         * manual/install.texi (Tools for Compilation): Update GCC version
5250         known to work to build glibc.
5251         * INSTALL: Regenerated.
5252
5253 2017-01-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
5254
5255         [BZ #21006]
5256         * string/Makefile (LDFLAGS-tst-xbzero-opt): New variable.
5257
5258 2017-01-16  Joseph Myers  <joseph@codesourcery.com>
5259
5260         [BZ #21045]
5261         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
5262         (__CONTEXT_FUNC_NAME): Pass address of signal mask to be restored
5263         to __sigprocmask.
5264
5265 2017-01-16  Chris Metcalf  <cmetcalf@mellanox.com>
5266
5267         * sysdeps/tile/tilegx/memchr.c (__memchr): Handle pointer
5268         wrap-around.
5269         * sysdeps/tile/tilepro/memchr.c (__memchr): Likewise.
5270
5271         * sysdeps/unix/sysv/linux/tile/ipc_priv.h: New file.
5272
5273 2016-01-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5274
5275         * NEWS: Fix typo.
5276
5277 2016-01-13  Torvald Riegel  <triegel@redhat.com>
5278
5279         * nptl/descr.h (ENQUEUE_MUTEX_BOTH, DEQUEUE_MUTEX): Add compiler
5280         barriers and comments.
5281         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Likewise.
5282         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
5283         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
5284
5285 2016-01-13  Torvald Riegel  <triegel@redhat.com>
5286
5287         [BZ #19402]
5288         * sysdeps/nptl/fork.c (__libc_fork): Clear list of acquired robust
5289         mutexes.
5290
5291 2016-01-13  Torvald Riegel  <triegel@redhat.com>
5292
5293         [BZ #20985]
5294         * nptl/Makefile: Adapt.
5295         * nptl/pthread_mutex_cond_lock.c (LLL_ROBUST_MUTEX_LOCK): Remove.
5296         (LLL_ROBUST_MUTEX_LOCK_MODIFIER): New.
5297         * nptl/pthread_mutex_lock.c (LLL_ROBUST_MUTEX_LOCK): Remove.
5298         (LLL_ROBUST_MUTEX_LOCK_MODIFIER): New.
5299         (__pthread_mutex_lock_full): Inline lll_robust* functions and adapt.
5300         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Inline
5301         lll_robust* functions and adapt.
5302         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
5303         * sysdeps/nptl/lowlevellock.h (__lll_robust_lock_wait,
5304         __lll_robust_lock, lll_robust_cond_lock, __lll_robust_timedlock_wait,
5305         __lll_robust_timedlock, __lll_robust_unlock): Remove.
5306         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_robust_lock,
5307         lll_robust_cond_lock, lll_robust_timedlock, lll_robust_unlock): Remove.
5308         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_robust_lock,
5309         lll_robust_cond_lock, lll_robust_timedlock, lll_robust_unlock): Remove.
5310         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (__lll_robust_lock_wait,
5311         __lll_robust_lock, lll_robust_cond_lock, __lll_robust_timedlock_wait,
5312         __lll_robust_timedlock, __lll_robust_unlock): Remove.
5313         * nptl/lowlevelrobustlock.c: Remove file.
5314         * nptl/lowlevelrobustlock.sym: Likewise.
5315         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Likewise.
5316         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Likewise.
5317
5318 2017-01-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5319
5320         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
5321
5322 2017-01-12  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5323
5324         * po/cs.po: Merge translations from the Translation Project.
5325         * po/de.po: Likewise.
5326         * po/pl.po: Likewise.
5327         * po/ru.po: Likewise.
5328         * po/tr.po: Likewise.
5329         * po/uk.po: Likewise.
5330         * po/vi.po: Likewise.
5331         * po/zh_CN.po: Likewise.
5332
5333 2017-01-12  Joseph Myers  <joseph@codesourcery.com>
5334
5335         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise.c: New file.
5336
5337         * math/fgetexcptflg.c (__fegetexceptflag): Store 0 in fexcept_t
5338         object.
5339
5340 2017-01-11  Joseph Myers  <joseph@codesourcery.com>
5341
5342         [BZ #16458]
5343         * bits/uintn-identity.h: New file.
5344         * inet/netinet/in.h: Include <bits/uintn-identity.h>.
5345         [__BYTE_ORDER == __BIG_ENDIAN] (ntohl): Use __uint32_identity.
5346         [__BYTE_ORDER == __BIG_ENDIAN] (ntohs): Use __uint16_identity.
5347         [__BYTE_ORDER == __BIG_ENDIAN] (htonl): Use __uint32_identity.
5348         [__BYTE_ORDER == __BIG_ENDIAN] (htohs): Use __uint16_identity.
5349         * string/endian.h: Include <bits/uintn-identity.h>.
5350         [__BYTE_ORDER == __LITTLE_ENDIAN] (htole16): Use
5351         __uint16_identity.
5352         [__BYTE_ORDER == __LITTLE_ENDIAN] (le16toh): Likewise.
5353         [__BYTE_ORDER == __LITTLE_ENDIAN] (htole32): Use
5354         __uint32_identity.
5355         [__BYTE_ORDER == __LITTLE_ENDIAN] (le32toh): Likewise.
5356         [__BYTE_ORDER == __LITTLE_ENDIAN] (htole64): Use
5357         __uint64_identity.
5358         [__BYTE_ORDER == __LITTLE_ENDIAN] (le64toh): Likewise.
5359         [__BYTE_ORDER != __LITTLE_ENDIAN] (htobe16): Use
5360         __uint16_identity.
5361         [__BYTE_ORDER != __LITTLE_ENDIAN] (be16toh): Likewise.
5362         [__BYTE_ORDER != __LITTLE_ENDIAN] (htobe32): Use
5363         __uint32_identity.
5364         [__BYTE_ORDER != __LITTLE_ENDIAN] (be32toh): Likewise.
5365         [__BYTE_ORDER != __LITTLE_ENDIAN] (htobe64): Use
5366         __uint64_identity.
5367         [__BYTE_ORDER != __LITTLE_ENDIAN] (be64toh): Likewise.
5368         * string/Makefile (headers): Add bits/uintn-identity.h.
5369         (tests): Add test-endian-types.
5370         * string/test-endian-types.c: New file.
5371         * inet/Makefile (tests): Add test-hnto-types.
5372         * inet/test-hnto-types.c: New file.
5373
5374 2016-01-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5375
5376         * po/be.po: Update from Translation Project.
5377         * po/bg.po: Likewise.
5378         * po/ca.po: Likewise.
5379         * po/cs.po: Likewise.
5380         * po/da.po: Likewise.
5381         * po/de.po: Likewise.
5382         * po/el.po: Likewise.
5383         * po/eo.po: Likewise.
5384         * po/es.po: Likewise.
5385         * po/fi.po: Likewise.
5386         * po/fr.po: Likewise.
5387         * po/gl.po: Likewise.
5388         * po/hr.po: Likewise.
5389         * po/hu.po: Likewise.
5390         * po/ia.po: Likewise.
5391         * po/id.po: Likewise.
5392         * po/it.po: Likewise.
5393         * po/ja.po: Likewise.
5394         * po/ko.po: Likewise.
5395         * po/lt.po: Likewise.
5396         * po/nb.po: Likewise.
5397         * po/nl.po: Likewise.
5398         * po/pl.po: Likewise.
5399         * po/pt_BR.po: Likewise.
5400         * po/ru.po: Likewise.
5401         * po/rw.po: Likewise.
5402         * po/sk.po: Likewise.
5403         * po/sl.po: Likewise.
5404         * po/sv.po: Likewise.
5405         * po/tr.po: Likewise.
5406         * po/uk.po: Likewise.
5407         * po/vi.po: Likewise.
5408         * po/zh_CN.po: Likewise.
5409         * po/zh_TW.po: Likewise.
5410
5411 2017-01-11  Joseph Myers  <joseph@codesourcery.com>
5412
5413         * stdio-common/tst-printf.c [__GNUC_PREREQ (7, 0)]: Ignore
5414         -Wformat-truncation instead of -Wformat-length.
5415         * time/tst-strptime2.c (mkbuf) [__GNUC_PREREQ (7, 0)]: Likewise.
5416         * stdio-common/tstdiomisc.c (F): Ignore -Wformat-truncation for
5417         GCC 7.
5418         * wcsmbs/tst-wcstof.c: Include <libc-internal.h>.
5419         (do_test): Ignore -Wformat-truncation for GCC 7.
5420
5421         * locale/programs/ld-address.c (INT_STR_ELEM): Increase size of
5422         buffer used to print long int value.
5423
5424         * elf/sotruss-lib.c (init): Increase space allocated for pid by
5425         one byte.  Print it with %ld, cast to long int.
5426
5427 2017-01-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5428
5429         * scripts/build-many-glibcs.py (os.cpu_count): Add compatibility definition.
5430         (re.fullmatch, subprocess.run): Likewise.
5431
5432 2016-01-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5433
5434         * po/libc.pot: Regenerate.
5435
5436 2016-01-10  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5437
5438         * elf/dl-tunables.c (tunables_unsetenv): Remove function.
5439         (min_strlen): Likewise.
5440         (disable_tunable): Likewise.
5441         (maybe_disable_malloc_check): Rename to
5442         maybe_enable_malloc_check.
5443         (maybe_enable_malloc_check): Enable glibc.malloc.check tunable
5444         if /etc/suid-debug file exists.
5445         (__tunables_init): Update caller.
5446         * elf/dl-tunables.list (glibc.malloc.check): Don't mark as
5447         secure.
5448
5449 2016-01-10  Torvald Riegel  <triegel@redhat.com>
5450
5451         * nptl/DESIGN-rwlock.txt: Remove.
5452         * nptl/lowlevelrwlock.sym: Remove.
5453         * nptl/Makefile: Add new tests.
5454         * nptl/pthread_rwlock_common.c: New file.  Contains the new rwlock.
5455         * nptl/pthreadP.h (PTHREAD_RWLOCK_PREFER_READER_P): Remove.
5456         (PTHREAD_RWLOCK_WRPHASE, PTHREAD_RWLOCK_WRLOCKED,
5457         PTHREAD_RWLOCK_RWAITING, PTHREAD_RWLOCK_READER_SHIFT,
5458         PTHREAD_RWLOCK_READER_OVERFLOW, PTHREAD_RWLOCK_WRHANDOVER,
5459         PTHREAD_RWLOCK_FUTEX_USED): New.
5460         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Adapt to new
5461         implementation.
5462         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow): Remove.
5463         (__pthread_rwlock_rdlock): Adapt.
5464         * nptl/pthread_rwlock_timedrdlock.c
5465         (pthread_rwlock_timedrdlock): Adapt.
5466         * nptl/pthread_rwlock_timedwrlock.c
5467         (pthread_rwlock_timedwrlock): Adapt.
5468         * nptl/pthread_rwlock_trywrlock.c (pthread_rwlock_trywrlock): Adapt.
5469         * nptl/pthread_rwlock_tryrdlock.c (pthread_rwlock_tryrdlock): Adapt.
5470         * nptl/pthread_rwlock_unlock.c (pthread_rwlock_unlock): Adapt.
5471         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow): Remove.
5472         (__pthread_rwlock_wrlock): Adapt.
5473         * nptl/tst-rwlock10.c: Adapt.
5474         * nptl/tst-rwlock11.c: Adapt.
5475         * nptl/tst-rwlock17.c: New file.
5476         * nptl/tst-rwlock18.c: New file.
5477         * nptl/tst-rwlock19.c: New file.
5478         * nptl/tst-rwlock2b.c: New file.
5479         * nptl/tst-rwlock8.c: Adapt.
5480         * nptl/tst-rwlock9.c: Adapt.
5481         * sysdeps/aarch64/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
5482         * sysdeps/arm/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
5483         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
5484         * sysdeps/ia64/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
5485         * sysdeps/m68k/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
5486         * sysdeps/microblaze/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
5487         * sysdeps/mips/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
5488         * sysdeps/nios2/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
5489         * sysdeps/s390/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
5490         * sysdeps/sh/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
5491         * sysdeps/sparc/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
5492         * sysdeps/tile/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
5493         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
5494         (pthread_rwlock_t): Adapt.
5495         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
5496         (pthread_rwlock_t): Adapt.
5497         * sysdeps/x86/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
5498         * nptl/nptl-printers.py (): Adapt.
5499         * nptl/nptl_lock_constants.pysym: Adapt.
5500         * nptl/test-rwlock-printers.py: Adapt.
5501         * nptl/test-rwlockattr-printers.c: Adapt.
5502         * nptl/test-rwlockattr-printers.py: Adapt.
5503
5504 2017-01-10  Joseph Myers  <joseph@codesourcery.com>
5505
5506         * math/libm-test.inc (XFAIL_IBM128_LIBGCC): New macro.
5507         (fdim_test_data): Use XFAIL_ROUNDING_IBM128_LIBGCC for some tests.
5508         (fma_test_data): Likewise.
5509         (hypot_test_data): Likewise.
5510         (log1p_test_data): Likewise.
5511         (modf_test_data): Likewise.
5512         (pow_test_data): Likewise.
5513         (remainder_test_data): Likewise.
5514         (remquo_test_data): Likewise.
5515         (scalb_test_data): Likewise.
5516         (scalbn_test_data): Likewise.
5517         (scalbln_test_data): Likewise.
5518         * math/gen-libm-test.pl (parse_args): Transform
5519         XFAIL_ROUNDING_IBM128_LIBGCC to XFAIL_IBM128_LIBGCC or 0 depending
5520         on the rounding mode.
5521
5522 2017-01-09  Joseph Myers  <joseph@codesourcery.com>
5523
5524         * math/gen-auto-libm-tests.c (output_for_one_input_case): Apply
5525         xfail-rounding:ibm128-libgcc automatically to tests overflowing
5526         and those that can underflow to zero.
5527         * math/auto-libm-test-in: Remove most XFAILs for ibm128-libgcc and
5528         add others.
5529         * math/auto-libm-test-out: Regenerated.
5530
5531         * math/test-fenv.c (fe_tests): Skip most tests when exceptions not
5532         supported.
5533         (feholdexcept_tests): Skip tests requiring exceptions or rounding
5534         modes support if not supported.
5535
5536         * sysdeps/unix/sysv/linux/microblaze/localplt.data (__pread64):
5537         Add libc.so PLT entry.
5538         (__tls_get_addr): Make ld.so PLT entry optional.
5539
5540 2017-01-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5541
5542         * string/bits/strings_fortified.h (explicit_bzero): Move back to ..
5543         * string/bits/string3.h: ... here.
5544
5545 2017-01-05  Joseph Myers  <joseph@codesourcery.com>
5546
5547         [BZ #21028]
5548         * math/fsetexcptflg.c (__fesetexceptflag): Always return 0.
5549         * math/test-fexcept.c (test_set): Allow failure of feraiseexcept
5550         if EXCEPTION_TESTS returns false.
5551
5552 2017-01-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5553
5554         [BZ #20558]
5555         * string/bits/string3.h [__USE_MISC] (bcopy): Move to
5556         strings_fortified.h.
5557         [__USE_MISC] (bzero): Likewise.
5558         [__USE_MISC] (explicit_bzero): Likewise.
5559         * string/strings.h: Include strings_fortified.h.
5560         * string/Makefile (headers): Add strings_fortified.h.
5561         * string/bits/strings_fortified.h: New file.
5562         * include/bits/strings_fortified.h: Likewise.
5563
5564 2017-01-05  Joseph Myers  <joseph@codesourcery.com>
5565
5566         * elf/tst-tls13.c (TIMEOUT): Remove.
5567         * iconvdata/tst-loading.c (TIMEOUT): Likewise.
5568         * malloc/tst-malloc-thread-fail.c (TIMEOUT): Increase to 100.
5569         * malloc/tst-mallocfork2.c (TIMEOUT): Define to 100.
5570         * nss/tst-cancel-getpwuid_r.c (TIMEOUT): Define to 900.
5571         * nss/tst-nss-getpwent.c (TIMEOUT): Define to 300.
5572
5573         [BZ #21026]
5574         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list
5575         (readahead): New syscall entry.
5576
5577 2017-01-04  Joseph Myers  <joseph@codesourcery.com>
5578
5579         * string/tester.c (test_strncat): Disable -Wstringop-overflow=
5580         around tests of strncat with large sizes.
5581
5582         * malloc/tst-malloc.c: Include <libc-internal.h>.
5583         (do_test): Disable -Walloc-size-larger-than= around tests of
5584         malloc with negative sizes.
5585         * malloc/tst-mcheck.c: Include <libc-internal.h>.
5586         (do_test): Disable -Walloc-size-larger-than= around tests of
5587         malloc and realloc with negative sizes.
5588         * malloc/tst-realloc.c: Include <libc-internal.h>.
5589         (do_test): Disable -Walloc-size-larger-than= around tests of
5590         realloc with negative sizes.
5591
5592         * math/libm-test.inc (TEST_COND_ibm128_libgcc): New macro.
5593         (init_max_error) [TEST_COND_ibm128]: Increase maximum error
5594         allowed to 16 ulps.
5595         * math/auto-libm-test-in: Change most XFAILs for ibm128 to use
5596         ibm128-libgcc.  XFAIL more tests for ibm128-libgcc.
5597         * math/auto-libm-test-out: Regenerated.
5598
5599 2017-01-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
5600
5601         * math/Makefile (libm-calls): Move wrappers...
5602         (libm-compat-call-auto): Here.
5603         (libm-routines): Add items in libm-compat-calls-auto.
5604         * sysdeps/powerpc/nofpu/Makefile: Add suffix ("_compat") to
5605         the filenames of the wrappers that have been renamed.
5606         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Likewise.
5607         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
5608
5609         * math/w_acos.c: Add _compat suffix to filename.
5610         * math/w_acosf.c: Likewise.
5611         * math/w_acosh.c: Likewise.
5612         * math/w_acoshf.c: Likewise.
5613         * math/w_acoshl.c: Likewise.
5614         * math/w_acosl.c: Likewise.
5615         * math/w_asin.c: Likewise.
5616         * math/w_asinf.c: Likewise.
5617         * math/w_asinl.c: Likewise.
5618         * math/w_atan2.c: Likewise.
5619         * math/w_atan2f.c: Likewise.
5620         * math/w_atan2l.c: Likewise.
5621         * math/w_atanh.c: Likewise.
5622         * math/w_atanhf.c: Likewise.
5623         * math/w_atanhl.c: Likewise.
5624         * math/w_cosh.c: Likewise.
5625         * math/w_coshf.c: Likewise.
5626         * math/w_coshl.c: Likewise.
5627         * math/w_exp10.c: Likewise.
5628         * math/w_exp10f.c: Likewise.
5629         * math/w_exp10l.c: Likewise.
5630         * math/w_exp2.c: Likewise.
5631         * math/w_exp2f.c: Likewise.
5632         * math/w_exp2l.c: Likewise.
5633         * math/w_fmod.c: Likewise.
5634         * math/w_fmodf.c: Likewise.
5635         * math/w_fmodl.c: Likewise.
5636         * math/w_hypot.c: Likewise.
5637         * math/w_hypotf.c: Likewise.
5638         * math/w_hypotl.c: Likewise.
5639         * math/w_j0.c: Likewise.
5640         * math/w_j0f.c: Likewise.
5641         * math/w_j0l.c: Likewise.
5642         * math/w_j1.c: Likewise.
5643         * math/w_j1f.c: Likewise.
5644         * math/w_j1l.c: Likewise.
5645         * math/w_jn.c: Likewise.
5646         * math/w_jnf.c: Likewise.
5647         * math/w_jnl.c: Likewise.
5648         * math/w_log10.c: Likewise.
5649         * math/w_log10f.c: Likewise.
5650         * math/w_log10l.c: Likewise.
5651         * math/w_log2.c: Likewise.
5652         * math/w_log2f.c: Likewise.
5653         * math/w_log2l.c: Likewise.
5654         * math/w_log.c: Likewise.
5655         * math/w_logf.c: Likewise.
5656         * math/w_logl.c: Likewise.
5657         * math/w_pow.c: Likewise.
5658         * math/w_powf.c: Likewise.
5659         * math/w_powl.c: Likewise.
5660         * math/w_remainder.c: Likewise.
5661         * math/w_remainderf.c: Likewise.
5662         * math/w_remainderl.c: Likewise.
5663         * math/w_scalb.c: Likewise.
5664         * math/w_scalbf.c: Likewise.
5665         * math/w_scalbl.c: Likewise.
5666         * math/w_sinh.c: Likewise.
5667         * math/w_sinhf.c: Likewise.
5668         * math/w_sinhl.c: Likewise.
5669         * math/w_sqrt.c: Likewise.
5670         * math/w_sqrtf.c: Likewise.
5671         * math/w_sqrtl.c: Likewise.
5672         * math/w_tgamma.c: Likewise.
5673         * math/w_tgammaf.c: Likewise.
5674         * math/w_tgammal.c: Likewise.
5675
5676         * math/w_acos_compat.c: New file copied from above and
5677         adjusted for new #includes path
5678         * math/w_acosf_compat.c: Likewise.
5679         * math/w_acosh_compat.c: Likewise.
5680         * math/w_acoshf_compat.c: Likewise.
5681         * math/w_acoshl_compat.c: Likewise.
5682         * math/w_acosl_compat.c: Likewise.
5683         * math/w_asin_compat.c: Likewise.
5684         * math/w_asinf_compat.c: Likewise.
5685         * math/w_asinl_compat.c: Likewise.
5686         * math/w_atan2_compat.c: Likewise.
5687         * math/w_atan2f_compat.c: Likewise.
5688         * math/w_atan2l_compat.c: Likewise.
5689         * math/w_atanh_compat.c: Likewise.
5690         * math/w_atanhf_compat.c: Likewise.
5691         * math/w_atanhl_compat.c: Likewise.
5692         * math/w_cosh_compat.c: Likewise.
5693         * math/w_coshf_compat.c: Likewise.
5694         * math/w_coshl_compat.c: Likewise.
5695         * math/w_exp10_compat.c: Likewise.
5696         * math/w_exp10f_compat.c: Likewise.
5697         * math/w_exp10l_compat.c: Likewise.
5698         * math/w_exp2_compat.c: Likewise.
5699         * math/w_exp2f_compat.c: Likewise.
5700         * math/w_exp2l_compat.c: Likewise.
5701         * math/w_fmod_compat.c: Likewise.
5702         * math/w_fmodf_compat.c: Likewise.
5703         * math/w_fmodl_compat.c: Likewise.
5704         * math/w_hypot_compat.c: Likewise.
5705         * math/w_hypotf_compat.c: Likewise.
5706         * math/w_hypotl_compat.c: Likewise.
5707         * math/w_j0_compat.c: Likewise.
5708         * math/w_j0f_compat.c: Likewise.
5709         * math/w_j0l_compat.c: Likewise.
5710         * math/w_j1_compat.c: Likewise.
5711         * math/w_j1f_compat.c: Likewise.
5712         * math/w_j1l_compat.c: Likewise.
5713         * math/w_jn_compat.c: Likewise.
5714         * math/w_jnf_compat.c: Likewise.
5715         * math/w_jnl_compat.c: Likewise.
5716         * math/w_log10_compat.c: Likewise.
5717         * math/w_log10f_compat.c: Likewise.
5718         * math/w_log10l_compat.c: Likewise.
5719         * math/w_log2_compat.c: Likewise.
5720         * math/w_log2f_compat.c: Likewise.
5721         * math/w_log2l_compat.c: Likewise.
5722         * math/w_log_compat.c: Likewise.
5723         * math/w_logf_compat.c: Likewise.
5724         * math/w_logl_compat.c: Likewise.
5725         * math/w_pow_compat.c: Likewise.
5726         * math/w_powf_compat.c: Likewise.
5727         * math/w_powl_compat.c: Likewise.
5728         * math/w_remainder_compat.c: Likewise.
5729         * math/w_remainderf_compat.c: Likewise.
5730         * math/w_remainderl_compat.c: Likewise.
5731         * math/w_scalb_compat.c: Likewise.
5732         * math/w_scalbf_compat.c: Likewise.
5733         * math/w_scalbl_compat.c: Likewise.
5734         * math/w_sinh_compat.c: Likewise.
5735         * math/w_sinhf_compat.c: Likewise.
5736         * math/w_sinhl_compat.c: Likewise.
5737         * math/w_sqrt_compat.c: Likewise.
5738         * math/w_sqrtf_compat.c: Likewise.
5739         * math/w_sqrtl_compat.c: Likewise.
5740         * math/w_tgamma_compat.c: Likewise.
5741         * math/w_tgammaf_compat.c: Likewise.
5742         * math/w_tgammal_compat.c: Likewise.
5743
5744         * sysdeps/i386/fpu/w_sqrt.c: Add _compat suffix to filename.
5745         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
5746         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
5747         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
5748         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
5749         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
5750         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
5751         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
5752         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
5753         * sysdeps/ia64/fpu/w_scalbl.c: Likewise.
5754         * sysdeps/ia64/fpu/w_scalbf.c: Likewise.
5755         * sysdeps/ia64/fpu/w_scalb.c: Likewise.
5756         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
5757         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
5758         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
5759         * sysdeps/ia64/fpu/w_powl.c: Likewise.
5760         * sysdeps/ia64/fpu/w_powf.c: Likewise.
5761         * sysdeps/ia64/fpu/w_pow.c: Likewise.
5762         * sysdeps/ia64/fpu/w_logl.c: Likewise.
5763         * sysdeps/ia64/fpu/w_logf.c: Likewise.
5764         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
5765         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
5766         * sysdeps/ia64/fpu/w_log2.c: Likewise.
5767         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
5768         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
5769         * sysdeps/ia64/fpu/w_log10.c: Likewise.
5770         * sysdeps/ia64/fpu/w_log.c: Likewise.
5771         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
5772         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
5773         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
5774         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
5775         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
5776         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
5777         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
5778         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
5779         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
5780         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
5781         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
5782         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
5783         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
5784         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
5785         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
5786         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
5787         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
5788         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
5789         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
5790         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
5791         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
5792         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
5793         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
5794         * sysdeps/ia64/fpu/w_asin.c: Likewise.
5795         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
5796         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
5797         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
5798         * sysdeps/ia64/fpu/w_acos.c: Likewise.
5799         * sysdeps/ia64/fpu/w_tgamma.S: Likewise.
5800         * sysdeps/ia64/fpu/w_tgammaf.S: Likewise.
5801         * sysdeps/ia64/fpu/w_tgammal.S: Likewise.
5802         * sysdeps/ieee754/ldbl-opt/w_acos.c: Likewise.
5803         * sysdeps/ieee754/ldbl-opt/w_acosh.c: Likewise.
5804         * sysdeps/ieee754/ldbl-opt/w_acoshl.c: Likewise.
5805         * sysdeps/ieee754/ldbl-opt/w_acosl.c: Likewise.
5806         * sysdeps/ieee754/ldbl-opt/w_asin.c: Likewise.
5807         * sysdeps/ieee754/ldbl-opt/w_asinl.c: Likewise.
5808         * sysdeps/ieee754/ldbl-opt/w_atan2.c: Likewise.
5809         * sysdeps/ieee754/ldbl-opt/w_atan2l.c: Likewise.
5810         * sysdeps/ieee754/ldbl-opt/w_atanh.c: Likewise.
5811         * sysdeps/ieee754/ldbl-opt/w_atanhl.c: Likewise.
5812         * sysdeps/ieee754/ldbl-opt/w_cosh.c: Likewise.
5813         * sysdeps/ieee754/ldbl-opt/w_coshl.c: Likewise.
5814         * sysdeps/ieee754/ldbl-opt/w_exp10.c: Likewise.
5815         * sysdeps/ieee754/ldbl-opt/w_exp10l.c: Likewise.
5816         * sysdeps/ieee754/ldbl-opt/w_fmod.c: Likewise.
5817         * sysdeps/ieee754/ldbl-opt/w_fmodl.c: Likewise.
5818         * sysdeps/ieee754/ldbl-opt/w_hypot.c: Likewise.
5819         * sysdeps/ieee754/ldbl-opt/w_hypotl.c: Likewise.
5820         * sysdeps/ieee754/ldbl-opt/w_j0.c: Likewise.
5821         * sysdeps/ieee754/ldbl-opt/w_j0l.c: Likewise.
5822         * sysdeps/ieee754/ldbl-opt/w_j1.c: Likewise.
5823         * sysdeps/ieee754/ldbl-opt/w_j1l.c: Likewise.
5824         * sysdeps/ieee754/ldbl-opt/w_jn.c: Likewise.
5825         * sysdeps/ieee754/ldbl-opt/w_jnl.c: Likewise.
5826         * sysdeps/ieee754/ldbl-opt/w_log10.c: Likewise.
5827         * sysdeps/ieee754/ldbl-opt/w_log10l.c: Likewise.
5828         * sysdeps/ieee754/ldbl-opt/w_log2.c: Likewise.
5829         * sysdeps/ieee754/ldbl-opt/w_log2l.c: Likewise.
5830         * sysdeps/ieee754/ldbl-opt/w_log.c: Likewise.
5831         * sysdeps/ieee754/ldbl-opt/w_logl.c: Likewise.
5832         * sysdeps/ieee754/ldbl-opt/w_pow.c: Likewise.
5833         * sysdeps/ieee754/ldbl-opt/w_powl.c: Likewise.
5834         * sysdeps/ieee754/ldbl-opt/w_remainder.c: Likewise.
5835         * sysdeps/ieee754/ldbl-opt/w_remainderl.c: Likewise.
5836         * sysdeps/ieee754/ldbl-opt/w_scalb.c: Likewise.
5837         * sysdeps/ieee754/ldbl-opt/w_scalbl.c: Likewise.
5838         * sysdeps/ieee754/ldbl-opt/w_sinh.c: Likewise.
5839         * sysdeps/ieee754/ldbl-opt/w_sinhl.c: Likewise.
5840         * sysdeps/ieee754/ldbl-opt/w_sqrt.c: Likewise.
5841         * sysdeps/ieee754/ldbl-opt/w_sqrtl.c: Likewise.
5842         * sysdeps/ieee754/ldbl-opt/w_tgamma.c: Likewise.
5843         * sysdeps/ieee754/ldbl-opt/w_tgammal.c: Likewise.
5844         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S:
5845         Likewise.
5846         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S:
5847         Likewise.
5848         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: Likewise.
5849         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S:
5850         Likewise.
5851         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S:
5852         Likewise.
5853         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: Likewise.
5854         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
5855         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
5856         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
5857         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
5858         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
5859         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
5860         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: Likewise.
5861         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
5862         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: Likewise.
5863         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
5864         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
5865         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
5866         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
5867         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
5868
5869         * sysdeps/i386/fpu/w_sqrt_compat.c: New file copied from above
5870         and adjusted for new #includes path
5871         * sysdeps/ia64/fpu/w_acos_compat.c: Likewise.
5872         * sysdeps/ia64/fpu/w_acosf_compat.c: Likewise.
5873         * sysdeps/ia64/fpu/w_acosh_compat.c: Likewise.
5874         * sysdeps/ia64/fpu/w_acoshf_compat.c: Likewise.
5875         * sysdeps/ia64/fpu/w_acoshl_compat.c: Likewise.
5876         * sysdeps/ia64/fpu/w_acosl_compat.c: Likewise.
5877         * sysdeps/ia64/fpu/w_asin_compat.c: Likewise.
5878         * sysdeps/ia64/fpu/w_asinf_compat.c: Likewise.
5879         * sysdeps/ia64/fpu/w_asinl_compat.c: Likewise.
5880         * sysdeps/ia64/fpu/w_atan2_compat.c: Likewise.
5881         * sysdeps/ia64/fpu/w_atan2f_compat.c: Likewise.
5882         * sysdeps/ia64/fpu/w_atan2l_compat.c: Likewise.
5883         * sysdeps/ia64/fpu/w_atanh_compat.c: Likewise.
5884         * sysdeps/ia64/fpu/w_atanhf_compat.c: Likewise.
5885         * sysdeps/ia64/fpu/w_atanhl_compat.c: Likewise.
5886         * sysdeps/ia64/fpu/w_cosh_compat.c: Likewise.
5887         * sysdeps/ia64/fpu/w_coshf_compat.c: Likewise.
5888         * sysdeps/ia64/fpu/w_coshl_compat.c: Likewise.
5889         * sysdeps/ia64/fpu/w_exp10_compat.c: Likewise.
5890         * sysdeps/ia64/fpu/w_exp10f_compat.c: Likewise.
5891         * sysdeps/ia64/fpu/w_exp10l_compat.c: Likewise.
5892         * sysdeps/ia64/fpu/w_exp2_compat.c: Likewise.
5893         * sysdeps/ia64/fpu/w_exp2f_compat.c: Likewise.
5894         * sysdeps/ia64/fpu/w_exp2l_compat.c: Likewise.
5895         * sysdeps/ia64/fpu/w_fmod_compat.c: Likewise.
5896         * sysdeps/ia64/fpu/w_fmodf_compat.c: Likewise.
5897         * sysdeps/ia64/fpu/w_fmodl_compat.c: Likewise.
5898         * sysdeps/ia64/fpu/w_hypot_compat.c: Likewise.
5899         * sysdeps/ia64/fpu/w_hypotf_compat.c: Likewise.
5900         * sysdeps/ia64/fpu/w_hypotl_compat.c: Likewise.
5901         * sysdeps/ia64/fpu/w_log10_compat.c: Likewise.
5902         * sysdeps/ia64/fpu/w_log10f_compat.c: Likewise.
5903         * sysdeps/ia64/fpu/w_log10l_compat.c: Likewise.
5904         * sysdeps/ia64/fpu/w_log2_compat.c: Likewise.
5905         * sysdeps/ia64/fpu/w_log2f_compat.c: Likewise.
5906         * sysdeps/ia64/fpu/w_log2l_compat.c: Likewise.
5907         * sysdeps/ia64/fpu/w_log_compat.c: Likewise.
5908         * sysdeps/ia64/fpu/w_logf_compat.c: Likewise.
5909         * sysdeps/ia64/fpu/w_logl_compat.c: Likewise.
5910         * sysdeps/ia64/fpu/w_pow_compat.c: Likewise.
5911         * sysdeps/ia64/fpu/w_powf_compat.c: Likewise.
5912         * sysdeps/ia64/fpu/w_powl_compat.c: Likewise.
5913         * sysdeps/ia64/fpu/w_remainder_compat.c: Likewise.
5914         * sysdeps/ia64/fpu/w_remainderf_compat.c: Likewise.
5915         * sysdeps/ia64/fpu/w_remainderl_compat.c: Likewise.
5916         * sysdeps/ia64/fpu/w_scalb_compat.c: Likewise.
5917         * sysdeps/ia64/fpu/w_scalbf_compat.c: Likewise.
5918         * sysdeps/ia64/fpu/w_scalbl_compat.c: Likewise.
5919         * sysdeps/ia64/fpu/w_sinh_compat.c: Likewise.
5920         * sysdeps/ia64/fpu/w_sinhf_compat.c: Likewise.
5921         * sysdeps/ia64/fpu/w_sinhl_compat.c: Likewise.
5922         * sysdeps/ia64/fpu/w_sqrt_compat.c: Likewise.
5923         * sysdeps/ia64/fpu/w_sqrtf_compat.c: Likewise.
5924         * sysdeps/ia64/fpu/w_sqrtl_compat.c: Likewise.
5925         * sysdeps/ia64/fpu/w_tgamma_compat.S: Likewise.
5926         * sysdeps/ia64/fpu/w_tgammaf_compat.S: Likewise.
5927         * sysdeps/ia64/fpu/w_tgammal_compat.S: Likewise.
5928         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Likewise.
5929         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
5930         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
5931         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
5932         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
5933         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
5934         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
5935         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
5936         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
5937         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
5938         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
5939         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
5940         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c: Likewise.
5941         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Likewise.
5942         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
5943         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
5944         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
5945         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
5946         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
5947         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
5948         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
5949         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
5950         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
5951         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
5952         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
5953         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
5954         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
5955         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
5956         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
5957         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
5958         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
5959         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
5960         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c: Likewise.
5961         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
5962         * sysdeps/ieee754/ldbl-opt/w_scalb_compat.c: Likewise.
5963         * sysdeps/ieee754/ldbl-opt/w_scalbl_compat.c: Likewise.
5964         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
5965         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
5966         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
5967         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
5968         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
5969         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
5970         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
5971         Likewise.
5972         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
5973         Likewise.
5974         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
5975         Likewise.
5976         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
5977         Likewise.
5978         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
5979         Likewise.
5980         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
5981         Likewise.
5982         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
5983         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
5984         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
5985         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
5986         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
5987         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
5988         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
5989         Likewise.
5990         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
5991         Likewise.
5992         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
5993         Likewise.
5994         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
5995         Likewise.
5996         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
5997         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
5998         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
5999         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
6000
6001 2017-01-04  Joseph Myers  <joseph@codesourcery.com>
6002
6003         * sysdeps/microblaze/bits/setjmp.h (__jmp_buf): Give struct tag
6004         __jmp_buf_internal_tag.
6005
6006         * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Always
6007         preserve NaN payload if [__mips_nan2008].
6008         * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
6009
6010         [BZ #21022]
6011         * sysdeps/microblaze/backtrace.c (get_frame_size): Make static.
6012
6013 2017-01-03  Joseph Myers  <joseph@codesourcery.com>
6014
6015         * sysdeps/i386/fpu/libm-test-ulps: Update.
6016
6017 2017-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6018
6019         * sysdeps/ia64/strcat.c: Remove file.
6020         * sysdeps/powerpc/strcat.c: Likewise.
6021         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Use default
6022         C implementation.
6023         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: Likewise.
6024         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: Likewise.
6025
6026 2017-01-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6027             Steven Munroe  <sjmunroe@us.ibm.com>
6028             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6029
6030         [BZ #20822]
6031         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
6032         (__lll_lock_elision): Access adapt_count via C11 atomics.
6033         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
6034         (__lll_trylock_elision): Likewise.
6035         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
6036         (__lll_unlock_elision):  Update adapt_count variable inside the
6037         critical section using C11 atomics.
6038
6039 2017-01-03  Joseph Myers  <joseph@codesourcery.com>
6040
6041         * math/test-fenvinline.c (do_test): Disable tests of raised
6042         exceptions if !EXCEPTION_TESTS (FLOAT).
6043
6044 2017-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6045
6046         [BZ #19390]
6047         * string/test-strncat.c (test_main): Add tests with SIZE_MAX as
6048         maximum string size.
6049         * sysdeps/i386/i686/multiarch/strcat-sse2.S (STRCAT): Avoid overflow
6050         in pointer addition.
6051         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S (STRCPY):
6052         Likewise.
6053
6054 2017-01-03  Joseph Myers  <joseph@codesourcery.com>
6055
6056         * elf/Makefile ($(objpfx)tst-ldconfig-X.out): Correct arguments
6057         passed to tst-ldconfig-X.sh.
6058
6059 2017-01-03  Martin Galvan  <martingalvan@sourceware.org>
6060
6061         * nptl/nptl-printers.py: Fix tabs/spaces mismatches.
6062
6063 2017-01-02  Joseph Myers  <joseph@codesourcery.com>
6064
6065         [BZ #21019]
6066         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (lseek64):
6067         New syscall entry.
6068         * sysdeps/unix/sysv/linux/mips/mips64/n32/lseek.c: New file.
6069         * io/test-lfs.c (do_test): Test offset returned from lseek64 and
6070         lseek.
6071
6072         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
6073         power4 glibc for powerpc-linux-gnu.
6074
6075 2017-01-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6076
6077         * sysvipc/test-sysvsem.c (do_test): Define and use union semun on
6078         semctl.
6079
6080 2017-01-02  Joseph Myers  <joseph@codesourcery.com>
6081
6082         * math/test-nearbyint-except.c: Include <stdbool.h>.
6083         (any_supported): New variable.
6084         (TEST_FUNC): Return early if !EXCEPTION_TESTS (FLOAT).  Otherwise
6085         set any_supported.
6086         (do_test): Return 77 if no floating-point type supported
6087         exceptions.
6088
6089         * sysdeps/mips/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD): Do not
6090         condition on [__mips_hard_float].
6091
6092 2017-01-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6093
6094         [BZ #21014]
6095         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S (MEMCHR): Avoid overflow
6096         in pointer addition.
6097         * sysdeps/i386/i686/multiarch/memchr-sse2.S (MEMCHR): Likewise.
6098
6099 2017-01-02  Torvald Riegel  <triegel@redhat.com>
6100
6101         * sysdeps/sparc/nptl/bits/pthreadtypes.h (pthread_cond_t): Adapt to
6102         new condvar.
6103
6104 2017-01-02  Joseph Myers  <joseph@codesourcery.com>
6105
6106         * scripts/build-many-glibcs.py (Context.checkout): Default
6107         binutils version to 2.28 branch.
6108
6109 2017-01-01  Florian Weimer  <fweimer@redhat.com>
6110
6111         * support/support_format_netent.c (support_format_netent): Work
6112         around alpha struct netent definition difference.
6113
6114 2017-01-01  Florian Weimer  <fweimer@redhat.com>
6115
6116         * support/xwrite.c (xwrite): Use %td for pointer difference.
6117
6118 2017-01-01  Florian Weimer  <fweimer@redhat.com>
6119
6120         * malloc/Makefile (tests): Add tst-malloc-usable-tunables for
6121         have-tunables only.
6122         (tests-static): Add tst-malloc-usable-static-tunables for
6123         have-tunables only.
6124
6125 2017-01-01  Joseph Myers  <joseph@codesourcery.com>
6126
6127         * scripts/config.guess: Update to version 2017-01-01.
6128         * scripts/config.sub: Update to version 2017-01-01.
6129
6130         * NEWS: Update copyright dates.
6131         * catgets/gencat.c (print_version): Likewise.
6132         * csu/version.c (banner): Likewise.
6133         * debug/catchsegv.sh: Likewise.
6134         * debug/pcprofiledump.c (print_version): Likewise.
6135         * debug/xtrace.sh (do_version): Likewise.
6136         * elf/ldconfig.c (print_version): Likewise.
6137         * elf/ldd.bash.in: Likewise.
6138         * elf/pldd.c (print_version): Likewise.
6139         * elf/sotruss.sh: Likewise.
6140         * elf/sprof.c (print_version): Likewise.
6141         * iconv/iconv_prog.c (print_version): Likewise.
6142         * iconv/iconvconfig.c (print_version): Likewise.
6143         * locale/programs/locale.c (print_version): Likewise.
6144         * locale/programs/localedef.c (print_version): Likewise.
6145         * login/programs/pt_chown.c (print_version): Likewise.
6146         * malloc/memusage.sh (do_version): Likewise.
6147         * malloc/memusagestat.c (print_version): Likewise.
6148         * malloc/mtrace.pl: Likewise.
6149         * manual/libc.texinfo: Likewise.
6150         * nptl/version.c (banner): Likewise.
6151         * nscd/nscd.c (print_version): Likewise.
6152         * nss/getent.c (print_version): Likewise.
6153         * nss/makedb.c (print_version): Likewise.
6154         * posix/getconf.c (main): Likewise.
6155         * scripts/test-installation.pl: Likewise.
6156         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
6157
6158         * All files with FSF copyright notices: Update copyright dates
6159         using scripts/update-copyrights.
6160         * intl/plural.c: Regenerated.
6161         * locale/programs/charmap-kw.h: Likewise.
6162         * locale/programs/locfile-kw.h: Likewise.
6163
6164 2016-12-31  Florian Weimer  <fweimer@redhat.com>
6165
6166         [BZ #20593]
6167         Update DNS RR type definitions.
6168         * scripts/gen-rrtypes.py: New file.
6169         * resolv/arpa/nameser.h (ns_type): Remove ns_t_zxfr, a
6170         BIND-internal RR type not used on the Internet.  Add ns_t_ds,
6171         ns_t_sshfp, ns_t_ipseckey, ns_t_rrsig, ns_t_nsec, ns_t_dnskey,
6172         ns_t_dhcid, ns_t_nsec3, ns_t_nsec3param, ns_t_tlsa, ns_t_smimea,
6173         ns_t_hip, ns_t_ninfo, ns_t_rkey, ns_t_talink, ns_t_cds,
6174         ns_t_cdnskey, ns_t_openpgpkey, ns_t_csync, ns_t_spf, ns_t_uinfo,
6175         ns_t_uid, ns_t_gid, ns_t_unspec, ns_t_nid, ns_t_l32, ns_t_l64,
6176         ns_t_lp, ns_t_eui48, ns_t_eui64, ns_t_uri, ns_t_caa, ns_t_avc,
6177         ns_t_ta, ns_t_dlv.
6178         * resolv/arpa/nameser_compat.h (T_KX, T_CERT, T_SINK, T_OPT)
6179         (T_APL, T_DS, T_SSHFP, T_IPSECKEY, T_RRSIG, T_NSEC, T_DNSKEY)
6180         (T_DHCID, T_NSEC3, T_NSEC3PARAM, T_TLSA, T_SMIMEA, T_HIP, T_NINFO)
6181         (T_RKEY, T_TALINK, T_CDS, T_CDNSKEY, T_OPENPGPKEY, T_CSYNC, T_SPF)
6182         (T_UINFO, T_UID, T_GID, T_UNSPEC, T_NID, T_L32, T_L64, T_LP)
6183         (T_EUI48, T_EUI64, T_TKEY, T_URI, T_CAA, T_AVC, T_TA, T_DLV):
6184         Define.
6185         * resolv/res_debug.c (__p_type_syms): Update comment.  Remove
6186         entry for ns_t_zxfr.
6187
6188 2016-12-31  Florian Weimer  <fweimer@redhat.com>
6189
6190         [BZ #18784]
6191         CVE-2015-5180
6192         * include/arpa/nameser_compat.h (T_QUERY_A_AND_AAAA): Rename from
6193         T_UNSPEC.  Adjust value.
6194         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Use it.
6195         * resolv/res_query.c (__libc_res_nquery): Likewise.
6196         * resolv/res_mkquery.c (res_nmkquery): Check for out-of-range
6197         QTYPEs.
6198         * resolv/tst-resolv-qtypes.c: New file.
6199         * resolv/Makefile (xtests): Add tst-resolv-qtypes.
6200         (tst-resolv-qtypes): Link against libresolv and libpthread.
6201
6202 2016-12-31  Florian Weimer  <fweimer@redhat.com>
6203
6204         * elf/dl-tunables.h (__tunables_init): Fix unused attribute.
6205
6206 2016-12-31  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6207
6208         * manual/tunables.texi: New chapter.
6209         * manual/Makefile (chapters): Add it.
6210         * manual/probes.texi (@node): Point to the Tunables chapter.
6211
6212         * Makeconfig (have-tunables): Check for non-negative instead
6213         of positive.
6214         * configure.ac: Add 'valstring' as a valid value for
6215         --enable-tunables.
6216         * configure: Regenerate.
6217         * elf/Makefile (have-tunables): Check for non-negative instead
6218         of positive.
6219         (CPPFLAGS-dl-tunables.c): Define TUNABLES_FRONTEND for
6220         dl-tunables.c.
6221         * elf/dl-tunables.c (GLIBC_TUNABLES): Define only when
6222         TUNABLES_FRONTEND == TUNABLES_FRONTEND_valstring.
6223         (tunables_strdup): Likewise.
6224         (disable_tunables): Likewise.
6225         (parse_tunables): Likewise.
6226         (__tunables_init): Process GLIBC_TUNABLES envvar only when.
6227         TUNABLES_FRONTEND == TUNABLES_FRONTEND_valstring.
6228         * elf/dl-tunables.h (TUNABLES_FRONTEND_valstring): New macro.
6229         (TUNABLES_FRONTEND_yes): New macro, define as
6230         TUNABLES_FRONTEND_valstring by default.
6231         * manual/install.texi: Document new acceptable values for
6232         --enable-tunables.
6233         * INSTALL: Regenerate.
6234
6235         * config.make.in (have-loop-to-function): Define.
6236         * elf/Makefile (CFLAGS-dl-tunables.c): Add
6237         -fno-tree-loop-distribute-patterns.
6238         * elf/dl-tunables.c: Include libc-internals.h.
6239         (GLIBC_TUNABLES): New macro.
6240         (tunables_strdup): New function.
6241         (parse_tunables): New function.
6242         (min_strlen): New function.
6243         (__tunables_init): Use the new functions and macro.
6244         (disable_tunable): Disable tunable from GLIBC_TUNABLES.
6245         * malloc/tst-malloc-usable-tunables.c: New test case.
6246         * malloc/tst-malloc-usable-static-tunables.c: New test case.
6247         * malloc/Makefile (tests, tests-static): Add tests.
6248
6249         * manual/install.texi: Add --enable-tunables option.
6250         * INSTALL: Regenerate.
6251         * README.tunables: New file.
6252         * Makeconfig (CPPFLAGS): Define TOP_NAMESPACE.
6253         (before-compile): Generate dl-tunable-list.h early.
6254         * config.h.in: Add HAVE_TUNABLES.
6255         * config.make.in: Add have-tunables.
6256         * configure.ac: Add --enable-tunables option.
6257         * configure: Regenerate.
6258         * csu/init-first.c (__libc_init_first): Move
6259         __libc_init_secure earlier...
6260         * csu/init-first.c (LIBC_START_MAIN):... to here.
6261         Include dl-tunables.h, libc-internal.h.
6262         (LIBC_START_MAIN) [!SHARED]: Initialize tunables for static
6263         binaries.
6264         * elf/Makefile (dl-routines): Add dl-tunables.
6265         * elf/Versions (ld): Add __tunable_set_val to GLIBC_PRIVATE
6266         namespace.
6267         * elf/dl-support (_dl_nondynamic_init): Unset MALLOC_CHECK_
6268         only when !HAVE_TUNABLES.
6269         * elf/rtld.c (process_envvars): Likewise.
6270         * elf/dl-sysdep.c [HAVE_TUNABLES]: Include dl-tunables.h
6271         (_dl_sysdep_start): Call __tunables_init.
6272         * elf/dl-tunable-types.h: New file.
6273         * elf/dl-tunables.c: New file.
6274         * elf/dl-tunables.h: New file.
6275         * elf/dl-tunables.list: New file.
6276         * malloc/tst-malloc-usable-static.c: New test case.
6277         * malloc/Makefile (tests-static): Add it.
6278         * malloc/arena.c [HAVE_TUNABLES]: Include dl-tunables.h.
6279         Define TUNABLE_NAMESPACE.
6280         (DL_TUNABLE_CALLBACK (set_mallopt_check)): New function.
6281         (DL_TUNABLE_CALLBACK_FNDECL): New macro.  Use it to define
6282         callback functions.
6283         (ptmalloc_init): Set tunable values.
6284         * scripts/gen-tunables.awk: New file.
6285         * sysdeps/mach/hurd/dl-sysdep.c: Include dl-tunables.h.
6286         (_dl_sysdep_start): Call __tunables_init.
6287
6288 2016-12-31  Florian Weimer  <fweimer@redhat.com>
6289
6290         * resolv/resolv.h (RES_BLAST): Deprecate.
6291         * resolv/res_debug.c (p_option): Remove RES_BLAST.
6292         * resolv/res_send.c (__libc_res_nsend): Remove vestigial reference
6293         to RES_BLAST.
6294
6295 2016-12-27  Florian Weimer  <fweimer@redhat.com>
6296
6297         [BZ #19582]
6298         Deprecate RES_USE_INET6.
6299         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostent_r)
6300         (_nss_nis_gethostbyname2_r, _nss_nis_gethostbyname_r)
6301         (_nss_nis_gethostbyaddr_r): Use res_use_inet6 instead of
6302         RES_USE_INET6.
6303         * nis/nss_nisplus/nisplus-hosts.c (internal_nisplus_gethostent_r)
6304         (_nss_nisplus_gethostbyname2_r, _nss_nisplus_gethostbyname_r)
6305         (_nss_nisplus_gethostbyaddr_r): Likewise.
6306         * nscd/aicache.c (addhstaiX): Use DEPRECATED_RES_USE_INET6 instead
6307         of res_use_inet6.
6308         * nscd/nscd_gethst_r.c (__nscd_gethostbyname_r): Use res_use_inet6
6309         instead of RES_USE_INET6.
6310         * nss/digits_dots.c (__nss_hostname_digits_dots): Likewise.
6311         * nss/nss_files/files-hosts.c (EXTRA_ARGS_VALUE)
6312         (_nss_files_gethostbyname3_r, _nss_files_gethostbyname_r):
6313         Likewise.
6314         * resolv/compat-gethnamaddr.c (getanswer, res_gethostbyname)
6315         (res_gethostbyname2, res_gethostbyaddr, _gethtent, _gethtbyname):
6316         Likewise.
6317         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r)
6318         (_nss_dns_gethostbyname_r): Likewise.
6319         (_nss_dns_gethostbyaddr2_r): Remove commented-out code for
6320         alternate RES_USE_INET6 handling.
6321         * resolv/res_debug.c (p_option): Use DEPRECATED_RES_USE_INET6
6322         instead of RES_USE_INET6.
6323         * resolv/res_init.c (res_setoptions): Likewise.
6324         * resolv/resolv.h (RES_USE_INET6): Mark as deprecated.
6325         * resolv/resolv-internal.h: New file.
6326         * resolv/Makefile (CFLAGS-tst-res_use_inet6.c): Use -Wno-error to
6327         make the deprecation warning non-fatal.
6328         * resolv/README (Using the resolver in multi-threaded code): Drop
6329         reference to RES_USE_INET6.
6330         * sysdeps/posix/getaddrinfo.c (gethosts, gaih_inet): Use
6331         DEPRECATED_RES_USE_INET6 instead of res_use_inet6.
6332
6333 2016-12-31  Florian Weimer  <fweimer@redhat.com>
6334
6335         * resolv/Makefile (tests): Add tst-bug18665, tst-bug18665-tcp,
6336         tst-res_use_inet6, tst-resolv-basic, tst-resolv-network,
6337         tst-resolv-search.
6338         (tst-bug18665, tst-bug18665-tcp, tst-res_use_inet6)
6339         (tst-resolv-basic, tst-resolv-network, tst-resolv-search): Link
6340         with libresolv and libpthread.
6341         * resolv/tst-bug18665.c: New file.
6342         * resolv/tst-bug18665-tcp: Likewise.
6343         * resolv/tst-res_use_inet6: Likewise.
6344         * resolv/tst-resolv-basic: Likewise.
6345         * resolv/tst-resolv-network: Likewise.
6346         * resolv/tst-resolv-search: Likewise.
6347         * support/Makefile (libsupport-routines): Add check_addrinfo,
6348         check_dns_packet, check_hostent, check_netent, resolv_test,
6349         support_format_address_family, support_format_addrinfo,
6350         support_format_dns_packet, support_format_herrno,
6351         support_format_hostent, support_format_netent, support_run_diff,
6352         xaccept, xbind, xconnect, xfclose, xfopen, xgetsockname, xlisten,
6353         xmemstream, xpoll, xpthread_once, xrecvfrom, xsendto, xsetsockopt,
6354         xstrdup, xwrite.
6355         * support/check_addrinfo.c: New file.
6356         * support/check_dns_packet.c: Likewise.
6357         * support/check_hostent.c: Likewise.
6358         * support/check_netent.c: Likewise.
6359         * support/check_nss.h: Likewise.
6360         * support/format_nss.h: Likewise.
6361         * support/resolv_test.c: Likewise.
6362         * support/resolv_test.h: Likewise.
6363         * support/run_diff.h: Likewise.
6364         * support/support_format_address_family.c: Likewise.
6365         * support/support_format_addrinfo.c: Likewise.
6366         * support/support_format_dns_packet.c: Likewise.
6367         * support/support_format_herrno.c: Likewise.
6368         * support/support_format_hostent.c: Likewise.
6369         * support/support_format_netent.c: Likewise.
6370         * support/support_run_diff.c: Likewise.
6371         * support/xaccept.c: Likewise.
6372         * support/xbind.c: Likewise.
6373         * support/xconnect.c: Likewise.
6374         * support/xfclose.c: Likewise.
6375         * support/xfopen.c: Likewise.
6376         * support/xgetsockname.c: Likewise.
6377         * support/xlisten.c: Likewise.
6378         * support/xmemstream.c: Likewise.
6379         * support/xmemstream.h: Likewise.
6380         * support/xpoll.c: Likewise.
6381         * support/xpthread_once.c: Likewise.
6382         * support/xrecvfrom.c: Likewise.
6383         * support/xsendto.c: Likewise.
6384         * support/xsetsockopt.c: Likewise.
6385         * support/xstdio.h: Likewise.
6386         * support/xstrdup.c: Likewise.
6387         * support/support.h (xstrdup): Declare.
6388         * support/xsocket.h (xsetsockopt, xgetsockname, xconnect, xbind)
6389         (xlisten, xaccept, xsendto, xrecvfrom, xpoll): Likewise.
6390         * support/xthread.h (xpthread_once): Likwise.
6391         * support/xunistd.h (xwrite): Declare.
6392
6393 2016-12-31  Florian Weimer  <fweimer@redhat.com>
6394
6395         * support/test-driver.h (TEST_DEFAULT_OPTIONS): Add --verbose.
6396         (test_verbose): Declare.
6397         * support/test-driver.c (main): Use TEST_DEFAULT_OPTIONS.
6398         * support/support_test_main.c (default_options): Likewise.
6399         (usage, support_test_main): Handle 'v'.
6400         (test_verbose): Define.
6401         * support/tst-support_record_failure.c (do_test): Use
6402         test_verbose.
6403         * support/tst-support_record_failure-2.sh (different_status): Add
6404         --verbose test.
6405
6406 2016-12-31  Florian Weimer  <fweimer@redhat.com>
6407
6408         * support/check.h (FAIL_RET, FAIL_EXIT, FAIL_EXIT1): Document that
6409         test failures are recorded.
6410         * support/check.c (support_print_failure_impl): Call
6411         support_record_failure.
6412         (support_exit_failure_impl): Call support_record_failure if status
6413         indicates failure.
6414         * support/delayed_exit.c (delayed_exit_thread): Use FAIL_EXIT1.
6415         * support/xasprintf.c (xasprintf): Likewise.
6416         * support/xfork.c (xfork): Likewise.
6417         * support/xpthread_check_return.c (xpthread_check_return):
6418         Likewise.
6419         * support/xsocket.c (xsocket): Likeweise.
6420         * support/xwaitpid.c (xwaitpid): Likewise.
6421         * support/support_record_failure.c (struct test_failures): Adjust
6422         to coding style.
6423         * support/support_test_verify_impl.c (support_test_verify_impl):
6424         Adjust error messages.
6425         * support/tst-support_record_failure-2.sh (different_status):
6426         Adjust error messages.
6427
6428 2016-12-31  Florian Weimer  <fweimer@redhat.com>
6429
6430         * support/namespace.h: New file.
6431         * support/support_become_root.c: Likewise.
6432         * support/support_enter_network_namespace.c: Likewise.
6433         * support/tst-support-namespace.c: Likewise.
6434         * support/xsocket.c: Likewise.
6435         * support/xsocket.h: Likewise.
6436         * support/Makefile (libsupport-routines): Add support_become_root,
6437         support_enter_network_namespace, xsocket.
6438         (tests): Add tst-support-namespace.
6439
6440 2016-12-31  Florian Weimer  <fweimer@redhat.com>
6441
6442         [BZ #17252]
6443         * posix/unistd.h (getentropy): Declare for __USE_MISC, not just
6444         __USE_GNU.
6445
6446 2016-12-31  Torvald Riegel  <triegel@redhat.com>
6447
6448         [BZ #13165]
6449         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast): Rewrite to
6450         use new algorithm.
6451         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
6452         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
6453         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
6454         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
6455         (__pthread_cond_timedwait): Move here from pthread_cond_timedwait.c.
6456         (__condvar_confirm_wakeup, __condvar_cancel_waiting,
6457         __condvar_cleanup_waiting, __condvar_dec_grefs,
6458         __pthread_cond_wait_common): New.
6459         (__condvar_cleanup): Remove.
6460         * npt/pthread_condattr_getclock.c (pthread_condattr_getclock): Adapt.
6461         * npt/pthread_condattr_setclock.c (pthread_condattr_setclock):
6462         Likewise.
6463         * npt/pthread_condattr_getpshared.c (pthread_condattr_getpshared):
6464         Likewise.
6465         * npt/pthread_condattr_init.c (pthread_condattr_init): Likewise.
6466         * nptl/tst-cond1.c: Add comment.
6467         * nptl/tst-cond20.c (do_test): Adapt.
6468         * nptl/tst-cond22.c (do_test): Likewise.
6469         * sysdeps/aarch64/nptl/bits/pthreadtypes.h (pthread_cond_t): Adapt
6470         structure.
6471         * sysdeps/arm/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
6472         * sysdeps/ia64/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
6473         * sysdeps/m68k/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
6474         * sysdeps/microblaze/nptl/bits/pthreadtypes.h (pthread_cond_t):
6475         Likewise.
6476         * sysdeps/mips/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
6477         * sysdeps/nios2/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
6478         * sysdeps/s390/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
6479         * sysdeps/sh/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
6480         * sysdeps/tile/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
6481         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_cond_t):
6482         Likewise.
6483         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h (pthread_cond_t):
6484         Likewise.
6485         * sysdeps/x86/bits/pthreadtypes.h (pthread_cond_t): Likewise.
6486         * sysdeps/nptl/internaltypes.h (COND_NWAITERS_SHIFT): Remove.
6487         (COND_CLOCK_BITS): Adapt.
6488         * sysdeps/nptl/pthread.h (PTHREAD_COND_INITIALIZER): Adapt.
6489         * nptl/pthreadP.h (__PTHREAD_COND_CLOCK_MONOTONIC_MASK,
6490         __PTHREAD_COND_SHARED_MASK): New.
6491         * nptl/nptl-printers.py (CLOCK_IDS): Remove.
6492         (ConditionVariablePrinter, ConditionVariableAttributesPrinter): Adapt.
6493         * nptl/nptl_lock_constants.pysym: Adapt.
6494         * nptl/test-cond-printers.py: Adapt.
6495         * sysdeps/unix/sysv/linux/hppa/internaltypes.h (cond_compat_clear,
6496         cond_compat_check_and_clear): Adapt.
6497         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: Remove file ...
6498         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
6499         (__pthread_cond_timedwait): ... and move here.
6500         * nptl/DESIGN-condvar.txt: Remove file.
6501         * nptl/lowlevelcond.sym: Likewise.
6502         * nptl/pthread_cond_timedwait.c: Likewise.
6503         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
6504         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
6505         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
6506         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
6507         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: Likewise.
6508         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: Likewise.
6509         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: Likewise.
6510         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Likewise.
6511         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: Likewise.
6512         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: Likewise.
6513         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Likewise.
6514         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Likewise.
6515         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise.
6516         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
6517         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
6518         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
6519
6520 2016-12-31  Joseph Myers  <joseph@codesourcery.com>
6521
6522         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
6523         (fromfp): New declaration.
6524         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fromfpx): Likewise.
6525         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ufromfp): Likewise.
6526         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ufromfpx): Likewise.
6527         * math/tgmath.h (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): New macro.
6528         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fromfp): Likewise.
6529         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ufromfp): Likewise.
6530         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fromfpx): Likewise.
6531         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ufromfpx): Likewise.
6532         * math/math.h: Include <bits/types.h>.
6533         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FP_INT_UPWARD): New enum
6534         constant and macro.
6535         (FP_INT_DOWNWARD): Likewise.
6536         (FP_INT_TOWARDZERO): Likewise.
6537         (FP_INT_TONEARESTFROMZERO): Likewise.
6538         (FP_INT_TONEAREST): Likewise.
6539         * math/Versions (fromfp): New libm symbol at version GLIBC_2.25.
6540         (fromfpf): Likewise.
6541         (fromfpl): Likewise.
6542         (ufromfp): Likewise.
6543         (ufromfpf): Likewise.
6544         (ufromfpl): Likewise.
6545         (fromfpx): Likewise.
6546         (fromfpxf): Likewise.
6547         (fromfpxl): Likewise.
6548         (ufromfpx): Likewise.
6549         (ufromfpxf): Likewise.
6550         (ufromfpxl): Likewise.
6551         * math/Makefile (libm-calls): Add s_fromfpF, s_ufromfpF,
6552         s_fromfpxF and s_ufromfpxF.
6553         * math/gen-fromfp-tests.py: New file.
6554         * math/gen-fromfp-tests-inputs: Likewise.
6555         * math/libm-test.inc: Include <stdint.h>
6556         (check_intmax_t): New function.
6557         (check_uintmax_t): Likewise.
6558         (struct test_fiu_M_data): New type.
6559         (struct test_fiu_U_data): Likewise.
6560         (RUN_TEST_fiu_M): New macro.
6561         (RUN_TEST_LOOP_fiu_M): Likewise.
6562         (RUN_TEST_fiu_U): Likewise.
6563         (RUN_TEST_LOOP_fiu_U): Likewise.
6564         (fromfp_test_data): New array.
6565         (fromfp_test): New function.
6566         (fromfpx_test_data): New array.
6567         (fromfpx_test): New function.
6568         (ufromfp_test_data): New array.
6569         (ufromfp_test): New function.
6570         (ufromfpx_test_data): New array.
6571         (ufromfpx_test): New function.
6572         (main): Call fromfp_test, fromfpx_test, ufromfp_test and
6573         ufromfpx_test.
6574         * math/gen-libm-test.pl (parse_args): Handle u, M and U descriptor
6575         characters.
6576         * math/test-tgmath-ret.c: Include <stdint.h>.
6577         (rm): New variable.
6578         (width): Likewise.
6579         (CHECK_RET_CONST_TYPE): Take extra arguments and pass them to
6580         called function.
6581         (CHECK_RET_CONST_FLOAT): Take extra arguments and pass them to
6582         CHECK_RET_CONST_TYPE.
6583         (CHECK_RET_CONST_DOUBLE): Likewise.
6584         (CHECK_RET_CONST_LDOUBLE): Likewise.
6585         (CHECK_RET_CONST): Take extra arguments and pass them to calls
6586         macros.
6587         (fromfp): New CHECK_RET_CONST call.
6588         (ufromfp): Likewise.
6589         (fromfpx): Likewise.
6590         (ufromfpx): Likewise.
6591         (do_test): Call check_return_fromfp, check_return_ufromfp,
6592         check_return_fromfpx and check_return_ufromfpx.
6593         * math/test-tgmath.c: Include <stdint.h>
6594         (NCALLS): Increase to 138.
6595         (F(compile_test)): Initialize i.  Call fromfp functions.
6596         (F(fromfp)): New function.
6597         (F(fromfpx)): Likewise.
6598         (F(ufromfp)): Likewise.
6599         (F(ufromfpx)): Likewise.
6600         * manual/arith.texi (Rounding Functions): Document FP_INT_UPWARD,
6601         FP_INT_DOWNWARD, FP_INT_TOWARDZERO, FP_INT_TONEARESTFROMZERO,
6602         FP_INT_TONEAREST, fromfp, fromfpf, fromfpl, ufromfp, ufromfpf,
6603         ufromfpl, fromfpx, fromfpxf, fromfpxl, ufromfpx, ufromfpxf and
6604         ufromfpxl.
6605         * manual/libm-err-tab.pl (@all_functions): Add fromfp, fromfpx,
6606         ufromfp and ufromfpx.
6607         * math/fromfp.h: New file.
6608         * sysdeps/ieee754/dbl-64/s_fromfp.c: Likewise.
6609         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Likewise.
6610         * sysdeps/ieee754/dbl-64/s_fromfpx.c: Likewise.
6611         * sysdeps/ieee754/dbl-64/s_ufromfp.c: Likewise.
6612         * sysdeps/ieee754/dbl-64/s_ufromfpx.c: Likewise.
6613         * sysdeps/ieee754/flt-32/s_fromfpf.c: Likewise.
6614         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Likewise.
6615         * sysdeps/ieee754/flt-32/s_fromfpxf.c: Likewise.
6616         * sysdeps/ieee754/flt-32/s_ufromfpf.c: Likewise.
6617         * sysdeps/ieee754/flt-32/s_ufromfpxf.c: Likewise.
6618         * sysdeps/ieee754/ldbl-128/s_fromfpl.c: Likewise.
6619         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Likewise.
6620         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c: Likewise.
6621         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c: Likewise.
6622         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c: Likewise.
6623         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c: Likewise.
6624         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl_main.c: Likewise.
6625         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c: Likewise.
6626         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c: Likewise.
6627         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c: Likewise.
6628         * sysdeps/ieee754/ldbl-96/s_fromfpl.c: Likewise.
6629         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Likewise.
6630         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c: Likewise.
6631         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c: Likewise.
6632         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c: Likewise.
6633         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fromfp,
6634         ufromfp, fromfpx and ufromfpx.
6635         (CFLAGS-nldbl-fromfp.c): New variable.
6636         (CFLAGS-nldbl-fromfpx.c): Likewise.
6637         (CFLAGS-nldbl-ufromfp.c): Likewise.
6638         (CFLAGS-nldbl-ufromfpx.c): Likewise.
6639         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include <stdint.h>.
6640         * sysdeps/ieee754/ldbl-opt/nldbl-fromfp.c: New file.
6641         * sysdeps/ieee754/ldbl-opt/nldbl-fromfpx.c: Likewise.
6642         * sysdeps/ieee754/ldbl-opt/nldbl-ufromfp.c: Likewise.
6643         * sysdeps/ieee754/ldbl-opt/nldbl-ufromfpx.c: Likewise.
6644         * sysdeps/nacl/libm.abilist: Update.
6645         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
6646         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6647         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
6648         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
6649         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
6650         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
6651         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
6652         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
6653         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
6654         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
6655         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
6656         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
6657         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
6658         Likewise.
6659         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
6660         Likewise.
6661         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
6662         Likewise.
6663         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
6664         Likewise.
6665         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6666         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6667         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
6668         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6669         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6670         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6671         Likewise.
6672         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6673         Likewise.
6674         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6675         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
6676         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
6677
6678 2016-12-30  Florian Weimer  <fweimer@redhat.com>
6679
6680         * resolv/Makefile (libresolv-routines): Rename gethnamaddr to
6681         compat-gethnamaddr.
6682         (CPPFLAGS): Remove.
6683         * resolv/gethnamaddr.c: Rename ...
6684         * resolv/compat-gethnamaddr.c: ... to this file.
6685         (_endhtent): Make static.
6686         (res_gethostbyname): Renamed from gethostbyname.  Turn into compat
6687         symbol.
6688         (res_gethostbyname2): Renamed from gethostbyname2.  Turn into
6689         compat symbol.
6690         (res_gethostbyaddr): Renamed from gethostbyaddr.  Turn into compat
6691         symbol.
6692         (_sethtent, _gethtent, _gethtbyname, gethtbyname2, _gethtbyaddr):
6693         Turn into compat symbol.
6694         * include/resolv.h (_endhtent): Remove declaration.
6695
6696 2016-12-30  Joseph Myers  <joseph@codesourcery.com>
6697
6698         * bits/types.h (__intmax_t): New typedef.
6699         (__uintmax_t): Likewise.
6700         * sysdeps/generic/stdint.h: Include <bits/types.h>.
6701         (intmax_t): Define using __intmax_t.
6702         (uintmax_t): Define using __uintmax_t.
6703
6704         * support/Makefile (tests-special): Make definition conditional on
6705         [$(run-built-tests) = yes].
6706         ($(objpfx)tst-support_record_failure-2.out): Make rule conditional
6707         on [$(run-built-tests) = yes].
6708
6709 2016-12-30  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6710
6711         * Rules (tests): Add tests-printers-programs to tests to be
6712         built.
6713
6714 2016-12-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6715
6716         * sysvipc/Makefile (tests): Add test-sysvshm.
6717         * sysvipc/test-sysvshm.c: New file.
6718
6719         * sysdeps/unix/sysv/linux/alpha/syscalls.list (shmget): Remove.
6720         * sysdeps/unix/sysv/linux/arm/syscalls.list (shmget): Likewise.
6721         * sysdeps/unix/sysv/linux/generic/syscalls.list (shmget): Likewise.
6722         * sysdeps/unix/sysv/linux/hppa/syscalls.list (shmget): Likewise.
6723         * sysdeps/unix/sysv/linux/ia64/syscalls.list (shmget): Likewise.
6724         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (shmget): Likewise.
6725         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (shmget):
6726         Likewise.
6727         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (shmget):
6728         Likewise.
6729         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (shmget): Likewise.
6730         * sysdeps/unix/sysv/linux/shmget.c (shmget): Use shmget syscall if it
6731         is defined.
6732
6733         * sysdeps/unix/sysv/linux/alpha/syscalls.list (shmdt): Remove.
6734         * sysdeps/unix/sysv/linux/arm/syscalls.list (shmdt): Likewise.
6735         * sysdeps/unix/sysv/linux/generic/syscalls.list (shmdt): Likewise.
6736         * sysdeps/unix/sysv/linux/hppa/syscalls.list (shmdt): Likewise.
6737         * sysdeps/unix/sysv/linux/ia64/syscalls.list (shmdt): Likewise.
6738         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (shmdt): Likewise.
6739         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (shmdt):
6740         Likewise.
6741         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (shmdt):
6742         Likewise.
6743         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (shmdt): Likewise.
6744         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Use shmdt syscall if it is
6745         defined.
6746
6747         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdeps_routines): Remove
6748         oldshmctl.
6749         * sysdeps/unix/sysv/linux/alpha/syscalls.list (shmctl): Remove.
6750         * sysdeps/unix/sysv/linux/arm/syscalls.list (shmctl): Likewise.
6751         * sysdeps/unix/sysv/linux/generic/syscalls.list (shmctl): Likewise.
6752         * sysdeps/unix/sysv/linux/hppa/syscalls.list (shmctl): Likewise.
6753         * sysdeps/unix/sysv/linux/ia64/syscalls.list (shmctl): Likewise.
6754         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (shmctl): Likewise.
6755         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (shmctl):
6756         Likewise.
6757         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (shmctl):
6758         Likewise.
6759         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (shmctl): Likewise.
6760         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Remove file.
6761         * sysdeps/unix/sysv/linux/arm/shmctl.c: Likewise.
6762         * sysdeps/unix/sysv/linux/microblaze/shmctl.c: Likewise.
6763         * sysdeps/unix/sysv/linux/mips/mips64/shmctl.c: Use default
6764         implementation.
6765         * sysdeps/unix/sysv/linux/shmctl.c (__new_shmctl): Use shmctl syscall
6766         if it is defined.
6767
6768         * sysdeps/unix/sysv/linux/alpha/syscalls.list (shmat): Remove.
6769         * sysdeps/unix/sysv/linux/arm/syscalls.list (shmat): Likewise.
6770         * sysdeps/unix/sysv/linux/generic/syscalls.list (shmat): Likewise.
6771         * sysdeps/unix/sysv/linux/hppa/syscalls.list (shmat): Likewise.
6772         * sysdeps/unix/sysv/linux/ia64/syscalls.list (shmat): Likewise.
6773         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (shmat): Likewise.
6774         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (shmat):
6775         Likewise.
6776         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (shmat):
6777         Likewise.
6778         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (shmat): Likewise.
6779         * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
6780         Define to __NR_osf_shmat.
6781         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use shmat syscall if it is
6782         defined.
6783
6784         * sysvipc/Makefile (tests): Add test-sysvsem.
6785         * sysvipc/test-sysvsem.c: New file.
6786
6787         * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): Remove.
6788         * sysdeps/unix/sysv/linux/arm/syscalls.list (semtimedop): Likewise.
6789         * sysdeps/unix/sysv/linux/generic/syscalls.list (semtimedop):
6790         Likewise.
6791         * sysdeps/unix/sysv/linux/hppa/syscalls.list (semtimedop): Likewise.
6792         * sysdeps/unix/sysv/linux/ia64/syscalls.list (semtimedop): Likewise.
6793         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (semtimedop):
6794         Likewise.
6795         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (semtimedop):
6796         Likewise.
6797         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (semtimedop): Likewise.
6798         * sysdeps/unix/sysv/linux/m68k/semtimedop.S: Remove file.
6799         * sysdeps/unix/sysv/linux/s390/semtimedop.c: Reorganize headers and
6800         add a comment about s390 syscall difference from default one.
6801         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use semtimedop
6802         syscall if it is defined.
6803
6804         * sysdeps/unix/sysv/linux/alpha/syscalls.list (semop): Remove.
6805         * sysdeps/unix/sysv/linux/arm/syscalls.list (semop): Likewise.
6806         * sysdeps/unix/sysv/linux/generic/syscalls.list (semop): Likewise.
6807         * sysdeps/unix/sysv/linux/hppa/syscalls.list (semop): Likewise.
6808         * sysdeps/unix/sysv/linux/ia64/syscalls.list (semop): Likewise.
6809         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (semop): Likewise.
6810         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (semop):
6811         Likewise.
6812         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (semop):
6813         Likewise.
6814         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (semop): Likewise.
6815         * sysdeps/unix/sysv/linux/semop.c (semop): Use semop syscall if it is
6816         defined.
6817
6818         * sysdeps/unix/sysv/linux/alpha/syscalls.list (semget): Remove.
6819         * sysdeps/unix/sysv/linux/arm/syscalls.list (semget): Likewise.
6820         * sysdeps/unix/sysv/linux/generic/syscalls.list (semget): Likewise.
6821         * sysdeps/unix/sysv/linux/hppa/syscalls.list (semget): Likewise.
6822         * sysdeps/unix/sysv/linux/ia64/syscalls.list (semget): Likewise.
6823         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (semget): Likewise.
6824         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (semget):
6825         Likewise.
6826         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (semget):
6827         Likewise.
6828         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (semget): Likewise.
6829         * sysdeps/unix/sysv/linux/semget.c (semget): Use semget syscall
6830         if it is defined.
6831
6832         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdeps_routines): Remove
6833         oldsemctl.
6834         * sysdeps/unix/sysv/linux/alpha/semctl.c: Remove file.
6835         * sysdeps/unix/sysv/linux/arm/semctl.c: Likewise.
6836         * sysdeps/unix/sysv/linux/microblaze/semctl.c: Likewise.
6837         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Likewise.
6838         * sysdeps/unix/sysv/linux/mips/mips64/semctl.c: Use defaulf
6839         implementation.
6840         * sysdeps/unix/sysv/linux/semctl.c (__new_semctl): Use semctl
6841         syscall if it is defined.
6842         * sysdeps/unix/sysv/linux/generic/syscalls.list (semctl): Remove.
6843         * sysdeps/unix/sysv/linux/alpha/syscalls.list (semctl): Likewise.
6844         * sysdeps/unix/sysv/linux/hppa/syscalls.list (semctl): Likewise.
6845         * sysdeps/unix/sysv/linux/ia64/syscalls.list (semctl): Likewise.
6846         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (semctl):
6847         Likewise.
6848         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (semctl): Likewise.
6849
6850         * sysvipc/Makefile (tests): Add test-sysvmsg.
6851         * sysvipc/test-sysvmsg.c: New file.
6852         * support/check.h (FAIL_UNSUPPORTED): New define.
6853
6854         * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgget): Remove.
6855         * sysdeps/unix/sysv/linux/arm/syscalls.list (msgget): Likewise.
6856         * sysdeps/unix/sysv/linux/generic/syscalls.list (msgget): Likewise.
6857         * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgget): Likewise.
6858         * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgget): Likewise.
6859         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (msgget): Likewise.
6860         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (msgget):
6861         Likewise.
6862         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgget):
6863         Likewise.
6864         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgget): Likewise.
6865         * sysdeps/unix/sysv/linux/msgget.c (msgget): Use msgget syscall if
6866         define.
6867
6868         * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgsnd): Remove.
6869         * sysdeps/unix/sysv/linux/arm/syscalls.list (msgsnd): Likewise.
6870         * sysdeps/unix/sysv/linux/generic/syscalls.list (msgsnd): Likewise.
6871         * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgsnd): Likewise.
6872         * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgsnd): Likewise.
6873         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (msgsnd): Likewise.
6874         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (msgsnd):
6875         Likewise.
6876         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgsnd):
6877         Likewise.
6878         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgsnd): Likewise.
6879         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Use msgsnd syscall
6880         if defined.
6881
6882         * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgctl): Remove.
6883         * sysdeps/unix/sysv/linux/arm/syscalls.list (msgctl): Likewise.
6884         * sysdeps/unix/sysv/linux/generic/syscalls.list (msgctl): Likewise.
6885         * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgctl): Likewise.
6886         * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgctl): Likewise.
6887         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (msgctl): Likewise.
6888         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgctl):
6889         Likewise.
6890         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgctl): Likewise,
6891         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (msgctl):
6892         Likewise.
6893         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Use msgrcv syscall
6894         if defined.
6895         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Remove file.
6896
6897         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdeps_routines): Remove
6898         oldmsgctl.
6899         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Remove file.
6900         * sysdeps/unix/sysv/linux/arm/msgctl.c: Likewise.
6901         * sysdeps/unix/sysv/linux/microblaze/msgctl.c: Likewise.
6902         * sysdeps/unix/sysv/linux/alpha/syscalls.list (oldmsgctl): Remove.
6903         * sysdeps/unix/sysv/linux/generic/syscalls.list (msgctl): Likewise.
6904         * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgctl): Likewise.
6905         * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgctl): Likewise.
6906         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgctl):
6907         Likewise.
6908         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgctl): Likewise.
6909         * sysdeps/unix/sysv/linux/mips/mips64/msgctl.c: Use default
6910         implementation.
6911         * sysdeps/unix/sysv/linux/msgctl.c (__new_msgctl): Use msgctl syscall
6912         if defined.
6913
6914         * sysdeps/unix/sysv/linux/aarch64/ipc_priv.h: New file.
6915         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Avoid included other arch
6916         definition and define its own.
6917         * sysdeps/unix/sysv/linux/ipc_ops.h: New file.
6918         * sysdeps/unix/sysv/linux/x86_64/ipc_priv.h: Likewise.
6919         * sysdeps/unix/sysv/linux/mips/ipc_priv.h: Remove file.
6920         * sysdeps/unix/sysv/linux/mips/mips64/ipc_priv.h: New file.
6921         * sysdeps/unix/sysv/linux/ipc_priv.h: Move ipc syscall operation
6922         definitions to common header.
6923         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: Use common syscall
6924         operation from ipc_ops.h.
6925
6926         * sysdeps/unix/sysv/linux/kernel-features.h
6927         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): New define.
6928         * sysdeps/unix/sysv/linux/i386/kernel-features.h
6929         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Undef.
6930         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
6931         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
6932         * sysdeps/unix/sysv/linux/mips/kernel-features.h
6933         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
6934         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
6935         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
6936         * sysdeps/unix/sysv/linux/s390/kernel-features.h
6937         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
6938         * sysdeps/unix/sysv/linux/sh/kernel-features.h
6939         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
6940         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
6941         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
6942
6943 2016-12-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6944
6945         * sysdeps/powerpc/powerpc32/power7/memchr.S (__memchr): Avoid an
6946         overflow in pointer addition.
6947
6948 2016-12-28  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6949
6950         * sysdeps/powerpc/powerpc64/multiarch/Makefile
6951         (sysdep_routines): Add strchr-power8 and strchrnul_power8.
6952         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
6953         (strchr): Add __strchr_power8 to list of strchr functions.
6954         (strchrnul): Add __strchrnul_power8 to list of strchr functions.
6955         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: New file.
6956         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: New file.
6957         * sysdeps/powerpc/powerpc64/multiarch/strchr.c
6958         (strchr): Add __strchr_power8 to ifunc list.
6959         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c
6960         (__strchrnul): Add __strchrnul_power8 to ifunc list.
6961         * sysdeps/powerpc/powerpc64/power8/strchr.S: New file.
6962         * sysdeps/powerpc/powerpc64/power8/strchrnul.S: New file.
6963
6964 2016-12-28  Florian Weimer  <fweimer@redhat.com>
6965
6966         * support/Makefile (libsupport-routines): Add
6967         support_test_verify_impl, support_record_failure, xfork, xwaitpid.
6968         (tests): Add tst-support_record_failure.
6969         (tests-special): tst-support_record_failure-2.
6970         (tst-support_record_failure-2.out): Depend on
6971         tst-support_record_failure-2.sh and tst-support_record_failure.
6972         * support/check.h (TEST_VERIFY, TEST_VERIFY_EXIT): Define.
6973         (support_test_verify_impl, support_record_failure)
6974         (support_report_failure, support_report_failure_reset): Declare.
6975         * support/support_test_main.c (adjust_exit_status): New function.
6976         (support_test_main): Call it to incorporate record test failures.
6977         * support/support_test_verify_impl.c: New file.
6978         * support/support_record_failure.c: Likewise.
6979         * support/tst-support_record_failure.c: Likewise.
6980         * support/tst-support_record_failure-2.sh: Likewise.
6981         * support/xunistd.h: Likewise.
6982         * support/xfork.c: Likewise.
6983         * support/xwaitpid.c: Likewise.
6984
6985 2016-12-27  Steve Ellcey  <sellcey@caviumnetworks.com>
6986
6987         * scripts/check-c++-types.sh: Add comments.
6988
6989 2016-12-27  Dmitry V. Levin  <ldv@altlinux.org>
6990
6991         [BZ #19514]
6992         * resolv/res_send.c: Fix typo in comment.
6993         * sysdeps/i386/i386-mcount.S: Likewise.
6994         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
6995         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
6996         * sysdeps/sparc/sparc-mcount.S: Likewise.
6997
6998 2016-12-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6999
7000         * sysdeps/powerpc/fpu/s_fmaxf.S: Remove file.
7001         * sysdeps/powerpc/fpu/s_fminf.S: Likewise.
7002         * sysdeps/powerpc/fpu/s_fmax.S: Likewise.
7003         * sysdeps/powerpc/fpu/s_fmin.S: Likewise.
7004         * sysdeps/powerpc/powerpc32/fpu/s_fmax.S: Likewise.
7005         * sysdeps/powerpc/powerpc32/fpu/s_fmin.S: Likewise.
7006         * sysdeps/powerpc/powerpc64/fpu/s_fmax.S: Likewise.
7007         * sysdeps/powerpc/powerpc64/fpu/s_fmin.S: Likewise.
7008
7009 2016-12-27  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7010
7011         * manual/arith.texi (FP Comparison Functions): Fix typo in iseqsig.
7012
7013 2016-12-27  Florian Weimer  <fweimer@redhat.com>
7014
7015         [BZ #17252]
7016         * posix/unistd.h (getentropy): Declare.
7017
7018 2016-12-27  Florian Weimer  <fweimer@redhat.com>
7019
7020         * resolv/res_hconf.h (HCONF_FLAG_SPOOF, HCONF_FLAG_SPOOFALERT):
7021         Remove.
7022         * resolv/res_hconf.c (ENV_SPOOF, arg_spoof): Remove.
7023         (cmd): Remove spoof, nospoof, spoofalert.
7024         (parse_line): Ignore spoof-related lines.
7025         (do_init): Do not process RESOLV_SPOOF_CHECK.
7026
7027 2016-12-27  Florian Weimer  <fweimer@redhat.com>
7028
7029         [BZ #20964]
7030         sunrpc: Always obtain AF_INET addresses from NSS.
7031         * include/rpc/rpc.h (__libc_rpc_gethostbyname): Declare.
7032         * sunrpc/rpc_gethostbyname.c: New file.
7033         * sunrpc/Makefile (routines): Add it.
7034         * sunrpc/clnt_gen.c (clnt_create): Use __libc_rpc_gethostbyname.
7035         * sunrpc/clnt_simp.c (callrpc): Likewise.
7036         * sunrpc/getrpcport.c (getrpcport): Likewise.
7037
7038 2016-12-27  Florian Weimer  <fweimer@redhat.com>
7039
7040         * sunrpc/rpcinfo.c: Remove.
7041         * sunrpc/Makefile: Remove comments referring to rpcinfo.
7042
7043 2016-12-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7044
7045         [BZ #19387]
7046         * sysdeps/x86_64/memchr.S (memchr): Avoid overflow in pointer
7047         addition.
7048         * string/test-memchr.c (do_test): Remove alignment limitation.
7049         (test_main): Add test that trigger BZ #19387.
7050
7051 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
7052
7053         [BZ #7065]
7054         Enable stack protectore if requested by ./configure.
7055         * Makeconfig (+stack-protector): New variable.
7056         (+cflags): Use it.
7057
7058 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
7059
7060         [BZ #7065]
7061         * signal/Makefile (CFLAGS-sigreturn.c): Use $(no-stack-protector).
7062         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c:
7063         (__rt_sigreturn_stub): Use inhibit_stack_protector.
7064         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
7065         (__rt_sigreturn_stub, __sigreturn_stub): Likewise.
7066
7067 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
7068
7069         [BZ #7065]
7070         * login/Makefile (pt_chown-cflags): Remove.
7071         * nscd/Makefile (CFLAGS-nscd): Likewise.
7072         * resolv/Makefile (CFLAGS-libresolv): Likewise.
7073
7074 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
7075
7076         [BZ #7065]
7077         * elf/Makefile (CFLAGS-filtmod1.c): Use $(no-stack-protector) for
7078         non-libc-linking testcase.
7079
7080 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
7081             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7082             Florian Weimer  <fweimer@redhat.com>
7083
7084         [BZ #7065]
7085         PLT avoidance for __stack_chk_fail*.
7086         * debug/Makefile (CFLAGS-stack_chk_fail.c)
7087         (CFLAGS-stack_chk_fail_local.c): Build without stack protector.
7088         * debug/stack_chk_fail.c (__stack_chk_fail): Add
7089         __stack_chk_fail_local alias.
7090         * sysdeps/generic/symbol-hacks.h [IS_IN (libc)]
7091         (__stack_chk_fail): Turn into hidden reference to
7092         __stack_chk_fail_local.
7093
7094 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
7095
7096         [BZ #7065]
7097         * configure.ac: Add check for unsupported stack-protection level.
7098         (libc_cv_predef_stack_protector): Remove.
7099         (no_ssp): New variable.
7100         (STACK_PROTECTOR_LEVEL): Set to zero when --disable-stack-protector.
7101         (stack_protector): Set to -fno-stack-protector similarly.
7102         (libc_cv_ld_gnu_indirect_function): Use no_ssp.
7103         (libc_cv_asm_set_directive): Likewise.
7104         (libc_cv_protected_data): Likewise.
7105         (libc_cv_z_combreloc): Likewise.
7106         (libc_cv_hashstyle): Likewise.
7107         (libc_cv_has_glob_dat): Likewise.
7108         (libc_cv_output_format): Likewise.
7109         (libc_cv_output_format): Likewise.
7110         (libc_cv_ehdr_start): Likewise.
7111         * aclocal.m4 (LIBC_TRY_LINK_STATIC): Likewise.
7112         (LIBC_LINKER_FEATURE): Likewise.
7113         (LIBC_COMPILER_BUILTIN_INLINED): Likewise.
7114
7115 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
7116
7117         [BZ #7065]
7118         * elf/Makefile (dummy-stack-chk-fail): New.
7119         (librtld.map): Use it.
7120
7121 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
7122
7123         [BZ #7065]
7124         Compile the dynamic linker without stack protection.
7125         * elf/Makefile (elide-stack-protector): New.
7126         (CFLAGS-.os): Use it, eliding $(all-rtld-routines).
7127         (CFLAGS-.o, CFLAGS-.op): Likewise, but for $(elide-routines.os).
7128         * elf/rtld-Rules (rtld-CFLAGS): Add $(no-stack-protector).
7129         * sysdeps/i386/Makefile (rtld-CFLAGS): Use +=, not =.
7130
7131 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
7132
7133         [BZ #7065]
7134         * config.make.in (have-ssp, no-stack-protector): New.
7135         * csu/Makefile (CFLAGS-.o, CFLAGS-.op, CFLAGS-.os): Use it.
7136         * misc/Makefile (CFLAGS-sbrk.o): Likewise.
7137         (CFLAGS-sbrk.op): Likewise.
7138         (CFLAGS-brk.o): Likewise.
7139         (CFLAGS-brk.op): Likewise.
7140         * string/Makefile (CFLAGS-memcpy.c): Likewise.
7141         (CFLAGS-wordcopy.c): Likewise.
7142
7143 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
7144
7145         [BZ #7065]
7146         * configure.ac (HAVE_CC_NO_STACK_PROTECTOR): Define.
7147         * config.h.in (HAVE_CC_NO_STACK_PROTECTOR): New macro.
7148         * include/libc-symbols.h (inhibit_stack_protector): New macro.
7149         (__ifunc_resolver): Use it.
7150         * elf/ifuncdep2.c (foo1_ifunc, foo2_ifunc, foo3_ifunc): Apply
7151         inhibit_stack_protector.
7152         * elf/ifuncmain6pie.c (foo_ifunc): Likewise.
7153         * elf/ifuncmain7.c (foo_ifunc): Likewise.
7154         * elf/ifuncmod1.c (foo_ifunc, foo_hidden_ifunc)
7155         (foo_protected_ifunc): Likewise.
7156         * elf/ifuncmod5.c (foo_ifunc, foo_hidden_ifunc)
7157         (foo_protected_ifunc): Likewise.
7158         * sysdeps/generic/ifunc-sel.h (ifunc_sel, ifunc_one): Likewise.
7159         * sysdeps/nacl/nacl_interface_query.c
7160         (nacl_interface_query_ifunc): Likewise.
7161         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel, ifunc_one): Likewise.
7162         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c (getcpu_ifunc):
7163         Likewise.
7164         * sysdeps/x86_64/ifuncmod8.c (foo_ifunc): Likewise.
7165         * sysdeps/unix/make-syscalls.sh: Apply inhibit_stack_protector to
7166         the generated vDSO syscall resolver.
7167
7168 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
7169             Florian Weimer  <fweimer@redhat.com>
7170
7171         [BZ #7065]
7172         Initialize the stack guard earlier when linking statically.
7173         * sysdeps/generic/ldsodefs.h (__libc_setup_tls)
7174         (__pthread_initialize_minimal): Declare.
7175         * csu/libc-start.c (__pthread_initialize_minimal): Remove
7176         declaration.
7177         (LIBC_START_MAIN): Call __libc_setup_tls early and directly.  Move
7178         stack canary and apply_irel initialization up.  Call
7179         __pthread_initialize_minimal only if linked in.
7180         * csu/libc-tls.c (__libc_setup_tls): Replace arguments with their
7181         constant values.
7182         (__pthread_initialize_minimal): Remove.
7183         * nptl/nptl-init.c (__libc_setup_tls): Remove declaration.
7184         (__pthread_initialize_minimal_internal): Do not call
7185         __libc_setup_tls.
7186
7187 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
7188
7189         [BZ #7065]
7190         * configure.ac (libc_cv_ssp): Move up.
7191         (libc_cv_ssp_strong): Likewise.
7192         (libc_cv_ssp_all): New.
7193         (stack_protector): Augment, adding -fstack-protector-all.
7194         (no_stack_protector): New.
7195         (STACK_PROTECTOR_LEVEL): New.
7196         (AC_ARG_ENABLE(stack-protector)): New configure flag.
7197         * manual/install.texi (--enable-stack-protector): Document it.
7198         * config.h.in (STACK_PROTECTOR_LEVEL): New macro.
7199
7200 2016-12-24  Carlos O'Donell  <carlos@redhat.com>
7201
7202         * README.pretty-printers: Must specify CPPFLAGS-* also.
7203         * nptl/Makefile (CPPFLAGS-test-mutexattr-printers.c): Define.
7204         (CPPFLAGS-test-mutex-printers.c): Define.
7205         (CPPFLAGS-test-condattr-printers.c): Define.
7206         (CPPFLAGS-test-cond-printers.c): Define.
7207         (CPPFLAGS-test-rwlockattr-printers.c): Define.
7208         (CPPFLAGS-test-rwlock-printers.c): Define.
7209
7210         * nss/Makefile [ifeq (yes,$(have-thread-library))]
7211         (tests): Add tst-cancel-getpwuid_r.
7212         * nss/tst-cancel-getpwuid_r.c: New file.
7213
7214         [BZ #11941]
7215         * elf/dl-close.c (_dl_close): Take dl_load_lock to examine map.
7216         Remove assert (map->l_init_called); if DF_1_NODELETE is set.
7217         * elf/Makefile [ifeq (yes,$(build-shared))] (tests): Add
7218         tst-nodelete-dlclose.
7219         (modules-names): Add tst-nodelete-dlclose-dso and
7220         tst-nodelete-dlclose-plugin.
7221         ($(objpfx)tst-nodelete-dlclose-dso.so): Define.
7222         ($(objpfx)tst-nodelete-dlclose-plugin.so): Define.
7223         ($(objpfx)tst-nodelete-dlclose): Define.
7224         ($(objpfx)tst-nodelete-dlclose.out): Define.
7225
7226 2016-12-23  Florian Weimer  <fweimer@redhat.com>
7227
7228         * scripts/test_printers_common.py: Log GDB output in case of
7229         Python detection failure.
7230
7231 2016-12-22  Siddhesh Poyarekar  <siddhesh@sourceware.org>
7232
7233         * configure.ac: Check for python3 or python.
7234         * configure: Regenerated.
7235         * config.make.in (PYTHON): New variable.
7236         * benchtests/Makefile: Don't define PYTHON.
7237         (bench): Define target only if PYTHON was defined.
7238         * Rules: Don't define PYTHON.
7239         Define pretty printer targets only if PYTHON was defined.
7240         (tests-printers): Add to tests-unsupported if PYTHON is not
7241         found.
7242         (python-flags, python-invoke): Remove.
7243         (tests-printers-out): Use PYTHON instead of python-invoke.
7244
7245 2016-12-21  Joseph Myers  <joseph@codesourcery.com>
7246
7247         [BZ #20978]
7248         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
7249         Compare name == NULL, not name != NULL.
7250
7251         * manual/texinfo.tex: Update to version 2016-09-18.18 with
7252         trailing whitespace removed.
7253         * scripts/config.guess: Update to version 2016-10-02.
7254         * scripts/config.sub: Update to version 2016-11-19.
7255         * scripts/install-sh: Update to version 2016-01-11.22.
7256         * scripts/mkinstalldirs: Update to version 2016-01-11.22.
7257         * scripts/move-if-change: Update to version 2016-01-11 22:04.
7258
7259 2015-12-21  Wilco Dijkstra  <wdijkstr@arm.com>
7260
7261         * benchtests/bench-strsep.c (oldstrsep): Add old implementation.
7262         (do_one_test) Restore original string so iteration works.
7263         * string/string-inlines.c (do_test): Create better input strings.
7264         (test_main) Reduce number of testruns.
7265         * string/string-inlines.c (__old_strsep_1c): New function.
7266         (__old_strsep_2c): Likewise.
7267         (__old_strsep_3c): Likewise.
7268         * string/strsep.c (__strsep): Remove case of small delim string.
7269         Call strcspn directly rather than strpbrk.
7270         * string/bits/string2.h (__strsep): Remove define.
7271         (__strsep_1c): Remove.
7272         (__strsep_2c): Remove.
7273         (__strsep_3c): Remove.
7274         (strsep): Remove.
7275         * sysdeps/unix/sysv/linux/internal_statvfs.c
7276         (__statvfs_getflags): Rename to __strsep.
7277
7278 2016-12-21  Florian Weimer  <fweimer@redhat.com>
7279
7280         * csu/libc-tls.c (_dl_tls_setup): Remove.
7281         * elf/dl-tls.c (_dl_tls_setup): Likewise.
7282         * elf/Versions (GLIBC_PRIVATE): Remove _dl_tls_setup.
7283         * sysdeps/generic/ldsodefs.h (_dl_tls_setup): Remove declaration.
7284
7285 2016-12-21  Nick Alcock <nick.alcock@oracle.com>
7286
7287         [BZ #7065]
7288         * sysdeps/x86_64/Makefile [$(subdir) = elf]
7289         (CFLAGS-tst-quad1pie.c, CFLAGS-tst-quad2pie.c): Add $(PIE-ccflag).
7290
7291 2016-12-21  Nick Alcock <nick.alcock@oracle.com>
7292             Florian Weimer  <fweimer@redhat.com>
7293
7294         [BZ #7065]
7295         * csu/Makefile (tests): Empty assignment and document it.
7296         (tests-static): Remove.
7297         * csu/tst-empty.c: Move to...
7298         * misc/tst-empty.c: ... here.  Switch to new test driver.
7299         * csu/tst-atomic.c: Move to...
7300         * misc/tst-atomic.c: ... here.  Switch to new test driver.
7301         * csu/tst-atomic-long.c: Move to...
7302         * misc/tst-atomic-long.c: ... here.
7303         * misc/Makefile (tests): Add tst-empty, tst-atomic,
7304         tst-atomic-long.
7305         (tests-static): Add tst-empty.
7306
7307 2016-12-21  Rical Jasan  <ricaljasan@pacific.net>
7308
7309         * manual/nss.texi: Change incorrect @vtable to @table.
7310         * manual/arith.texi: Convert @tables of variables to @vtables
7311         and remove unnecessary indexing.
7312         * manual/filesys.texi: Likewise.
7313         * manual/llio.texi: Likewise.
7314         * manual/memory.texi: Likewise.
7315         * manual/process.texi: Likewise.
7316         * manual/resource.texi: Likewise.
7317         * manual/search.texi: Likewise.
7318         * manual/signal.texi: Likewise.
7319         * manual/socket.texi: Likewise.
7320         * manual/stdio.texi: Likewise.
7321         * manual/sysinfo.texi: Likewise.
7322         * manual/syslog.texi: Likewise.
7323         * manual/terminal.texi: Likewise.
7324         * manual/time.texi: Likewise.
7325         * manual/users.texi: Likewise.
7326
7327 2016-12-21  Joseph Myers  <joseph@codesourcery.com>
7328
7329         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
7330         (roundeven): New declaration.
7331         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (roundeven): New
7332         macro.
7333         * math/Versions (roundeven): New libm symbol at version
7334         GLIBC_2.25.
7335         (roundevenf): Likewise.
7336         (roundevenl): Likewise.
7337         * math/Makefile (libm-calls): Add s_roundevenF.
7338         * math/libm-test.inc (roundeven_test_data): New array.
7339         (roundeven_test): New function.
7340         (main): Call roundeven_test.
7341         * math/test-tgmath.c (NCALLS): Increase to 134.
7342         (F(compile_test)): Call roundeven.
7343         (F(roundeven)): New function.
7344         * manual/arith.texi (Rounding Functions): Document roundeven,
7345         roundevenf and roundevenl.
7346         * manual/libm-err-tab.pl (@all_functions): Add roundeven.
7347         * include/math.h (roundeven): Use libm_hidden_proto.
7348         * sysdeps/ieee754/dbl-64/s_roundeven.c: New file.
7349         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Likewise.
7350         * sysdeps/ieee754/flt-32/s_roundevenf.c: Likewise.
7351         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Likewise.
7352         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c: Likewise.
7353         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Likewise.
7354         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
7355         roundeven.
7356         (CFLAGS-nldbl-roundeven.c): New variable.
7357         * sysdeps/ieee754/ldbl-opt/nldbl-roundeven.c: New file.
7358         * sysdeps/nacl/libm.abilist: Update.
7359         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
7360         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
7361         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
7362         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
7363         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
7364         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
7365         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
7366         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
7367         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
7368         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
7369         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
7370         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
7371         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
7372         Likewise.
7373         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
7374         Likewise.
7375         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
7376         Likewise.
7377         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
7378         Likewise.
7379         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
7380         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
7381         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
7382         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
7383         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
7384         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
7385         Likewise.
7386         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
7387         Likewise.
7388         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
7389         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
7390         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
7391
7392 2016-12-20  Joseph Myers  <joseph@codesourcery.com>
7393
7394         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (llogb): Add
7395         preprocessor indentation inside #if.
7396
7397 2016-12-20  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7398
7399         * math/libm-test.inc (fmt_ftostr): New function.
7400         (print_float, check_float_internal): Replace some uses of
7401         FTOSTR with uses of fmt_ftostr.
7402         (print_max_error, print_complex_max_error, print_function_ulps)
7403         (print_complex_function_ulps): Remove uses of the macros
7404         PRINTF_EXPR, PRINTF_NEXPR, and PRINTF_XEXPR.
7405         * math/test-double.h (FTOSTR): Define to strfromd.
7406         (PRINTF_EXPR): Delete.
7407         (PRINTF_XEXPR): Likewise.
7408         (PRINTF_NEXPR): Likewise.
7409         * math/test-float.h (FTOSTR): Define to strfromf.
7410         (PRINTF_EXPR): Delete.
7411         (PRINTF_XEXPR): Likewise.
7412         (PRINTF_NEXPR): Likewise.
7413         * math/test-ldouble.h (FTOSTR): Define to strfroml.
7414         (PRINTF_EXPR): Delete.
7415         (PRINTF_XEXPR): Likewise.
7416         (PRINTF_NEXPR): Likewise.
7417
7418 2016-12-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
7419
7420         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
7421         (__lll_unlock_elision, lll_unlock_elision): Add adapt_count argument.
7422         * sysdeps/unix/sysv/linux/s390/elision-lock.c:
7423         (__lll_lock_elision): Decrement adapt_count while unlocking
7424         instead of before locking.
7425         * sysdeps/unix/sysv/linux/s390/elision-trylock.c
7426         (__lll_trylock_elision): Likewise.
7427         * sysdeps/unix/sysv/linux/s390/elision-unlock.c:
7428         (__lll_unlock_elision): Likewise.
7429
7430 2016-12-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
7431
7432         * sysdeps/unix/sysv/linux/s390/htm.h(__libc_tbegin_retry): New macro.
7433         * sysdeps/unix/sysv/linux/s390/elision-lock.c (__lll_lock_elision):
7434         Use __libc_tbegin_retry macro.
7435
7436 2016-12-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
7437
7438         * sysdeps/unix/sysv/linux/s390/Makefile (elision-CFLAGS):
7439         Add -msoft-float.
7440         * sysdeps/unix/sysv/linux/s390/htm.h: New File.
7441         * sysdeps/unix/sysv/linux/s390/elision-lock.c:
7442         Use __libc_t* transaction macros instead of __builtin_t*.
7443         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
7444         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
7445
7446 2016-12-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
7447
7448         * sysdeps/unix/sysv/linux/s390/elision-lock.c
7449         (__lll_lock_elision): Use atomics to load / store adapt_count.
7450         * sysdeps/unix/sysv/linux/s390/elision-trylock.c
7451         (__lll_trylock_elision): Likewise.
7452
7453 2016-12-20  Florian Weimer  <fweimer@redhat.com>
7454
7455         Do not require memset elimination in explicit_bzero test.
7456         * string/tst-xbzero-opt.c (prepare_test_buffer): Force inlining.
7457         (enum test_expectation): Add NO_EXPECTATIONS.
7458         (subtests): NO_EXPECTATIONS for ordinary clear.
7459         (check_test_buffer): Handle NO_EXPECTATIONS.
7460         * string/Makefile (CFLAGS-tst-xbzero-opt.c): Compile with -O3.
7461
7462 2016-12-20  Joseph Myers  <joseph@codesourcery.com>
7463
7464         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
7465         (fmaxmag): New declaration.
7466         (fminmag): Likewise.
7467         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (fmaxmag): New
7468         macro.
7469         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fminmag): Likewise.
7470         * math/Versions (fmaxmag): New libm symbol at version GLIBC_2.25.
7471         (fmaxmagf): Likewise.
7472         (fmaxmagl): Likewise.
7473         (fminmag): Likewise.
7474         (fminmagf): Likewise.
7475         (fminmagl): Likewise.
7476         * math/Makefile (gen-libm-calls): Add s_fmaxmagF and s_fminmagF.
7477         * math/s_fmaxmag_template.c: New file.
7478         * math/s_fminmag_template.c: Likewise.
7479         * math/libm-test.inc (fmaxmag_test_data): New array.
7480         (fmaxmag_test): New function.
7481         (fminmag_test_data): New array.
7482         (fminmag_test): New function.
7483         (main): Call fmaxmag_test and fminmag_test.
7484         * math/test-tgmath.c (NCALLS): Increase to 132.
7485         (F(compile_test)): Call fmaxmag and fminmag.
7486         (F(fminmag)): New function.
7487         (F(fmaxmag)): Likewise.
7488         * manual/arith.texi (Misc FP Arithmetic): Document fminmag,
7489         fminmagf, fminmagl, fmaxmag, fmaxmagf and fmaxmagl.
7490         * manual/libm-err-tab.pl (@all_functions): Add fmaxmag and
7491         fminmag.
7492         * sysdeps/ieee754/ldbl-opt/nldbl-fmaxmag.c: New file.
7493         * sysdeps/ieee754/ldbl-opt/nldbl-fminmag.c: Likewise.
7494         * sysdeps/ieee754/ldbl-opt/s_fmaxmagl.c: Likewise.
7495         * sysdeps/ieee754/ldbl-opt/s_fminmagl.c: Likewise.
7496         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmaxmag
7497         and fminmag.
7498         (CFLAGS-nldbl-fmaxmag.c): New variable.
7499         (CFLAGS-nldbl-fminmag.c): Likewise.
7500         * sysdeps/nacl/libm.abilist: Update.
7501         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
7502         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
7503         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
7504         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
7505         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
7506         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
7507         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
7508         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
7509         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
7510         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
7511         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
7512         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
7513         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
7514         Likewise.
7515         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
7516         Likewise.
7517         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
7518         Likewise.
7519         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
7520         Likewise.
7521         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
7522         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
7523         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
7524         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
7525         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
7526         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
7527         Likewise.
7528         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
7529         Likewise.
7530         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
7531         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
7532         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
7533
7534 2016-12-19  Torvald Riegel  <triegel@redhat.com>
7535
7536         [BZ #20973]
7537         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Fix lost
7538         wake-up in robust mutexes.
7539         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
7540
7541 2016-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7542
7543         * benchtests/Makefile (bench-math): Add fminf and fmaxf.
7544         (CFLAGS-bench-fmaxf.c): New rule.
7545         (CFLAGS-bench-fminf.c): Likewise.
7546         * benchtests/fmaxf-inputs: New file.
7547         * benchtests/fminf-inputs: Likewise.
7548
7549         * benchtests/Makefile (bench-math): Add fmin and fmax.
7550         (CFLAGS-bench-fmax.c): New rule.
7551         (CFLAGS-bench-fmin.c): Likewise.
7552         * benchtests/fmax-inputs: New file.
7553         * benchtests/fmin-inputs: Likewise.
7554
7555         * benchtests/bench-string.h (TEST_FUNCTION): Use name without
7556         parenthesis.
7557         (CMDLINE_PROCESS): Define using function instead of macro.
7558         * benchtests/bench-memccpy.c: Include <support/test-driver.c> instead
7559         of test-skeleton.
7560         * benchtests/bench-memchr.c: Likewise.
7561         * benchtests/bench-memcmp.c: Likewise.
7562         * benchtests/bench-memcpy-large.c: Likewise.
7563         * benchtests/bench-memcpy.c: Likewise.
7564         * benchtests/bench-memmem.c: Likewise.
7565         * benchtests/bench-memmove-large.c: Likewise.
7566         * benchtests/bench-memmove.c: Likewise.
7567         * benchtests/bench-memset-large.c: Likewise.
7568         * benchtests/bench-memset.c: Likewise.
7569         * benchtests/bench-rawmemchr.c: Likewise.
7570         * benchtests/bench-strcasecmp.c: Likewise.
7571         * benchtests/bench-strcasestr.c: Likewise.
7572         * benchtests/bench-strcat.c: Likewise.
7573         * benchtests/bench-strchr.c: Likewise.
7574         * benchtests/bench-strcmp.c: Likewise.
7575         * benchtests/bench-strcpy.c: Likewise.
7576         * benchtests/bench-strcpy_chk.c: Likewise.
7577         * benchtests/bench-strlen.c: Likewise.
7578         * benchtests/bench-strncasecmp.c: Likewise.
7579         * benchtests/bench-strncmp.c: Likewise.
7580         * benchtests/bench-strncpy.c: Likewise.
7581         * benchtests/bench-strnlen.c: Likewise.
7582         * benchtests/bench-strpbrk.c: Likewise.
7583         * benchtests/bench-strrchr.c: Likewise.
7584         * benchtests/bench-strsep.c: Likewise.
7585         * benchtests/bench-strspn.c: Likewise.
7586         * benchtests/bench-strstr.c: Likewise.
7587         * benchtests/bench-strtok.c: Likewise.
7588
7589 2016-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
7590
7591         * sysdeps/x86/cpu-features.c (get_common_indeces): Add
7592         stepping identification.
7593         (init_cpu_features): Add handle of Haswell.
7594
7595 2016-11-25  Jim Meyering  <meyering@fb.com>
7596
7597         [BZ #20386]
7598         Let gcc detect assert(a = 1) errors.
7599         * assert/assert.h (assert): Rewrite, retaining the old definintion
7600         when required, but otherwise putting the expression as-is in an "if"
7601         expression (hence, with no added parentheses) within a statement
7602         expression.
7603
7604 2016-12-17  Siddhesh Poyarekar  <siddhesh@sourceware.org>
7605
7606         * benchtests/Makefile (binaries-benchset): Depend on libsupport
7607         DSO.
7608
7609 2016-12-17  Martin Galvan  <martingalvan@sourceware.org>
7610
7611         * Rules (python-flags, python-invoke): New.
7612         ($(test-printers-out)): Use $(python-flags).
7613
7614 2016-12-16  Joseph Myers  <joseph@codesourcery.com>
7615
7616         * manual/arith.texi (Math Error Reporting): Document that sNaN
7617         arguments are not considered domain errors.
7618
7619 2016-12-16  Zack Weinberg <zackw@panix.com>
7620             Florian Weimer <fweimer@redhat.com>
7621             Nick Mathewson <nickm@torproject.org>
7622
7623         * string/explicit_bzero.c: New routine.
7624         * string/test-explicit_bzero.c, string/tst-xbzero-opt.c: New tests.
7625         * string/Makefile (routines, strop-tests, tests): Add them.
7626         * string/test-memset.c: Add ifdeffage for testing explicit_bzero.
7627         * string/string.h [__USE_MISC]: Declare explicit_bzero.
7628
7629         * debug/explicit_bzero_chk.c: New routine.
7630         * debug/Makefile (routines): Add it.
7631         * debug/tst-chk1.c: Test fortification of explicit_bzero.
7632         * string/bits/string3.h: Fortify explicit_bzero.
7633
7634         * manual/string.texi: Document explicit_bzero.
7635         * NEWS: Mention addition of explicit_bzero.
7636
7637         * crypt/crypt-entry.c (__crypt_r): Clear key-dependent intermediate
7638         data before returning, using explicit_bzero.
7639         * crypt/md5-crypt.c (__md5_crypt_r): Likewise.
7640         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
7641         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
7642
7643         * include/string.h: Redirect internal uses of explicit_bzero
7644         to __explicit_bzero_chk[_internal].
7645         * string/Versions [GLIBC_2.25]: Add explicit_bzero.
7646         * debug/Versions [GLIBC_2.25]: Add __explicit_bzero_chk.
7647         * sysdeps/arm/nacl/libc.abilist
7648         * sysdeps/unix/sysv/linux/aarch64/libc.abilist
7649         * sysdeps/unix/sysv/linux/alpha/libc.abilist
7650         * sysdeps/unix/sysv/linux/arm/libc.abilist
7651         * sysdeps/unix/sysv/linux/hppa/libc.abilist
7652         * sysdeps/unix/sysv/linux/i386/libc.abilist
7653         * sysdeps/unix/sysv/linux/ia64/libc.abilist
7654         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
7655         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist
7656         * sysdeps/unix/sysv/linux/microblaze/libc.abilist
7657         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
7658         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
7659         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
7660         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
7661         * sysdeps/unix/sysv/linux/nios2/libc.abilist
7662         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
7663         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
7664         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
7665         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
7666         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist
7667         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
7668         * sysdeps/unix/sysv/linux/sh/libc.abilist
7669         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
7670         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
7671         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
7672         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
7673         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist
7674         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist
7675         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist:
7676         Add entries for explicit_bzero and __explicit_bzero_chk.
7677
7678 2016-12-16  Joseph Myers  <joseph@codesourcery.com>
7679
7680         * math/fenv.h
7681         [__GLIBC_USE (IEC_60559_BFP_EXT) && FE_INVALID && __SUPPORT_SNAN__]
7682         (FE_SNANS_ALWAYS_SIGNAL): New macro.
7683         * math/test-fe-snans-always-signal.c: New file.
7684         * math/Makefile (tests): Add test-fe-snans-always-signal.
7685         (CFLAGS-test-fe-snans-always-signal.c): New variable.
7686         * manual/arith.texi (Infinity and NaN): Document
7687         FE_SNANS_ALWAYS_SIGNAL.
7688
7689 2016-12-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7690
7691         * string/test-memchr.c (do_test): Typo on ‘byte’ and missing closing
7692         bracket.
7693
7694 2016-12-16  Joseph Myers  <joseph@codesourcery.com>
7695
7696         * scripts/build-many-glibcs.py (Context.exec_self): Flush stdout
7697         before calling execv.
7698
7699 2016-12-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7700
7701         [BZ #20971]
7702         * sysdeps/powerpc/powerpc64/power7/memchr.S (__memchr): Avoid
7703         overflow in pointer addition.
7704         * string/test-memchr.c (do_test): Add an argument to pass as
7705         the size on memchr.
7706         (test_main): Add check for SIZE_MAX.
7707
7708 2016-12-16  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7709
7710         * math/Makefile (gen-libm-calls): Remove w_scalblnF.
7711         (libm-calls): Add w_scalblnF.
7712         * math/w_scalbln.c: Remove.
7713         * math/w_scalblnf.c: Likewise.
7714         * math/w_scalblnl.c: Likewise.
7715         * math/w_scalbln_template.c: New file with type-generic
7716         implementation based on math/w_scalbln.c.
7717         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: Remove.
7718         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Use new template.
7719
7720 2016-12-15  Joseph Myers  <joseph@codesourcery.com>
7721
7722         [BZ #20947]
7723         * sysdeps/i386/fpu/s_fmaxl.S (__fmaxl): Add the arguments when
7724         either is a signaling NaN.
7725         * sysdeps/i386/fpu/s_fminl.S (__fminl): Likewise.  Make code
7726         follow fmaxl more closely.
7727         * sysdeps/i386/i686/fpu/s_fmaxl.S (__fmaxl): Add the arguments
7728         when either is a signaling NaN.
7729         * sysdeps/i386/i686/fpu/s_fminl.S (__fminl): Likewise.
7730         * sysdeps/x86_64/fpu/s_fmax.S (__fmax): Likewise.
7731         * sysdeps/x86_64/fpu/s_fmaxf.S (__fmaxf): Likewise.
7732         * sysdeps/x86_64/fpu/s_fmaxl.S (__fmaxl): Likewise.
7733         * sysdeps/x86_64/fpu/s_fmin.S (__fmin): Likewise.
7734         * sysdeps/x86_64/fpu/s_fminf.S (__fminf): Likewise.
7735         * sysdeps/x86_64/fpu/s_fminl.S (__fminl): Likewise.
7736         * math/libm-test.inc (fmax_test_data): Add tests of sNaN inputs.
7737         (fmin_test_data): Likewise.
7738
7739 2016-12-15  Andreas Schwab  <schwab@suse.de>
7740
7741         * support/support_test_main.c (support_test_main): Don't shadow
7742         file-local variable test_pid.
7743
7744 2016-12-15  Joseph Myers  <joseph@codesourcery.com>
7745
7746         [BZ #20947]
7747         * sysdeps/powerpc/fpu/s_fmax.S (__fmax): Add the arguments when
7748         either is a signaling NaN.
7749         * sysdeps/powerpc/fpu/s_fmin.S (__fmin): Likewise.
7750
7751 2016-12-14  Joseph Myers  <joseph@codesourcery.com>
7752
7753         [BZ #20947]
7754         * math/s_fmax_template.c (M_DECL_FUNC (__fmax)): Add the arguments
7755         when either is a signaling NaN.
7756         * math/s_fmin_template.c (M_DECL_FUNC (__fmin)): Likewise.
7757
7758         * bits/long-double.h: New file.
7759         * sysdeps/ieee754/ldbl-128/bits/long-double.h: Likewise.
7760         * sysdeps/ieee754/ldbl-96/bits/long-double.h: Likewise.
7761         * sysdeps/ieee754/ldbl-opt/bits/long-double.h: Likewise.
7762         * sysdeps/mips/bits/long-double.h: Likewise.
7763         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Likewise.
7764         * math/Makefile (headers): Add bits/long-double.h.
7765         * misc/sys/cdefs.h: Include <bits/long-double.h>.
7766         * stdlib/strtold.c: Include <bits/long-double.h> instead of
7767         <bits/wordsize.h>.
7768         * bits/mathdef.h [!_COMPLEX_H]: Do not allow inclusion.
7769         [!__NO_LONG_DOUBLE_MATH]: Remove conditional code.
7770         * math/math.h: Do not include <bits/mathdef.h>.
7771         * sysdeps/aarch64/bits/mathdef.h: Remove file.
7772         * sysdeps/alpha/bits/mathdef.h [!_COMPLEX_H]: Do not allow
7773         inclusion.
7774         * sysdeps/ia64/bits/mathdef.h: Remove file.
7775         * sysdeps/m68k/m680x0/bits/mathdef.h: Likewise.
7776         * sysdeps/mips/bits/mathdef.h: Likewise.
7777         * sysdeps/powerpc/bits/mathdef.h: Likewise.
7778         * sysdeps/s390/bits/mathdef.h: Likewise.
7779         * sysdeps/sparc/bits/mathdef.h: Likewise.
7780         * sysdeps/x86/bits/mathdef.h: Likewise.
7781         * sysdeps/s390/s390-32/bits/wordsize.h
7782         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]: Remove
7783         conditional code.
7784         * sysdeps/s390/s390-64/bits/wordsize.h
7785         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]:
7786         Likewise.
7787         * sysdeps/unix/sysv/linux/alpha/bits/wordsize.h
7788         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]:
7789         Likewise.
7790         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h
7791         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]:
7792         Likewise.
7793         * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h
7794         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]:
7795         Likewise.
7796
7797         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]: Include
7798         <linux/falloc.h>.
7799         (FALLOC_FL_KEEP_SIZE): Remove.
7800         (FALLOC_FL_PUNCH_HOLE): Likewise.
7801         (FALLOC_FL_COLLAPSE_RANGE): Likewise.
7802         (FALLOC_FL_ZERO_RANGE): Likewise.
7803
7804 2016-12-14  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7805
7806         * stdlib/tst-strfrom.h (ENTRY): Replace use of CSUF with LSUF.
7807
7808 2016-12-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7809
7810         * sysdeps/unix/sysv/linux/renameat.c: New file.
7811         * sysdeps/unix/sysv/linux/syscalls.list: Remove renameat.
7812
7813         * sysdeps/unix/sysv/linux/rename.c: New file.
7814         * sysdeps/unix/sysv/linux/generic/rename.c: Remove file.
7815
7816 2015-12-14  Wilco Dijkstra  <wdijkstr@arm.com>
7817
7818         * benchtests/bench-strtok.c (oldstrtok): Add old implementation.
7819         * string/strtok.c (strtok): Change to tailcall __strtok_r.
7820         * string/strtok_r.c (__strtok_r): Optimize for performance.
7821         * string/string-inlines.c (__old_strtok_r_1c): New function.
7822         * string/bits/string2.h (__strtok_r): Move to string-inlines.c.
7823
7824 2016-12-14  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7825
7826         * math/Makefile (gen-libm-calls): Add w_log1pF.
7827         (libm-calls): Remove w_log1pF.
7828         * math/w_log1p.c: Remove.
7829         * math/w_log1pf.c: Likewise.
7830         * math/w_log1pl.c: Likewise.
7831         * math/w_log1p_template.c: New file with type-generic
7832         implementation based on math/w_log1p.c.
7833         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Remove.
7834         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: Likewise.
7835
7836 2015-12-14  Wilco Dijkstra  <wdijkstr@arm.com>
7837
7838         * string/rawmemchr.c (RAWMEMCHR): Use faster memchr/strlen.
7839
7840 2016-12-14  Joseph Myers  <joseph@codesourcery.com>
7841
7842         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7843         kernel version to 4.9.
7844
7845 2016-12-12  Andrew Senkevich  <andrew.senkevich@intel.com>
7846
7847         * math/Makefile ($(inst_libdir)/libm-$(version).a): New target.
7848         ($(inst_libdir)/libm.a): Fix rule to create the target only.
7849
7850 2016-12-13  Andreas Schwab  <schwab@suse.de>
7851
7852         * sysdeps/powerpc/dl-procinfo.c: Don't define
7853         _dl_powerpc_platforms.
7854         * sysdeps/powerpc/dl-procinfo.h (_dl_string_platform): Use string
7855         constants instead of referencing _dl_powerpc_platforms.
7856         (_dl_platform_string): Remove.
7857
7858 2016-12-13  Florian Weimer  <fweimer@redhat.com>
7859
7860         * nptl/tst-cancel7.c (cmdline_process): Add missing case label.
7861
7862 2016-12-13  Florian Weimer  <fweimer@redhat.com>
7863
7864         * Rules (binaries-shared-tests, binaries-pie-tests)
7865         (binaries-static-tests): Link with $(link-extra-libs-tests).
7866         * Makeconfig (+link-pie-tests, +link-static-tests, +link-tests):
7867         Remove $(link-extra-libs-tests).
7868
7869 2016-12-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
7870
7871         * sysdeps/powerpc/powerpc64/multiarch/Makefile
7872         (sysdep_routines): Add strncmp_power9.
7873         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7874         (strncmp): Add __strncmp_power9 to list of strncmp functions.
7875         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: New file.
7876         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
7877         (strncmp): Add __strncmp_power9 to ifunc list.
7878         * sysdeps/powerpc/powerpc64/power9/strncmp.S: New file.
7879
7880 2016-12-12  Florian Weimer  <fweimer@redhat.com>
7881
7882         [BZ #17252]
7883         Add getentropy, getrandom.
7884         * stdlib/sys/random.h: New file.
7885         (headers): Add it.
7886         * stdlib/Makefile (routines): Add getentropy, getrandom.
7887         (tests): Add tst-getrandom.
7888         * stdlib/Versions (GLIBC_2.25): Add getrandom, getentropy.
7889         * stdlib/getentropy.c: New file.
7890         * stdlib/getrandom.c: Likewise.
7891         * stdlib/tst-getrandom.c: Likewise.
7892         * sysdeps/unix/sysv/linux/getentropy.c: Likewise.
7893         * sysdeps/unix/sysv/linux/getrandom.c: Likewise.
7894         * manual/crypt.texi (Unpredictable Bytes): New section.
7895         * manual/math.texi (Pseudo-Random Numbers): Add cross-reference.
7896         * sysdeps/arm/nacl/libc.abilist: Add getrandom, getentropy.
7897         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
7898         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
7899         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
7900         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
7901         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
7902         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
7903         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
7904         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
7905         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
7906         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
7907         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
7908         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
7909         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
7910         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
7911         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
7912         Likewise.
7913         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
7914         Likewise.
7915         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
7916         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
7917         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
7918         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
7919         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
7920         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
7921         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
7922         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
7923         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
7924         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
7925         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
7926         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
7927
7928 2016-12-10  Florian Weimer  <fweimer@redhat.com>
7929
7930         [BZ #20956]
7931         * debug/tst-backtrace.h (NO_INLINE): Add noclone, weak attributes
7932         as additional compiler barriers.
7933         * debug/tst-backtrace2.c: Switch to <support/test-driver.c>.
7934         (fn2, do_test): Declare with external linkage.
7935         * debug/tst-backtrace3.c: Switch to <support/test-driver.c>.
7936         (do_test): Declare with external linkage.
7937         * debug/tst-backtrace4.c: Switch to <support/test-driver.c>.
7938         (do_test): Declare with external linkage.
7939         * debug/tst-backtrace5.c: Switch to <support/test-driver.c>.
7940         (do_test): Declare with external linkage.
7941
7942 2016-12-10  Andreas Schwab  <schwab@linux-m68k.org>
7943
7944         * support/support_test_main.c (support_test_main): Use correct
7945         timeout.
7946
7947 2016-12-09  Carlos O'Donell  <carlos@redhat.com>
7948             Florian Weimer  <fweimer@redhat.com>
7949
7950         [BZ #16421]
7951         * inet/netinet/in.h (struct in6_addr): Always define __u6_addr16
7952         and __u6_addr32 members.
7953         (IN6_IS_ADDR_UNSPECIFIED, IN6_IS_ADDR_LOOPBACK)
7954         (IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL)
7955         (IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, IN6_ARE_ADDR_EQUAL):
7956         Use __u6_addr32.
7957         * inet/tst-checks.c: Use <support/test-driver.c>
7958         * inet/tst-checks-posix.c: New file.
7959         * inet/Makefile (tests): Add it.
7960         (CFLAGS-tst-checks-posix.c): Compile in C99 mode.
7961
7962 2016-12-09  Florian Weimer  <fweimer@redhat.com>
7963
7964         New subdirectory support for build and test infrastructure.
7965         * extra-libs.mk (extra-libs-noinstall): Add variable.  Use it when
7966         setting install-lib.
7967         * Makeconfig (link-extra-libs-tests): Define.
7968         (+link-pie-tests, +link-static-tests, +link-tests): Use
7969         link-extra-libs-tests.
7970         (rpath-dirs, all-subdirs): Add support.
7971         (built-modules): Add libsupport.
7972         (libsupport): Define.
7973         * support: New directory.
7974         * support/Makefile: New file.
7975         * support/check.c: Likewise.
7976         * support/check.h: Likewise.
7977         * support/delayed_exit.c: Likewise.
7978         * support/ignore_stderr.c: Likewise.
7979         * support/oom_error.c: Likewise.
7980         * support/set_fortify_handler.c: Likewise.
7981         * support/support.h: Likewise.
7982         * support/temp_file-internal.h: Likewise.
7983         * support/temp_file.c: Likewise.
7984         * support/test-driver.c: Likewise.
7985         * support/test-driver.h: Likewise.
7986         * support/test_main.c: Likewise.
7987         * support/write_message.c: Likewise.
7988         * support/xasprintf.c: Likewise.
7989         * support/xcalloc.c: Likewise.
7990         * support/xmalloc.c: Likewise.
7991         * support/xpthread_barrier_destroy.c: Likewise.
7992         * support/xpthread_barrier_init.c: Likewise.
7993         * support/xpthread_barrier_wait.c: Likewise.
7994         * support/xpthread_cancel.c: Likewise.
7995         * support/xpthread_check_return.c: Likewise.
7996         * support/xpthread_cond_wait.c: Likewise.
7997         * support/xpthread_create.c: Likewise.
7998         * support/xpthread_detach.c: Likewise.
7999         * support/xpthread_join.c: Likewise.
8000         * support/xpthread_mutex_lock.c: Likewise.
8001         * support/xpthread_mutex_unlock.c: Likewise.
8002         * support/xpthread_sigmask.c: Likewise.
8003         * support/xpthread_spin_lock.c: Likewise.
8004         * support/xpthread_spin_unlock.c: Likewise.
8005         * support/xrealloc.c: Likewise.
8006         * support/xsignal.h: Likewise.
8007         * support/xthread.h: Likewise.
8008         * support_tempfile.h: Likewise.
8009         * test-skeleton.c: Include <support/support.h>, <support/xsignal.h>.
8010         (TEST_DATA_LIMIT): Remove unused macro.
8011         (_FAIL, FAIL_RET, FAIL_EXIT, FAIL_EXIT1): Remove.  Now in
8012         <support/check.h>.
8013         (oom_error, xmalloc, xcalloc, xrealloc, xasprintf, write_message)
8014         (ignore_stderr, set_fortify_handler): Remove.  Now in
8015         <support/support.h>.
8016         (xpthread_sigmask): Remove.  Now in <support/xsignal.h>.
8017         (xpthread_mutex_lock, xpthread_spin_lock, xpthread_cond_wait)
8018         (xpthread_barrier_wait, xpthread_create, xpthread_detach)
8019         (xpthread_join): Remove.  Now in <support/xthread.h>.
8020         (TEST_FUNCTION, PREPARE, CLEANUP_HANDLER, CMDLINE_PROCESS):
8021         Introduce legacy wrappers.
8022         * dlfcn/Makefile (bug-atexit3-lib.so): Link with $(libsupport).
8023         * dlfcn/bug-atexit3-lib.cc: Include <support/support.h>.
8024         (write_message): Remove.
8025         * dirent/opendir-tst1.c: Use <support/test-driver.h> instead of
8026         test-skeleton.c.
8027         * io/test-open-tmpfile: Likewise.
8028         * io/tst-posix_fallocate-common.c: Likewise.
8029         * libio/tst-fseek.c: Likewise.
8030         * malloc/tst-malloc-backtrace.c: Likewise.
8031         * malloc/tst-malloc-fork-deadlock.c: Likewise.
8032         * malloc/tst-malloc-thread-exit.c: Likewise.
8033         * nptl/tst-cancel7.c: Likewise.
8034         * nptl/tst-cleanup0.c: Likewise.
8035         * posix/tst-posix_fadvise-common.c: Likewise.
8036         * rt/tst-shm.c: Likewise.
8037         * time/bug-getdate1.c: Likewise.
8038         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
8039         * sysdeps/unix/sysv/linux/tst-sync_file_range.c: Likewise.
8040         * elf/Makefile (tst-piemod1.so): Link against libsupport.
8041
8042 2016-12-08  Joseph Myers  <joseph@codesourcery.com>
8043
8044         * Rules [$(run-built-tests) != no] (tests-expected): Add
8045         $(tests-printers).
8046         (tests): Do not pass $(tests-printers) to merge-test-results.sh.
8047
8048 2016-12-08  Andrew Senkevich  <andrew.senkevich@intel.com>
8049
8050         [BZ #20539]
8051         * math/Makefile (install-lib-ldscripts): Add libm.a.
8052         (install_subdir): Remove.
8053         (install-others): Add.
8054         ($(inst_libdir)/libm.a): Add rule for installation as
8055         linker script.
8056         * Makerules (install-lib.a): Filter out install-lib-ldscripts.
8057
8058 2016-12-08  Martin Galvan  <martin.galvan@tallertechnologies.com>
8059
8060         * INSTALL: Regenerated.
8061         * Makeconfig: Add comments and whitespace to make the control flow
8062         clearer.
8063         (+link-printers-tests, +link-pie-printers-tests,
8064         CFLAGS-printers-tests, installed-rtld-LDFLAGS,
8065         built-rtld-LDFLAGS, link-libc-rpath,
8066         link-libc-tests-after-rpath-link,
8067         link-libc-printers-tests): New.
8068         (rtld-LDFLAGS, rtld-tests-LDFLAGS, link-libc-tests-rpath-link,
8069         link-libc-tests): Use the new variables as required.
8070         * Makerules ($(py-const)): New rule.
8071         generated: Add $(py-const).
8072         * README.pretty-printers: New file.
8073         * Rules (tests-printers-programs, tests-printers-out, py-env): New.
8074         (others): Depend on $(py-const).
8075         (tests): Depend on $(tests-printers-programs) or
8076         $(tests-printers-out),
8077         as required.  Pass $(tests-printers) to merge-test-results.sh.
8078         * manual/install.texi: Add requirements for testing the pretty
8079         printers.
8080         * nptl/Makefile (gen-py-const-headers, pretty-printers,
8081         tests-printers, CFLAGS-test-mutexattr-printers.c
8082         CFLAGS-test-mutex-printers.c, CFLAGS-test-condattr-printers.c,
8083         CFLAGS-test-cond-printers.c, CFLAGS-test-rwlockattr-printers.c
8084         CFLAGS-test-rwlock-printers.c, tests-printers-libs): Define.
8085         * nptl/nptl-printers.py: New file.
8086         * nptl/nptl_lock_constants.pysym: Likewise.
8087         * nptl/test-cond-printers.c: Likewise.
8088         * nptl/test-cond-printers.py: Likewise.
8089         * nptl/test-condattr-printers.c: Likewise.
8090         * nptl/test-condattr-printers.py: Likewise.
8091         * nptl/test-mutex-printers.c: Likewise.
8092         * nptl/test-mutex-printers.py: Likewise.
8093         * nptl/test-mutexattr-printers.c: Likewise.
8094         * nptl/test-mutexattr-printers.py: Likewise.
8095         * nptl/test-rwlock-printers.c: Likewise.
8096         * nptl/test-rwlock-printers.py: Likewise.
8097         * nptl/test-rwlockattr-printers.c: Likewise.
8098         * nptl/test-rwlockattr-printers.py: Likewise.
8099         * scripts/gen-py-const.awk: Likewise.
8100         * scripts/test_printers_common.py: Likewise.
8101         * scripts/test_printers_exceptions.py: Likewise.
8102
8103 2016-12-07  Joseph Myers  <joseph@codesourcery.com>
8104
8105         * scripts/build-many-glibcs.py (Context.__init__): Take strip
8106         argument.
8107         (Glibc.build_glibc): Strip installed shared libraries if
8108         requested.
8109         (get_parser): Add --strip option.
8110         (main): Update Context call.
8111
8112 2016-12-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8113             Dominik Vogt  <vogt@linux.vnet.ibm.com>
8114
8115         [BZ #20847]
8116         * posix/execvpe.c (maybe_script_execute): Remove write past allocated
8117         array bounds for else branch.
8118         (__execvpe): Style fixes.
8119         * posix/tst-vfork3.c (run_script): New function.
8120         (create_script): Likewise.
8121         (do_test): Use run_script internal function.
8122         (do_prepare): Use create_script internal function.
8123
8124 2016-12-07  Andreas Schwab  <schwab@suse.de>
8125
8126         * sysdeps/unix/sysv/linux/x86/elision-conf.h
8127         (__elision_available): Don't declare.
8128         * sysdeps/unix/sysv/linux/x86/elision-conf.c
8129         (__elision_available): Don't define.
8130         (elision_init): Don't set __elision_available.
8131
8132 2016-12-07  Joseph Myers  <joseph@codesourcery.com>
8133
8134         [BZ #20940]
8135         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Do not
8136         return Inf for arguments Inf and sNaN.
8137         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
8138         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
8139         Likewise.
8140         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
8141         Likewise.
8142         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
8143         * sysdeps/powerpc/fpu/e_hypot.c (TEST_INF_NAN): Do not return Inf
8144         for arguments Inf and sNaN.  When returning a NaN, compute it by
8145         arithmetic on the arguments.
8146         * sysdeps/powerpc/fpu/e_hypotf.c (TEST_INF_NAN): Likewise.
8147         * math/libm-test.inc (hypot_test_data): Add tests of sNaN
8148         arguments.
8149
8150 2016-12-06  Joseph Myers  <joseph@codesourcery.com>
8151
8152         [BZ #20916]
8153         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Do not return 1 for
8154         arguments (sNaN, 0) or (1, sNaN).  Do arithmetic on NaN arguments
8155         to compute result.
8156         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8157         * math/libm-test.inc (pow_test_data): Add tests of sNaN arguments.
8158
8159 2016-12-05  Torvald Riegel  <triegel@redhat.com>
8160
8161         * include/atomic.h (__atomic_check_size_ls): New.
8162         (atomic_load_relaxed, atomic_load_acquire, atomic_store_relaxed,
8163         atomic_store_release): Use it.
8164         * sysdeps/x86/elide.h (ACCESS_ONCE): Remove.
8165         (elision_adapt, ELIDE_LOCK): Use atomics.
8166         * sysdeps/unix/sysv/linux/x86/elision-lock.c (__lll_lock_elision): Use
8167         atomics and improve code comments.
8168         * sysdeps/unix/sysv/linux/x86/elision-trylock.c
8169         (__lll_trylock_elision): Likewise.
8170
8171 2016-12-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8172
8173         * hurd/hurd.h: Cast errno constants to error_t to fix usage in C++
8174         programs.
8175
8176 2016-12-02  Joseph Myers  <joseph@codesourcery.com>
8177
8178         [BZ #20916]
8179         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Do not return 1
8180         for arguments (sNaN, 0) or (1, sNaN).  Do arithmetic on NaN
8181         arguments to compute result.
8182         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Do not return
8183         1 for arguments (sNaN, 0) or (1, sNaN).
8184         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
8185         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
8186
8187         [BZ #20919]
8188         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Do not return
8189         NaN first argument when raised to power 0.
8190         * math/w_pow.c (__pow): Do not check for NaN or zero results from
8191         raising to power zero.
8192         * math/w_powf.c (__powf): Likewise.
8193         * math/w_powl.c (__powl): Likewise.
8194         * sysdeps/ieee754/k_standard.c (__kernel_standard): Do not handle
8195         pow (0, 0) or pow (NaN, 0).
8196
8197 2016-12-02  Carlos O'Donell  <carlos@redhat.com>
8198
8199         [BZ #20918]
8200         * configure.ac: Test for static NSS cryptographic libraries and set
8201         libc_cv_static_nss_crypt.
8202         * configure: Regenerate.
8203         * config.make.in (static-nss-crypt): Define.
8204         * elf/Makefile (CFLAGS-tst-linkall-static.c): Define.
8205         [ifeq (yesno,$(nss-crypt)$(static-nss-crypt))]
8206         (CFLAGS-tst-linkall-static.c): Define.
8207         ($(objpfx)tst-linkall-static): Remove libcrypt.a.
8208         [ifeq (yesyes,$(nss-crypt)$(static-nss-crypt))]
8209         ($(objpfx)tst-linkall-static): Define.
8210         [ifeq (no,$(nss-crypt))] ($(objpfx)tst-linkall-static): Define.
8211         * elf/tst-linkall-static.c [USE_CRYPT](references): Reference crypt().
8212
8213 2016-12-02  Florian Weimer  <fweimer@redhat.com>
8214
8215         * elf/Makefile [build-shared] (tests): Add tst-latepthread.
8216         (one-hundred, tst-tls-many-dynamic-modules): Define.
8217         (modules-names): Add $(tst-tls-many-dynamic-modules).
8218         (tst-tls-manydynamic%mod.os): Build with special preprocessor
8219         macros.
8220         (tst-tls-manydynamic): Link against libdl, libpthread.
8221         (tst-tls-manydynamic.out): The test needs the test modules at run
8222         time.
8223         * elf/tst-tls-manydynamic.c: New file.
8224         * elf/tst-tls-manydynamic.h: Likewise.
8225         * elf/tst-tls-manydynamicmod.c: Likewise.
8226
8227 2016-12-02  Florian Weimer  <fweimer@redhat.com>
8228
8229         * sysdeps/aarch64/tlsdesc.sym (TCBHEAD_DTV, DTV_COUNTER)
8230         (TLS_DTV_UNALLOCATED): Add.
8231         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use explicit
8232         offsets.
8233
8234 2016-12-02  Stefan Liebler  <stli@linux.vnet.ibm.com>
8235
8236         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
8237
8238 2016-12-02  Stefan Liebler  <stli@linux.vnet.ibm.com>
8239
8240         * elf/Makefile (CFLAGS-tst-latepthreadmod.c):
8241         Add -fno-optimize-sibling-calls.
8242
8243 2016-12-02  Joseph Myers  <joseph@codesourcery.com>
8244
8245         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (llogb):
8246         New declaration.
8247         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (llogb): New
8248         macro.
8249         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (__FP_LONG_MAX):
8250         New macro.
8251         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FP_LLOGB0): Likewise.
8252         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FP_LLOGBNAN): Likewise.
8253         * math/Versions (llogb): New libm symbol at version GLIBC_2.25.
8254         (llogbf): Likewise.
8255         (llogbl): Likewise.
8256         * math/Makefile (gen-libm-calls): Add w_llogbF.
8257         (tests): Add test-fp-llogb-constants.
8258         * math/w_llogb_template.c: New file.  Based on
8259         math/w_ilogb_template.c.
8260         * math/libm-test.inc (llogb_test_data): New array.
8261         (llogb_test): New function.
8262         (main): Call llogb_test.
8263         * math/test-fp-llogb-constants.c: New file.  Based on
8264         math/test-fp-ilogb-constants.c.
8265         * math/test-tgmath-ret.c (llogb): New CHECK_RET_CONST call.
8266         (do_test): Call check_return_llogb.
8267         * math/test-tgmath.c (NCALLS): Increase to 126.
8268         (F(compile_test)): Call llogb.
8269         (F(llogb)): New function.
8270         * manual/math.texi (Exponents and Logarithms): Document llogb,
8271         llogbf, llogbl, FP_LLOGB0 and FP_LLOGBNAN.
8272         * manual/libm-err-tab.pl (@all_functions): Add llogb.
8273         * sysdeps/ieee754/ldbl-opt/nldbl-llogb.c: New file.
8274         * sysdeps/ieee754/ldbl-opt/w_llogbl.c: Likewise.
8275         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add llogb.
8276         (CFLAGS-nldbl-llogb.c): New variable.
8277         * sysdeps/nacl/libm.abilist: Update.
8278         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
8279         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
8280         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
8281         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
8282         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
8283         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
8284         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
8285         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
8286         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
8287         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
8288         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
8289         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
8290         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
8291         Likewise.
8292         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
8293         Likewise.
8294         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
8295         Likewise.
8296         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
8297         Likewise.
8298         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
8299         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
8300         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
8301         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
8302         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
8303         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
8304         Likewise.
8305         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
8306         Likewise.
8307         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
8308         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
8309         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
8310
8311 2016-12-01  Joseph Myers  <joseph@codesourcery.com>
8312
8313         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Use
8314         _Float128 instead of long double.
8315         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c (FUNC): Likewise.
8316
8317         * sysdeps/alpha/setjmp.S (__sigsetjmp): Use hidden_def.
8318         * sysdeps/hppa/setjmp.S (__sigsetjmp): Likewise.
8319         * sysdeps/mips/mips64/setjmp.S (__sigsetjmp): Likewise.
8320         * sysdeps/mips/setjmp.S (__sigsetjmp): Likewise.
8321         * sysdeps/sh/sh3/setjmp.S (__sigsetjmp): Likewise.
8322         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Likewise.
8323         * sysdeps/sparc/sparc32/setjmp.S (__sigsetjmp): Likewise.
8324         * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
8325         * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S (__sigsetjmp):
8326         Likewise.
8327
8328 2016-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8329
8330         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c (weak_alias):
8331         Remove redirection to __strrchr_ppc.
8332
8333 2016-12-01  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
8334
8335         * sysdeps/powerpc/powerpc64/multiarch/Makefile
8336         (sysdep_routines): Add strcmp_power9.
8337         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8338         (strcmp): Add __strcmp_power9 to list of strcmp functions.
8339         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: New file.
8340         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
8341         (strcmp): Add __strcmp_power9 to ifunc list.
8342         * sysdeps/powerpc/powerpc64/power9/strcmp.S: New file.
8343
8344 2016-12-01  Joseph Myers  <joseph@codesourcery.com>
8345
8346         * bits/fp-logb.h: New file.
8347         * sysdeps/ia64/bits/fp-logb.h: Likewise.
8348         * sysdeps/m68k/m680x0/bits/fp-logb.h: Likewise.
8349         * sysdeps/x86/bits/fp-logb.h: Likewise.
8350         * math/Makefile (headers): Add bits/fp-logb.h.
8351         * math/math.h: Include <bits/fp-logb.h>.
8352         [__USE_ISOC99] (FP_ILOGB0): Define based on __FP_LOGB0_IS_MIN.
8353         [__USE_ISOC99] (FP_ILOGBNAN): Define based on __FP_LOGBNAN_IS_MIN.
8354         * bits/mathdef.h (FP_ILOGB0): Remove.
8355         (FP_ILOGBNAN): Likewise.
8356         * sysdeps/aarch64/bits/mathdef.h (FP_ILOGB0): Likewise.
8357         (FP_ILOGBNAN): Likewise.
8358         * sysdeps/alpha/bits/mathdef.h (FP_ILOGB0): Likewise.
8359         (FP_ILOGBNAN): Likewise.
8360         * sysdeps/ia64/bits/mathdef.h (FP_ILOGB0): Likewise.
8361         (FP_ILOGBNAN): Likewise.
8362         * sysdeps/m68k/m680x0/bits/mathdef.h (FP_ILOGB0): Likewise.
8363         (FP_ILOGBNAN): Likewise.
8364         * sysdeps/mips/bits/mathdef.h (FP_ILOGB0): Likewise.
8365         (FP_ILOGBNAN): Likewise.
8366         * sysdeps/powerpc/bits/mathdef.h (FP_ILOGB0): Likewise.
8367         (FP_ILOGBNAN): Likewise.
8368         * sysdeps/s390/bits/mathdef.h (FP_ILOGB0): Likewise.
8369         (FP_ILOGBNAN): Likewise.
8370         * sysdeps/sparc/bits/mathdef.h (FP_ILOGB0): Likewise.
8371         (FP_ILOGBNAN): Likewise.
8372         * sysdeps/x86/bits/mathdef.h (FP_ILOGB0): Likewise.
8373         (FP_ILOGBNAN): Likewise.
8374
8375         * scripts/build-many-glibcs.py: Add bot to usage message.  Import
8376         time module.
8377         (Context.__init__): Initialize self.logsdir_old.
8378         (Context.run_builds): Handle bot action.
8379         (Context.bot_cycle): Copy logs directory before running builds.
8380         (Context.bot_run_self): Take argument for whether to check
8381         subprocess result.  Flush stdout before running subprocess.
8382         (Context.bot): New function.
8383         (get_parser): Allow bot action.
8384
8385 2016-11-30  Joseph Myers  <joseph@codesourcery.com>
8386
8387         * scripts/build-many-glibcs.py: Add bot-cycle to usage message.
8388         Import email.mime.text, email.utils and smtplib modules.
8389         (Context.__init__): Initialize self.bot_config_json.
8390         (Context.run_builds): Handle bot-cycle action.
8391         (Context.load_bot_config_json): New function.
8392         (Context.part_build_old): Likewise.
8393         (Context.bot_cycle): Likewise.
8394         (Context.bot_build_mail): Likewise.
8395         (Context.bot_run_self): Likewise.
8396         (get_parser): Allow bot-cycle action.
8397
8398 2016-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8399
8400         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c (weak_alias):
8401         Remove redirection to __stpcpy_ppc.
8402
8403 2016-11-30  Florian Weimer  <fweimer@redhat.com>
8404
8405         Remove __libc_memalign from ld.so because it is unused.
8406         * elf/dl-minimal.c: Update comment on the malloc implementation.
8407         (malloc): Renamed from __libc_memalign, replacing the original
8408         malloc implementation.  Replace the align parameter with
8409         MALLOC_ALIGNMENT.
8410         * elf/Versions (ld): Update comment and remove __libc_memalign.
8411         * sysdeps/nacl/ld.abilist: Likewise.
8412         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
8413         * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
8414         * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
8415         * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
8416         * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
8417         * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
8418         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
8419         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
8420         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
8421         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
8422         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
8423         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
8424         * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
8425         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
8426         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
8427         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
8428         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
8429         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
8430         * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
8431         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
8432         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
8433         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: Likewise.
8434         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: Likewise.
8435         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
8436         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
8437         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
8438         * sysdeps/generic/localplt.data (ld.so): Likewise.
8439         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
8440         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
8441         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
8442         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
8443         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
8444         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
8445         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
8446         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so): Likewise.
8447         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
8448         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
8449         (ld.so): Likewise.
8450         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
8451         (ld.so): Likewise.
8452         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
8453         Likewise.
8454         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
8455         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
8456         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so): Likewise.
8457         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so): Likewise.
8458         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
8459
8460 2016-11-30  Florian Weimer  <fweimer@redhat.com>
8461
8462         [BZ #16628]
8463         Implement _dl_catch_error, _dl_signal_error in libc.so.
8464         * elf/dl-error-skeleton.c: Rename from elf/dl-error.c.
8465         (catch_hook): Define as thread-local or regular variable,
8466         depending on DL_ERROR_BOOTSTRAP.
8467         (CATCH_HOOK): Remove.
8468         (dl_signal_error, _dl_catch_error): Use
8469         catch_hook.  Add hidden definition for libc.
8470         (_dl_receive_error, _dl_signal_cerror): Use catch_hook.  Compile
8471         for DL_ERROR_BOOTSTRAP only.
8472         * elf/dl-error.c: New file.
8473         * elf/dl-error-minimal.c: Likewise.
8474         * elf/tst-latepthread.c: Likewise.
8475         * elf/tst-latepthreadmod.c: Likewise.
8476         * elf/Makefile (routines): Add dl-error.
8477         (dl-routines): Remove dl-error.
8478         (rtld-routines): Add dl-error-minimal.
8479         [build-shared] (tests): Add tst-latepthread.
8480         (module-names): Add tst-latepthreadmod.
8481         (LDFLAGS-tst-latepthreadmod.so): Enable lazy binding to undefined
8482         symbol.
8483         (tst-latepthreadmod.so): Link against libpthread.
8484         (tst-latepthread): Link against libdbl.
8485         * elf/Versions [libc] (GLIBC_PRIVATE): Add _dl_signal_error,
8486         _dl_catch_error.
8487         [ld] (GLIBC_PRIVATE): Likewise.
8488         * elf/dl-close.c (_dl_cose): Call _dl_signal_error directly.
8489         * elf/dl-libc.c (dlerror_run): Call _dl_catch_error directly.
8490         * elf/dl-sym.c (do_sym): Call _dl_signal_error, _dl_catch_error
8491         directly.
8492         * elf/dl-tsd.c: Remove file.
8493         * elf/rtld.c (_rtld_global_ro): Remove initializers for
8494         _dl_catch_error, _dl_signal_error.
8495         (_dl_initial_error_catch_tsd): Remove definition.
8496         (do_preload): Remove initialization of dl_error_catch_tsd.
8497         * dlfcn/dlerror.c (_dlerror_run): Call _dl_catch_error directly.
8498         * dlfcn/dlinfo.c (dlinfo_doit): Call _dl_signal_error directly.
8499         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
8500         * dlfcn/dlopen.c (dlopen_doit): Likewise.
8501         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Do not
8502         set dl_error_catch_tsd.
8503         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
8504         _dl_error_catch_tsd member.
8505         (struct rtld_global_ro): Remove _dl_catch_error, _dl_signal_error
8506         members.
8507         (_dl_initial_error_catch_tsd): Remove declaration.
8508         (_dl_dprintf): Provide definition for use outside of ld.so.
8509         [!rtld] (_dl_signal_cerror): Redirect to _dl_signal_error.
8510         (_dl_signal_error, _dl_catch_error): Make public.  Add hidden
8511         prototype for libc.
8512         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_error,
8513         _dl_catch_error.
8514         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
8515         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
8516         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
8517         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
8518         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
8519         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
8520         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
8521         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
8522         Likewise.
8523         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
8524         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
8525         (ld.so): Likewise.
8526         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
8527         (ld.so): Likewise.
8528         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
8529         Likewise.
8530         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
8531         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
8532         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
8533         Likewise.
8534         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
8535         Likewise.
8536         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
8537
8538 2016-11-30  Florian Weimer  <fweimer@redhat.com>
8539
8540         [BZ #4099]
8541         * libio/filedoalloc.c (_IO_file_doallocate): Limit buffer size to
8542         _IO_BUFSIZ (8192).
8543
8544 2016-11-30  Carlos O'Donell  <carlos@redhat.com>
8545
8546         * PROJECTS: Remove file.
8547
8548 2016-11-29  Florian Weimer  <fweimer@redhat.com>
8549
8550         * iconvdata/gbk.c (BODY): Add Euro sign support (both directions).
8551
8552 2016-11-29  Yury Norov  <ynorov@caviumnetworks.com>
8553             Steve Ellcey  <sellcey@caviumnetworks.com>
8554
8555         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Do not define
8556         fxstat if XSTAT_IS_XSTAT64 is set to non-zero.
8557         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Ditto for
8558         fxstatat.
8559         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Ditto for
8560         lxstat.
8561         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Ditto for xstat.
8562         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat64.c: New file.
8563         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat64.c: New file.
8564         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Make __lxstat
8565         an alias of __lxstat64 if XSTAT_IS_XSTAT64 is set to non-zero.
8566         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Ditto for
8567         __xstat.
8568
8569 2016-11-29  Florian Weimer  <fweimer@redhat.com>
8570
8571         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI___sigsetjmp):
8572         Define.
8573         * sysdeps/powerpc/powerpc32/setjmp.S (__sigsetjmp): Add hidden
8574         definition.
8575
8576 2016-11-29  Florian Weimer  <fweimer@redhat.com>
8577
8578         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S (__longjmp): Remove
8579         version and turn into strong alias.  Remove compat symbol.
8580
8581         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
8582         (__longjmp): Remove.
8583
8584 2016-11-29  Joseph Myers  <joseph@codesourcery.com>
8585
8586         * bits/fp-fast.h: New file.
8587         * sysdeps/aarch64/bits/fp-fast.h: Likewise.
8588         * sysdeps/powerpc/bits/fp-fast.h: Likewise.
8589         * math/Makefile (headers): Add bits/fp-fast.h.
8590         * math/math.h: Include <bits/fp-fast.h>.
8591         * bits/mathdef.h (FP_FAST_FMA): Remove.
8592         (FP_FAST_FMAF): Likewise.
8593         (FP_FAST_FMAL): Likewise.
8594         * sysdeps/aarch64/bits/mathdef.h (FP_FAST_FMA): Likewise.
8595         (FP_FAST_FMAF): Likewise.
8596         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Likewise.
8597         (FP_FAST_FMAF): Likewise.
8598         * sysdeps/x86/bits/mathdef.h (FP_FAST_FMA): Likewise.
8599         (FP_FAST_FMAF): Likewise.
8600         (FP_FAST_FMAL): Likewise.
8601         * sysdeps/arm/bits/mathdef.h: Remove file.
8602         * sysdeps/hppa/fpu/bits/mathdef.h: Likewise.
8603         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
8604         * sysdeps/tile/bits/mathdef.h: Likewise.
8605
8606 2016-11-28  Joseph Myers  <joseph@codesourcery.com>
8607
8608         * math/w_ilogb_template.c: New file.  Based on math/w_ilogb.c.
8609         * math/w_ilogb.c: Remove.
8610         * math/w_ilogbf.c: Likewise.
8611         * math/w_ilogbl.c: Likewise.
8612         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: Likewise.
8613         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: Likewise.
8614         * math/Makefile (gen-libm-calls): Add w_ilogbF.
8615         (libm-calls): Remove w_ilogbF.
8616         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h
8617         (LDOUBLE_ilogbl_libm_version): New macro.
8618
8619         * sysdeps/unix/sysv/linux/ia64/tst-setcontext2.c: New file.
8620
8621         * sysdeps/ia64/fpu/libm-symbols.h: Make contents conditional on
8622         [!__STRICT_ANSI__ && !__cplusplus].
8623
8624 2016-11-28  H.J. Lu  <hongjiu.lu@intel.com>
8625
8626         [BZ #20750]
8627         * sysdeps/x86_64/sysdep.h (JUMPTARGET): Check SHARED instead
8628         of PIC.
8629
8630 2016-11-28  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
8631             Yury Norov  <ynorov@caviumnetworks.com>
8632             Steve Ellcey  <sellcey@caviumnetworks.com>
8633
8634         * sysdeps/aarch64/crti.S: Add include of sysdep.h.
8635         (call_weak_fn): Use PTR_REG to get correct reg name in ILP32.
8636         * sysdeps/aarch64/dl-irel.h: Add include of sysdep.h.
8637         (elf_irela): Use AARCH64_R macro to get correct relocation in ILP32.
8638         * sysdeps/aarch64/dl-machine.h: Add include of sysdep.h.
8639         (elf_machine_load_address, RTLD_START, RTLD_START_1, RTLD_START,
8640         elf_machine_type_class, ELF_MACHINE_JMP_SLOT, elf_machine_rela,
8641         elf_machine_lazy_rel): Add ifdef's for ILP32 support.
8642         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return,
8643         _dl_tlsdesc_return_lazy, _dl_tlsdesc_dynamic,
8644         _dl_tlsdesc_resolve_hold): Extend pointers in ILP32, use PTR_REG
8645         to get correct reg name for ILP32.
8646         * sysdeps/aarch64/dl-trampoline.S (ip01): New Macro.
8647         (RELA_SIZE): New Macro.
8648         (_dl_runtime_resolve, _dl_runtime_profile): Use new macros and PTR_REG
8649         to support ILP32.
8650         * sysdeps/aarch64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Add
8651         cast for ILP32 mode.
8652         * sysdeps/aarch64/memcmp.S (memcmp): Extend arg pointers for ILP32 mode.
8653         * sysdeps/aarch64/memcpy.S (memmove, memcpy): Ditto.
8654         * sysdeps/aarch64/memset.S (__memset): Ditto.
8655         * sysdeps/aarch64/strchr.S (strchr): Ditto.
8656         * sysdeps/aarch64/strchrnul.S (__strchrnul): Ditto.
8657         * sysdeps/aarch64/strcmp.S (strcmp): Ditto.
8658         * sysdeps/aarch64/strcpy.S (strcpy): Ditto.
8659         * sysdeps/aarch64/strlen.S (__strlen): Ditto.
8660         * sysdeps/aarch64/strncmp.S (strncmp): Ditto.
8661         * sysdeps/aarch64/strnlen.S (strnlen): Ditto.
8662         * sysdeps/aarch64/strrchr.S (strrchr): Ditto.
8663         * sysdeps/unix/sysv/linux/aarch64/clone.S: Ditto.
8664         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Ditto.
8665         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext): Ditto.
8666         * sysdeps/aarch64/__longjmp.S (__longjmp): Extend pointers in ILP32,
8667         change PTR_MANGLE call to use register numbers instead of names.
8668         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Ditto.
8669         * sysdeps/aarch64/setjmp.S (__sigsetjmp): Extend arg pointers for
8670         ILP32 mode, change PTR_MANGLE calls to use register numbers.
8671         * sysdeps/aarch64/start.S (_start): Ditto.
8672         * sysdeps/aarch64/nptl/bits/pthreadtypes.h
8673         (__PTHREAD_RWLOCK_INT_FLAGS_SHARED): New define.
8674         (__SIZEOF_PTHREAD_ATTR_T, __SIZEOF_PTHREAD_MUTEX_T,
8675         __SIZEOF_PTHREAD_MUTEXATTR_T, __SIZEOF_PTHREAD_COND_T,
8676         __SIZEOF_PTHREAD_COND_COMPAT_T, __SIZEOF_PTHREAD_CONDATTR_T,
8677         __SIZEOF_PTHREAD_RWLOCK_T, __SIZEOF_PTHREAD_RWLOCKATTR_T,
8678         __SIZEOF_PTHREAD_BARRIER_T, __SIZEOF_PTHREAD_BARRIERATTR_T):
8679         Make defined values dependent on __ILP32__.
8680         * sysdeps/aarch64/nptl/bits/semaphore.h (__SIZEOF_SEM_T): Change define.
8681         (sem_t): Change __align type.
8682         * sysdeps/aarch64/sysdep.h (AARCH64_R, PTR_REG, PTR_LOG_SIZE, DELOUSE,
8683         PTR_SIZE): New Macros.
8684         (LDST_PCREL, LDST_GLOBAL) Update to use PTR_REG.
8685         * sysdeps/unix/sysv/linux/aarch64/bits/fcntl.h (O_LARGEFILE):
8686         Set when in ILP32 mode.
8687         (F_GETLK64, F_SETLK64, F_SETLKW64): Only set in LP64 mode.
8688         * sysdeps/unix/sysv/linux/aarch64/dl-cache.h (DL_CACHE_DEFAULT_ID):
8689         Set elf flags for ILP32.
8690         (add_system_dir): Set ILP32 library directories.
8691         * sysdeps/unix/sysv/linux/aarch64/init-first.c
8692         (_libc_vdso_platform_setup): Set minimum kernel version for ILP32.
8693         * sysdeps/unix/sysv/linux/aarch64/ldconfig.h
8694         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add ILP32 names.
8695         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h (GET_PC, SET_PC):
8696         New Macros.
8697         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Handle ILP32 pointers.
8698
8699 2016-11-28  Steve Ellcey  <sellcey@caviumnetworks.com>
8700
8701         * sysdeps/unix/sysv/linux/fstatfs64.c: Reorder include files,
8702         only alias fstatfs and __fstatfs if STATFS_IS_STATFS64 is non-zero.
8703         * sysdeps/unix/sysv/linux/statfs64.c: Ditto for statfs and __statfs.
8704
8705 2016-11-28  Joseph Myers  <joseph@codesourcery.com>
8706
8707         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: Do not include
8708         <asm/cachectl.h>.
8709
8710 2016-11-27  Zack Weinberg  <zackw@panix.com>
8711
8712         * libio/libio.h: Use __USE_GNU, not _GNU_SOURCE, in a conditional.
8713         * test-skeleton.c: Include stdint.h to ensure uintptr_t is available.
8714
8715 2016-11-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8716
8717         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Cast expressions results to
8718         error_t to fix usage in C++ programs.
8719
8720 2016-11-26  Joseph Myers  <joseph@codesourcery.com>
8721
8722         * scripts/build-many-glibcs.py: Import datetime module.
8723         (Context.__init__): Load JSON build state.  Initialize list of
8724         status logs.
8725         (Context.run_builds): Update saved build state.
8726         (Context.add_makefile_cmdlist): Update list of status logs.
8727         (Context.load_build_state_json): New function.
8728         (Context.store_build_state_json): Likewise.
8729         (Context.clear_last_build_state): Likewise.
8730         (Context.update_build_state): Likewise.
8731         (CommandList.status_logs): Likewise.
8732
8733 2016-11-25  Joseph Myers  <joseph@codesourcery.com>
8734
8735         * scripts/build-many-glibcs.py (Context.__init__): Save text of
8736         script being executed.
8737         (Context.get_script_text): New function.
8738         (Context.exec_self): Likewise.
8739         (Context.checkout): Re-exec script if changed by checkout process.
8740
8741 2016-11-24  Joseph Myers  <joseph@codesourcery.com>
8742
8743         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
8744         (setpayloadsig): New declaration.
8745         * math/Versions (setpayloadsig): New libm symbol at version
8746         GLIBC_2.25.
8747         (setpayloadsigf): Likewise.
8748         (setpayloadsigl): Likewise.
8749         * math/Makefile (libm-calls): Add s_setpayloadsigF.
8750         * math/libm-test.inc (RUN_TEST_Ff_b1): Call feclearexcept
8751         (FE_ALL_EXCEPT) after initializing EXTRA_VAR.
8752         (setpayloadsig_test_data): New array.
8753         (setpayloadsig_test): New function.
8754         (main): Call setpayloadsig_test.
8755         * manual/arith.texi (FP Bit Twiddling): Document setpayloadsig,
8756         setpayloadsigf and setpayloadsigl.
8757         * manual/libm-err-tab.pl: Update comment on interfaces without
8758         ulps tabulated.
8759         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c: New file.
8760         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c: Likewise.
8761         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c: Likewise.
8762         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c: Likewise.
8763         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Likewise.
8764         * sysdeps/ieee754/ldbl-opt/nldbl-setpayloadsig.c: Likewise.
8765         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
8766         setpayloadsig.
8767         (CFLAGS-nldbl-setpayloadsig.c): New variable.
8768         * sysdeps/nacl/libm.abilist: Update.
8769         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
8770         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
8771         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
8772         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
8773         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
8774         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
8775         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
8776         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
8777         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
8778         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
8779         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
8780         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
8781         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
8782         Likewise.
8783         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
8784         Likewise.
8785         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
8786         Likewise.
8787         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
8788         Likewise.
8789         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
8790         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
8791         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
8792         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
8793         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
8794         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
8795         Likewise.
8796         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
8797         Likewise.
8798         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
8799         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
8800         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
8801
8802         * scripts/build-many-glibcs.py: Import json module.
8803         (Context.__init__): Take replace_sources argument.  Load
8804         versions.json.
8805         (Context.load_versions_json): New function.
8806         (Context.store_json): Likewise.
8807         (Context.store_versions_json): Likewise.
8808         (Context.set_component_version): Likewise.
8809         (Context.checkout): Update versions.json.  Check for and handle
8810         changes of version.  Prefer previously explicitly specified
8811         version to default version.
8812         (Context.checkout_vcs): Return a revision identifier.
8813         (Context.git_checkout): Likewise.
8814         (Context.gcc_checkout): Likewise.
8815         (get_parser): Add --replace-sources option.
8816         (main): Pass replace_sources argument to Context call.
8817
8818 2016-11-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8819
8820         * sysdeps/nptl/fork.c (__libc_fork): Remove pid cache setting.
8821         * nptl/allocatestack.c (allocate_stack): Likewise.
8822         (__reclaim_stacks): Likewise.
8823         (setxid_signal_thread): Obtain pid through syscall.
8824         * nptl/nptl-init.c (sigcancel_handler): Likewise.
8825         (sighandle_setxid): Likewise.
8826         * nptl/pthread_cancel.c (pthread_cancel): Likewise.
8827         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
8828         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
8829         Likewise.
8830         * sysdeps/unix/sysv/linux/createthread.c (create_thread): Likewise.
8831         * sysdeps/unix/sysv/linux/raise.c (raise): Remove old behaviour
8832         comment.
8833         * sysdeps/unix/sysv/linux/getpid.c: Remove file.
8834         * nptl/descr.h (struct pthread): Change comment about pid value.
8835         * nptl/pthread_getattr_np.c (pthread_getattr_np): Remove thread
8836         pid assert.
8837         * sysdeps/unix/sysv/linux/pthread-pids.h (__pthread_initialize_pids):
8838         Do not set pid value.
8839         * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove thread
8840         pid cache check.
8841         * nptl_db/td_thr_validate.c (td_thr_validate): Likewise.
8842         * sysdeps/aarch64/nptl/tcb-offsets.sym: Remove pid offset.
8843         * sysdeps/alpha/nptl/tcb-offsets.sym: Likewise.
8844         * sysdeps/arm/nptl/tcb-offsets.sym: Likewise.
8845         * sysdeps/hppa/nptl/tcb-offsets.sym: Likewise.
8846         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
8847         * sysdeps/ia64/nptl/tcb-offsets.sym: Likewise.
8848         * sysdeps/m68k/nptl/tcb-offsets.sym: Likewise.
8849         * sysdeps/microblaze/nptl/tcb-offsets.sym: Likewise.
8850         * sysdeps/mips/nptl/tcb-offsets.sym: Likewise.
8851         * sysdeps/nios2/nptl/tcb-offsets.sym: Likewise.
8852         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
8853         * sysdeps/s390/nptl/tcb-offsets.sym: Likewise.
8854         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
8855         * sysdeps/sparc/nptl/tcb-offsets.sym: Likewise.
8856         * sysdeps/tile/nptl/tcb-offsets.sym: Likewise.
8857         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
8858         * sysdeps/unix/sysv/linux/aarch64/clone.S: Remove pid and tid caching.
8859         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
8860         * sysdeps/unix/sysv/linux/arm/clone.S: Likewise.
8861         * sysdeps/unix/sysv/linux/hppa/clone.S: Likewise.
8862         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
8863         * sysdeps/unix/sysv/linux/ia64/clone2.S: Likewise.
8864         * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
8865         * sysdeps/unix/sysv/linux/nios2/clone.S: Likewise.
8866         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
8867         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
8868         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
8869         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
8870         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
8871         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Likewise.
8872         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
8873         * sysdeps/unix/sysv/linux/tile/clone.S: Likewise.
8874         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
8875         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Remove pid set and reset.
8876         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
8877         * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
8878         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
8879         * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
8880         * sysdeps/unix/sysv/linux/m68k/clone.S: Likewise.
8881         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
8882         * sysdeps/unix/sysv/linux/mips/vfork.S: Likewise.
8883         * sysdeps/unix/sysv/linux/nios2/vfork.S: Likewise.
8884         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
8885         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
8886         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
8887         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
8888         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
8889         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
8890         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
8891         * sysdeps/unix/sysv/linux/tile/vfork.S: Likewise.
8892         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
8893         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: Likewise.
8894         * sysdeps/unix/sysv/linux/tst-clone2.c (f): Remove direct pthread
8895         struct access.
8896         (clone_test): Remove function.
8897         (do_test): Rewrite to take in consideration pid is not cached anymore.
8898
8899 2016-11-24  Joseph Myers  <joseph@codesourcery.com>
8900
8901         * bits/flt-eval-method.h: New file.
8902         * sysdeps/m68k/m680x0/bits/flt-eval-method.h: Likewise.
8903         * sysdeps/s390/bits/flt-eval-method.h: Likewise.
8904         * sysdeps/x86/bits/flt-eval-method.h: Likewise.
8905         * math/Makefile (headers): Add bits/flt-eval-method.h.
8906         * math/math.h: Include <bits/flt-eval-method.h>.
8907         [__USE_ISOC99] (float_t): Define based on __GLIBC_FLT_EVAL_METHOD.
8908         [__USE_ISOC99] (double_t): Likewise.
8909         * bits/mathdef.h (float_t): Remove.
8910         (double_t): Likewise.
8911         * sysdeps/aarch64/bits/mathdef.h (float_t): Likewise.
8912         (double_t): Likewise.
8913         * sysdeps/alpha/bits/mathdef.h (float_t): Likewise.
8914         (double_t): Likewise.
8915         * sysdeps/arm/bits/mathdef.h (float_t): Likewise.
8916         (double_t): Likewise.
8917         * sysdeps/hppa/fpu/bits/mathdef.h (float_t): Likewise.
8918         (double_t): Likewise.
8919         * sysdeps/ia64/bits/mathdef.h (float_t): Likewise.
8920         (double_t): Likewise.
8921         * sysdeps/m68k/m680x0/bits/mathdef.h (float_t): Likewise.
8922         (double_t): Likewise.
8923         * sysdeps/mips/bits/mathdef.h (float_t): Likewise.
8924         (double_t): Likewise.
8925         * sysdeps/powerpc/bits/mathdef.h (float_t): Likewise.
8926         (double_t): Likewise.
8927         * sysdeps/s390/bits/mathdef.h (float_t): Likewise.
8928         (double_t): Likewise.
8929         * sysdeps/sh/sh4/bits/mathdef.h (float_t): Likewise.
8930         (double_t): Likewise.
8931         * sysdeps/sparc/bits/mathdef.h (float_t): Likewise.
8932         (double_t): Likewise.
8933         * sysdeps/tile/bits/mathdef.h (float_t): Likewise.
8934         (double_t): Likewise.
8935         * sysdeps/x86/bits/mathdef.h (float_t): Likewise.
8936         (double_t): Likewise.
8937
8938 2016-11-24  Aurelien Jarno  <aurelien@aurel32.net>
8939
8940         * sysdeps/x86_64/memcpy_chk.S (__memcpy_chk): Check for SHARED
8941         instead of PIC.
8942
8943 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
8944
8945         [BZ #20859]
8946         * sysdeps/sh/sh4/bits/mathdef.h (FP_ILOGB0): Define to
8947         (-0x7fffffff) instead of 0x80000001.
8948         * math/test-fp-ilogb-constants.c: New file.
8949         * math/Makefile (tests): Add test-fp-ilogb-constants.
8950
8951 2016-11-23  Maciej W. Rozycki  <macro@imgtec.com>
8952
8953         * sysdeps/mips/mips32/crti.S (JALR_RELOC): New macro.
8954         (_init): Use it in place of hardcoded R_MIPS_JALR.
8955         * sysdeps/mips/mips64/n32/crti.S (JALR_RELOC): New macro.
8956         (_init): Use it in place of hardcoded R_MIPS_JALR.
8957         * sysdeps/mips/mips64/n64/crti.S (JALR_RELOC): New macro.
8958         (_init): Use it in place of hardcoded R_MIPS_JALR.
8959
8960 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
8961
8962         [BZ #20787]
8963         * sysdeps/x86/bits/mathdef.h (float_t): Do not define to float if
8964         [__x86_64__] when __FLT_EVAL_METHOD__ is nonzero.
8965         (double_t): Do not define to double if [__x86_64__] when
8966         __FLT_EVAL_METHOD__ is nonzero.
8967         * sysdeps/x86/fpu/test-flt-eval-method-387.c: New file.
8968         * sysdeps/x86/fpu/test-flt-eval-method-sse.c: Likewise.
8969         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
8970         test-flt-eval-method-387 and test-flt-eval-method-sse.
8971         [$(subdir) = math] (CFLAGS-test-flt-eval-method-387.c): New
8972         variable.
8973         [$(subdir) = math] (CFLAGS-test-flt-eval-method-sse.c): Likewise.
8974
8975 2016-11-23  Chris Metcalf  <cmetcalf@mellanox.com>
8976
8977         * scripts/build-many-glibcs.py (Context.add_all_configs): Revert
8978         use of -fno-isolate-erroneous-paths options for tilepro.
8979
8980 2016-11-23  Florian Weimer  <fweimer@redhat.com>
8981
8982         * elf/dl-load.c (_dl_map_object_from_fd): Delayed TLS data
8983         structure initialization is no longer needed.
8984
8985 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
8986
8987         [BZ #20855]
8988         * bits/mathdef.h (float_t): Define to float.
8989         * math/test-flt-eval-method.c: New file.
8990         * math/Makefile (tests): Add test-flt-eval-method.
8991         (CFLAGS-test-flt-eval-method.c): New variable.
8992
8993 2016-11-22  Steve Ellcey  <sellcey@caviumnetworks.com>
8994
8995         * sysdeps/unix/sysv/linux/fstatfs64.c: Hide prototypes for fstatfs
8996         and __fstatfs.  Make them aliases of __fstatfs64 if
8997         STATFS_IS_STATFS64 is set to non-zero.
8998         * sysdeps/unix/sysv/linux/statfs64.c: Ditto for __statfs, statfs,
8999         and __statfs64.
9000         * sysdeps/unix/sysv/linux/generic/wordsize-32/fstatfs.c: Do not
9001         define __fstatfs and fstatfs if STATFS_IS_STATFS64 is non-zero.
9002         * sysdeps/unix/sysv/linux/generic/wordsize-32/statfs.c: Ditto
9003         for __statfs and statfs.
9004         * sysdeps/unix/sysv/linux/alpha/kernel_stat.h: Set STATFS_IS_STATFS64
9005         to 0.
9006         * sysdeps/unix/sysv/linux/generic/kernel_stat.h: Ditto.
9007         * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Ditto.
9008         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Ditto.
9009         * sysdeps/unix/sysv/linux/kernel_stat.h: Ditto.
9010         * sysdeps/unix/sysv/linux/microblaze/kernel_stat.h: Ditto.
9011         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Ditto.
9012         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Ditto.
9013         * sysdeps/unix/sysv/linux/powerpc/powerpc64/kernel_stat.h: Ditto.
9014         * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Ditto.
9015         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Ditto.
9016         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Ditto.
9017         * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: Ditto.
9018
9019 2016-11-22  Andreas Schwab  <schwab@suse.de>
9020
9021         * misc/mkstemp.c: Include <fcntl.h>.
9022         * misc/mkstemps.c: Likewise.
9023         * misc/mkostemp.c: Likewise.
9024         * misc/mkostemps.c: Likewise.
9025
9026 2016-11-22  Adhemerval Zanella  <adhemerva.zanella@linaro.org>
9027
9028         [BZ #20847]
9029         * posix/execvpe.c (maybe_script_execute): Remove write past allocated
9030         array bounds.
9031         (__execvpe): Likewise.
9032
9033 2016-11-22  Joseph Myers  <joseph@codesourcery.com>
9034
9035         * scripts/build-many-glibcs.py (Context.add_all_configs): Also use
9036         -fno-isolate-erroneous-paths options for tilepro.
9037
9038 2016-11-21  Steve Ellcey  <sellcey@caviumnetworks.com>
9039
9040         * sysdeps/unix/sysv/linux/generic/kernel_stat.h: Set XSTAT_IS_XSTAT64
9041         to 0 when in 32 bit mode.
9042         * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Set XSTAT_IS_XSTAT64 to 0.
9043         * sysdeps/unix/sysv/linux/kernel_stat.h: Ditto.
9044         * sysdeps/unix/sysv/linux/microblaze/kernel_stat.h: Ditto.
9045         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Ditto.
9046         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Ditto.
9047         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Ditto.
9048         * sysdeps/unix/sysv/linux/fxstat.c: Replace #ifdef with #if on
9049         XSTAT_IS_XSTAT64 test.
9050         * sysdeps/unix/sysv/linux/fxstatat.c: Ditto.
9051         * sysdeps/unix/sysv/linux/generic/lxstat.c: Ditto.
9052         * sysdeps/unix/sysv/linux/generic/xstat.c: Ditto.
9053         * sysdeps/unix/sysv/linux/i386/fxstat.c: Ditto.
9054         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Ditto.
9055         * sysdeps/unix/sysv/linux/i386/lxstat.c: Ditto.
9056         * sysdeps/unix/sysv/linux/i386/xstat.c: Ditto.
9057         * sysdeps/unix/sysv/linux/lxstat.c: Ditto.
9058         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Ditto.
9059         * sysdeps/unix/sysv/linux/xstat.c: Ditto.
9060         * sysdeps/unix/sysv/linux/xstatconv.c: Ditto.
9061
9062 2016-11-19  Joseph Myers  <joseph@codesourcery.com>
9063
9064         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
9065         (setpayload): New declaration.
9066         * math/Versions (setpayload): New libm symbol at version
9067         GLIBC_2.25.
9068         (setpayloadf): Likewise.
9069         (setpayloadl): Likewise.
9070         * math/Makefile (libm-calls): Add s_setpayloadF.
9071         * math/libm-test.inc (struct test_Ffp_b1_data): Rename to struct
9072         test_Ff_b1_data.
9073         (RUN_TEST_Ff_b1): New macro.
9074         (RUN_TEST_LOOP_Ff_b1): Likewise.
9075         (canonicalize_test_data): Update type.
9076         (setpayload_test_data): New array.
9077         (setpayload_test): New function.
9078         (main): Call setpayload_test.
9079         * manual/arith.texi (FP Bit Twiddling): Document setpayload,
9080         setpayloadf and setpayloadl.
9081         * manual/libm-err-tab.pl: Update comment on interfaces without
9082         ulps tabulated.
9083         * sysdeps/ieee754/dbl-64/s_setpayload.c: New file.
9084         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Likewise.
9085         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c:
9086         Likewise.
9087         * sysdeps/ieee754/flt-32/s_setpayloadf.c: Likewise.
9088         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Likewise.
9089         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c: Likewise.
9090         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Likewise.
9091         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c: Likewise.
9092         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl_main.c: Likewise.
9093         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c: Likewise.
9094         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Likewise.
9095         * sysdeps/ieee754/ldbl-opt/nldbl-setpayload.c: Likewise.
9096         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
9097         setpayload.
9098         (CFLAGS-nldbl-setpayload.c): New variable.
9099         * sysdeps/nacl/libm.abilist: Update.
9100         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
9101         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
9102         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
9103         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
9104         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
9105         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
9106         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
9107         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
9108         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
9109         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
9110         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
9111         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
9112         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
9113         Likewise.
9114         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
9115         Likewise.
9116         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
9117         Likewise.
9118         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
9119         Likewise.
9120         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
9121         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
9122         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
9123         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
9124         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
9125         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
9126         Likewise.
9127         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
9128         Likewise.
9129         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
9130         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
9131         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
9132
9133 2016-11-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9134
9135         * hurd/hurd.h (__hurd_fail_noerrno): Remove function.
9136         * include/unistd.h: Extend comment about __access_noerrno return
9137         semantics.
9138         * sysdeps/match/hurd/access.c (__hurd_fail_noerrno): Return -1.
9139         (access_common): Correct typo for EACCES.
9140
9141 2016-11-18  Chris Metcalf  <cmetcalf@mellanox.com>
9142
9143         * sysdeps/tile/math-tests.h: New file.
9144
9145         * sysdeps/unix/sysv/linux/tile/set_dataplane.c
9146         (__old_set_dataplane): Rename from set_dataplane and make a
9147         compatibility symbol.
9148         * sysdeps/unix/sysv/linux/tile/sys/dataplane.h: Remove file.
9149         * sysdeps/unix/sysv/linux/tile/Makefile (sysdep_headers): Remove
9150         sys/dataplane.h.
9151
9152 2016-11-18  Joseph Myers  <joseph@codesourcery.com>
9153
9154         * scripts/build-many-glibcs.py (Context.write_files): Make wrapper
9155         script quote words in command output to log suitably for input to
9156         the shell.
9157
9158 2016-11-18  Matthew Fortune  <Matthew.Fortune@imgtec.com>
9159             Maciej W. Rozycki  <macro@imgtec.com>
9160
9161         * sysdeps/mips/mips32/crti.S (_init): Add `.insn' pseudo-op at
9162         `.Lno_weak_fn' label.
9163         * sysdeps/mips/mips64/n32/crti.S (_init): Likewise.
9164         * sysdeps/mips/mips64/n64/crti.S (_init): Likewise.
9165
9166 2016-11-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9167             Yury Norov  <ynorov@caviumnetworks.com>
9168
9169         * bits/typesizes.h (__RLIM_T_MATCHES_RLIM64_T): define.
9170         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h
9171         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
9172         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h
9173         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
9174         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h [__s390x__]
9175         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
9176         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
9177         [__arch64__ || __sparcv9] (__RLIM_T_MATCHES_RLIM64_T): Likewise.
9178         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h [__86_64__]
9179         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
9180         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = resource]
9181         (sysdep_routines): Remove oldgetrlimit64.
9182         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = resource]
9183         (sysdep_routines): Likewise.
9184         * sysdeps/unix/sysv/linux/m68k/Makefile [$(subdir) = resource]
9185         (sysdep_routines): Likewise.
9186         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
9187         [$(subdir) = resource] (sysdep_routines): Likewise.
9188         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile
9189         [$(subdir) = resource] (sysdep_routines): Likewise.
9190         * sysdeps/unix/sysv/linux/arm/getrlimit64.c: Remove file.
9191         * sysdeps/unix/sysv/linux/arm/oldgetrlimit64.c: Likewise.
9192         * sysdeps/unix/sysv/linux/arm/oldgetrlimit.c: Likewise.
9193         * sysdeps/unix/sysv/linux/arm/oldsetrlimit.c: Likewise.
9194         * sysdeps/unix/sysv/linux/hppa/getrlimit64.c: Likewise.
9195         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
9196         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
9197         * sysdeps/unix/sysv/linux/m68k/getrlimit64.c: Likewise.
9198         * sysdeps/unix/sysv/linux/m68k/oldgetrlimit64.c: Likewise.
9199         * sysdeps/unix/sysv/linux/powerpc/getrlimit64.c: Likewise.
9200         * sysdeps/unix/sysv/linux/powerpc/oldgetrlimit64.c: Likewise.
9201         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit64.c: Likewise.
9202         * sysdeps/unix/sysv/linux/s390/s390-32/oldgetrlimit64.c: Likewise.
9203         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: Likewise.
9204         * sysdeps/unix/sysv/linux/wordsize-64/getrlimit64.c: Likewise.
9205         * sysdeps/unix/sysv/linux/wordsize-64/setrlimit64.c: Likewise.
9206         * sysdeps/sysv/linux/generic/wordsize-32/syscalls.list: Remove
9207         setrlimit and getrlimit.
9208         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
9209         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
9210         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list: Likewise.
9211         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
9212         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
9213         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
9214         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Likewise.
9215         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9216         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
9217         * sysdeps/unix/sysv/linux/getrlimit.c: New file.
9218         * sysdeps/unix/sysv/linux/sparc/getrlimit64.c: Likewise.
9219         * sysdeps/unix/sysv/linux/setrlimit.c: Likewise.
9220         * sysdeps/unix/sysv/linux/getrlimit64.c (__getrlimit64): Handle
9221         __RLIM_T_MATCHES_RLIM64_T and add alias if defined.
9222         (__old_getrlimit64): Add compatibility symbol.
9223         * sysdeps/unix/sysv/linux/setrlimit64.c (__setrlimit): Likewise.
9224
9225 2016-11-17  Joseph Myers  <joseph@codesourcery.com>
9226
9227         * scripts/build-many-glibcs.py (Config.build_gcc): Configure with
9228         newly built gmp, mpfr and mpc.
9229
9230         * sysdeps/unix/sysv/linux/alpha/sys/user.h: Include <stddef.h>.
9231
9232 2016-11-16  Joseph Myers  <joseph@codesourcery.com>
9233
9234         * conform/Makefile (linknamespace-libs): Rename to
9235         linknamespace-libs-thr.
9236         (linknamespace-libs-posix): New variable.
9237         (linknamespace-libs-xsi): Likewise.
9238         (linknamespace-libs-XPG3): Include libcrypt.a.
9239         (linknamespace-libs-XPG4): Use $(linknamespace-libs-XPG3).
9240         (linknamespace-libs-POSIX): Use $(linknamespace-libs-thr).
9241         (linknamespace-libs-UNIX98): Use $(linknamespace-libs-xsi).
9242         (linknamespace-libs-XOPEN2K): Likewise.
9243         (linknamespace-libs-XOPEN2K8): Likewise.
9244         (linknamespace-libs-POSIX2008): Use $(linknamespace-libs-posix).
9245
9246         [BZ #20829]
9247         * stdio-common/Versions (__snprintf): Add to version
9248         GLIBC_PRIVATE.
9249         * include/stdio.h (__snprintf): Use libc_hidden_proto.
9250         * stdio-common/snprintf.c (__snprintf): Use libc_hidden_def.
9251         * crypt/sha256-crypt.c (__sha256_crypt_r): Use __snprintf instead
9252         of snprintf.
9253         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
9254
9255 2016-11-16  Zack Weinberg  <zackw@panix.com>
9256
9257         * string/string.h: Remove obsolete comment stating that
9258         strcoll_l and strxfrm_l have not yet been standardized.
9259
9260 2016-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9261
9262         * hurd/hurd.h (__hurd_fail_noerrno): New function.
9263         * include/unistd.h [IS_IN (rtld) || !defined SHARED]: Declare
9264         __access_noerrno.
9265         * io/access.c (__access_noerrno): New function.
9266         * sysdeps/mach/hurd/access.c (hurd_fail_seterrno): New function.
9267         (hurd_fail_seterrno): Likewise.
9268         (access_common): Likewise.
9269         (__access_noerrno): Likewise.
9270         * sysdeps/nacl/access.c (__access_noerrno): Likewise.
9271         * sysdeps/unix/sysv/linux/access.c (__access_noerrno): Likewise.
9272         * sysdeps/nacl/nacl-interfaces.h (NACL_CALL_NOERRNO): New
9273         macro.
9274
9275 2016-11-16  Joseph Myers  <joseph@codesourcery.com>
9276
9277         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h (register_dump):
9278         Only declare fpregs if [__SH_FPU_ANY__].
9279
9280 2016-11-15  Joseph Myers  <joseph@codesourcery.com>
9281
9282         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h [__SH4__ || __SH4A__]:
9283         Make code unconditional.
9284         [!(__SH4__ || __SH4A__)]: Remove conditional code.
9285
9286 2016-11-15  Rical Jasan  <ricaljasan@pacific.net>
9287
9288         * manual/sysinfo.texi (S_APPEND): Delete.
9289         (S_IMMUTABLE): Likewise.
9290
9291 2016-11-15  Denis Kaganovich  <mahatma@eu.by>
9292             Magnus Granberg  <zorry@gentoo.org>
9293             Mike Frysinger  <vapier@gentoo.org>
9294
9295         [BZ #20662]
9296         * configure.ac (libc_cv_predef_stack_protector): Also check for
9297         __stack_chk_fail_local symbols.
9298         * configure: Regenerated.
9299
9300 2016-11-15  Florian Weimer  <fweimer@redhat.com>
9301
9302         * sysdeps/s390/s390-64/setjmp.S (NEED_COMPAT_SYMBOLS): New macro.
9303         (libc_hidden_def): Remove redefinition.
9304         (__sigsetjmp): Add hidden definition.
9305         * sysdeps/s390/s390-32/setjmp.S (NEED_COMPAT_SYMBOLS): New macro.
9306         (libc_hidden_def): Remove redefinition.
9307         (__sigsetjmp): Add hidden definition.
9308
9309 2016-11-14  Joseph Myers  <joseph@codesourcery.com>
9310
9311         * scripts/build-many-glibcs.py (os.path): Do not import.
9312         (Context): Inherit explicitly from object.  Remove blank line
9313         between class and docstring.
9314         (Config): Likewise.
9315         (Glibc): Likewise.
9316         (Command): Likewise.
9317         (CommandList): Likewise.
9318         (Context.write_files): Store chmod mode in a variable.
9319
9320         * sysdeps/unix/sysv/linux/tile/tilegx/configure.ac: Use
9321         LIBC_SLIBDIR_RTLDDIR for tilegx32.
9322         * sysdeps/unix/sysv/linux/tile/tilegx/configure: Regenerated.
9323
9324 2016-11-14  Zack Weinberg  <zackw@panix.com>
9325
9326         * sunrpc/Makefile (rpcgen-tests): Delete the .out file before
9327         creating or re-creating it.
9328
9329         * string/bits/string2.h: Fix typo in comment.
9330
9331 2016-11-14  Zack Weinberg  <zackw@panix.com>
9332
9333         * misc/sys/sysmacros.h (__SYSMACROS_DM, __SYSMACROS_DM1): New macros.
9334         (__SYSMACROS_DEPRECATION_MSG, __SYSMACROS_FST_DECL_TEMPL)
9335         (__SYSMACROS_FST_IMPL_TEMPL): Delete.
9336         (major, minor, makedev): Use __SYSMACROS_DM in definition, instead
9337         of redirected function names.
9338
9339         * misc/sys/cdefs.h (__glibc_macro_warning): Activate for clang >= 3.5
9340         as well.  Document that MESSAGE must be a single string literal.
9341
9342 2016-11-11  Joseph Myers  <joseph@codesourcery.com>
9343
9344         * scripts/build-many-glibcs.py: New file.
9345
9346         * stdlib/bug-getcontext.c: Include <libc-internal.h>.
9347         (do_test): Disable -Wmaybe-uninitialized around uses of
9348         except_mask.
9349
9350         * sysdeps/unix/sysv/linux/sh/sys/user.h: Include <stddef.h>.
9351
9352 2016-11-10  Chris Metcalf  <cmetcalf@mellanox.com>
9353
9354         * sysdeps/tile/tilepro/atomic-machine.h (atomic_store_relaxed)
9355         (atomic_store_release): Provide tilepro-specific implementations.
9356
9357 2016-11-10  Joseph Myers  <joseph@codesourcery.com>
9358
9359         * math/math.h (__MATH_TG): New macro.
9360         [__USE_ISOC99] (fpclassify): Define using __MATH_TG.
9361         [__USE_ISOC99] (signbit): Likewise.
9362         [__USE_ISOC99] (isfinite): Likewise.
9363         [__USE_ISOC99] (isnan): Likewise.
9364         [__USE_ISOC99] (isinf): Likewise.
9365         [__GLIBC_USE (IEC_60559_BFP_EXT)] (issignaling): Likewise.
9366         [__GLIBC_USE (IEC_60559_BFP_EXT)] (__MATH_EVAL_FMT2): New macro.
9367         [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): Define using
9368         __MATH_TG and __MATH_EVAL_FMT2.
9369         * sysdeps/generic/math_private.h (fabs_tg): Define using
9370         __MATH_TG.
9371         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h
9372         [!__NO_LONG_DOUBLE_MATH] (__iscanonicalf): New macro.
9373         [!__NO_LONG_DOUBLE_MATH] (__iscanonical): Likewise.
9374         [!__NO_LONG_DOUBLE_MATH] (iscanonical): Define using __MATH_TG.
9375         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (__iscanonicalf): New
9376         macro.
9377         (__iscanonical): Likewise.
9378         (iscanonical): Define using __MATH_TG.
9379
9380 2016-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9381
9382         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Add include
9383         guards.
9384
9385         * sysdeps/unix/sysv/linux/access.c: New file.
9386         * sysdeps/unix/sysv/linux/generic/access.c: Remove file.
9387
9388 2016-11-10  Steve Ellcey  <sellcey@caviumnetworks.com>
9389
9390         * sysdeps/tile/tilepro/bits/wordsize.h: Define __WORDSIZE32_SIZE_ULONG
9391         and __WORDSIZE32_PTRDIFF_LONG.
9392
9393 2016-11-10  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9394
9395         * sysdeps/aarch64/libm-test-ulps: Regenerated.
9396
9397 2016-11-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9398
9399         * sysdeps/unix/sysv/linux/arm/truncate64.c: Remove file.
9400         * sysdeps/unix/sysv/linux/generic/wordsize-32/truncate.c: Likewise.
9401         * sysdeps/sysv/linux/generic/wordsize-32/truncate64.c: Likewise.
9402         * sysdeps/unix/sysv/linux/mips/mips32/truncate64.c: Likewise.
9403         * sysdeps/unix/sysv/linux/mips/mips64/truncate64.c: Likewise.
9404         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Likewise.
9405         * sysdeps/unix/sysv/linux/wordsize-64/truncate64.c: Likewise.
9406         * sysdeps/unix/sysv/linux/truncate.c: New file.
9407         * sysdeps/unix/sysv/linux/truncate64.c (truncate64): Use
9408         INLINE_SYSCALL_CALL, __ALIGNMENT_ARG and SYSCALL_LL64 macros.
9409         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (truncate):
9410         Remove.
9411         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (truncate):
9412         Likewise.
9413
9414         * posix/tst-truncate-common.c: New file.
9415         * posix/tst-truncate.c: Use tst-truncate-common.c.
9416         * posix/tst-truncate64.c: Likewise and add LFS tests.
9417         * sysdeps/unix/sysv/linux/arm/ftruncate64.c: Remove file.
9418         * sysdeps/unix/sysv/linux/generic/wordsize-32/ftruncate.c: Likewise.
9419         * sysdeps/unix/sysv/linux/generic/wordsize-32/ftruncate64.c: Likewise.
9420         * sysdeps/unix/sysv/linux/mips/mips32/ftruncate64.c: Likewise.
9421         * sysdeps/unix/sysv/linux/mips/mips64/ftruncate64.c: Likewise.
9422         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Likewise.
9423         * sysdeps/unix/sysv/linux/wordsize-64/ftruncate64.c: Likewise.
9424         * sysdeps/unix/sysv/linux/ftruncate.c: New file.
9425         * sysdeps/unix/sysv/linux/ftruncate64.c (__ftruncate64): Use
9426         INLINE_SYSCALL_CALL, __ALIGNMENT_ARG and SYSCALL_LL64 macros.
9427         [__OFF_T_MATCHES_OFF64_T] (ftruncate): Add alias.
9428         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (ftruncate):
9429         Remove.
9430         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (ftruncate):
9431         Likewise.
9432
9433 2016-11-08  Joseph Myers  <joseph@codesourcery.com>
9434
9435         [BZ #20790]
9436         * sunrpc/rpc_parse.c (get_prog_declaration): Increase buffer size
9437         to MAXLINESIZE.
9438         * sunrpc/bug20790.x: New file.
9439         * sunrpc/Makefile [$(run-built-tests) = yes] (rpcgen-tests): New
9440         variable.
9441         [$(run-built-tests) = yes] (tests-special): Add $(rpcgen-tests).
9442         [$(run-built-tests) = yes] ($(rpcgen-tests)): New rule.
9443
9444         * sysdeps/unix/sysv/linux/sh/localplt.data: New file.
9445
9446         * sysdeps/unix/sysv/linux/hppa/localplt.data: New file.
9447
9448         * sysdeps/unix/sysv/linux/alpha/localplt.data: Make __tls_get_addr
9449         optional in ld.so.  Allow R_ALPHA_GLOB_DAT relocation for malloc,
9450         calloc, realloc, free, memalign and __libc_memalign rather than
9451         making them optional.
9452
9453         * sysdeps/unix/sysv/linux/nios2/localplt.data: Add __extendsfdf2
9454         for libc.so.
9455
9456 2016-11-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9457
9458         * nptl/Makefile (libpthread-routines): Remove ptw-llseek and add
9459         ptw-lseek64.
9460         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Remove llseek.
9461         * sysdeps/unix/sysv/linux/alpha/Makefile  (sysdeps_routines):
9462         Likewise.
9463         * sysdeps/unix/sysv/linux/generic/wordsize-32/llseek.c: Remove file.
9464         * sysdeps/unix/sysv/linux/generic/wordsize-32/lseek.c: Remove file.
9465         * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: Likewise.
9466         * sysdeps/unix/sysv/linux/llseek.c: Remove file.
9467         * sysdeps/unix/sysv/linux/lseek.c: New file.
9468         * sysdeps/unix/sysv/linux/lseek64.c: Add default Linux implementation.
9469         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: Remove lseek and
9470         __libc_lseek64 from auto-generation.
9471         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
9472         * sysdeps/unix/sysv/linux/x86_64/x32/lseek64.S: New file.
9473
9474 2016-11-07  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9475
9476         * nptl/tst-basic1.c (tf, do_test): Use write_message.
9477         * nptl/tst-cleanup1.c (do_test): Likewise.
9478         * nptl/tst-cleanup3.c (do_test): Likewise.
9479         * nptl/tst-key1.c (do_test): Likewise.
9480         * nptl/tst-key2.c (tf, do_test): Likewise.
9481         * nptl/tst-key3.c (tf, do_test): Likewise.
9482         * nptl/tst-stdio1.c (do_test): Likewise.
9483         * nptl/tst-stdio2.c (do_test): Likewise.
9484
9485         * nptl/tst-kill3.c (handler): Use write_message in place of write.
9486         * nptl/tst-kill6.c (handler): Likewise.
9487         * nptl/tst-tls2.c (CB): Likewise.
9488         * nptl/tst-tls3.c (CB): Likewise.
9489
9490 2016-11-07  Joseph Myers  <joseph@codesourcery.com>
9491
9492         * scripts/check-installed-headers.sh: Ignore sys/sysctl.h for x32.
9493
9494 2016-11-07  Yury Norov  <ynorov@caviumnetworks.com>
9495             Steve Ellcey  <sellcey@caviumnetworks.com>
9496
9497         * sysdeps/unix/sysv/linux/alpha/kernel-features.h: #define
9498           __ASSUME_ST_INO_64_BIT as 0
9499         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Likewise.
9500         * sysdeps/unix/sysv/linux/fxstat64.c: Replace #ifdef with #if
9501           over the code where __ASSUME_ST_INO_64_BIT is used.
9502         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
9503         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
9504         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
9505
9506 2016-11-07  Florian Weimer  <fweimer@redhat.com>
9507
9508         * sysdeps/aarch64/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9509         Document ABI exposure of the __kind offset.
9510         * sysdeps/arm/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9511         Mention reason for the __kind offset exposure in the ABI.
9512         * sysdeps/hppa/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9513         Likewise.
9514         * sysdeps/ia64/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9515         Likewise.
9516         * sysdeps/m68k/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9517         Likewise.
9518         * sysdeps/microblaze/nptl/bits/pthreadtypes.h
9519         (struct __pthread_mutex_s): Likewise.
9520         * sysdeps/mips/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9521         Likewise.
9522         * sysdeps/nios2/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9523         Likewise.
9524         * sysdeps/s390/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9525         Likewise.
9526         * sysdeps/sh/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9527         Likewise.
9528         * sysdeps/sparc/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9529         Likewise.
9530         * sysdeps/tile/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9531         Likewise.
9532         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
9533         (struct __pthread_mutex_s): Likewise.
9534         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
9535         (struct __pthread_mutex_s): Likewise.
9536         * sysdeps/x86/bits/pthreadtypes.h (struct __pthread_mutex_s):
9537         Likewise.
9538
9539 2016-11-07  Steve Ellcey  <sellcey@caviumnetworks.com>
9540
9541         * test-skeleton.c: Document do_test usage.
9542
9543 2016-11-06  Aurelien Jarno  <aurelien@aurel32.net>
9544
9545         * iconv/gconv.h (__gconv_info): Define __data element using a
9546         zero-length array.
9547
9548 2016-11-04  Steve Ellcey  <sellcey@caviumnetworks.com>
9549
9550         * math/test-tgmath2.c: Split up test function.
9551
9552 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
9553
9554         * Rules (tests-expected): New variable, depending on
9555         $(run-built-tests).
9556         (tests): Pass $(tests-expected) to merge-test-results.sh, not
9557         $(tests).
9558
9559         * Rules [$(run-built-tests) = no] (tests): Do not depend on
9560         $(tests-unsupported).
9561
9562 2016-11-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9563
9564         * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h
9565         (__WORDSIZE_TIME64_COMPAT32): Define for both 32 and  64 bits.
9566
9567 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
9568
9569         [BZ #20768]
9570         * sysdeps/alpha/fpu/feholdexcpt.c (__feholdexcept): Call
9571         __fegetenv instead of fegetenv.
9572
9573         [BZ #14139]
9574         * manual/libm-err-tab.pl (%pplatforms): Initialize to empty.
9575         (find_files): Obtain platform name from libm-test-ulps-name and
9576         store in %pplatforms.
9577         (canonicalize_platform): Remove.
9578         (print_platforms): Use $pplatforms directly.
9579         (by_platforms): Do not allow for platforms missing from
9580         %pplatforms.
9581         * sysdeps/aarch64/libm-test-ulps-name: New file.
9582         * sysdeps/alpha/fpu/libm-test-ulps-name: Likewise.
9583         * sysdeps/arm/libm-test-ulps-name: Likewise.
9584         * sysdeps/generic/libm-test-ulps-name: Likewise.
9585         * sysdeps/hppa/fpu/libm-test-ulps-name: Likewise.
9586         * sysdeps/i386/fpu/libm-test-ulps-name: Likewise.
9587         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps-name: Likewise.
9588         * sysdeps/ia64/fpu/libm-test-ulps-name: Likewise.
9589         * sysdeps/m68k/coldfire/fpu/libm-test-ulps-name: Likewise.
9590         * sysdeps/m68k/m680x0/fpu/libm-test-ulps-name: Likewise.
9591         * sysdeps/microblaze/libm-test-ulps-name: Likewise.
9592         * sysdeps/mips/mips32/libm-test-ulps-name: Likewise.
9593         * sysdeps/mips/mips64/libm-test-ulps-name: Likewise.
9594         * sysdeps/nios2/libm-test-ulps-name: Likewise.
9595         * sysdeps/powerpc/fpu/libm-test-ulps-name: Likewise.
9596         * sysdeps/powerpc/nofpu/libm-test-ulps-name: Likewise.
9597         * sysdeps/s390/fpu/libm-test-ulps-name: Likewise.
9598         * sysdeps/sh/libm-test-ulps-name: Likewise.
9599         * sysdeps/sparc/fpu/libm-test-ulps-name: Likewise.
9600         * sysdeps/tile/libm-test-ulps-name: Likewise.
9601         * sysdeps/x86_64/fpu/libm-test-ulps-name: Likewise.
9602
9603         * sysdeps/unix/sysv/linux/mips/sys/user.h: Include <stddef.h>.
9604
9605         * sysdeps/unix/sysv/linux/mips/Makefile [$(subdir) = elf]
9606         (test-xfail-check-execstack): New variable.
9607
9608         * sysdeps/mips/localplt.data: New file.
9609
9610 2016-11-04  Yury Norov  <ynorov@caviumnetworks.com>
9611             Steve Ellcey  <sellcey@caviumnetworks.com>
9612
9613         * bits/wordsize.h: Add documentation.
9614         * sysdeps/aarch64/bits/wordsize.h : New file
9615         * sysdeps/generic/stdint.h (PTRDIFF_MIN, PTRDIFF_MAX): Update
9616         definitions.
9617         (SIZE_MAX): Change ifdef to if in __WORDSIZE32_SIZE_ULONG check.
9618         * sysdeps/gnu/bits/utmp.h (__WORDSIZE_TIME64_COMPAT32): Check
9619         with #if instead of #ifdef.
9620         * sysdeps/gnu/bits/utmpx.h (__WORDSIZE_TIME64_COMPAT32): Ditto.
9621         * sysdeps/mips/bits/wordsize.h (__WORDSIZE32_SIZE_ULONG,
9622         __WORDSIZE32_PTRDIFF_LONG, __WORDSIZE_TIME64_COMPAT32):
9623         Add or change defines.
9624         * sysdeps/powerpc/powerpc32/bits/wordsize.h: Likewise.
9625         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
9626         * sysdeps/s390/s390-32/bits/wordsize.h: Likewise.
9627         * sysdeps/s390/s390-64/bits/wordsize.h: Likewise.
9628         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
9629         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
9630         * sysdeps/tile/tilegx/bits/wordsize.h: Likewise.
9631         * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
9632         * sysdeps/unix/sysv/linux/alpha/bits/wordsize.h: Likewise.
9633         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
9634         * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h: Likewise.
9635         * sysdeps/wordsize-32/bits/wordsize.h: Likewise.
9636         * sysdeps/wordsize-64/bits/wordsize.h: Likewise.
9637         * sysdeps/x86/bits/wordsize.h: Likewise.
9638
9639 2016-11-04  Wilco Dijkstra  <wdijkstr@arm.com>
9640             Kevin Petit  <kevin.petit@arm.com>
9641
9642         * sysdeps/aarch64/memchr.S (__memchr): New file.
9643
9644 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
9645
9646         * sysdeps/tile/preconfigure: Accept tilegx* instead of tilegx.
9647
9648 2016-11-03  Joseph Myers  <joseph@codesourcery.com>
9649
9650         [BZ #19398]
9651         * conform/Makefile ($(linknamespace-header-tests)): Also depend on
9652         $(linknamespace-symlists-tests).
9653
9654 2016-11-02  Steve Ellcey  <sellcey@caviumnetworks.com>
9655
9656         * time/tst-strptime2.c: Ignore -Wformat-length warning.
9657
9658 2016-11-02  Florian Weimer  <fweimer@redhat.com>
9659             Carlos O'Donell  <carlos@redhat.com>
9660
9661         [Bug #20729]
9662         * resolv/res_send.c (send_vc): Revert DIAG_IGNORE_Os_NEEDS_COMMENT
9663         change to non -Os related diagnostic.  Use DIAG_IGNORE_Os_NEEDS_COMMENT
9664         for -Os related change.
9665
9666 2016-11-01  Steve Ellcey  <sellcey@caviumnetworks.com>
9667
9668         * stdio-common/tst-printf.c: Ignore -Wformat-length warning.
9669
9670 2016-11-01  Joseph Myers  <joseph@codesourcery.com>
9671
9672         [BZ #19673]
9673         * manual/math.texi (Exponents and Logarithms): Correct description
9674         of clog10.
9675
9676 2016-10-31  Carlos O'Donell  <carlos@redhat.com>
9677
9678         [Bz #20729]
9679         * locale/weight.h: Include libc-internal.h.
9680         * locale/weightwc.h: Likewise.
9681         * nptl/nptl_dbP.h: Likewise.
9682
9683 2016-10-31  Brent W. Baccala  <cosine@freesoft.org>
9684
9685         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Do not deallocate memobj_wr
9686         when it is MACH_PORT_NULL.
9687
9688 2016-10-31  Andreas Schwab  <schwab@suse.de>
9689
9690         [BZ #20707]
9691         * posix/glob.c (glob): Initialize pglob before checking for
9692         GLOB_BRACE.  Don't call glob recursively if pattern contains no
9693         valid brace expression despite GLOB_BRACE.
9694         * posix/globtest.sh: Test it.
9695
9696 2016-10-28  Carlos O'Donell  <carlos@redhat.com>
9697
9698         [BZ #20729]
9699         * include/libc-internal.h (DIAG_IGNORE_Os_NEEDS_COMMENT):
9700         Define.
9701         * iconvdata/iso-2022-cn-ext.c: Include libc-internal.h and ignore
9702         -Wmaybe-uninitialized for BODY macro only for -Os compiles.
9703         * locale/weight.h (findix): Ignore -Wmaybe-uninitialized error
9704         for seq2.back_us and seq1.back_us only for -Os compiles.
9705         * locale/weightwc.h (findix): Likewise.
9706         * nptl_db/thread_dbP.h: Ignore -Wmaybe-uninitialized error for
9707         DB_GET_FIELD_ADDRESS only for -Os compiles.
9708         * resolv/res_send (reopen): Ignore -Wmaybe-uninitialized error
9709         for slen only for -Os compiles.
9710         * string/strcoll_l.c (get_next_seq): Ignore
9711         -Wmaybe-uninitialized for seq2.save_idx and seq1.save_idx only
9712         for -Os compiles.
9713
9714         * elf/Makefile (CFALGS-tst-linkall-static): Remove.
9715         * include/crypt.h: New file.
9716
9717 2016-10-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9718
9719         * dlfcn/bug-atexit3-lib.cc (write_message): New function, copied
9720         from test-skeleton.c.
9721         (statclass): Replace calls to write with calls to write_message.
9722
9723 2016-10-28  Joseph Myers  <joseph@codesourcery.com>
9724
9725         * math/math.h
9726         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNANF):
9727         New macro.
9728         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNAN):
9729         Likewise.
9730         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNANL):
9731         Likewise.
9732         * manual/arith.texi (Infinity and NaN): Document SNANF, SNAN and
9733         SNANL.
9734         * math/test-double.h (snan_value_MACRO): New macro.
9735         * math/test-float.h (snan_value_MACRO): Likewise.
9736         * math/test-ldouble.h (snan_value_MACRO): Likewise.
9737         * math/libm-test.inc (issignaling_test_data): Add tests of
9738         snan_value_MACRO.
9739
9740 2016-10-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9741
9742         * nptl/pthread_rwlock_unlock.c: Add a comment explaining its
9743         behavior when eliding a lock not held by the current thread.
9744         * sysdeps/powerpc/nptl/elide.h: Likewise.
9745
9746 2016-10-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9747
9748         [BZ #20728]
9749         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Replace a
9750         branch to _exit() by a function call.
9751
9752 2016-10-28  Florian Weimer  <fweimer@redhat.com>
9753
9754         * malloc/malloc.c: Update chunk layout comments.
9755         (chunk_main_arena): Update comment.
9756
9757 2016-10-28  Florian Weimer  <fweimer@redhat.com>
9758
9759         * crypt/sha256.c, crypt/sha256-block.c,
9760         sysdeps/sparc/sparc64/multiarch/sha256-block.c: Rename
9761         sha256_process_block to __sha256_process_block.
9762         * crypt/sha512.c, crypt/sha512-block.c,
9763         sysdeps/sparc/sparc64/multiarch/sha512-block.c: Rename
9764         sha512_process_block to __sha512_process_block.
9765
9766 2016-10-28  Carlos O'Donell  <carlos@redhat.com>
9767
9768         * elf/Makefile (CFLAGS-tst-linkall-static): Define.
9769
9770         * math/test-nan-overflow.c: Include stdlib.h for malloc.
9771
9772 2016-10-28  H.J. Lu  <hongjiu.lu@intel.com>
9773
9774         [BZ #20019]
9775         * sysdeps/i386/dl-machine.h (elf_machine_rel): Check IFUNC
9776         definition in unrelocated shared library.
9777         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
9778
9779 2016-10-28  Florian Weimer  <fweimer@redhat.com>
9780
9781         [BZ #20729]
9782         Support i386 builds with CFLAGS which imply -fno-omit-frame-pointer.
9783         * sysdeps/unix/sysv/linux/i386/Makefile
9784         (uses-6-syscall-arguments): Define.
9785         [subdir == misc] (CFLAGS-epoll_pwait.o, CFLAGS-epoll_pwait.os)
9786         (CFLAGS-mmap.o, CFLAGS-mmap.os, CFLAGS-mmap64.o, CFLAGS-mmap64.os)
9787         (CFLAGS-pselect.o, CFLAGS-pselect.os, CFLAGS-rtld-mmap.os): Use it.
9788         [subdir = sysvipc] (CFLAGS-semtimedop.o, CFLAGS-semtimedop.os):
9789         Likewise.
9790         [subdir = io] (CFLAGS-posix_fadvise64.o, CFLAGS-posix_fadvise64.os)
9791         (CFLAGS-posix_fallocate.o, CFLAGS-posix_fallocate.os)
9792         (CFLAGS-posix_fallocate64.o, CFLAGS-posix_fallocate64.os)
9793         (CFLAGS-sync_file_range.o, CFLAGS-sync_file_range.os)
9794         (CFLAGS-fallocate.o, CFLAGS-fallocate.os, CFLAGS-fallocate64.o)
9795         (CFLAGS-fallocate64.os): Likewise.
9796         [subdir = nptl] (CFLAGS-pthread_rwlock_timedrdlock.o)
9797         (CFLAGS-pthread_rwlock_timedrdlock.os)
9798         (CFLAGS-pthread_rwlock_timedwrlock.o)
9799         (CFLAGS-pthread_rwlock_timedwrlock.os, CFLAGS-sem_wait.o)
9800         (CFLAGS-sem_wait.os, CFLAGS-sem_timedwait.o)
9801         (CFLAGS-sem_timedwait.os): Likewise.
9802
9803 2016-10-28  Florian Weimer  <fweimer@redhat.com>
9804
9805         * elf/tst-linkall-static.c: New file.
9806         * elf/Makefile (tests-static): Add tst-linkall-static.
9807         (tst-linkall-static): Link against static libraries.
9808
9809 2016-10-27  Florian Weimer  <fweimer@redhat.com>
9810
9811         * malloc/malloc.c (sysmalloc): Initialize previous size field of
9812         mmaped chunks.
9813
9814 2016-10-28  Florian Weimer  <fweimer@redhat.com>
9815
9816         * malloc/malloc.c (struct malloc_chunk): Rename prev_size, size
9817         members to mchunk_prev_size, mchunk_size.
9818         (chunk_main_arena): Reverse sense and rename from
9819         chunk_non_main_arena.
9820         (prev_inuse, chunk_is_mmapped, chunk_main_arena): Use
9821         mchunk_size instead of size.
9822         (set_non_main_arena): Define.
9823         (chunksize): Use chunksize_nomask instead of direct member access.
9824         (chunksize_nomask): Define.
9825         (next_chunk): Use chunksize instead of direct member access.
9826         (prev_size, set_prev_size): Define.
9827         (prev_chunk): Use prev_size instead of direct member access.
9828         (inuse, set_inuse, clear_inuse): Use chunksize and mchunk_size member.
9829         (inuse_bit_at_offset, set_inuse_bit_at_offset)
9830         (clear_inuse_bit_at_offset): Use mchunk_size member instead of size.
9831         (mchunk_prev_size, mchunk_size): Poison tokens.
9832         (unlink): Use chunksize_nomask, prev_size accessors.
9833         (do_check_remalloced_chunk): Use chunk_main_arena accessor.
9834         (do_check_free_chunk): Use prev_size accessor.
9835         (sysmalloc): Use set_prev_size, set_head accessors.
9836         (munmap_chunk, mremap_chunk): Use prev_size accessor.
9837         (__libc_free): Use chunksize_nomask accessor.
9838         (_int_malloc): Use set_non_main_arena, chunksize_nomask,
9839         chunk_main_arena accessors.
9840         (_int_free): Use chunksize_nomask, prev_size accessors.
9841         (malloc_consolidate): Use chunksize, prev_size accessors.
9842         (_int_realloc): Use chunksize_nomask accessor.
9843         (_int_memalign): Use set_prev_size accessor.
9844         (__malloc_info): Use chunksize_nomask accessor.
9845         * malloc/hooks.c (mem2chunk_check): Use prev_size, prev_inuse
9846         accessors.
9847         * malloc/arena.c (arena_for_chunk): Use chunk_main_arena accessor.
9848         (heap_trim): Use chunksize_nomask, prev_size accessors.
9849
9850 2016-10-28  Joseph Myers  <joseph@codesourcery.com>
9851
9852         [BZ #19380]
9853         * stdlib/strtod_l.c (round_and_return): Force "inexact" exception
9854         for inexact results.
9855         * stdlib/gen-tst-strtod-round.c (string_to_fp): Return indication
9856         of inexact result where mpfr_subnormalize is the only inexact
9857         step.
9858         * stdlib/tst-strtod-round-data.h: Regenerated.
9859         * stdlib/tst-strtod-round-skeleton.c [!FE_INEXACT] (FE_INEXACT):
9860         Define to 0.
9861         (GEN_ONE_TEST): Test inexact exceptions raised are as expected.
9862
9863 2016-10-27  David S. Miller  <davem@davemloft.net>
9864
9865         * sysdeps/unix/sysv/linux/sparc/sys/user.h: Include stddef.h
9866
9867 2016-10-27  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9868
9869         * malloc/malloc.c (do_set_mallopt_check): New function.
9870         (do_set_mmap_threshold): Likewise.
9871         (do_set_mmaps_max): Likewise.
9872         (do_set_top_pad): Likewise.
9873         (do_set_perturb_byte): Likewise.
9874         (do_set_trim_threshold): Likewise.
9875         (do_set_arena_max): Likewise.
9876         (do_set_arena_test): Likewise.
9877         (__libc_mallopt): Use them.
9878
9879 2016-10-26  Joseph Myers  <joseph@codesourcery.com>
9880
9881         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
9882         (canonicalize): New declaration.
9883         * math/Versions (canonicalize): New libm symbol at version
9884         GLIBC_2.25.
9885         (canonicalizef): Likewise.
9886         (canonicalizel): Likewise.
9887         * math/Makefile (gen-libm-calls): Add s_canonicalizeF.
9888         * math/s_canonicalize_template.c: New file.
9889         * math/libm-test.inc: Update comment on functions tested and
9890         testing of NaN payloads.
9891         (TEST_NAN_PAYLOAD): New macro.
9892         (NO_TEST_INLINE): Update value.
9893         (XFAIL_TEST): Likewise.
9894         (ERRNO_UNCHANGED): Likewise.
9895         (ERRNO_EDOM): Likewise.
9896         (ERRNO_ERANGE): Likewise.
9897         (IGNORE_RESULT): Likewise.
9898         (NON_FINITE): Likewise.
9899         (TEST_SNAN): Likewise.
9900         (NO_TEST_MATHVEC): Likewise.
9901         (TEST_NAN_PAYLOAD_CANONICALIZE): New macro.
9902         (check_float_internal): Check NaN payloads if TEST_NAN_PAYLOAD.
9903         (struct test_Ffp_b1_data): New type.
9904         (RUN_TEST_Ffp_b1): New macro.
9905         (RUN_TEST_LOOP_Ffp_b1): Likewise.
9906         (canonicalize_test_data): New array.
9907         (canonicalize_test): New function.
9908         (main): Call canonicalize_test.
9909         * manual/arith.texi (FP Bit Twiddling): Document canonicalize,
9910         canonicalizef and canonicalizel.
9911         * manual/libm-err-tab.pl: Update comment on interfaces without
9912         ulps tabulated.
9913         * sysdeps/ieee754/ldbl-opt/nldbl-canonicalize.c: New file.
9914         * sysdeps/ieee754/ldbl-opt/s_canonicalizel.c: Likewise.
9915         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
9916         canonicalize.
9917         (CFLAGS-nldbl-canonicalize.c): New variable.
9918         * sysdeps/ieee754/ldbl-128ibm/test-iscanonical-ldbl-128ibm.c: Move
9919         to ...
9920         * sysdeps/ieee754/ldbl-128ibm/test-canonical-ldbl-128ibm.c:
9921         ... here.
9922         (do_test): Also test canonicalizel.
9923         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Change
9924         test-iscanonical-ldbl-128ibm to test-canonical-ldbl-128ibm.
9925         * sysdeps/ieee754/ldbl-128ibm/include/bits/iscanonical.h: New
9926         file.
9927         * sysdeps/ieee754/ldbl-128ibm/s_iscanonicall.c (__iscanonicall):
9928         Use libm_hidden_def.
9929         * sysdeps/ieee754/ldbl-96/test-iscanonical-ldbl-96.c: Move to ...
9930         * sysdeps/ieee754/ldbl-96/test-canonical-ldbl-96.c: ... here.
9931         (do_test): Also test canonicalizel.
9932         * sysdeps/ieee754/ldbl-96/Makefile (tests): Change
9933         test-iscanonical-ldbl-96 to test-canonical-ldbl-96.
9934         * sysdeps/ieee754/ldbl-96/include/bits/iscanonical.h: New file.
9935         * sysdeps/ieee754/ldbl-96/s_iscanonicall.c (__iscanonicall): Use
9936         libm_hidden_def.
9937         * sysdeps/generic/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD): New
9938         macro.
9939         * sysdeps/mips/math-tests.h [__mips_hard_float && !__mips_nan2008]
9940         (SNAN_TESTS_PRESERVE_PAYLOAD): Likewise.
9941         * sysdeps/nacl/libm.abilist: Update.
9942         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
9943         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
9944         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
9945         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
9946         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
9947         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
9948         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
9949         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
9950         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
9951         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
9952         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
9953         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
9954         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
9955         Likewise.
9956         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
9957         Likewise.
9958         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
9959         Likewise.
9960         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
9961         Likewise.
9962         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
9963         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
9964         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
9965         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
9966         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
9967         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
9968         Likewise.
9969         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
9970         Likewise.
9971         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
9972         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
9973         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
9974
9975         * sysdeps/ieee754/ldbl-opt/nldbl-getpayload.c: New file.
9976         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
9977         getpayload.
9978         (CFLAGS-nldbl-getpayload.c): New variable.
9979
9980 2016-10-26  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9981
9982         * stdio-common/vfscanf.c (_IO_vfwscanf): Use read_int to parse
9983         integer from the format string.
9984
9985 2016-10-26  Florian Weimer  <fweimer@redhat.com>
9986
9987         [BZ #19473]
9988         * malloc/malloc.h (malloc_get_state, malloc_set_state): Remove
9989         declarations.
9990         * malloc/malloc.c (malloc_get_state, malloc_set_state): Remove
9991         weak aliases.
9992         * malloc/hooks.c (__malloc_get_state): Remove definition.
9993         (malloc_get_state): New stub implementation as
9994         compatibility symbol.
9995         (malloc_set_state): Rename from __malloc_set_state.  Turn into
9996         compat symbol.
9997         * malloc/tst-mallocstate.c: Rewrite to approximate how Emacs uses
9998         malloc_set_state.
9999         * malloc/Makefile (LDFLAGS-tst-mallocstate): Link with -rdynamic.
10000
10001 2016-10-26  Florian Weimer  <fweimer@redhat.com>
10002
10003         * iconvdata/iso646.c (enum variant): Drop illegal_var.
10004         (names): Turn into concatenation of strings.
10005         (gconv_init): Adapt iteration over names.
10006
10007 2016-10-26  Florian Weimer  <fweimer@redhat.com>
10008
10009         * iconvdata/ibm930.h (__ucs4_to_ibm930sb): Remove indirection and
10010         make const.
10011         * iconvdata/ibm933.h (__ucs4_to_ibm933sb): Likewise.
10012         * iconvdata/ibm935.h (__ucs4_to_ibm935sb): Likewise.
10013         * iconvdata/ibm939.h (__ucs4_to_ibm939sb): Likewise.
10014         * iconvdata/ibm930.c [TO_LOOP] (BODY): Store converted single-byte
10015         character in sbconv.
10016         * iconvdata/ibm933.c [TO_LOOP] (BODY): Likewise.
10017         * iconvdata/ibm935.c [TO_LOOP] (BODY): Likewise.
10018         * iconvdata/ibm939.c [TO_LOOP] (BODY): Likewise.
10019
10020 2016-10-26  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10021
10022         * malloc/malloc.c (M_ARENA_TEST, M_ARENA_MAX): Remove.
10023
10024         * manual/memory.texi (M_TOP_PAD): Remove reference to sbrk.
10025         (M_TRIM_THRESHOLD): Likewise.
10026
10027         * manual/memory.texi (M_ARENA_TEST): Add documentation.
10028         (M_ARENA_MAX): Likewise.
10029         * malloc/malloc.c: Remove obsolete comment.
10030
10031         * manual/memory.texi: Add environment variable alternatives to
10032         setting mallopt parameters.
10033
10034 2016-10-26  Carlos O'Donell  <carlos@redhat.com>
10035
10036         * include/atomic.h
10037         [USE_COMPILER_ATOMIC_BUILTINS && !atomic_fetch_xor_release]
10038         (atomic_fetch_xor_release): Use atomic_compare_exchange_weak_release.
10039
10040 2016-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
10041
10042         * stdlib/Makefile (tests): Add tst-strfrom and tst-strfrom-locale.
10043         * stdlib/tst-strfrom.h: New file.
10044         * stdlib/tst-strfrom.c: New file.
10045         * stdlib/tst-strfrom-locale.c: New file.
10046
10047         * stdlib/bug-strtod.c: Refactor based on GEN_TEST_STRTOD_FOREACH.
10048         * stdlib/bug-strtod2.c: Likewise.
10049         * stdlib/tst-strtod-round-skeleton.c: Likewise.
10050         * stdlib/tst-strtod6.c: Likewise.
10051         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH): Use strfrom.
10052
10053 2016-10-25  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10054
10055         * NEWS: Mention the addition of strfromd, strfromf, and strfroml.
10056         * manual/arith.texi: Document strfromd, strfromf, strfroml.
10057         * stdlib/Makefile: Add strfromd, strfromf, and strfroml.
10058         * stdlib/Versions (GLIBC_2.25): Add strfromd, strfromf, and strfroml.
10059         * stdlib/stdlib.h (strfromd): New declaration.
10060         (strfromf): Likewise.
10061         (strfroml): Likewise.
10062         * stdlib/strfrom-skeleton.c: New file.  Generic implementation for
10063         strfrom.
10064         * stdlib/strfromd.c: New file.
10065         * stdlib/strfromf.c: Likewise.
10066         * stdlib/strfroml.c: Likewise.
10067         * stdlib/bits/stdlib-ldbl.h: Add redirection from strfroml to strfromd.
10068         * sysdeps/ieee754/ldbl-opt/Makefile: Add rule for nldbl-strfroml.c.
10069         * sysdeps/ieee754/ldbl-opt/nldbl-strfroml.c: New file;
10070         * sysdeps/arm/nacl/libc.abilist: Update.
10071         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
10072         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10073         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
10074         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
10075         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
10076         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10077         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
10078         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
10079         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
10080         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
10081         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
10082         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10083         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10084         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
10085         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
10086         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
10087         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
10088         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
10089         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10090         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10091         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10092         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10093         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10094         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
10095         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
10096         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
10097         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10098         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10099
10100 2016-10-25  Joseph Myers  <joseph@codesourcery.com>
10101
10102         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Use cmplwi
10103         instead of cmpli.
10104         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Use cmpldi
10105         instead of cmpli.
10106
10107 2016-10-24  Yury Norov  <ynorov@caviumnetworks.com>
10108
10109         * sysdeps/unix/sysv/linux/fxstat.c: Remove useless cast.
10110         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
10111         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
10112         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
10113         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
10114         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
10115
10116 2016-10-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10117
10118         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Use SYSCALL_LL_PRW.
10119         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
10120         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Use
10121         SYSCALL_LL64_PRW.
10122         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
10123         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Define
10124         __ASSUME_PRW_DUMMY_ARG.
10125         * sysdeps/unix/sysv/linux/sh/pread.c: Remove file.
10126         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
10127         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
10128         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
10129         * sysdeps/unix/sysv/linux/sysdep.h: Define SYSCALL_LL_PRW and
10130         SYSCALL_LL_PRW64 based on __ASSUME_PRW_DUMMY_ARG.
10131
10132 2016-10-24  Steve Ellcey  <sellcey@caviumnetworks.com>
10133
10134         * sysdeps/unix/sysv/linux/tst-setgetname.c: Increase buffer size.
10135
10136 2016-10-22  Florian Weimer  <fweimer@redhat.com>
10137
10138         * math/math.h [__cplusplus] (iszero): Wrap C++ bits in extern
10139         "C++", to override a potential extern "C" directive around the
10140         header file inclusion.
10141
10142 2016-10-21  Joseph Myers  <joseph@codesourcery.com>
10143
10144         * benchtests/Makefile (CFLAGS-bench-sqrt.c): New variable.
10145
10146 2016-10-21  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10147
10148         * sysdeps/powerpc/fpu/fenv_private.h:
10149         (_FPU_MASK_ALL): Rename to...
10150         (_FPU_ALL_TRAPS): New macro representing ISA VE OE UE ZE and
10151         XE FPSCR bits.
10152
10153         (_FPU_MASK_RN): New macro to mask out ISA RN bits in FPSCR.
10154
10155         (_FPU_MASK_ROUNDING): Rename to...
10156         (_FPU_MASK_NOT_RN_NI): New macro to mask out all but ISA RN and
10157         NI bits.
10158
10159         (_FPU_MASK_EXCEPT_ROUND): Rename to...
10160         (_FPU_MASK_TRAPS_RN): New macro to mask out exception enable
10161         bits and rounding bits.
10162
10163         (__libc_feholdbits_ppc): New inline function to mask, set,
10164         and pontentially clear FSPCR bits, and change MSR[FE] bits.
10165         (libc_feholdexcept_ppc): Redefine using __libc_feholdbits_ppc.
10166         (libc_feholdexcept_setround_ppc): Likewise.
10167
10168         (__libc_femergeenv_ppc): New function to dynamically mask both
10169         old and new FP environments and merge.
10170         (libc_fesetenv_ppc): Redefine in terms of __libc_femergeenv_ppc.
10171         (libc_feresetround_ppc): Likewise.
10172         (libc_feupdateenv_test_ppc): Likewise.
10173         (libc_feupdateenv_ppc): Likewise.
10174
10175         (libc_feholdsetround_ppc_ctx): Fix usage to include masking
10176         of ISA RN bits, and update macro names.
10177         (libc_feholdexcept_setround_ppc_ctx): Remove as it is
10178         effectively the same as the previously mentioned function.
10179
10180         (libc_feupdateenv_ppc_ctx): Replace libc_feupdatedenv_test_ppc
10181         usage with fe_resetround_ppc.
10182
10183         (libc_feholdexcept_setround_ctx): Remove, this doesn't appear
10184         to be used.
10185         (libc_feholdexcept_setround_ctxf): Likewise.
10186         (libc_feholdexcept_setround_ctxl): Likewise.
10187
10188 2016-10-21  Florian Weimer  <fweimer@redhat.com>
10189
10190         [BZ #20715]
10191         * math/math.h [__cplusplus] (iszero): Define as function template.
10192         * math/Makefile [CXX] (tests): Add test-math-iszero.
10193         (CFLAGS-test-math-iszero.cc): Set.
10194         * math/test-math-iszero.cc: New file.
10195
10196 2016-10-20  Joseph Myers  <joseph@codesourcery.com>
10197
10198         [BZ #20660]
10199         * sysdeps/arm/e_sqrt.c: New file.
10200         * sysdeps/arm/e_sqrtf.c: Likewise.
10201
10202 2016-10-19  Joseph Myers  <joseph@codesourcery.com>
10203
10204         [BZ #20718]
10205         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S (__copysignl): Do
10206         not use floating-point comparisons to test sign.
10207         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S (__copysignl):
10208         Likewise.
10209
10210         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
10211         (getpayload): New declaration.
10212         * math/Versions (getpayload): New libm symbol at version
10213         GLIBC_2.25.
10214         (getpayloadf): Likewise.
10215         (getpayloadl): Likewise.
10216         * math/Makefile (libm-calls): Add s_getpayloadF.
10217         * math/libm-test.inc: Include <nan-high-order-bit.h>.
10218         (struct test_f_f_data): Add comment.
10219         (RUN_TEST_fp_f): New macro.
10220         (RUN_TEST_LOOP_fp_f): Likewise.
10221         (getpayload_test_data): New array.
10222         (getpayload_test): New function.
10223         (main): Call getpayload_test.
10224         * math/gen-libm-test.pl (parse_args): Handle 'p' in argument
10225         descriptor.
10226         * manual/arith.texi (FP Bit Twiddling): Document getpayload,
10227         getpayloadf and getpayloadl.
10228         * manual/libm-err-tab.pl: Update comment on interfaces without
10229         ulps tabulated.
10230         * sysdeps/ieee754/dbl-64/s_getpayload.c: New file.
10231         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Likewise.
10232         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Likewise.
10233         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Likewise.
10234         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c: Likewise.
10235         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Likewise.
10236         * sysdeps/nacl/libm.abilist: Update.
10237         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
10238         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
10239         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
10240         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
10241         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
10242         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
10243         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
10244         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
10245         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
10246         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
10247         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
10248         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
10249         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
10250         Likewise.
10251         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
10252         Likewise.
10253         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
10254         Likewise.
10255         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
10256         Likewise.
10257         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
10258         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
10259         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
10260         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
10261         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
10262         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
10263         Likewise.
10264         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
10265         Likewise.
10266         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
10267         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
10268         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
10269
10270 2016-10-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10271
10272         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = math] (tests): Move
10273         tst-fallocate{64}.
10274         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Check for EOPNOTSUPP
10275         on syscall return.
10276
10277 2016-10-17  Carlos O'Donell  <carlos@redhat.com>
10278
10279         [BZ #20689]
10280         * sysdeps/x86/cpu-features.c: Only enable FMA and AVX2 if AVX is
10281         usable.
10282
10283 2016-10-17  Joseph Myers  <joseph@codesourcery.com>
10284
10285         * sysdeps/generic/nan-high-order-bit.h: New file.
10286         * sysdeps/hppa/nan-high-order-bit.h: Likewise.
10287         * sysdeps/mips/nan-high-order-bit.h: Likewise.
10288         * sysdeps/hppa/math_private.h: Remove file.
10289         * sysdeps/mips/math_private.h (HIGH_ORDER_BIT_IS_SET_FOR_SNAN): Do
10290         not define here.
10291         * sysdeps/ieee754/dbl-64/s_issignaling.c: Include
10292         <nan-high-order-bit.h>.
10293         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
10294         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
10295         <nan-high-order-bit.h>.
10296         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
10297         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
10298         <nan-high-order-bit.h>.
10299         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
10300         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Include
10301         <nan-high-order-bit.h>.
10302         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
10303         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
10304         <nan-high-order-bit.h>.
10305         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
10306         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
10307         <nan-high-order-bit.h>.
10308         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
10309         * sysdeps/ieee754/flt-32/s_issignalingf.c: Include
10310         <nan-high-order-bit.h>.
10311         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
10312         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
10313         <nan-high-order-bit.h>.
10314         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
10315         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
10316         <nan-high-order-bit.h>.
10317         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
10318         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Include
10319         <nan-high-order-bit.h>.
10320         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
10321         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
10322         <nan-high-order-bit.h>.
10323         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
10324         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
10325         <nan-high-order-bit.h>.
10326         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
10327         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Include
10328         <nan-high-order-bit.h>.
10329         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
10330         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Include
10331         <nan-high-order-bit.h>.
10332         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
10333         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Include
10334         <nan-high-order-bit.h>.
10335         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
10336         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Include
10337         <nan-high-order-bit.h>.
10338         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
10339         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
10340         <nan-high-order-bit.h>.
10341         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
10342         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
10343         <nan-high-order-bit.h>.
10344         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
10345
10346 2016-10-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
10347
10348         * sysdeps/s390/fpu/fix-fp-int-compare-invalid.h: New file.
10349
10350 2016-09-22  John David Anglin  <dave.anglin@bell.net>
10351
10352         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: Don't include
10353         abort-instr.h.
10354         (EFAULT): Remove conditional define.
10355         (ENOSYS): Likewise.
10356         (atomic_compare_and_exchange_val_acq): Use instruction nullification
10357         instead of conditional branch instructions.
10358
10359 2016-10-15  Joseph Myers  <joseph@codesourcery.com>
10360
10361         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
10362         (totalordermag): New declaration.
10363         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalordermag):
10364         New macro.
10365         * math/Versions (totalordermag): New libm symbol at version
10366         GLIBC_2.25.
10367         (totalordermagf): Likewise.
10368         (totalordermagl): Likewise.
10369         * math/Makefile (libm-calls): Add s_totalordermagF.
10370         * math/libm-test.inc (totalordermag_test_data): New array.
10371         (totalordermag_test): New function.
10372         (main): Call totalordermag_test.
10373         * math/test-tgmath.c (NCALLS): Increase to 125.
10374         (F(compile_test)): Call totalordermag.
10375         (F(totalordermag)): New function.
10376         * manual/arith.texi (FP Comparison Functions): Document
10377         totalordermag, totalordermagf and totalordermagl.
10378         * manual/libm-err-tab.pl: Update comment on interfaces without
10379         ulps tabulated.
10380         * sysdeps/ieee754/dbl-64/s_totalordermag.c: New file.
10381         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Likewise.
10382         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Likewise.
10383         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Likewise.
10384         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Likewise.
10385         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Likewise.
10386         * sysdeps/ieee754/ldbl-opt/nldbl-totalordermag.c: Likewise.
10387         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
10388         totalordermag.
10389         (CFLAGS-nldbl-totalordermag.c): New variable.
10390         * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c
10391         (do_test): Also test totalordermagl.
10392         * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c (do_test):
10393         Likewise.
10394         * sysdeps/nacl/libm.abilist: Update.
10395         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
10396         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
10397         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
10398         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
10399         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
10400         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
10401         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
10402         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
10403         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
10404         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
10405         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
10406         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
10407         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
10408         Likewise.
10409         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
10410         Likewise.
10411         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
10412         Likewise.
10413         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
10414         Likewise.
10415         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
10416         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
10417         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
10418         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
10419         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
10420         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
10421         Likewise.
10422         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
10423         Likewise.
10424         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
10425         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
10426         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
10427
10428 2016-10-14  Steve Ellcey  <sellcey@caviumnetworks.com>
10429
10430         * sysdeps/ieee754/dbl-64/e_pow.c (checkint) Make conditions explicitly
10431         boolean.
10432
10433 2016-10-13  Joseph Myers  <joseph@codesourcery.com>
10434
10435         * math/s_ccosh_template.c (M_DECL_FUNC (__ccosh)): Instead of
10436         raising FE_INVALID with feraisexcept in case where part of
10437         argument is infinite, subtract that part of argument from itself.
10438         * math/s_cexp_template.c (M_DECL_FUNC (__cexp)): Likewise.
10439         * math/s_csin_template.c (M_DECL_FUNC (__csin)): Likewise.
10440         * math/s_csinh_template.c (M_DECL_FUNC (__csinh)): Likewise.
10441
10442 2016-10-12  Joseph Myers  <joseph@codesourcery.com>
10443
10444         * math/libm-test.inc (totalorder_test_data): Add more tests.
10445
10446 2016-10-12  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
10447
10448         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c:
10449         Undefine weak_alias and add a comment why mips64 require
10450         versioning.
10451
10452 2016-10-12  H.J. Lu  <hongjiu.lu@intel.com>
10453
10454         [BZ #20647]
10455         * sysdeps/x86/cacheinfo.c (handle_intel): Return -1 if the
10456         maximum CPUID level is less than 2.
10457
10458 2016-10-12  Joseph Myers  <joseph@codesourcery.com>
10459
10460         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
10461         (totalorder): New declaration.
10462         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalorder):
10463         New macro.
10464         * math/Versions (totalorder): New libm symbol at version
10465         GLIBC_2.25.
10466         (totalorderf): Likewise.
10467         (totalorderl): Likewise.
10468         * math/Makefile (libm-calls): Add s_totalorderF.
10469         * math/gen-libm-test.pl (parse_args): Escape quotes in test name
10470         string.
10471         * math/libm-test.inc (PAYLOAD_DIG): New macro.
10472         (qnan_value_pl): Likewise.
10473         (snan_value_pl): Likewise.
10474         (qnan_value): Define using qnan_value_pl.
10475         (snan_value): Define using snan_value_pl.
10476         (struct test_ff_i_data): Add comment about which tests use this
10477         structure.
10478         (RUN_TEST_ff_b): New macro.
10479         (RUN_TEST_LOOP_ff_b): Likewise.
10480         (totalorder_test_data): New array.
10481         (totalorder_test): New function.
10482         (main): Call totalorder_test.
10483         * math/test-tgmath.c (NCALLS): Increase to 122.
10484         (F(compile_test)): Call totalorder.
10485         (F(totalorder)): New function.
10486         * manual/arith.texi (FP Comparison Functions): Document
10487         totalorder, totalorderf and totalorderl.
10488         * manual/libm-err-tab.pl: Update comment on interfaces without
10489         ulps tabulated.
10490         * sysdeps/ieee754/dbl-64/s_totalorder.c: New file.
10491         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Likewise.
10492         * sysdeps/ieee754/flt-32/s_totalorderf.c: Likewise.
10493         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Likewise.
10494         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Likewise.
10495         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Likewise.
10496         * sysdeps/ieee754/ldbl-opt/nldbl-totalorder.c: Likewise.
10497         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
10498         totalorder.
10499         (CFLAGS-nldbl-totalorder.c): New variable.
10500         * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c: New
10501         file.
10502         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
10503         Add test-totalorderl-ldbl-128ibm.
10504         * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c: New file.
10505         * sysdeps/ieee754/ldbl-96/Makefile [$(subdir) = math] (tests): Add
10506         test-totalorderl-ldbl-96.
10507         * sysdeps/nacl/libm.abilist: Update.
10508         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
10509         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
10510         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
10511         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
10512         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
10513         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
10514         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
10515         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
10516         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
10517         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
10518         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
10519         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
10520         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
10521         Likewise.
10522         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
10523         Likewise.
10524         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
10525         Likewise.
10526         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
10527         Likewise.
10528         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
10529         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
10530         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
10531         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
10532         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
10533         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
10534         Likewise.
10535         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
10536         Likewise.
10537         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
10538         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
10539         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
10540
10541 2016-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10542
10543         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sync_file_range.
10544         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c: Remove file.
10545         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c: Likewise.
10546         * sysdeps/unix/sysv/linux/sync_file_range.c: Use SYSCALL_LL64 and
10547         remove ENOSYS implementation.
10548         * sysdeps/unix/sysv/linux/tst-sync_file_range.c (sync_file_range):
10549         Consolidate all Linux implementations.
10550
10551 2016-10-11  Florian Weimer  <fweimer@redhat.com>
10552
10553         * resolv/Makefile (+cflags): Do not set -Wno-write-strings.
10554         * resolv/herror.c (herror): Cast away const-ness.
10555         * resolv/res_debug.c (__p_class_syms, __p_default_section_syms)
10556         (__p_update_section_syms, __p_type_syms, __p_rcode_syms): Likewise.
10557
10558 2016-10-11  Joseph Myers  <joseph@codesourcery.com>
10559
10560         * math/s_ccosh_template.c (M_DECL_FUNC (__ccosh)): Use M_NAN
10561         instead of M_NAN + M_NAN.
10562         * math/s_csinh_template.c (M_DECL_FUNC (__csinh)): Likewise.
10563
10564 2016-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10565
10566         * misc/getauxval.c [!HAVE_AUX_VECTOR] (__getauxval): Do not define
10567         unused variable 'p'.
10568
10569 2016-10-09  Alan Modra  <amodra@gmail.com>
10570             Andreas Schwab  <schwab@linux-m68k.org>
10571
10572         [BZ #20554]
10573         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount)
10574         [PIC && !SHARED]: Set up PIC register for PLT call.
10575
10576 2016-10-07  Joseph Myers  <joseph@codesourcery.com>
10577
10578         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): Define
10579         conditional on value of [__FLT_EVAL_METHOD__].
10580         * math/test-iseqsig-excess-precision.c: New file.
10581         * math/Makefile (tests): Add test-iseqsig-excess-precision.
10582
10583 2016-10-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10584
10585         * math/s_iseqsig_template.c: Include math-private.h.
10586
10587         * posix/Makefile (tests): Add tst-posix_fadvise and tst-posix_fadvise64.
10588         * posix/tst-posix_fadvise.c: New file.
10589         * posix/tst-posix_fadvise64.c: Likewise.
10590         * posix/tst-posix_fadvise-common.c: Likewise.
10591         * sysdeps/unix/sysv/linux/arm/kernel-features.h
10592         (__ASSUME_FADVISE64_64_6ARG): Define.
10593         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
10594         [!__powerpc64__] (__ASSUME_FADVISE64_64_6ARG): Define.
10595         * sysdeps/unix/sysv/linux/tile/kernel-features.h
10596         [!LP64] (__ASSUME_FADVISE64_64_NO_ALIGN): Define.
10597         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c: Remove file.
10598         * sysdeps/unix/sysv/linux/generic/wordsize-32/posix_fadvise.c: Likewise.
10599         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Likewise.
10600         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise.c: Likewise.
10601         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise64.c: Likewise.
10602         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fadvise.c: Likewise.
10603         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fadvise64.c: Likewise.
10604         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c: Likewise.
10605         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: Likewise.
10606         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c:
10607         Likewise.
10608         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c: Likewise.
10609         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise64.c: Likewise.
10610         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c
10611         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l64]:
10612         Alias to __posix_fadvise64_l32.
10613         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l32]:
10614         Add compat definition to posix_fadvise64.
10615         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l64]:
10616         Add versioned definition to posix_fadvise64.
10617         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Build iff
10618         __OFF_T_MATCHES_OFF64_T is defined, use INTERNAL_SYSCALL_CALL, add
10619         __ASSUME_FADVISE64_64_6ARG/__ASSUME_FADVISE64_64_NO_ALIGN support.
10620         * sysdeps/unix/sysv/linux/posix_fadvise64.c (posix_fadvise64): Add
10621         __ASSUME_FADVISE64_64_NO_ALIGN support and use INTERNAL_SYSCALL_CALL.
10622
10623         * io/Makefile (tests): Add tst-posix_fallocate and
10624         tst-posix_fallocate64.
10625         * io/tst-posix_fallocate-common.c: New file.
10626         * io/tst-posix_fallocate.c: Likewise.
10627         * io/tst-posix_fallocate64.c: Likewise.
10628         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c: Remove
10629         file.
10630         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c:
10631         Likewise.
10632         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fallocate.c: Likewise.
10633         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fallocate64.c:
10634         Likewise.
10635         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Likewise.
10636         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: Likewise.
10637         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Use
10638         SYSCALL_LL to pass both offset and len arguments.
10639         * sysdeps/unix/sysv/linux/posix_fallocate64.c (posix_fallocate64):
10640         Likewise.
10641         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pwrite64): Add
10642         __libc_pwrite64 alias used by posix_fallocate64.
10643
10644         * sysdeps/unix/sysv/linux/Makefile (test): Add tst-fallocate and
10645         tst-fallocate64.
10646         * sysdeps/unix/sysv/linux/tst-fallocate.c: New file.
10647         * sysdeps/unix/sysv/linux/tst-fallocate64.c: Likewise.
10648         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
10649         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c: Remove file.
10650         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c: Likewise.
10651         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate.c: Likewise.
10652         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate64.c: Likewise.
10653         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
10654         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: Likewise.
10655         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Use SYSCALL_LL
10656         macro on offset argument.
10657         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Use
10658         SYSCALL_LL64 on offset argument.
10659
10660         * sysdeps/unix/sysv/linux/Makefile (test): Add tst-fallocate and
10661         tst-fallocate64.
10662         * sysdeps/unix/sysv/linux/tst-fallocate.c: New file.
10663         * sysdeps/unix/sysv/linux/tst-fallocate64.c: Likewise.
10664         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
10665         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c: Remove file.
10666         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c: Likewise.
10667         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate.c: Likewise.
10668         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate64.c: Likewise.
10669         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
10670         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: Likewise.
10671         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Use SYSCALL_LL
10672         macro on offset argument.
10673         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Use
10674         SYSCALL_LL64 on offset argument.
10675         * test-skeleton.c (FAIL_RET): Add macro.
10676         (FAIL_EXIT): Likewise.
10677         (FAIL_EXIT1): Likewise.
10678         (_FAIL): Likewise.
10679
10680 2016-10-07  Florian Weimer  <fweimer@redhat.com>
10681
10682         [BZ #20629]
10683         resolv: Remove RES_USEBSTRING and its implementation.
10684         * resolv/resolv.h (RES_USEBSTRING): Remove.
10685         * resolv/ns_name.c (NS_TYPE_ELT, DNS_LABELTYPE_BITSTRING)
10686         (digitvalue, encode_bitstring, decode_bitstring): Remove.
10687         (ns_name_ntop, ns_name_pton, ns_name_unpack, ns_name_skip)
10688         (labellen): Remove extended label types support.
10689         * resolv/res_debug.c (p_option): Remove RES_USEBSTRING handling.
10690         * resolv/res_init.c (res_setoptions): Likewise.
10691         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Likewise.
10692
10693 2016-10-07  Florian Weimer  <fweimer@redhat.com>
10694
10695         resolv: Remove RES_NOIP6DOTINT and its implementation.
10696         * resolv/resolv.h (RES_DEFAULT): Remove RES_NOIP6DOTINT.
10697         (RES_NOIP6DOTINT): Remove.
10698         * resolv/gethnamaddr.c (gethostbyaddr): Remove RES_NOIP6DOTINT
10699         handling.
10700         * resolv/res_debug.c (p_option): Likewise.
10701         * resolv/res_init.c (res_setoptions): Likewise.
10702         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Likewise.
10703
10704 2016-10-07  Florian Weimer  <fweimer@redhat.com>
10705
10706         resolv: Deprecate unimplemented flags.
10707         * misc/sys/cdefs.h (__glibc_macro_warning1)
10708         (__glibc_macro_warning): Define.
10709         * resolv/resolv.h (RES_AAONLY, RES_PRIMARY, RES_NOCHECKNAME)
10710         (RES_KEEPTSIG): Mark as deprecated.
10711         * resolv/res_debug.c (p_option): Remove RES_AAONLY, RES_PRIMARY,
10712         RES_NOCHECKNAME, RES_KEEPTSIG.
10713         * resolv/res_init.c (res_setoptions): Remove RES_NOCHECKNAME handling.
10714
10715 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10716
10717         * nptl/pt-longjmp.c (DEFINE_LONGJMP): Use libc_ifunc macro.
10718         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c (longjmp, siglongjmp):
10719         Use strong_alias to create symbols for glibc verison 2.19.
10720
10721 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10722
10723         * nptl/pt-vfork.c (DEFINE_VFORK): Use libc_ifunc macro.
10724
10725 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10726
10727         * nptl/pt-system.c (system_ifunc): Use libc_ifunc macro.
10728
10729 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10730
10731         * rt/clock-compat.c (COMPAT_REDIRECT): Use libc_ifunc macro.
10732
10733 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10734
10735         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
10736         Use libc_ifunc_hidden and libc_hidden_def macro. Redirect ifunced function
10737         in header for using it as type for ifunc function because __GI_* symbols
10738         for ppc32 do not target the ifunc symbols.
10739         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
10740
10741 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10742
10743         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday):
10744         Use libc_ifunc_hidden macro. Use libc_hidden_def instead of
10745         libc_ifunc_hidden_def.
10746         * sysdeps/unix/sysv/linux/x86/time.c (time): Likewise.
10747         * sysdeps/unix/sysv/linux/i386/gettimeofday.c (__gettimeofday):
10748         Redirect ifunced function in header for using it as type of ifunc'ed
10749         function. Redefine libc_hidden_def to use fallback non ifunc'ed
10750         function for __GI_* symbol.
10751         * sysdeps/unix/sysv/linux/i386/time.c (time): Likewise.
10752         * include/libc-symbols.h
10753         (libc_ifunc_hidden_def, libc_ifunc_hidden_def1): Delete macro.
10754
10755 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10756
10757         [BZ #20478]
10758         * sysdeps/s390/multiarch/ifunc-resolve.h
10759         (s390_vx_libc_ifunc2, s390_libc_ifunc): Use __ifunc from libc-symbols.h
10760         to create ifunc symbols.
10761         (s390_vx_libc_ifunc_init, s390_vx_libc_ifunc_redirected
10762         , s390_vx_libc_ifunc2_redirected, s390_libc_ifunc_init): New define.
10763         * sysdeps/s390/multiarch/memchr.c: Redirect ifunced function in header
10764         for using it as type for ifunc function.
10765         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
10766         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
10767         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
10768         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
10769         * sysdeps/s390/multiarch/strcat.c: Likewise.
10770         * sysdeps/s390/multiarch/strchr.c: Likewise.
10771         * sysdeps/s390/multiarch/strcmp.c: Likewise.
10772         * sysdeps/s390/multiarch/strcpy.c: Likewise.
10773         * sysdeps/s390/multiarch/strcspn.c: Likewise.
10774         * sysdeps/s390/multiarch/strlen.c: Likewise.
10775         * sysdeps/s390/multiarch/strncmp.c: Likewise.
10776         * sysdeps/s390/multiarch/strncpy.c: Likewise.
10777         * sysdeps/s390/multiarch/strnlen.c: Likewise.
10778         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
10779         * sysdeps/s390/multiarch/strrchr.c: Likewise.
10780         * sysdeps/s390/multiarch/strspn.c: Likewise.
10781         * sysdeps/s390/multiarch/wcschr.c: Likewise.
10782         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
10783         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
10784         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
10785         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
10786         * sysdeps/s390/multiarch/wmemset.c: Likewise.
10787         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
10788         * sysdeps/s390/s390-32/multiarch/memcpy.c: Likewise.
10789         * sysdeps/s390/s390-32/multiarch/memset.c: Likewise.
10790         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
10791         * sysdeps/s390/s390-64/multiarch/memcpy.c: Likewise.
10792         * sysdeps/s390/s390-64/multiarch/memset.c: Likewise.
10793
10794 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10795
10796         * include/libc-symbols.h (__ifunc_resolver):
10797         New macro is used by __ifunc* macros.
10798         (__ifunc): New macro uses gcc attribute ifunc or inline assembly
10799         depending on HAVE_GCC_IFUNC.
10800         (libc_ifunc, libm_ifunc): Use __ifunc as base macro.
10801         (libc_ifunc_redirected, libc_ifunc_hidden, libm_ifunc_init): New macro.
10802         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
10803         Redirect ifunced function in header for using as type for ifunc function.
10804         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
10805         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
10806         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
10807         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
10808         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
10809         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
10810         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
10811         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
10812         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
10813         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
10814         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
10815         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
10816         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
10817         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
10818         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
10819         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
10820         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
10821         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
10822         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
10823         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
10824         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
10825         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
10826         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
10827         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
10828         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
10829         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
10830         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
10831         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
10832         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
10833         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
10834         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
10835         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: Likewise.
10836         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
10837         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c:
10838         Add libc_hidden_def() and use libc_ifunc_hidden() macro
10839         instead of libc_ifunc() macro.
10840         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
10841         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
10842
10843 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10844
10845         * config.h.in (HAVE_GCC_IFUNC): New undef.
10846         * configure.ac: Add check if gcc supports attribute ifunc feature.
10847         * configure: Regenerated.
10848         * manual/install.texi: Add recommendation for gcc with
10849         indirect-function support.
10850         * INSTALL: Regenerated.
10851
10852 2016-10-06  Joseph Myers  <joseph@codesourcery.com>
10853
10854         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): New
10855         macro.
10856         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
10857         (__iseqsig): New declaration.
10858         * math/s_iseqsig_template.c: New file.
10859         * math/Versions (__iseqsigf): New libm symbol at version
10860         GLIBC_2.25.
10861         (__iseqsig): Likewise.
10862         (__iseqsigl): Likewise.
10863         * math/libm-test.inc (iseqsig_test_data): New array.
10864         (iseqsig_test): New function.
10865         (main): Call iseqsig_test.
10866         * math/Makefile (gen-libm-calls): Add s_iseqsigF.
10867         * manual/arith.texi (FP Comparison Functions): Document iseqsig.
10868         * manual/libm-err-tab.pl: Update comment on interfaces without
10869         ulps tabulated.
10870         * sysdeps/generic/fix-fp-int-compare-invalid.h: New file.
10871         * sysdeps/powerpc/fpu/fix-fp-int-compare-invalid.h: Likewise.
10872         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h: Likewise.
10873         * sysdeps/nacl/libm.abilist: Update.
10874         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
10875         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
10876         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
10877         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
10878         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
10879         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
10880         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
10881         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
10882         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
10883         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
10884         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
10885         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
10886         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
10887         Likewise.
10888         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
10889         Likewise.
10890         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
10891         Likewise.
10892         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
10893         Likewise.
10894         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
10895         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
10896         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
10897         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
10898         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
10899         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
10900         Likewise.
10901         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
10902         Likewise.
10903         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
10904         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
10905         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
10906
10907 2016-10-06  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10908
10909         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute, do_sincos_1,
10910         do_sincos_2, sloww, sloww1): Update comments.
10911
10912         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Adjust calls to
10913         do_sincos_1 and do_sincos_2 to pass a boolean shift_quadrant.
10914
10915         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Make
10916         K boolean and rename it.
10917         (__sin): Adjust.
10918         (__cos): Adjust.
10919
10920 2016-10-06  Rical Jasan  <ricaljasan@pacific.net>
10921             Siddhesh Poyarekar  <siddhesh@sourceware.org>
10922
10923         * manual/nss.texi: Fix typos in the manual.
10924
10925 2016-10-06  Rical Jasan  <ricaljasan@pacific.net>
10926
10927         * manual/contrib.texi: Fix typos in the manual.
10928
10929         * manual/maint.texi: Fix typos in the manual.
10930
10931         * manual/install.texi: Fix typos in the manual.
10932         * INSTALL: Regenerated.
10933
10934         * manual/lang.texi: Fix typos in the manual.
10935
10936         * manual/probes.texi: Fix typos in the manual.
10937
10938         * manual/threads.texi: Fix typos in the manual.
10939
10940         * manual/debug.texi: Fix typos in the manual.
10941
10942         * manual/crypt.texi: Fix typos in the manual.
10943
10944         * manual/conf.texi: Fix typos in the manual.
10945
10946         * manual/sysinfo.texi: Fix typos in the manual.
10947
10948         * manual/users.texi: Fix typos in the manual.
10949
10950         * manual/job.texi: Fix typos in the manual.
10951
10952         * manual/process.texi: Fix typos in the manual.
10953
10954         * manual/argp.texi: Fix typos in the manual.
10955         * manual/getopt.texi: Likewise.
10956         * manual/startup.texi: Likewise.
10957
10958         * manual/signal.texi: Fix typos in the manual.
10959
10960         * manual/setjmp.texi: Fix typos in the manual.
10961
10962         * manual/resource.texi: Fix typos in the manual.
10963
10964         * manual/time.texi: Fix typos in the manual.
10965
10966         * manual/arith.texi: Fix typos in the manual.
10967
10968         * manual/math.texi: Fix typos in the manual.
10969
10970         * manual/syslog.texi: Fix typos in the manual.
10971
10972         * manual/terminal.texi: Fix typos in the manual.
10973
10974         * manual/socket.texi: Fix typos in the manual.
10975
10976         * manual/filesys.texi: Fix typos in the manual.
10977
10978         * manual/llio.texi: Fix typos in the manual.
10979
10980         * manual/stdio.text: Fix typos in the manual.
10981
10982 2016-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10983
10984         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Check N
10985         instead of K1.
10986
10987         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Rename K to
10988         SHIFT_QUADRANT and make it bool.
10989         (do_sincos_2): Likewise.
10990         (sloww): Likewise.
10991         (sloww1): Likewise.
10992         (__sin): Adjust calls to do_sincos_1 and do_sincos_2.
10993         (__cos): Likewise.
10994
10995 2016-10-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10996
10997         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
10998
10999 2016-10-04  Joseph Myers  <joseph@codesourcery.com>
11000
11001         * include/limits.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (LONG_WIDTH):
11002         Define to __WORDSIZE, not conditional on [LONG_MAX ==
11003         0x7fffffffL].
11004         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULONG_WIDTH): Likewise.
11005
11006 2016-10-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11007
11008         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Replace
11009         inline by __inline__.
11010         (__ppc_yield, __ppc_mdoio, __ppc_mdoom, __ppc_set_ppr_med): Likewise.
11011         (__ppc_set_ppr_med_low, __ppc_set_ppr_low): Likewise.
11012         (__ppc_set_ppr_very_low, __ppc_set_ppr_med_high): Likewise.
11013         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Require
11014         sigset_t from signal.h.
11015         * sysdeps/unix/sysv/linux/powerpc/sys/user.h: Include stddef.h,
11016         which is already required.
11017
11018 2016-10-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
11019
11020         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
11021
11022 2016-10-03  Joseph Myers  <joseph@codesourcery.com>
11023
11024         * sysdeps/gnu/netinet/tcp.h (TCP_REPAIR_WINDOW): New macro.
11025         (struct tcp_repair_window): New type.
11026
11027 2016-10-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11028
11029         * libio/tst-memstream3.c: Include string.h.
11030
11031 2016-09-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11032
11033         [BZ #18241]
11034         [BZ #20181]
11035         * libio/Makefile (test): Add tst-memstream3 and tst-wmemstream3.
11036         * libio/memstream.c (_IO_mem_sync): Only append a null byte if
11037         write position is at the end the buffer.
11038         * libio/wmemstream.c (_IO_wmem_sync): Likewise.
11039         * libio/strops.c (_IO_str_switch_to_get_mode): New function.
11040         (_IO_str_seekoff): Set correct offset from negative displacement and
11041         set EINVAL for invalid ones.
11042         * libio/wstrops.c (enlarge_userbuf): Use correct function to calculate
11043         buffer length.
11044         (_IO_wstr_switch_to_get_mode): New function.
11045         (_IO_wstr_seekoff): Set correct offset from negative displacement and
11046         set EINVAL for invalid ones.
11047         * libio/tst-memstream3.c: New file.
11048         * libio/tst-wmemstream3.c: Likewise.
11049         * manual/examples/memstrm.c: Remove warning when priting size_t.
11050
11051 2016-09-30  Joseph Myers  <joseph@codesourcery.com>
11052
11053         * sysdeps/ieee754/dbl-64/dla.h [__FP_FAST_FMA] (DLA_FMS): Define
11054         macro to use __builtin_fma.
11055         * sysdeps/x86_64/fpu/dla.h: Remove file.
11056
11057         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h
11058         [__NO_LONG_DOUBLE_MATH] (__iscanonicall): Do not declare.
11059         [__NO_LONG_DOUBLE_MATH] (iscanonical): Define to evaluate to 1.
11060
11061 2016-09-30  Carlos O'Donell  <carlos@redhat.com>
11062
11063         [BZ #20292]
11064         * elf/Makefile (routines): Add dl-addr-obj.
11065         [ifeq (yesyes,$(have-fpie)$(build-shared))] (tests): Add
11066         tst-_dl_addr_inside_object.
11067         [ifeq (yesyes,$(have-fpie)$(build-shared))] (tests-pie): Likewise.
11068         [ifeq (yesyes,$(have-fpie)$(build-shared))]
11069         ($(objpfx)tst-_dl_addr_inside_object): Add $(objpfx)dl-addr-obj.os.
11070         [ifeq (yesyes,$(have-fpie)$(build-shared))]
11071         (CFLAGS-tst-_dl_addr_inside_object.c): Add $(PIE-ccflag).
11072         * elf/dl-addr.c: Remove _dl_addr_inside_object function.
11073         * elf/dl-open.c: Likewise.
11074         * elf/dl-addr-obj.c: New file.
11075         * elf/tst-_dl_addr_inside_object.c: New file.
11076
11077 2016-09-30  Joseph Myers  <joseph@codesourcery.com>
11078
11079         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Include
11080         <bits/iscanonical.h>.
11081         * bits/iscanonical.h: New file.
11082         * math/s_iscanonicall.c: Likewise.
11083         * math/Versions (__iscanonicall): New libm symbol at version
11084         GLIBC_2.25.
11085         * math/libm-test.inc (iscanonical_test_data): New array.
11086         (iscanonical_test): New function.
11087         (main): Call iscanonical_test.
11088         * math/Makefile (headers): Add bits/iscanonical.h.
11089         (type-ldouble-routines): Add s_iscanonicall.
11090         * manual/arith.texi (Floating Point Classes): Document
11091         iscanonical.
11092         * manual/libm-err-tab.pl: Update comment on interfaces without
11093         ulps tabulated.
11094         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h: New file.
11095         * sysdeps/ieee754/ldbl-128ibm/s_iscanonicall.c: Likewise.
11096         * sysdeps/ieee754/ldbl-128ibm/test-iscanonical-ldbl-128ibm.c:
11097         Likewise.
11098         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
11099         test-iscanonical-ldbl-128ibm.
11100         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h: New file.
11101         * sysdeps/ieee754/ldbl-96/s_iscanonicall.c: Likewise.
11102         * sysdeps/ieee754/ldbl-96/test-iscanonical-ldbl-96.c: Likewise.
11103         * sysdeps/ieee754/ldbl-96/Makefile: Likewise.
11104         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
11105         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11106         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11107         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
11108         Likewise.
11109         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
11110         Likewise.
11111         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
11112         Likewise.
11113         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
11114         Likewise.
11115         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11116         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11117
11118 2016-09-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11119
11120         * string/bits/string3.h: Remove C++ style comments.
11121
11122 2016-09-29  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11123
11124         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Use copysign
11125         instead of ternary condition.
11126         (do_sincos_2): Likewise.
11127         (__sin): Likewise.
11128         (__cos): Likewise.
11129         (slow): Likewise.
11130         (sloww): Likewise.
11131         (sloww1): Likewise.
11132         (bsloww): Likewise.
11133         (bsloww1): Likewise.
11134
11135         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos_slow): use copysign
11136         instead of ternary condition.
11137         (do_sin_slow): Likewise.
11138         (do_sincos_1): Likewise.
11139         (do_sincos_2): Likewise.
11140         (__cos): Likewise.
11141         (sloww): Likewise.
11142         (sloww1): Likewise.
11143         (sloww2): Likewise.
11144         (bsloww): Likewise.
11145         (bsloww1): Likewise.
11146         (bsloww2): Likewise.
11147
11148         * sysdeps/ieee754/dbl-64/s_sin.c (slow1): Consolidate sign
11149         check from here...
11150         (slow2): ... and here...
11151         (__sin): ... to here.
11152
11153 2016-09-28  Joseph Myers  <joseph@codesourcery.com>
11154
11155         * math/math.h
11156         [__GLIBC_USE (IEC_60559_BFP_EXT) && !__SUPPORT_SNAN__] (iszero):
11157         Cast argument to its own type.
11158         * math/test-iszero-excess-precision.c: New file.
11159         * math/Makefile (tests): Add test-iszero-excess-precision.
11160         (CFLAGS-test-iszero-excess-precision.c): New variable.
11161
11162 2016-09-28  Rasmus Villemoes <rv@rasmusvillemoes.dk>
11163
11164         * sysdeps/unix/sysv/linux/spawni.c (posix_spawn_args): Remove pipe
11165         field, add err field.
11166         (__spawni_child): Report error through err member instead of pipe.
11167         (__spawnix): Likewise.
11168
11169 2016-09-28  Zack Weinberg  <zackw@panix.com>
11170
11171         * scripts/check-installed-headers.sh: Generalize treatment of
11172         sys/elf.h to all target architectures.
11173
11174         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Restore accidentally-
11175         deleted typedef ucontext_t.
11176
11177 2016-09-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11178
11179         * sysdeps/unix/sysdep.h (__INTERNAL_SYSCALL0): New macro.
11180         (__INTERNAL_SYSCALL1): Likewise.
11181         (__INTERNAL_SYSCALL2): Likewise.
11182         (__INTERNAL_SYSCALL3): Likewise.
11183         (__INTERNAL_SYSCALL4): Likewise.
11184         (__INTERNAL_SYSCALL5): Likewise.
11185         (__INTERNAL_SYSCALL6): Likewise.
11186         (__INTERNAL_SYSCALL7): Likewise.
11187         (__INTERNAL_SYSCALL_NARGS_X): Likewise.
11188         (__INTERNAL_SYSCALL_NARGS): Likewise.
11189         (__INTERNAL_SYSCALL_DISP): Likewise.
11190         (INTERNAL_SYSCALL_CALL): Likewise.
11191         (__SYSCALL0): Rename to __INLINE_SYSCALL0.
11192         (__SYSCALL1): Rename to __INLINE_SYSCALL1.
11193         (__SYSCALL2): Rename to __INLINE_SYSCALL2.
11194         (__SYSCALL3): Rename to __INLINE_SYSCALL3.
11195         (__SYSCALL4): Rename to __INLINE_SYSCALL4.
11196         (__SYSCALL5): Rename to __INLINE_SYSCALL5.
11197         (__SYSCALL6): Rename to __INLINE_SYSCALL6.
11198         (__SYSCALL7): Rename to __INLINE_SYSCALL7.
11199         (__SYSCALL_NARGS_X): Rename to __INLINE_SYSCALL_NARGS_X.
11200         (__SYSCALL_NARGS): Rename to __INLINE_SYSCALL_NARGS.
11201         (__SYSCALL_DISP): Rename to __INLINE_SYSCALL_DISP.
11202         (__SYSCALL_CALL): Rename to INLINE_SYSCALL_CALL.
11203         (SYSCALL_CANCEL): Replace __SYSCALL_CALL with INLINE_SYSCALL_CALL.
11204
11205 2016-09-23  Joseph Myers  <joseph@codesourcery.com>
11206
11207         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iszero): New
11208         macro.
11209         * math/libm-test.inc (iszero_test_data): New array.
11210         (iszero_test): New function.
11211         (main): Call iszero_test.
11212         * manual/arith.texi (Floating Point Classes): Document iszero.
11213         * manual/libm-err-tab.pl: Update comment on interfaces without
11214         ulps tabulated.
11215
11216 2016-09-23  Zack Weinberg  <zackw@panix.com>
11217
11218         * scripts/check-installed-headers.sh: New script.
11219         * Rules: In each directory that defines header files to be installed,
11220         run check-installed-headers.sh on them as a special test.
11221         * Makefile: Likewise for the headers installed at top level.
11222
11223         * include/aliases.h, include/alloca.h, include/argz.h
11224         * include/arpa/nameser.h, include/arpa/nameser_compat.h
11225         * include/elf.h, include/envz.h, include/err.h
11226         * include/execinfo.h, include/fpu_control.h, include/getopt.h
11227         * include/gshadow.h, include/ifaddrs.h, include/libintl.h
11228         * include/link.h, include/malloc.h, include/mcheck.h
11229         * include/mntent.h, include/netinet/ether.h
11230         * include/nss.h, include/obstack.h, include/printf.h
11231         * include/pty.h, include/resolv.h, include/rpc/auth.h
11232         * include/rpc/auth_des.h, include/rpc/auth_unix.h
11233         * include/rpc/clnt.h, include/rpc/des_crypt.h
11234         * include/rpc/key_prot.h, include/rpc/netdb.h
11235         * include/rpc/pmap_clnt.h, include/rpc/pmap_prot.h
11236         * include/rpc/pmap_rmt.h, include/rpc/rpc.h
11237         * include/rpc/rpc_msg.h, include/rpc/svc.h
11238         * include/rpc/svc_auth.h, include/rpc/xdr.h
11239         * include/rpcsvc/nis_callback.h, include/rpcsvc/nislib.h
11240         * include/rpcsvc/yp.h, include/rpcsvc/ypclnt.h
11241         * include/rpcsvc/ypupd.h, include/shadow.h
11242         * include/stdio_ext.h, include/sys/epoll.h
11243         * include/sys/file.h, include/sys/gmon.h, include/sys/ioctl.h
11244         * include/sys/prctl.h, include/sys/profil.h
11245         * include/sys/statfs.h, include/sys/sysctl.h
11246         * include/sys/sysinfo.h, include/ttyent.h, include/utmp.h
11247         * sysdeps/arm/nacl/include/bits/setjmp.h
11248         * sysdeps/mips/include/sys/asm.h
11249         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h
11250         * sysdeps/unix/sysv/linux/include/sys/timex.h
11251         * sysdeps/x86/fpu/include/bits/fenv.h:
11252         Add #ifndef _ISOMAC guard around internal declarations.
11253         Add multiple-inclusion guard if not already present.
11254
11255 2016-09-23  Zack Weinberg  <zackw@panix.com>
11256
11257         * sysdeps/generic/sys/ucontext.h
11258         * sysdeps/arm/sys/ucontext.h
11259         * sysdeps/i386/sys/ucontext.h
11260         * sysdeps/m68k/sys/ucontext.h
11261         * sysdeps/mips/sys/ucontext.h
11262         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h
11263         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h
11264         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h
11265         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h
11266         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h
11267         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h
11268         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h
11269         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h
11270         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h
11271         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h
11272         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h
11273         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h
11274         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h
11275         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h:
11276         Include both bits/sigcontext.h and bits/sigstack.h.
11277         Fix grammar error in comment, if present.
11278
11279         * bits/sigstack.h
11280         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h
11281         * sysdeps/unix/sysv/linux/alpha/bits/sigstack.h
11282         * sysdeps/unix/sysv/linux/bits/sigstack.h
11283         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h
11284         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h
11285         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h
11286         * sysdeps/unix/sysv/linux/sparc/bits/sigstack.h
11287         * bits/sigcontext.h
11288         * sysdeps/mach/hurd/i386/bits/sigcontext.h
11289         * sysdeps/unix/sysv/linux/bits/sigcontext.h
11290         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h
11291         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h:
11292         Add multiple inclusion guard.  Permit inclusion by sys/ucontext.h
11293         as well as signal.h, if this was not already allowed.  Request
11294         definition of size_t if necessary.  Minimize semantically-null
11295         differences across files.
11296
11297 2016-09-23  Zack Weinberg  <zackw@panix.com>
11298
11299         * time/time.h, bits/time.h, sysdeps/unix/sysv/linux/bits/time.h:
11300         Remove all logic conditional on __need macros.  Move all the
11301         conditionally defined types to their own headers...
11302         * time/bits/types/clock_t.h: Define clock_t here.
11303         * time/bits/types/clockid_t.h: Define clockid_t here.
11304         * time/bits/types/struct_itimerspec.h: Define struct itimerspec here.
11305         * time/bits/types/struct_timespec.h: Define struct timespec here.
11306         * time/bits/types/struct_timeval.h: Define struct timeval here.
11307         * time/bits/types/struct_tm.h: Define struct tm here.
11308         * time/bits/types/time_t.h: Define time_t here.
11309         * time/bits/types/timer_t.h: Define timer_t here.
11310         * time/Makefile: Install the new headers.
11311
11312         * bits/resource.h, io/fcntl.h, io/sys/poll.h, io/sys/stat.h
11313         * io/utime.h, misc/sys/select.h, posix/sched.h, posix/sys/times.h
11314         * posix/sys/types.h, resolv/netdb.h, rt/aio.h, rt/mqueue.h
11315         * signal/signal.h, pthread/semaphore.h, sysdeps/nptl/pthread.h
11316         * sysdeps/unix/sysv/linux/alpha/bits/resource.h
11317         * sysdeps/unix/sysv/linux/alpha/sys/acct.h
11318         * sysdeps/unix/sysv/linux/bits/resource.h
11319         * sysdeps/unix/sysv/linux/bits/timex.h
11320         * sysdeps/unix/sysv/linux/mips/bits/resource.h
11321         * sysdeps/unix/sysv/linux/net/ppp_defs.h
11322         * sysdeps/unix/sysv/linux/sparc/bits/resource.h
11323         * sysdeps/unix/sysv/linux/sys/acct.h
11324         * sysdeps/unix/sysv/linux/sys/timerfd.h
11325         * sysvipc/sys/msg.h, sysvipc/sys/sem.h, sysvipc/sys/shm.h
11326         * time/sys/time.h, time/sys/timeb.h
11327         Use the new bits/types headers.
11328
11329         * include/time.h: Remove __need logic.
11330         * include/bits/time.h
11331         * include/bits/types/clock_t.h, include/bits/types/clockid_t.h
11332         * include/bits/types/time_t.h, include/bits/types/timer_t.h
11333         * include/bits/types/struct_itimerspec.h
11334         * include/bits/types/struct_timespec.h
11335         * include/bits/types/struct_timeval.h
11336         * include/bits/types/struct_tm.h:
11337         New wrapper headers.
11338
11339 2016-09-23  Zack Weinberg  <zackw@panix.com>
11340
11341         * sysdeps/mach/hurd/net/if_ppp.h
11342         * sysdeps/unix/sysv/linux/net/if_ppp.h:
11343         Only define struct ifpppstatsreq and struct ifpppcstatsreq
11344         if __USE_MISC is defined, to ensure struct ifreq is declared.
11345
11346         * inet/netinet/ether.h: Condition all function prototypes
11347         on __USE_MISC, to ensure struct ether_addr is declared.
11348
11349         * socket/bits/types/struct_osockaddr.h: New header.
11350         * include/bits/types/struct_osockaddr.h: New wrapper.
11351         * socket/Makefile: Install the new header.
11352         * socket/sys/socket.h, inet/protocols/talkd.h:
11353         Refer to bits/types/struct_osockaddr.h for the definition of
11354         struct osockaddr.
11355
11356 2016-09-23  Zack Weinberg  <zackw@panix.com>
11357
11358         * bits/in.h, gmon/sys/gmon.h, inet/netinet/igmp.h
11359         * inet/protocols/routed.h, inet/protocols/talkd.h
11360         * inet/protocols/timed.h, io/fts.h, nptl_db/thread_db.h
11361         * resolv/arpa/nameser.h, resolv/resolv.h, sunrpc/rpc/rpc_des.h
11362         * sysdeps/generic/netinet/if_ether.h
11363         * sysdeps/generic/netinet/in_systm.h
11364         * sysdeps/generic/netinet/ip.h, sysdeps/generic/netinet/tcp.h
11365         * sysdeps/gnu/netinet/ip_icmp.h, sysdeps/gnu/netinet/tcp.h
11366         * sysdeps/gnu/netinet/udp.h, sysdeps/mach/hurd/net/ethernet.h
11367         * sysdeps/mach/hurd/net/if_arp.h
11368         * sysdeps/mach/hurd/net/if_ppp.h
11369         * sysdeps/mach/hurd/net/route.h, sysdeps/mach/sys/reboot.h
11370         * sysdeps/unix/sysv/linux/bits/in.h
11371         * sysdeps/unix/sysv/linux/net/ethernet.h
11372         * sysdeps/unix/sysv/linux/net/if_arp.h
11373         * sysdeps/unix/sysv/linux/net/if_ppp.h
11374         * sysdeps/unix/sysv/linux/net/if_shaper.h
11375         * sysdeps/unix/sysv/linux/net/route.h
11376         * sysdeps/unix/sysv/linux/netinet/if_ether.h
11377         * sysdeps/unix/sysv/linux/netinet/if_fddi.h
11378         * sysdeps/unix/sysv/linux/netinet/if_tr.h
11379         * sysdeps/unix/sysv/linux/netipx/ipx.h
11380         * sysdeps/unix/sysv/linux/sys/acct.h
11381         * include/arpa/nameser.h, include/resolv.h:
11382         Change all uses of u_char to unsigned char,
11383         u_short and ushort to unsigned short, u_int and uint to unsigned int,
11384         u_long and ulong to unsigned long, u_int8_t to uint8_t,
11385         u_int16_t to uint16_t, u_int32_t to uint32_t, quad_t to int64_t,
11386         and u_int64_t and u_quad_t to uint64_t.
11387
11388         * mach/sys/reboot.h: Remove two casts of integer literals
11389         to the types they already have.
11390
11391         * bits/in.h: Correct error in description of IP_MULTICAST_LOOP.
11392         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
11393         * sysdeps/unix/sysv/linux/netinet/if_ether.h: Change a comment
11394         from referring to 'unsigned char' to 'uint8_t' for consistency with
11395         the macro definition below.
11396
11397         * gmon/sys/gmon.h, inet/netinet/igmp.h, inet/protocols/talkd.h
11398         * io/fts.h, resolv/arpa/nameser.h, resolv/resolv.h
11399         * sunrpc/rpc/rpc_des.h, sysdeps/generic/netinet/ip.h
11400         * sysdeps/gnu/netinet/tcp.h, sysdeps/gnu/netinet/udp.h
11401         * sysdeps/mach/hurd/net/if_ppp.h, sysdeps/unix/sysv/linux/net/if_ppp.h
11402         * sysdeps/unix/sysv/linux/sys/acct.h
11403         * include/arpa/nameser.h, include/resolv.h:
11404         Fix indentation disrupted by mechanical edits.
11405
11406         * inet/protocols/talkd.h, resolv/arpa/nameser.h
11407         * sysdeps/generic/netinet/in_systm.h
11408         * sysdeps/gnu/netinet/ip_icmp.h, sysdeps/gnu/netinet/tcp.h
11409         * sysdeps/gnu/netinet/udp.h
11410         * sysdeps/unix/sysv/linux/net/ethernet.h
11411         * sysdeps/unix/sysv/linux/net/if_arp.h
11412         * sysdeps/unix/sysv/linux/net/if_ppp.h
11413         * sysdeps/unix/sysv/linux/net/if_shaper.h
11414         * sysdeps/unix/sysv/linux/netinet/if_fddi.h
11415         * sysdeps/unix/sysv/linux/netinet/if_tr.h
11416         * sysdeps/unix/sysv/linux/netipx/ipx.h
11417         * sysdeps/unix/sysv/linux/sys/acct.h
11418         Include stdint.h for uintNN_t definitions.
11419         Don't include sys/cdefs.h, features.h, or asm/types.h directly.
11420
11421 2016-09-23  Zack Weinberg  <zackw@panix.com>
11422
11423         * rpcsvc/nislib.h: Include rpcsvc/nis.h.
11424         * sysdeps/unix/sysv/linux/netrose/rose.h:
11425         Include sys/socket.h and netax25/ax25.h.
11426
11427         * inet/netinet/icmp6.h, inet/netinet/ip6.h
11428         * resolv/arpa/nameser_compat.h:
11429         Use __BYTE_ORDER etc. instead of BYTE_ORDER etc.
11430
11431         * sysdeps/unix/sysv/linux/sys/quota.h:
11432         Use __caddr_t instead of caddr_t.
11433         * sysdeps/unix/sysv/linux/sys/timerfd.h:
11434         Use __clockid_t instead of clockid_t.
11435
11436         * sysvipc/sys/ipc.h: Remove unnecessary #warning.
11437
11438         * argp/argp.h: Check whether _LIBC is defined before expanding it.
11439         * posix/glob.h: Check whether __USE_XOPEN2K8 is defined instead of
11440         expanding it.
11441
11442         * misc/sys/cdefs.h: Tidy up conditional nest defining __flexarr.
11443         Define __glibc_c99_flexarr_available to 1 when the compiler
11444         supports C99-compatible flexible array members, 0 otherwise.
11445         * sysdeps/unix/sysv/linux/bits/socket.h
11446         * sysdeps/mach/hurd/bits/socket.h
11447         * bits/socket.h: Use __glibc_c99_flexarr_available in
11448         definitions of struct cmsghdr and CMSG_DATA.
11449
11450 2016-09-23  Florian Weimer  <fweimer@redhat.com>
11451
11452         * manual/nss.texi (NSS Modules Interface): Adjust function return
11453         type to enum nss_status.  Document errnop argument.  Clarify
11454         h_errnop semantics.  Fix cross-reference formatting.
11455         (NSS Module Function Internals): Mention that *errnop needs to be
11456         set on failure, but not to zero.
11457
11458 2016-09-23  Florian Weimer  <fweimer@redhat.com>
11459
11460         * io/tst-open-tmpfile.c (wrap_open64, wrap_openat64)
11461         (get_random_name): New functions.
11462         (check_wrapper_flags_mode): Use linkat to give the new file a name
11463         determined by get_random_name.
11464         (do_test): Add calls to test open64 and openat64.
11465
11466 2016-09-23  Florian Weimer  <fweimer@redhat.com>
11467
11468         * test-skeleton.c: Remove #include <stdarg.h>.
11469
11470 2016-09-21  Alexandre Oliva <aoliva@redhat.com>
11471
11472         [BZ #19826]
11473         * elf/dl-tls.c (_dl_allocate_tls_init): Restore DTV early
11474         initialization of static TLS entries.
11475         * elf/dl-reloc.c (_dl_nothread_init_static_tls): Likewise.
11476         * nptl/allocatestack.c (init_one_static_tls): Likewise.
11477
11478 2016-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11479
11480         * hurd/hurdmalloc.c (malloc_fork_prepare): Rename to
11481         _hurd_malloc_fork_prepare.
11482         (malloc_fork_parent): Rename to _hurd_malloc_fork_parent.
11483         (malloc_fork_child): Rename to _hurd_malloc_fork_child.
11484         (_hurd_fork_prepare_hook): Drop malloc_fork_prepare.
11485         (_hurd_fork_parent_hook): Drop malloc_fork_parent.
11486         (_hurd_fork_child_hook): Drop malloc_fork_child.
11487         * hurd/hurdmalloc.h (_hurd_malloc_fork_prepare,
11488         _hurd_malloc_fork_parent, _hurd_malloc_fork_child): Add declarations.
11489         * sysdeps/mach/hurd/fork.c (__fork): Call __malloc_fork_lock_parent
11490         after locking locks (notably hurd_dtable_lock). Call
11491         _hurd_malloc_fork_prepare after that. Call _hurd_malloc_fork_parent
11492         before __malloc_fork_unlock_parent and _hurd_malloc_fork_child before
11493         __malloc_fork_unlock_child.
11494         * sysdeps/mach/i386/syscall.S (syscall): Push back syscall number.
11495
11496 2016-09-21  James Greenhalgh  <james.greenhalgh@arm.com>
11497
11498         * soft-fp/extendhftf2.c: New.
11499         * soft-fp/fixhfti.c: Likewise.
11500         * soft-fp/fixunshfti.c: Likewise.
11501         * soft-fp/floattihf.c: Likewise.
11502         * soft-fp/floatuntihf.c: Likewise.
11503         * soft-fp/half.h: Likewise.
11504         * soft-fp/trunctfhf2.c: Likewise.
11505
11506 2016-09-21  Joseph Myers  <joseph@codesourcery.com>
11507
11508         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (issubnormal): New
11509         macro.
11510         * math/libm-test.inc (issubnormal_test_data): New array.
11511         (issubnormal_test): New function.
11512         * manual/arith.texi (Floating Point Classes): Document
11513         issubnormal.
11514         * manual/libm-err-tab.pl: Update comment on interfaces without
11515         ulps tabulated.
11516
11517         * sysdeps/generic/stdint.h: Define
11518         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
11519         <bits/libc-header-start.h> instead of including <features.h>.
11520         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT8_WIDTH): New macro.
11521         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT8_WIDTH): Likewise.
11522         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT16_WIDTH): Likewise.
11523         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT16_WIDTH): Likewise.
11524         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT32_WIDTH): Likewise.
11525         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT32_WIDTH): Likewise.
11526         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT64_WIDTH): Likewise.
11527         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT64_WIDTH): Likewise.
11528         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST8_WIDTH): Likewise.
11529         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST8_WIDTH): Likewise.
11530         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST16_WIDTH): Likewise.
11531         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST16_WIDTH): Likewise.
11532         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST32_WIDTH): Likewise.
11533         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST32_WIDTH): Likewise.
11534         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST64_WIDTH): Likewise.
11535         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST64_WIDTH): Likewise.
11536         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST8_WIDTH): Likewise.
11537         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST8_WIDTH): Likewise.
11538         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST16_WIDTH): Likewise.
11539         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST16_WIDTH): Likewise.
11540         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST32_WIDTH): Likewise.
11541         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST32_WIDTH): Likewise.
11542         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST64_WIDTH): Likewise.
11543         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST64_WIDTH): Likewise.
11544         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INTPTR_WIDTH): Likewise.
11545         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINTPTR_WIDTH): Likewise.
11546         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INTMAX_WIDTH): Likewise.
11547         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINTMAX_WIDTH): Likewise.
11548         [__GLIBC_USE (IEC_60559_BFP_EXT)] (PTRDIFF_WIDTH): Likewise.
11549         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SIG_ATOMIC_WIDTH): Likewise.
11550         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SIZE_WIDTH): Likewise.
11551         [__GLIBC_USE (IEC_60559_BFP_EXT)] (WCHAR_WIDTH): Likewise.
11552         [__GLIBC_USE (IEC_60559_BFP_EXT)] (WINT_WIDTH): Likewise.
11553         * manual/arith.texi (Integers): Document these macros for types
11554         specified by width properties.
11555         * manual/lang.texi (Width of Type): Document these macros for
11556         other standard typedefs.
11557         * stdlib/tst-width-stdint.c: New file.
11558         * stdlib/Makefile (tests): Add tst-width-stdint.
11559
11560 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11561
11562         [BZ #20016]
11563         * resolv/res_send.c (__libc_res_nsend): Remove USE_HOOK code.
11564         * resolv/res_data.c (res_send_setqhook, res_send_setrhook):
11565         Move ...
11566         * resolv/compat-hooks.c (res_send_setqhook, res_send_setrhook):
11567         ... here, as compatibility symbols in a new file.
11568         * resolv/Makefile (libresolv-routines): Add compat-hooks.
11569         * resolv/res_init.c (__res_vinit): Adjust member names.
11570         * include/resolv.h (res_send_setqhook, res_send_setrhook): Remove.
11571         * resolv/resolv.h (res_sendhookact, res_send_qhook)
11572         (res_send_rhook): Remove.
11573         (struct __res_state): Rename qhook, rhook members.
11574
11575 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11576
11577         malloc: Use __libc_lock wrappers.
11578         * malloc/arena.c (list_lock, free_list_lock): Define using
11579         __libc_lock_define_initialized.
11580         (arena_lock): Adjust formatting.
11581         * malloc/malloc.c (struct malloc_state): Define mutex using
11582         __libc_lock_define.
11583         * sysdeps/generic/malloc-machine.h (mutex_t, mutex_init)
11584         (mutex_lock, mutex_trylock, mutex_unlock): Remove.
11585         * sysdeps/mach/hurd/malloc-machine.h (mutex_t, mutex_lock)
11586         (mutex_unlock, mutex_trylock): Remove.
11587         (__pthread_initialize): Remove unused macro.
11588         * sysdeps/nptl/malloc-machine.h (mutex_t, mutex_lock)
11589         (mutex_unlock, mutex_trylock): Remove.
11590
11591 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11592
11593         [BZ #20592]
11594         Remove RR type classification macros.
11595         * resolv/arpa/nameser.h (ns_t_qt_p, ns_t_mrr_p, ns_t_rr_p)
11596         (ns_t_udp_p, ns_t_xfr_p): Remove.
11597
11598 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11599
11600         Remove misleading version information.
11601         * resolv/arpa/nameser.h (__NAMESER): Remove.
11602         * resolv/arpa/nameser_compat.h (__BIND): Remove.
11603
11604 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11605
11606         Remove the always-defined BIND_4_COMPAT macro.
11607         * resolv/arpa/nameser.h: Unconditionally include
11608         <arpa/nameser_compat.h>.
11609         (BIND_4_COMPAT): Remove.
11610         * resolv/res_comp.c: Do not check BIND_4_COMPAT.
11611
11612 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11613
11614         [BZ #20591]
11615         Remove obsolete DNSSEC support.
11616         * resolv/arpa/nameser.h (ns_key_types, NS_KEY_*, NS_ALG_*)
11617         (NS_MD5_RSA_*, NS_DSA_*, NS_NXT_*, ns_sign, ns_sign2, ns_sign_tcp)
11618         (ns_sign_tcp2, ns_sign_tcp_init, ns_find_tsig, ns_verify)
11619         (ns_verify_tcp, ns_verify_tcp_init): Remove.
11620         (ns_cert_types): Add comment.
11621         * resolv/ns_print.c (ns_sprintrrf): Do not handle DNSSEC records
11622         separately.
11623         (KEY_RSA, KEY_HMAC_MD5, dst_s_id_calc, dst_s_get_int16)
11624         (dst_s_dns_key_id): Remove.
11625         * resolv/res_debug.c (__p_key_syms, __p_cert_syms): Remove unused
11626         variables.
11627
11628 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11629
11630         [BZ #20524]
11631         * manual/string.texi (String/Array Comparison): Clarify the
11632         strverscmp behavior.
11633
11634 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11635
11636         * test-skeleton.c (xasprintf): Add function.
11637         * io/tst-open-tmpfile.c: New test.
11638         * io/Makefile (tests): Add it.
11639
11640 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11641
11642         Avoid running $(CXX) during build to obtain header file paths.
11643         * configure.ac (CXX_SYSINCLUDES, CXX_CMATH_HEADER): Set.
11644         * config.make.in (c++-cstdlib-header, c++-cmath-header): Define.
11645         * Makerules (cstdlib, cmath): Remove variables.  Use
11646         $(c++-cstdlib-header), $(c++-cmath-header) instead.
11647         * configure: Regenerate.
11648
11649 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11650
11651         * Makeconfig (all-object-suffixes): Include .op only if
11652         $(build-profile).
11653
11654 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11655
11656         * elf/sln.c: Remove HAVE_CONFIG_H, S_ISDIR, S_ISLNK preprocessor
11657         conditionals.  Do not define PATH_MAX.
11658
11659 2016-09-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11660
11661         * posix/Makefile (tests): Add tst-spawn3.
11662         * posix/tst-spawn3.c: New file.
11663         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Close file descriptor
11664         if it is already opened for open action.
11665
11666         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Correctly block and unblock
11667         all signals when executing the clone vfork child.
11668         (SIGALL_SET): Remove macro.
11669
11670         * nptl/Makefile (tests): Add tst-exec5.
11671         * nptl/tst-exec5.c: New file.
11672         * sysdeps/unix/sysv/linux/spawni.c (__spawni): Correctly enable and disable
11673         asynchronous cancellation.
11674
11675 2016-09-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11676
11677         * hurd/exc2signal.c: #include <hurd/signal.h>
11678         (_hurd_exception2signal): Replace 'exception', 'code', 'subcode',
11679         'sigcode', 'error' parameters with 'detail' parameter.  Fix code
11680         accordingly.
11681         * mach/mach_error.c (mach_error): Fix old-style function definition.
11682         * mach/errstring.c (mach_error_type, mach_error_string): Likewise.
11683
11684 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11685
11686         * math/Makefile (libm-calls): Remove s_nanF.
11687         (gen-libm-calls): Add s_nanF.
11688
11689         * math/s_nan.c: Refactor into ...
11690         * math/s_nan_template.c: New file.
11691
11692         * math/s_nanf.c: Removed.
11693         * math/s_nanl.c: Removed.
11694         * sysdeps/ieee754/ldbl-opt/s_nan.c: Removed.
11695         * sysdeps/ieee754/ldbl-opt/s_nanl.c: Removed.
11696
11697         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
11698         (LDOUBLE_nanl_libm_version): New macro.
11699
11700         * sysdeps/generic/math-type-macros-double.h:
11701         (M_STRTO_NAN): New macro.
11702         * sysdeps/generic/math-type-macros-float.h: Likewise.
11703         * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
11704
11705         * sysdeps/generic/math-type-macros.h: Document
11706         M_STRTO_NAN.
11707
11708 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11709
11710         * math/s_nanf.c: Remove __nanf undef.
11711         * math/s_nan.c: Remove __nan undef.
11712         * math/s_nanl.c: Remove __nanl undef.
11713
11714         * sysdeps/generic/math_private.h (__nan): Remove macro
11715         override.
11716         (__nanf): Likewise.
11717         (__nanl): Likewise.
11718
11719 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11720
11721         * math/Makefile (gen-all-calls): New variable.
11722         (generated): Replace gen-libm-calls with gen-all-calls.
11723         (gen-libm-templates.stmp): Likewise.  Also, ensure
11724         the output directory exists or is created and add
11725         dependency on the Makefile.
11726         (calls): Move s_ldexpF into gen-calls.
11727         (gen-calls): New variable.
11728
11729         * math/s_ldexpf.c: Removed.
11730         * math/s_ldexpl.c: Removed.
11731         * math/s_ldexp.c: Refactored into ...
11732         * math/s_ldexp_template.c: New file.
11733
11734         * sysdeps/generic/math-type-macros-double.h: Remove
11735         redundant fall-through definition of declare_mgen_alias.
11736         (declare_mgen_alias_2): New macro.
11737
11738         * sysdeps/generc/math-type-macros.h (declare_mgen_alias_2):
11739         New macro for function aliased to two exported symbols.
11740
11741         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Update to use
11742         new template file.
11743         sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
11744
11745 2016-09-20  Florian Weimer  <fweimer@redhat.com>
11746
11747         * Makeconfig (all-object-suffixes): Remove .og.
11748         * Makerules (elide-routines.og): Remove.
11749         * sysdeps/i386/i686/Makefile (CFLAGS-.og, ASFLAGS-.og): Remove.
11750         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.og): Remove.
11751         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.op): Remove.
11752
11753 2016-09-20  Florian Weimer  <fweimer@redhat.com>
11754
11755         * scripts/sysd-rules.awk (BEGIN): Only generate rtld patterns for
11756         .os objects.
11757
11758 2016-09-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11759
11760         [BZ #20615]
11761         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Replace
11762         fpu directory by non-fpu.
11763         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Remove dependency
11764         on non-fpu directory from a fpu directory.
11765
11766 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
11767
11768         * include/limits.h: Define
11769         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
11770         <bits/libc-header-start.h> instead of including <features.h>.
11771         [__GLIBC_USE (IEC_60559_BFP_EXT)] (CHAR_WIDTH): New macro.
11772         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SCHAR_WIDTH): Likewise.
11773         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UCHAR_WIDTH): Likewise.
11774         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SHRT_WIDTH): Likewise.
11775         [__GLIBC_USE (IEC_60559_BFP_EXT)] (USHRT_WIDTH): Likewise.
11776         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_WIDTH): Likewise.
11777         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_WIDTH): Likewise.
11778         [__GLIBC_USE (IEC_60559_BFP_EXT)] (LONG_WIDTH): Likewise.
11779         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULONG_WIDTH): Likewise.
11780         [__GLIBC_USE (IEC_60559_BFP_EXT)] (LLONG_WIDTH): Likewise.
11781         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULLONG_WIDTH): Likewise.
11782         * manual/lang.texi (Width of Type): Document these macros.
11783         * stdlib/tst-width.c: New file.
11784         * stdlib/Makefile (tests): Add tst-width.
11785
11786 2016-09-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11787
11788         * intl/dcigettext.c (PATH_MAX): Call __pathconf instead of pathconf.
11789         * sysdeps/posix/dup.c (__dup): Call __fcntl instead of fcntl.
11790
11791 2016-09-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11792
11793         * nptl/sem_init.c (__new_sem_init): Init pad value to 0.
11794         * sysdeps/sparc/sparc32/sem_open.c: Remove file.
11795         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: Likewise.
11796
11797 2016-09-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11798
11799         [BZ #18243]
11800         * rt/Makefile (test): Add tst-shm-cancel.
11801         * rt/tst-shm-cancel.c: New file.
11802         * sysdeps/posix/shm_open.c: Disable asynchronous cancellation.
11803
11804         [BZ #18243]
11805         * nptl/pthreadP.h (__pthread_testcancel): Add prototype and hidden_proto.
11806         * nptl/pthread_testcancel.c (pthread_cancel): Add internal aliais
11807         definition.
11808         * nptl/sem_timedwait.c (sem_timedwait): Add cancellation check for
11809         uncontended case.
11810         * nptl/sem_wait.c (__new_sem_wait): Likewise.
11811         * nptl/tst-cancel12.c (cleanup): Remove wrong cancellation point.
11812         (tf): Fix check for uncontended case.
11813         (do_test): Likewise.
11814         * nptl/tst-cancel13.c (cleanup): Remove wrong cancellation point.
11815         (tf): Fix check for uncontended case.
11816         (do_test): Likewise.
11817         * nptl/tst-cancel14.c (cleanup): Remove wrong cancellation point.
11818         (tf): Fix check for uncontended case.
11819         (do_test): Likewise.
11820         * nptl/tst-cancel15.c (cleanup): Remove wrong cancellation point.
11821         (tf): Fix check for uncontended case.
11822         (do_test): Likewise.
11823
11824         * sysdeps/sparc/sparc32/sem_wait.c: Remove file.
11825         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Likewise.
11826
11827         [BZ #15765]
11828         * nptl/Makefile (tests): Add tst-sem16.
11829         * nptl/tst-sem16.c: New file.
11830         * nptl/sem_open.c (sem_open): Disable asynchronous cancellation.
11831
11832         * nptl/sem_open.c (sem_open): Init pad value to 0.
11833         * sysdeps/sparc/sparc32/sem_open.c: Remove file.
11834         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: Likewise.
11835
11836 2016-09-15  Florian Weimer  <fweimer@redhat.com>
11837
11838         [BZ #20611]
11839         * inet/Makefile (routines): Add inet6_scopeid_pton.
11840         (tests): Add tst-inet6_scopeid_pton.
11841         * inet/inet6_scopeid_pton.c: New file.
11842         * inet/net-internal.h: Likewise.
11843         * inet/tst-inet6_scopeid_pton.c: New test.
11844         * inet/Versions (GLIBC_PRIVATE): Add __inet6_scopeid_pton.
11845         * resolv/res_init.c (__res_vinit): Use __inet6_scopeid_pton.
11846         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
11847
11848 2016-09-14  Florian Weimer  <fweimer@redhat.com>
11849
11850         Remove support for compiling wrappers with PTW.
11851         * sysdeps/nptl/Makeconfig: Drop ptw- support.
11852         * nptl/Makefile (pthread-compat-wrappers): Define.
11853         (libpthread-routines): Use pthread-compat-wrappers.
11854         * sysdeps/unix/sysv/linux/alpha/Makefile
11855         (libpthread-routines, libpthread-shared-only-routines): Remove
11856         ptw- prefix.
11857         * sysdeps/s390/nptl/Makefile
11858         (libpthread-routines, libpthread-shared-only-routines): Likewise.
11859         * sysdeps/ia64/nptl/Makefile
11860         (libpthread-routines, libpthread-shared-only-routines): Likewise.
11861         * sysdeps/nacl/Makefile (libpthread-routines): Use
11862         pthread-compat-wrappers to filter the routines list instead of the
11863         ptw- prefix.
11864
11865 2016-09-13  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11866
11867         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Wrap long double literals
11868         with L() and remove explicit suffix, convert real literals
11869         which can be equivalentally substituted with integers, and
11870         transform -L(x) to L(-x).
11871
11872         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
11873         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11874         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
11875         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11876         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
11877         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
11878         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11879         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11880         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11881         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
11882         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11883         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11884         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
11885         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11886         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
11887         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
11888         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11889         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
11890         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
11891         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11892         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
11893         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11894         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11895         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11896         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
11897         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11898         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11899         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
11900         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11901         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11902         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11903         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
11904         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11905         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
11906         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
11907         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11908         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
11909         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
11910         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11911         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11912         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
11913         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11914         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11915         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
11916         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11917         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11918         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11919         * sysdeps/ieee754/ldbl-128/t_expl.h: Likewise.
11920         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
11921         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
11922
11923 2016-09-13  Florian Weimer  <fweimer@redhat.com>
11924
11925         * resolv/res_init.c: Remove _LIBC_REENTRANT; it is always defined.
11926
11927 2016-09-10  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11928
11929         * malloc/Makefile (tests): Remove individual static test names
11930         and just add all of tests-static.
11931
11932         * csu/libc-start.c (__libc_csu_irel): Remove declaration.
11933
11934 2016-09-07  Joseph Myers  <joseph@codesourcery.com>
11935
11936         * sysdeps/powerpc/powerpc32/e500/nofpu/fetestexceptflag.c: New
11937         file.
11938
11939         * sysdeps/sparc/fpu/fegetmode.c: New file.
11940         * sysdeps/sparc/fpu/fesetmode.c: Likewise.
11941
11942         * sysdeps/sh/sh4/fpu/fegetmode.c: New file.
11943         * sysdeps/sh/sh4/fpu/fesetmode.c: Likewise.
11944
11945         * sysdeps/s390/fpu/fegetmode.c: New file.
11946         * sysdeps/s390/fpu/fesetmode.c: Likewise.
11947
11948         * sysdeps/powerpc/fpu/fegetmode.c: New file.
11949         * sysdeps/powerpc/fpu/fesetmode.c: Likewise.
11950         * sysdeps/powerpc/nofpu/fegetmode.c: Likewise.
11951         * sysdeps/powerpc/nofpu/fesetmode.c: Likewise.
11952         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetmode.c: Likewise.
11953         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetmode.c: Likewise.
11954
11955         * sysdeps/mips/fpu/fegetmode.c: New file.
11956         * sysdeps/mips/fpu/fesetmode.c: Likewise.
11957
11958         * sysdeps/m68k/fpu/fegetmode.c: New file.
11959         * sysdeps/m69k/fpu/fesetmode.c: Likewise.
11960
11961         * sysdeps/ia64/fpu/fegetmode.c: New file.
11962         * sysdeps/ia64/fpu/fesetmode.c: Likewise.
11963
11964         * sysdeps/hppa/fpu/fegetmode.c: New file.
11965         * sysdeps/hppa/fpu/fesetmode.c: Likewise.
11966
11967         * sysdeps/arm/fegetmode.c: New file.
11968         * sysdeps/arm/fesetmode.c: Likewise.
11969
11970         * sysdeps/alpha/fpu/fegetmode.c: New file.
11971         * sysdeps/alpha/fpu/fesetmode.c: Likewise.
11972
11973         * sysdeps/aarch64/fpu/fegetmode.c: New file.
11974         * sysdeps/aarch64/fpu/fesetmode.c: Likewise.
11975
11976         * math/fegetmode.c: New file.
11977         * math/fesetmode.c: Likewise.
11978         * sysdeps/i386/fpu/fegetmode.c: Likewise.
11979         * sysdeps/i386/fpu/fesetmode.c: Likewise.
11980         * sysdeps/x86_64/fpu/fegetmode.c: Likewise.
11981         * sysdeps/x86_64/fpu/fesetmode.c: Likewise.
11982         * math/fenv.h: Update comment on inclusion of <bits/fenv.h>.
11983         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fegetmode): New function
11984         declaration.
11985         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fesetmode): Likewise.
11986         * bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (femode_t): New
11987         typedef.
11988         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11989         * sysdeps/aarch64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11990         (femode_t): New typedef.
11991         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11992         * sysdeps/alpha/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11993         (femode_t): New typedef.
11994         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11995         * sysdeps/arm/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11996         (femode_t): New typedef.
11997         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11998         * sysdeps/hppa/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11999         (femode_t): New typedef.
12000         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
12001         * sysdeps/ia64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
12002         (femode_t): New typedef.
12003         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
12004         * sysdeps/m68k/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
12005         (femode_t): New typedef.
12006         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
12007         * sysdeps/microblaze/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
12008         (femode_t): New typedef.
12009         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
12010         * sysdeps/mips/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
12011         (femode_t): New typedef.
12012         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
12013         * sysdeps/nios2/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
12014         (femode_t): New typedef.
12015         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
12016         * sysdeps/powerpc/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
12017         (femode_t): New typedef.
12018         [__GLIBC_USE (IEC_60559_BFP_EXT)] (__fe_dfl_mode): New variable
12019         declaration.
12020         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
12021         * sysdeps/s390/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
12022         (femode_t): New typedef.
12023         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
12024         * sysdeps/sh/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
12025         (femode_t): New typedef.
12026         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
12027         * sysdeps/sparc/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
12028         (femode_t): New typedef.
12029         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
12030         * sysdeps/tile/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
12031         (femode_t): New typedef.
12032         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
12033         * sysdeps/x86/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
12034         (femode_t): New typedef.
12035         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
12036         * manual/arith.texi (FE_DFL_MODE): Document macro.
12037         (fegetmode): Document function.
12038         (fesetmode): Likewise.
12039         * math/Versions (fegetmode): New libm symbol at version
12040         GLIBC_2.25.
12041         (fesetmode): Likewise.
12042         * math/Makefile (libm-support): Add fegetmode and fesetmode.
12043         (tests): Add test-femode and test-femode-traps.
12044         * math/test-femode-traps.c: New file.
12045         * math/test-femode.c: Likewise.
12046         * sysdeps/powerpc/fpu/fenv_const.c (__fe_dfl_mode): Declare as
12047         alias for __fe_dfl_env.
12048         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_dfl_mode): Likewise.
12049         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c
12050         (__fe_dfl_mode): Likewise.
12051         * sysdeps/powerpc/Versions (__fe_dfl_mode): New libm symbol at
12052         version GLIBC_2.25.
12053         * sysdeps/nacl/libm.abilist: Update.
12054         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12055         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12056         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12057         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12058         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12059         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12060         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12061         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12062         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12063         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12064         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12065         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12066         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
12067         Likewise.
12068         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12069         Likewise.
12070         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
12071         Likewise.
12072         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
12073         Likewise.
12074         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12075         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12076         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12077         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12078         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12079         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
12080         Likewise.
12081         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
12082         Likewise.
12083         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
12084         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12085         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12086
12087 2016-09-06  H.J. Lu  <hongjiu.lu@intel.com>
12088
12089         [BZ #20495]
12090         [BZ #20508]
12091         * sysdeps/x86/cpu-features.c (init_cpu_features): For Intel
12092         processors, set Use_dl_runtime_resolve_slow and set
12093         Use_dl_runtime_resolve_opt if XGETBV suports ECX == 1.
12094         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
12095         New.
12096         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
12097         (index_arch_Use_dl_runtime_resolve_opt): Likewise.
12098         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
12099         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Use
12100         _dl_runtime_resolve_avx512_opt and _dl_runtime_resolve_avx_opt
12101         if Use_dl_runtime_resolve_opt is set.  Use
12102         _dl_runtime_resolve_slow if Use_dl_runtime_resolve_slow is set.
12103         * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features.h>.
12104         (_dl_runtime_resolve_opt): New.  Defined for AVX and AVX512.
12105         (_dl_runtime_resolve): Add one for _dl_runtime_resolve_sse_vex.
12106         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx_slow):
12107         New.
12108         (_dl_runtime_resolve_opt): Likewise.
12109         (_dl_runtime_profile): Define only if _dl_runtime_profile is
12110         defined.
12111
12112 2016-09-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
12113
12114         * sysdeps/unix/sysv/linux/s390/localplt.data: Mark ld.so:
12115         __libc_memalign with "+ RELA R_390_GLOB_DAT".
12116
12117 2016-09-06  Florian Weimer  <fweimer@redhat.com>
12118
12119         Convert malloc to __libc_lock.  Automated part, using this Perl
12120         s/// command:
12121           s/(?:\(void\)\s*)?mutex_((?:|un|try)lock|init)
12122             \s*\(\&([^\)]+)\)/__libc_lock_$1\ ($2)/gx;
12123         * malloc/malloc.c, malloc/arena.c, malloc/hooks.c: Perform
12124         conversion.
12125
12126 2016-09-05  Aurelien Jarno  <aurelien@aurel32.net>
12127
12128         * conform/Makefile (conformtest-header-tests): Pass -I. to $(PERL).
12129         (linknamespace-symlists-tests): Likewise.
12130         (linknamespace-header-tests): Likewise.
12131
12132 2016-09-03  Aurelien Jarno  <aurelien@aurel32.net>
12133
12134         [BZ #19810]
12135         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag later.
12136         * elf/tst-noload.c: New test case.
12137         * elf/Makefile (tests): Add tst-noload.
12138
12139 2016-09-02  Roland McGrath  <roland@hack.frob.com>
12140
12141         * sysdeps/nacl/dup.c: Add libc_hidden_def.
12142
12143         * sysdeps/posix/wait3.c: Don't treat STAT_LOC as a union, since it's
12144         not any more.
12145
12146         * sysdeps/nacl/clock.c (clock): nacl_abi_clock_t -> nacl_irt_clock_t
12147
12148 2016-09-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
12149
12150         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Mark as inline.
12151         (do_cos_slow): Likewise.
12152         (do_sin): Likewise.
12153         (do_sin_slow): Likewise.
12154         (slow): Likewise.
12155         (slow1): Likewise.
12156         (slow2): Likewise.
12157         (sloww): Likewise.
12158         (sloww1): Likewise.
12159         (sloww2): Likewise.
12160         (bsloww): Likewise.
12161         (bsloww1): Likewise.
12162         (bsloww2): Likewise.
12163         (cslow2): Likewise.
12164
12165         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use do_sin.
12166
12167         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Accept X and DX as input
12168         arguments.  Consolidate input partitioning from callers here.
12169         (do_cos_slow): Likewise.
12170         (do_sin): Likewise.
12171         (do_sin_slow): Likewise.
12172         (do_sincos_1): Remove the no longer necessary input partitioning.
12173         (do_sincos_2): Likewise.
12174         (__sin): Likewise.
12175         (__cos): Likewise.
12176         (slow1): Likewise.
12177         (slow2): Likewise.
12178         (sloww1): Likewise.
12179         (sloww2): Likewise.
12180         (bsloww1): Likewise.
12181         (bsloww2): Likewise.
12182         (cslow2): Likewise.
12183
12184 2016-09-02  Florian Weimer  <fweimer@redhat.com>
12185
12186         * stdio-common/vfscanf.c (_IO_vfwscanf): Use MB_LEN_MAX instead of
12187         MB_CUR_MAX to avoid race condition.  Avoid pointer arithmetic
12188         outside of allocated array.
12189
12190 2016-09-02  Florian Weimer  <fweimer@redhat.com>
12191
12192         * stdio-common/vfprintf.c (process_string_arg): Use MB_LEN_MAX
12193         instead of MB_CUR_MAX to avoid variable-length array.
12194
12195 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12196
12197         * math/Makefile (libm-calls): Remove k_rem_pio2F.
12198         (type-double-routines): Add k_rem_pio2.
12199         (type-float-routines): Add k_rem_pio2f.
12200
12201         * sysdeps/generic/math_private.h:
12202         (__kernel_rem_pio2l): Removed.
12203
12204         * math/k_rem_pio2l.c: Removed.
12205         * sysdeps/i386/fpu/k_rem_pio2l.c: Removed.
12206         * sysdeps/ia64/fpu/k_rem_pio2l.c: Removed.
12207         * sysdeps/m68k/m680x0/fpu/k_rem_pio2l.c: Removed.
12208         * sysdeps/x86_64/fpu/k_rem_pio2l.c: Removed.
12209
12210 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12211
12212         * math/Makefile (gen-libm-calls): Add s_fmin
12213         (libm-calls): Remove above.
12214
12215         * math/s_fmin.c: Refactor into ...
12216         * math/s_fmin_template.c: New file.
12217
12218         * math/s_fminf.c: Removed.
12219         * math/s_fminl.c: Removed.
12220         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
12221         (LDOUBLE_fmin_libm_version): New macro.
12222
12223         * sysdeps/ieee754/ldbl-opt/s_fmin.c: Removed.
12224         * sysdeps/ieee754/ldbl-opt/s_fminl.c: Removed.
12225
12226 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12227
12228         * math/Makefile: (gen-libm-calls): Add s_fmax.
12229         (libm-calls): Remove above.
12230
12231         * math/s_fmax.c: Refactor into ...
12232         * math/s_fmax_template.c: New file.
12233         * math/s_fmaxf.c: Removed.
12234         * math/s_fmaxl.c: Removed.
12235
12236         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
12237         (LDOUBLE_fmaxl_libm_version): New macro.
12238
12239         * sysdeps/ieee754/ldbl-opt/s_fmax.c: Removed.
12240         * sysdeps/ieee754/ldbl-opt/s_fmaxl.c: Removed.
12241
12242         * sysdeps/aarch64/fpu/s_fmax.c: Append fpu/ to include of
12243         s_fmin.c to pick the aarch64 version of the file.
12244         * sysdeps/aarch64/fpu/s_fmaxf.c: Likewise.
12245         * sysdeps/aarch64/fpu/s_fminf.c: Likewise.
12246
12247 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12248
12249         * math/Makefile: (gen-libm-calls): Add s_nextdown.
12250         (libm-calls): Remove above.
12251
12252         * math/s_nextdown.c: Refactor into ...
12253         * math/s_nextdown_template.c: New file.
12254         * math/s_nextdownf.c: Removed.
12255         * math/s_nextdownl.c: Removed.
12256
12257         * sysdeps/ieee754/ldbl-opt/s_nextdownl.c: New file.
12258
12259 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12260
12261         * math/Makefile (gen-libm-calls): Add s_fdim.
12262         (libm-calls): Move to above.
12263
12264         * math/s_fdim.c: Renamed and refactored into to ...
12265         * math/s_fdim_template.c: New file.
12266         * math/s_fdiml.c: Removed.
12267         * sysdeps/ieee754/ldbl-opt/s_fdim.c: Removed.
12268         * sysdeps/ieee754/ldbl-opt/s_fdiml.c: Removed.
12269
12270         * sysdeps/generic/math-type-macros-double.h:
12271         (declare_mgen_alias): Don't declare if already declared.
12272         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h:
12273         Likewise.
12274
12275         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
12276         (declare_mgen_alias): Don't declare if already declared.
12277         (M_LIBM_NEED_COMPAT): Likewise.
12278         (declare_mgen_libm_compat): Likewise.
12279         (LDOUBLE_fdiml_libm_version): New macro.
12280
12281         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c:
12282         Include math/s_fdim.c now that ldbl-opt version is not needed.
12283         (declare_mgen_alias): New macro to disable aliasing.
12284
12285         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.c:
12286         (declare_mgen_alias): Likewise.
12287         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c:
12288         (declare_mgen_alias): Likewise.
12289         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c:
12290         (declare_mgen_alias): Likewise.
12291         (M_LIBM_NEED_COMPAT): Likewise.
12292
12293 2016-09-01  Florian Weimer  <fweimer@redhat.com>
12294
12295         [BZ #20525]
12296         * sysdeps/unix/sysv/linux/sys/quota.h: Update copyright.
12297         Include <linux/quota.h>.
12298         (fs_to_dq_blocks): Hard-code BLOCK_SIZE as 1024, to match dbtob
12299         and btodb.
12300         (_LINUX_QUOTA_VERSION, MAXQUOTAS, USRQUOTA, GRPQUOTA, INITQFNAMES)
12301         (SUBCMDMASK, SUBCMDSHIFT, QCMD, Q_QUOTAON, Q_QUOTAOFF, Q_GETQUOTA)
12302         (Q_SETQUOTA, Q_SETUSE, Q_SYNC, Q_SETQLIM, Q_GETSTATS, Q_RSQUASH)
12303         (Q_GETFMT, Q_GETINFO, Q_SETINFO, Q_GETNEXTQUOTA, QIF_BLIMITS)
12304         (QIF_SPACE, QIF_ILIMITS, QIF_INODES, QIF_BTIME, QIF_ITIME)
12305         (QIF_LIMITS, QIF_USAGE, QIF_TIMES, QIF_ALL, IIF_BGRACE)
12306         (IIF_IGRACE, IIF_FLAGS, IIF_ALL): Remove.
12307         (struct dqblock, struct dqinfo): Use __uint64_t and __uint32_t
12308         types.
12309         * sysdeps/unix/sysv/linux/tst-quota.c: New test.
12310         * sysdeps/unix/sysv/linux/Makefile (tests): Add it.
12311
12312 2016-08-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12313
12314         * sysdeps/ieee754/ldbl-128/e_gammal_r.c:
12315         (gammal_positive): Fix spacing.
12316         (__ieee754_gammal_r): Likewise.
12317
12318 2016-08-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12319
12320         * sysdeps/ieee754/ldbl-128/math_ldbl.h:
12321         (_Float128): Define as long double, always.
12322         (L): Apply long double type suffix, always.
12323
12324         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Rename long double
12325         _Float128, excepting comments.
12326
12327         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
12328         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
12329         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12330         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
12331         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
12332         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12333         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
12334         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
12335         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12336         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: Likewise.
12337         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
12338         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12339         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12340         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
12341         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
12342         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
12343         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
12344         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12345         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
12346         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
12347         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12348         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
12349         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
12350         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12351         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12352         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12353         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
12354         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
12355         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12356         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12357         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
12358         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12359         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12360         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12361         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12362         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12363         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12364         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12365         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12366         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
12367         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
12368         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12369         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
12370         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12371         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
12372         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
12373         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
12374         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12375         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12376         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
12377         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
12378         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12379         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12380         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12381         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
12382         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
12383         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12384         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
12385         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12386         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12387         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
12388         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12389         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12390         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12391         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
12392         * sysdeps/ieee754/ldbl-128/t_expl.h: Likewise.
12393         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
12394         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12395
12396         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Rename long double
12397         _Float128, and include math_private.h.
12398         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
12399
12400         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (L): Define using
12401         long double semantics.
12402         (_Float128): Likewise.
12403         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Likewise.
12404         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
12405         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
12406         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
12407
12408 2016-08-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
12409
12410         * config.h.in (HAVE_S390_MIN_Z196_ZARCH_ASM_SUPPORT): New undefine.
12411         * sysdeps/s390/configure.ac: Add test for z196 zarch support.
12412         * sysdeps/s390/configure: Regenerated.
12413         * sysdeps/s390/fpu/fraiseexcpt.c (__feraiseexcept): Use ledbra
12414         instruction for raising over-/underflow if z196 zarch is supported
12415         by default.
12416         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Correct comment.
12417
12418 2016-08-30  Svante Signell  <svante.signell@gmail.com>
12419
12420         * sysdeps/mach/hurd/adjtime.c (__adjtime): When OLDDELTA is NULL, make
12421         it point to a dumb buffer for RPC to fill it.
12422
12423 2016-08-30  Siddhesh Poyarekar  <siddhesh@sourceware.org>
12424
12425         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos_slow): Use ternary
12426         instead of if/else.
12427         (do_sin_slow): Likewise.
12428         (do_sincos_1): Use fabs instead of if/else.
12429         (do_sincos_2): Likewise.
12430         (__sin): Likewise.
12431         (__cos): Likewise.
12432         (slow2): Likewise.
12433         (sloww): Likewise.
12434         (sloww1): Likewise.  Drop argument M.
12435         (sloww2): Use fabs instead of if/else.
12436         (bsloww): Likewise.
12437         (bsloww1): Likewise.
12438         (bsloww2): Likewise.
12439
12440         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Add
12441         fall through comment.
12442         (do_sincos_1): Likewise.
12443
12444         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute):
12445         Consolidate switch cases 0 and 2.
12446
12447 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12448
12449         * math/Makefile (libm-gen-calls): Add cpow, clog, clog10, cexp, cproj.
12450         (libm-calls): Remove the above.
12451
12452         * math/s_cexp_template.c: Update using type-generic macros.
12453         * math/s_clog10_template.c: Likewise.
12454         * math/s_cpow_template.c: Likewise.
12455         * math/s_clog_template.c: Likewise.
12456         * math/s_cproj_template.c: Likewise.
12457         * math/s_csqrt_template.c: Likewise.
12458
12459         * math/s_cexp.c: Removed.
12460         * math/s_cexpf.c: Removed.
12461         * math/s_cexpl.c: Removed.
12462         * math/s_clog10.c: Removed.
12463         * math/s_clog10f.c: Removed.
12464         * math/s_clog10l.c: Removed.
12465         * math/s_cpow.c: Removed.
12466         * math/s_cpowf.c: Removed.
12467         * math/s_cpowl.c: Removed.
12468         * math/s_clog.c: Removed.
12469         * math/s_clogf.c: Removed.
12470         * math/s_clogl.c: Removed.
12471         * math/s_cproj.c: Removed.
12472         * math/s_cprojf.c: Removed.
12473         * math/s_cprojl.c: Removed.
12474         * math/s_csqrt.c: Removed.
12475         * math/s_csqrtf.c: Removed.
12476         * math/s_csqrtl.c: Removed.
12477
12478         * sysdeps/alpha/fpu/s_cexpf.c: Update using templated version.
12479         * sysdeps/alpha/fpu/s_clog10f.c: Update using templated version.
12480         * sysdeps/alpha/fpu/s_clogf.c: Update using templated version.
12481         * sysdeps/alpha/fpu/s_cpowf.c: Update using templated version.
12482         * sysdeps/alpha/fpu/s_cprojf.c: Update using templated version.
12483         * sysdeps/alpha/fpu/s_csqrtf.c: Update using templated version.
12484
12485         * sysdeps/ieee754/ldbl-opt/s_cexp.c: Removed.
12486         * sysdeps/ieee754/ldbl-opt/s_cexpl.c: Removed.
12487         * sysdeps/ieee754/ldbl-opt/s_clog.c: Removed.
12488         * sysdeps/ieee754/ldbl-opt/s_clog10.c: Removed.
12489         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Removed.
12490         * sysdeps/ieee754/ldbl-opt/s_cpow.c: Removed.
12491         * sysdeps/ieee754/ldbl-opt/s_cpowl.c: Removed.
12492         * sysdeps/ieee754/ldbl-opt/s_cproj.c: Removed.
12493         * sysdeps/ieee754/ldbl-opt/s_cprojl.c: Removed.
12494         * sysdeps/ieee754/ldbl-opt/s_csqrt.c: Removed.
12495         * sysdeps/ieee754/ldbl-opt/s_csqrtl.c: Removed.
12496
12497         * sysdeps/ieee754/ldbl-opt/s_clogl.c: Update using templated
12498         version.
12499
12500         * sysdeps/m68k/m680x0/fpu/s_cexp.c: Refactor into.
12501         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c: New file.
12502         * sysdeps/m68k/m680x0/fpu/s_cexpf.c: Removed.
12503         * sysdeps/m68k/m680x0/fpu/s_cexpl.c: Removed.
12504
12505 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12506
12507         * s_cexp_template.c: Copy of s_cexp.c.
12508         * s_clog_template.c: Copy of s_clog.c.
12509         * s_clog10_template.c: Copy of s_clog10.c.
12510         * s_cpow_template.c: Copy of s_cpow.c.
12511         * s_cproj_template.c: Copy of s_cproj.c.
12512         * s_csqrt_template.c: Copy of s_csqrt.c.
12513
12514 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12515
12516         [BZ #20517]
12517         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c:
12518         Include ldbl-opt/s_fdim.c to ensure fdiml@GLIBC_2.1 is
12519         exported.
12520
12521 2016-08-29  Joseph Myers  <joseph@codesourcery.com>
12522
12523         * math/fetestexceptflag.c: New file.
12524         * sysdeps/s390/fpu/fetestexceptflag.c: Likewise.  Comment by
12525         Stefan Liebler.
12526         * math/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
12527         (fetestexceptflag): New function declaration.
12528         * manual/arith.texi (fetestexceptflag): Document function.
12529         * math/Versions (fetestexceptflag): New libm symbol at version
12530         GLIBC_2.25.
12531         * math/Makefile (libm-support): Add fetestexceptflag.
12532         (tests): Add test-fetestexceptflag.
12533         * math/test-fetestexceptflag.c: New file.
12534         * sysdeps/nacl/libm.abilist: Update.
12535         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12536         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12537         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12538         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12539         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12540         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12541         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12542         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12543         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12544         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12545         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12546         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12547         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
12548         Likewise.
12549         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12550         Likewise.
12551         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
12552         Likewise.
12553         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
12554         Likewise.
12555         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12556         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12557         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12558         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12559         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12560         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
12561         Likewise.
12562         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
12563         Likewise.
12564         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
12565         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12566         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12567
12568 2016-08-26  Florian Weimer  <fweimer@redhat.com>
12569
12570         [BZ #20432]
12571         Avoid strong references to malloc-internal symbols when linking
12572         statically, to support statically interposed mallocs.
12573         * include/libc-symbols.h (call_function_static_weak): New macro.
12574         * malloc/Makefile (tests): Add tst-interpose-nothread,
12575         tst-interpose-thread, tst-interpose-static-nothread,
12576         tst-interpose-static-thread.
12577         (tests-static): Add tst-interpose-static-nothread,
12578         tst-interpose-static-thread.
12579         (extra-tests-objs): Add tst-interpose-aux-nothread.o,
12580         tst-interpose-aux-thread.o.
12581         (test-extras): Add tst-interpose-aux-nothread,
12582         tst-interpose-aux-thread.
12583         (tst-interpose-nothread, tst-interpose-static-nothread): Link with
12584         tst-interpose-aux-nothread.o.
12585         (tst-interpose-thread, tst-interpose-static-thread): Link with
12586         tst-interpose-aux-thread.o and libthread.
12587         * malloc/tst-interpose-aux-nothread.c: New file.
12588         * malloc/tst-interpose-aux-thread.c: Likewise.
12589         * malloc/tst-interpose-aux.c: Likewise.
12590         * malloc/tst-interpose-aux.h: Likewise.
12591         * malloc/tst-interpose-nothread.c: Likewise.
12592         * malloc/tst-interpose-skeleton.c: Likewise.
12593         * malloc/tst-interpose-static-nothread.c: Likewise.
12594         * malloc/tst-interpose-static-thread.c: Likewise.
12595         * malloc/tst-interpose-thread.c: Likewise.
12596         * nptl/tst-tls3-malloc.c: Use new interposed malloc.
12597         * sysdeps/mach/hurd/fork.c (__fork): Only call
12598         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
12599         __malloc_fork_unlock_child if defined.
12600         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
12601
12602 2016-08-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12603
12604         * test-skeleton.c (delayed_exit_thread): Add initializer on struct
12605         timespec C99 designated initialization.
12606
12607 2016-08-26  Florian Weimer  <fweimer@redhat.com>
12608
12609         [BZ #19946]
12610         Avoid expected SIGALRM signals.
12611         * test-skeleton.c (xpthread_sigmask, xpthread_mutex_lock)
12612         (xpthread_spin_lock, xpthread_cond_wait, xpthread_barrier_wait)
12613         (xpthread_create, xpthread_detach, xpthread_join)
12614         (delayed_exit_thread, delayed_exit): New functions.
12615         * nptl/tst-cond3 (EXPECTED_SIGNAL): Remove.
12616         (tf): Use xpthread_cond_wait.
12617         (do_test): Likewise.  Replace alarm with delayed_exit.
12618         * nptl/tst-eintr1.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
12619         (do_test): Call delayed_exit.  Report failure.
12620         * nptl/tst-eintr2.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
12621         (do_test): Call delayed_exit.
12622         * nptl/tst-eintr3.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
12623         (do_test): Call delayed_exit.  Use xpthread_join.  Report error.
12624         * nptl/tst-eintr4.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
12625         (do_test): Call delayed_exit.  Use xpthread_barrier_wait.  Report
12626         error.
12627         * nptl/tst-eintr5.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
12628         (do_test): Call delayed_exit.  Use xpthread_cond_wait.  Report
12629         error.
12630         * nptl/tst-exit2.c (EXPECTED_SIGNAL): Remove.
12631         (do_test): Call delayed_exit.
12632         * nptl/tst-exit3.c (EXPECTED_SIGNAL): Remove.
12633         (do_test): Call delayed_exit.
12634         * nptl/tst-mutex6.c (EXPECTED_SIGNAL): Remove.
12635         (do_test): Call delayed_exit instead of alarm.  Use
12636         xpthread_mutex_lock.
12637         * nptl/tst-rwlock5.c (EXPECTED_SIGNAL): Remove.
12638         (do_test): Call delayed_exit instead of alarm.  Use
12639         xpthread_mutex_lock.
12640         * nptl/tst-sem2.c (EXPECTED_SIGNAL): Remove.
12641         (do_test): Call delayed_exit instead of alarm.
12642         * nptl/tst-spin3.c (EXPECTED_SIGNAL): Remove.
12643         (do_test): Call delayed_exit instead of alarm.  Use
12644         xpthread_spin_lock.
12645         * nptl/tst-stdio1.c (EXPECTED_SIGNAL): Remove.
12646         (do_test): Call delayed_exit instead of alarm.  Use
12647         xpthread_join.
12648
12649 2016-08-26  H.J. Lu  <hongjiu.lu@intel.com>
12650
12651         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Don't
12652         adjust CFA when allocating register save area on re-aligned
12653         stack.
12654
12655 2016-08-26  Florian Weimer  <fweimer@redhat.com>
12656
12657         * string/tst-cmp.c: New test.
12658         * string/Makefile (tests): Add it.
12659
12660 2016-08-25  Mark Wielaard  <mark@klomp.org>
12661
12662         * misc/tsearch.c (struct node_t): Reduce to 3 pointers if
12663         USE_MALLOC_LOW_BIT.  Define pointer/value accessors.
12664         (check_tree_recurse): Use newly defined accessors.
12665         (check_tree): Likewise.
12666         (maybe_split_for_insert): Likewise.
12667         (__tfind): Likewise.
12668         (__tdelete): Likewise.
12669         (trecurse): Likewise.
12670         (tdestroy_recurse): Likewise.
12671         (__tsearch): Likewise. And add asserts for malloc alignment.
12672         (__twalk): Cast root to node in case CHECK_TREE is defined.
12673
12674 2016-08-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12675
12676         * scripts/check-local-headers.sh (exclude): Add mach_debug/.
12677
12678 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12679
12680         * math/Makefile (libm-gen-calls): Add
12681         catan, catanh, ctan, ctanh.
12682         (libm-calls): Remove the above.
12683
12684         * math/s_catan_template.c: Update using type-generic macros.
12685         * math/s_catanh_template.c: Likewise.
12686         * math/s_ctan_template.c: Likewise.
12687         * math/s_ctanh_template.c: Likewise.
12688
12689         * math/s_catanf.c: Removed.
12690         * math/s_catan.c: Removed.
12691         * math/s_catanl.c: Removed.
12692         * math/s_catanhf.c: Removed.
12693         * math/s_catanh.c: Removed.
12694         * math/s_catanhl.c: Removed.
12695         * math/s_ctanf.c: Removed.
12696         * math/s_ctan.c: Removed.
12697         * math/s_ctanl.c: Removed.
12698         * math/s_ctanhf.c: Removed.
12699         * math/s_ctanh.c: Removed.
12700         * math/s_ctanhl.c: Removed.
12701
12702         * sysdeps/ieee754/ldbl-opt/s_catanhl.c: Removed.
12703         * sysdeps/ieee754/ldbl-opt/s_catanl.c: Removed.
12704         * sysdeps/ieee754/ldbl-opt/s_ctan.c: Removed.
12705         * sysdeps/ieee754/ldbl-opt/s_ctanh.c: Removed.
12706         * sysdeps/ieee754/ldbl-opt/s_ctanhl.c: Removed.
12707         * sysdeps/ieee754/ldbl-opt/s_ctanl.c: Removed.
12708
12709         * sysdeps/alpha/fpu/s_catanf.c: Update to use template file.
12710         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
12711         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
12712         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
12713
12714 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12715
12716         * s_catan_template.c: Copy of s_catan.c.
12717         * s_catanh_template.c: Copy of s_catanh.c.
12718         * s_ctan_template.c: Copy of s_ctan.c.
12719         * s_ctanh_template.c: Copy of s_ctanh.c.
12720
12721 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12722
12723         * math/Makefile (gen-libm-calls): Move
12724         casin, casinh, csin, csinh here.
12725         (libm-calls): Remove the above.
12726
12727         * math/s_casin_template.c: Update using type-generic macros.
12728         * math/s_casinh_template.c: Likewise.
12729         * math/s_csin_template.c: Likewise.
12730         * math/s_csinh_template.c: Likewise.
12731         * math/k_casinh_template.c: Likewise.
12732
12733         * math/s_casinf.c: Removed.
12734         * math/s_casin.c: Removed.
12735         * math/s_casinl.c: Removed.
12736         * math/s_casinh.c: Removed.
12737         * math/s_casinhf.c: Removed.
12738         * math/s_casinhl.c: Removed.
12739         * math/s_csin.c: Removed.
12740         * math/s_csinf.c: Removed.
12741         * math/s_csinl.c: Removed.
12742         * math/s_csinh.c: Removed.
12743         * math/s_csinhf.c: Removed.
12744         * math/s_csinhl.c: Removed.
12745         * math/k_casinh.c: Removed.
12746         * math/k_casinhf.c: Removed.
12747         * math/k_casinhl.c: Removed.
12748
12749         * sysdeps/alpha/fpu/s_casinf.c: Refactor using templated version.
12750         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
12751         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
12752         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
12753
12754         * sysdeps/ieee754/ldbl-opt/s_casin.c: Removed.
12755         * sysdeps/ieee754/ldbl-opt/s_casinh.c: Removed.
12756         * sysdeps/ieee754/ldbl-opt/s_casinhl.c: Removed.
12757         * sysdeps/ieee754/ldbl-opt/s_casinl.c: Removed.
12758         * sysdeps/ieee754/ldbl-opt/s_csin.c: Removed.
12759         * sysdeps/ieee754/ldbl-opt/s_csinh.c: Removed.
12760         * sysdeps/ieee754/ldbl-opt/s_csinhl.c: Removed.
12761         * sysdeps/ieee754/ldbl-opt/s_csinl.c: Removed.
12762
12763         * sysdeps/m68k/m680x0/fpu/s_csin.c: Refactor into ...
12764         * sysdeps/m68k/m680x0/fpu/s_csin_template.c: New file.
12765         * sysdeps/m68k/m680x0/fpu/s_csinf.c: Removed.
12766         * sysdeps/m68k/m680x0/fpu/s_csinl.c: Removed.
12767
12768         * sysdeps/m68k/m680x0/fpu/s_csinh.c: Refactor into.
12769         * sysdeps/m68k/m680x0/fpu/s_csinh_template.c: New file.
12770         * sysdeps/m68k/m680x0/fpu/s_csinhf.c: Removed.
12771         * sysdeps/m68k/m680x0/fpu/s_csinhl.c: Removed.
12772
12773 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12774
12775         * s_casin_template.c: Copy of s_casin.c.
12776         * s_casinh_template.c: Copy of s_casinh.c.
12777         * s_csin_template.c: Copy of s_csin.c.
12778         * s_csinh_template.c: Copy of s_csinh.c.
12779         * k_casinh_template.c: Copy of k_casinh.c.
12780
12781 2016-08-19  H.J. Lu  <hongjiu.lu@intel.com>
12782
12783         * sysdeps/x86/cpu-features.h (bit_YMM_state): Set to (1 << 2).
12784
12785 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12786
12787         * sysdeps/ieee754/ldbl-128/gamma_productl.c:
12788         (mul_split) Remove, rename as mul_splitl, remove
12789         redundant float.h include, and include via mul_splitl.h
12790
12791         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
12792         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
12793         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
12794         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
12795         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
12796
12797         * math/mul_splitl.h: New file.
12798
12799         * sysdeps/ieee754/dbl-64/gamma_product.c (mul_split):
12800         Move into mul_split.h, and remove redundant float.h include.
12801
12802         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
12803         * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
12804         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12805         * sysdeps/ieee754/ldbl-128ibm/x2y2m1.c: Likewise.
12806
12807         * math/mul_split.h: New file.
12808
12809 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12810
12811         * math/Makefile (libm-gen-calls): Move
12812         s_cacos, s_cacosh, s_ccos, s_ccosh from ...
12813         (libm-calls): Remove above.
12814
12815         * math/s_cacos_template.c: Update using type-generic macros.
12816         * math/s_cacosh_template.c: Likewise.
12817         * math/s_ccos_template.c: Likewise.
12818         * math/s_ccosh_template.c: Likewise.
12819
12820         * math/s_cacosf.c: Removed.
12821         * math/s_cacos.c: Removed.
12822         * math/s_cacosl.c: Removed.
12823         * math/s_cacoshf.c: Removed.
12824         * math/s_cacosh.c: Removed.
12825         * math/s_cacoshl.c: Removed.
12826         * math/s_ccosf.c: Removed.
12827         * math/s_ccos.c: Removed.
12828         * math/s_ccosl.c: Removed.
12829         * math/s_ccoshf.c: Removed.
12830         * math/s_ccosh.c: Removed.
12831         * math/s_ccoshl.c: Removed.
12832
12833         * sysdeps/ieee754/ldbl-opt/s_cacoshl.c: Removed.
12834         * sysdeps/ieee754/ldbl-opt/s_cacosl.c: Removed.
12835         * sysdeps/ieee754/ldbl-opt/s_ccos.c: Removed.
12836         * sysdeps/ieee754/ldbl-opt/s_ccosh.c: Removed.
12837         * sysdeps/ieee754/ldbl-opt/s_ccoshl.c: Removed.
12838         * sysdeps/ieee754/ldbl-opt/s_ccosl.c: Removed.
12839
12840         * sysdeps/m68k/m680x0/fpu/s_ccosh.c: Refactor into.
12841         * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c: New file.
12842         * sysdeps/m68k/m680x0/fpu/s_ccoshf.c: Removed.
12843         * sysdeps/m68k/m680x0/fpu/s_ccoshl.c: Removed.
12844
12845         * sysdeps/alpha/fpu/s_cacosf.c: Update to use template file.
12846         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
12847         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
12848         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
12849
12850 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12851
12852         * s_cacos_template.c: Copy of s_cacos.c.
12853         * s_cacosh_template.c: Copy of s_cacosh.c.
12854         * s_ccos_template.c: Copy of s_ccos.c.
12855         * s_ccosh_template.c: Copy of s_ccosh.c.
12856
12857 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12858
12859         * stdlib/tst-strtod-round-skeleton.c:
12860         Refactored from tst-strtod-round.c.
12861
12862         (L_): New macro to apply literal modifier.
12863         (FNPFX): New macro to select str or wcs prefix.
12864         (CHAR): New macro to choose wchar_t or char.
12865         (STRM): New macro to choose printf for tested character type.
12866
12867         (STRTO): New macro to choose appropriate string -> real function.
12868         (FNPFXS): Stringitized version of FNPFX.
12869         (STR): Support for above macro.
12870         (STRX): Likewise.
12871
12872         (TEST): Update with above macros.
12873         (test): Likewise.
12874         (GEN_ONE_TEST): Likewise.
12875         (test_in_one_mode): Likewise.
12876
12877         * stdlib/tst-strtod-round.c: New file.
12878         * wcsmbs/tst-wcstod-round.c: New file.
12879
12880         * wcsmbs/Makefile: (tests): Add tst-wcstod-round
12881         (tst-wcstod-round): Add libm depencency for fesetround.
12882
12883 2016-08-19  Zack Weinberg  <zackw@panix.com>
12884
12885         * debug/tst-chk1.c: Add tests for fortification of bcopy and bzero.
12886
12887 2016-08-18  Torvald Riegel  <triegel@redhat.com>
12888
12889         [BZ #20477]
12890         * resolv/res_hconf.c (do_init): Use atomic access.
12891         * resolv/res_hconf.h: Add comments.
12892         * nscd/aicache.c (addhstaiX): Call _res_hconf_init unconditionally.
12893         * nss/getXXbyYY_r.c (REENTRANT_NAME): Likewise.
12894         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
12895
12896 2016-08-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
12897
12898         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
12899         Use DIAG_*_NEEDS_COMMENT macro to get rid of array-bounds warning.
12900         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
12901         Likewise.
12902
12903 2016-08-18  Florian Weimer  <fweimer@redhat.com>
12904
12905         [BZ #16907]
12906         * argp/argp.h: Switch to __BEGIN_DECLS and __END_DECLS.
12907         (__THROW, __NTH, __attribute__, __restrict): Remove definitions.
12908         * argp/argp-fmtstream.h: Add __BEGIN_DECLS and __END_DECLS.
12909         (__attribute__): Remove definition.
12910
12911 2016-08-17  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12912
12913         * sysdeps/ieee754/ldbl-128/e_asinl.c:
12914         Remove unused sqrtl declaration.
12915
12916 2016-08-17  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12917
12918         * math/Makefile: (gen-libm-templates.stmp): New rule.
12919         (libm-calls): Move carg conj cimag and cabs into ...
12920         (gen-libm-calls): New variable.
12921         (generated): Inform Make objects from gen-libm-calls
12922         may be generated.
12923
12924         * sysdeps/generic/math-type-macros.h: New file.
12925         * sysdeps/generic/math-type-macros-float.h: Likewise.
12926         * sysdeps/generic/math-type-macros-double.h: Likewise.
12927         * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
12928         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Likewise.
12929         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Likewise.
12930
12931         * math/cabs.c: Refactor into
12932         * math/cabs_template.c: new file.
12933         * math/cabsf.c: Removed.
12934         * math/cabsl.c: Removed.
12935         * sysdeps/ieee754/ldbl-opt/cabsf.c: Removed.
12936         * sysdeps/ieee754/ldbl-opt/cabsl.c: Removed.
12937
12938         * math/carg.c: Refactor into
12939         * math/carg_template.c: new file.
12940         * math/cargf.c: Removed.
12941         * math/cargl.c: Removed.
12942         * sysdeps/ieee754/ldbl-opt/cargf.c: Removed.
12943         * sysdeps/ieee754/ldbl-opt/cargl.c: Removed.
12944
12945         * math/conj.c: Refactor into
12946         * math/conj_template.c: new file.
12947         * math/conjf.c: Removed.
12948         * math/conjl.c: Removed.
12949         * sysdeps/ieee754/ldbl-opt/conjf.c: Removed.
12950         * sysdeps/ieee754/ldbl-opt/conjl.c: Removed.
12951
12952         * math/cimag.c: Refactor into
12953         * math/cimag_template.c: new file.
12954         * math/cimagf.c: Removed.
12955         * math/cimagl.c: Removed.
12956         * sysdeps/ieee754/ldbl-opt/cimagf.c: Removed.
12957         * sysdeps/ieee754/ldbl-opt/cimagl.c: Removed.
12958
12959         * math/cimag.c: Refactor into
12960         * math/cimag_template.c: new file.
12961         * math/cimagf.c: Removed.
12962         * math/cimagl.c: Removed.
12963         * sysdeps/ieee754/ldbl-opt/cimagf.c: Removed.
12964         * sysdeps/ieee754/ldbl-opt/cimagl.c: Removed.
12965
12966 2016-08-17  Florian Weimer  <fweimer@redhat.com>
12967
12968         Reduce time to expected nptl/tst-once5 failure.
12969         * nptl/tst-once5.cc (TIMEOUT): Define.
12970
12971 2016-08-17  Florian Weimer  <fweimer@redhat.com>
12972
12973         [BZ #20452]
12974         Avoid additional copies of objects in libc.a in static libraries.
12975         * sysdeps/ia64/nptl/Makefile (libpthread-shared-only-routines):
12976         Add ptw-sysdep, ptw-sigblock, ptw-sigprocmask.
12977         * sysdeps/mips/Makefile (librt-shared-only-routines): Add
12978         rt-sysdep.
12979         * sysdeps/mips/nptl/Makefile (libpthread-shared-only-routines):
12980         Add nptl-sysdep.
12981         * sysdeps/s390/nptl/Makefile (libpthread-shared-only-routines):
12982         Add ptw-sysdep.
12983         * sysdeps/unix/alpha/Makefile (librt-shared-only-routines): Add
12984         rt-sysdep.
12985         * sysdeps/unix/sysv/linux/alpha/Makefile
12986         (libpthread-shared-only-routines): Add ptw-sysdep,
12987         ptw-sigprocmask, ptw-rt_sigaction.
12988         * sysdeps/unix/sysv/linux/ia64/Makefile
12989         (librt-shared-only-routines): Add rt-sysdep.
12990         * sysdeps/unix/sysv/linux/i386/Makefile
12991         (libpthread-shared-only-routines): Add libc-do-syscall.
12992         * sysdeps/unix/sysv/linux/microblaze/Makefile
12993         (libpthread-shared-only-routines): Add sysdep.
12994         * sysdeps/unix/sysv/linux/powerpc/Makefile
12995         (librt-shared-only-routines): Add rt-sysdep.
12996         (libpthread-shared-only-routines): Add sysdep.
12997         * sysdeps/unix/sysv/linux/s390/Makefile
12998         (librt-shared-only-routines): Add rt-sysdep.
12999         * sysdeps/unix/sysv/linux/sparc/Makefile
13000         (librt-shared-only-routines): Add rt-sysdep.
13001         (libpthread-shared-only-routines): Add sysdep.
13002         * sysdeps/unix/sysv/linux/tile/Makefile
13003         (libpthread-shared-only-routines): Likewise.
13004
13005 2016-08-16  Joseph Myers  <joseph@codesourcery.com>
13006
13007         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_E):
13008         Mask implicit bit out of unpacked value.
13009         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_EP): Likewise.
13010         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_E): Likewise.
13011         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_EP): Likewise.
13012
13013         * sysdeps/sparc/fpu/fesetexcept.c: New file.
13014
13015         * sysdeps/sh/sh4/fpu/fesetexcept.c: New file.
13016
13017         * sysdeps/s390/fpu/fesetexcept.c: New file.
13018
13019         * sysdeps/powerpc/fpu/fesetexcept.c: New file.
13020         * sysdeps/powerpc/nofpu/fesetexcept.c: Likewise.
13021         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetexcept.c: Likewise.
13022
13023         * sysdeps/mips/fpu/fesetexcept.c: New file.
13024
13025         * sysdeps/m68k/fpu/fesetexcept.c: New file.
13026
13027         * sysdeps/ia64/fpu/fesetexcept.c: New file.
13028
13029         * sysdeps/hppa/fpu/fesetexcept.c: New file.
13030
13031         * sysdeps/arm/fesetexcept.c: New file.
13032
13033         * sysdeps/alpha/fpu/fesetexcept.c: New file.
13034
13035         * sysdeps/aarch64/fpu/fesetexcept.c: New file.
13036
13037         * math/fesetexcept.c: New file.
13038         * sysdeps/i386/fpu/fesetexcept.c: Likewise.
13039         * sysdeps/x86_64/fpu/fesetexcept.c: Likewise.
13040         * math/fenv.h: Define
13041         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
13042         <bits/libc-header-start.h> instead of including <features.h>.
13043         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fesetexcept): New function
13044         declaration.
13045         * manual/arith.texi (fesetexcept): Document function.
13046         * math/Versions (fesetexcept): New libm symbol at version
13047         GLIBC_2.25.
13048         * math/Makefile (libm-support): Add fesetexcept.
13049         (tests): Add test-fesetexcept and test-fesetexcept-traps.
13050         * math/test-fesetexcept.c: New file.
13051         * math/test-fesetexcept-traps.c: Likewise.
13052         * sysdeps/nacl/libm.abilist: Update.
13053         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13054         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13055         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13056         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13057         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13058         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13059         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13060         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13061         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13062         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13063         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13064         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13065         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
13066         Likewise.
13067         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
13068         Likewise.
13069         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
13070         Likewise.
13071         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
13072         Likewise.
13073         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13074         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13075         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13076         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13077         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13078         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
13079         Likewise.
13080         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
13081         Likewise.
13082         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
13083         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13084         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13085
13086 2016-08-16  Florian Weimer  <fweimer@redhat.com>
13087
13088         * nptl/tst-tls3.c (default_stack_size_in_mb, stack_size_in_mb):
13089         New.
13090         (do_test): Apply default_stack_size_in_mb if not set.
13091         * nptl/tst-tls3-malloc.c (stack_size_in_mb): Override default.
13092
13093 2016-08-15  Andreas Schwab  <schwab@suse.de>
13094
13095         [BZ #20435]
13096         CVE-2016-6323
13097         * sysdeps/unix/sysv/linux/arm/setcontext.S (__startcontext): Mark
13098         as .cantunwind.
13099
13100 2016-08-12  Joseph Myers  <joseph@codesourcery.com>
13101
13102         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Add
13103         comment from fraiseexcpt.c.
13104
13105         * math/test-fexcept.c (feraiseexcept_exact): New function.
13106         (test_set): Call feraiseexcept_exact instead of feraiseexcept.
13107         (test_except): Likewise.
13108
13109 2016-08-10  Joseph Myers  <joseph@codesourcery.com>
13110
13111         [BZ #20455]
13112         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Mask out
13113         all FE_INVALID sub-exceptions from FPSCR when FE_INVALID specified
13114         to be restored.
13115
13116         * math/test-fexcept-traps.c: New file.
13117         * math/test-fexcept.c: Likewise.
13118         * math/Makefile (tests): Add test-fexcept and test-fexcept-traps.
13119         * sysdeps/generic/math-tests.h (EXCEPTION_SET_FORCES_TRAP): New
13120         macro.
13121         * sysdeps/powerpc/math-tests.h [!__NO_FPRS__]
13122         (EXCEPTION_SET_FORCES_TRAP): Likewise.
13123
13124 2016-08-09  Torvald Riegel  <triegel@redhat.com>
13125
13126         * include/atomic.h (atomic_fetch_and_relaxed,
13127         atomic_fetch_and_release, atomic_fetch_or_release,
13128         atomic_fetch_xor_release): New.
13129
13130 2016-08-06  Christian Seiler  <christian@iwakd.de>
13131
13132         [BZ #20444]
13133         * sysdeps/mach/hurd/recvmsg.c (__libc_recvmsg): Cope with aport being
13134         MACH_PORT_NULL.
13135
13136 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
13137
13138         * math/s_fdim.c: Avoid alias renamed.
13139         * math/s_fdimf.c: Likewise.
13140         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
13141         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
13142         Add s_fdimf-vis3, s_fdim-vis3.
13143         (CFLAGS-s_fdimf-vis3.c): New. Set to -Wa,-Av9d -mvis3.
13144         (CFLAGS-s_fdim-vis3.c): Likewise.
13145         sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c: New file.
13146         sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
13147
13148 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
13149
13150         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
13151         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
13152         Remove s_fdimf-vis3, s_fdim-vis3.
13153         * sysdeps/sparc/sparc32/fpu/s_fdim.S: Delete file.
13154         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: Likewise.
13155         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: Likewise.
13156         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: Likewise.
13157         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: Likewise.
13158         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: Likewise.
13159         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: Likewise.
13160         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: Likewise.
13161         * sysdeps/sparc/sparc64/fpu/s_fdim.S: Likewise.
13162         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: Likewise.
13163
13164 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
13165
13166         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Add -mvis.
13167         * sysdeps/sparc/sparc64/Makefile (sysdep-CFLAGS): New. Define to
13168         -Wa,-Av9a -mvis.
13169
13170 2016-08-05  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13171
13172         * math/gen-libm-test.pl (apply_lit): Rewrite to apply
13173         LIT() to individual constants in simple expressions
13174         after splitting on spaces.
13175         (_apply_lit): Rename replaced version, and use it to
13176         apply to what appears to be a token.
13177
13178         * math/libm-test.inc: Fix many, many issues with
13179         spacing.
13180
13181 2016-08-05  Joseph Myers  <joseph@codesourcery.com>
13182
13183         * math/math.h: Move comment about <bits/mathdef.h> definitions
13184         above inclusion of <bits/mathdef.h>.  Do not mention
13185         FLT_EVAL_METHOD, INFINITY or DECIMAL_DIG in that comment.
13186
13187 2016-08-05  Torvald Riegel  <triegel@redhat.com>
13188
13189         * include/atomic.h (atomic_exchange_relaxed): New.
13190
13191 2016-08-04  Joseph Myers  <joseph@codesourcery.com>
13192
13193         * math/e_scalb.c: Do not include <fenv.h>.
13194         (invalid_fn): Do calculation resulting in NaN instead of raising
13195         FE_INVALID and returning a NaN explicitly.
13196         * math/e_scalbf.c: Do not include <fenv.h>.
13197         (invalid_fn): Do calculation resulting in NaN instead of raising
13198         FE_INVALID and returning a NaN explicitly.
13199         * math/e_scalbl.c: Do not include <fenv.h>.
13200         (invalid_fn): Do calculation resulting in NaN instead of raising
13201         FE_INVALID and returning a NaN explicitly.
13202
13203 2016-08-04  Carlos O'Donell  <carlos@redhat.com>
13204
13205         * po/de.po: Updated from Translation Project.
13206         * po/fi.po: Likewise.
13207         * po/sv.po: Likewise.
13208
13209 2016-08-04  Florian Weimer  <fweimer@redhat.com>
13210
13211         [BZ #20452]
13212         Use sysdep.o from libc.a in static libraries.
13213         * sysdeps/unix/sysv/linux/i386/Makefile
13214         (libpthread-shared-only-routines): Add sysdep.
13215         (librt-shared-only-routines): Likewise.
13216
13217 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
13218
13219         * math/tgmath.h (nextdown): Define if
13220         [__GLIBC_USE (IEC_60559_BFP_EXT)], not if [__USE_GNU].
13221         (nextup): Likewise.
13222
13223         * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_FUNCS_EXT): New
13224         macro.
13225         * include/features.h (__STDC_WANT_IEC_60559_FUNCS_EXT__):
13226         Document.
13227         * manual/creature.texi (__STDC_WANT_IEC_60559_FUNCS_EXT__):
13228         Document macro.
13229         * manual/math.texi (exp10): Document as ISO from TS 18661-4:2015.
13230         (exp10f): Likewise.
13231         (exp10l): Likewise.
13232         * math/bits/mathcalls.h (exp10): Declare if
13233         [__GLIBC_USE (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
13234
13235         * manual/arith.texi (nextup): Fix typo in last change.
13236
13237 2016-08-03  Zack Weinberg  <zackw@panix.com>
13238
13239         [BZ #19239]
13240         * NEWS: Inclusion of <sys/sysmacros.h> by <sys/types.h> is deprecated.
13241         * misc/sys/sysmacros.h: If __SYSMACROS_DEPRECATED_INCLUSION is defined,
13242         define major, minor, and makedev to issue deprecation warnings on use.
13243         If __SYSMACROS_DEPRECATED_INCLUSION is *not* defined, suppress
13244         previously-activated deprecation warnings for these macros and prevent
13245         subsequent inclusions of this header from having any effect.
13246         * posix/sys/types.h: Define __SYSMACROS_DEPRECATED_INCLUSION before
13247         including <sys/sysmacros.h>, and undefine it again afterward.
13248
13249 2016-08-03  Zack Weinberg  <zackw@panix.com>
13250
13251         * sysdeps/generic/sys/sysmacros.h: Delete file.
13252         * sysdeps/unix/sysv/linux/makedev.c: Delete file.
13253         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Move file ...
13254         * bits/sysmacros.h: ... here; this encoding is now the generic
13255         encoding.  Now defines only the following macros:
13256         __SYSMACROS_DECLARE_MAJOR, __SYSMACROS_DEFINE_MAJOR,
13257         __SYSMACROS_DECLARE_MINOR, __SYSMACROS_DEFINE_MINOR,
13258         __SYSMACROS_DECLARE_MAKEDEV, __SYSMACROS_DEFINE_MAKEDEV.
13259
13260         * misc/sys/sysmacros.h, misc/makedev.c: New files that use
13261         bits/sysmacros.h and the above new macros to generate the
13262         public implementations of major, minor, and makedev.
13263         * misc/tst-makedev.c: New test.
13264         * include/sys/sysmacros.h: New wrapper.
13265
13266         * misc/Makefile (headers): Add sys/sysmacros.h, bits/sysmacros.h.
13267         (routines): Add makedev.
13268         (tests): Add tst-makedev.
13269         * misc/Versions [GLIBC_2.25]: Add gnu_dev_major, gnu_dev_minor,
13270         gnu_dev_makedev.
13271         * posix/Makefile (headers): Remove sys/sysmacros.h.
13272         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove makedev.
13273
13274         * sysdeps/arm/nacl/libc.abilist: Add GLIBC_2.25,
13275         gnu_dev_major, gnu_dev_makedev, gnu_dev_minor.
13276         * sysdeps/unix/sysv/linux/aarch64/libc.abilist
13277         * sysdeps/unix/sysv/linux/alpha/libc.abilist
13278         * sysdeps/unix/sysv/linux/arm/libc.abilist
13279         * sysdeps/unix/sysv/linux/hppa/libc.abilist
13280         * sysdeps/unix/sysv/linux/i386/libc.abilist
13281         * sysdeps/unix/sysv/linux/ia64/libc.abilist
13282         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
13283         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist
13284         * sysdeps/unix/sysv/linux/microblaze/libc.abilist
13285         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
13286         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
13287         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
13288         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
13289         * sysdeps/unix/sysv/linux/nios2/libc.abilist
13290         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
13291         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
13292         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
13293         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
13294         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist
13295         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
13296         * sysdeps/unix/sysv/linux/sh/libc.abilist
13297         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
13298         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
13299         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
13300         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
13301         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist
13302         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist
13303         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist:
13304         Add GLIBC_2.25.
13305
13306         * include/features.h (__glibc_clang_prereq): New macro.
13307         * misc/sys/cdefs.h (__glibc_clang_has_extension)
13308         (__attribute_deprecated_msg__): New macros.
13309
13310 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
13311
13312         * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_BFP_EXT): New
13313         macro.
13314         * include/features.h (__STDC_WANT_IEC_60559_BFP_EXT__): Document.
13315         * manual/arith.texi (issignaling): Document as ISO from TS
13316         18661-1:2014.
13317         (nextup): Likewise.
13318         (nextupf): Likewise.
13319         (nextupl): Likewise.
13320         (nextdown): Likewise.
13321         (nextdownf): Likewise.
13322         (nextdownl): Likewise.
13323         * manual/creature.texi (__STDC_WANT_IEC_60559_BFP_EXT__): Document
13324         macro.
13325         * math/math.h: Define
13326         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
13327         <bits/libc-header-start.h> instead of including <features.h>.
13328         (issignaling): Define if [__GLIBC_USE (IEC_60559_BFP_EXT)], not
13329         [__USE_GNU].
13330         * math/bits/mathcalls.h (nextdown): Declare if
13331         [__GLIBC_USE (IEC_60559_BFP_EXT)], not [__USE_GNU].
13332         (nextup): Likewise.
13333         (__issignaling): Likewise.
13334
13335 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13336
13337         * s_ccoshf.c (__ccoshf): Remove FE_INVALID
13338         check, and remove __glibc_likely hint
13339         from FP_INFINITE check.
13340         * s_csinhf.c (__csinhf): Likewise.
13341
13342         * s_ccoshl.c (__ccoshl): Remove __glibc_likely
13343         hint from FP_INFINITE check.
13344         * s_csinhl.c (__csinhl): Likewise.
13345
13346 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13347
13348         * math/Makefile (libm-calls): Insert F placeholder into
13349         object names.  Move w_lgamma_compat* routines into
13350         (libm-compat-calls): New variable.
13351         (libm-compat-calls-ldouble-yes): New variable.
13352         (calls): Insert F placeholder.
13353         (generated): Redefine using new type-foreach macro call.
13354         (routines): Likewise.
13355
13356         (types): New variable to hold a list of symbolic names
13357         for each type supported by the target machine.
13358         (libm-routines): Redefine using new types variable.
13359         (type-foreach): macro to replace fooF with the
13360         appropriately suffixed foo for each types.
13361
13362         (type-ldouble-suffix): New variable.
13363         (type-ldouble-routines): Likewise.
13364         (type-ldouble-yes): Likewise.
13365         (type-double-suffix): Likewise.
13366         (type-double-routines): Likewise.
13367         (type-float-suffix): Likewise.
13368         (type-float-routines): Likewise.
13369
13370         (dbl-only-routines): Remove.
13371         (long-c-yes): Likewise.
13372         (long-m-routines): Likewise.
13373         (long-m-support): Likewise.
13374         (long-m-yes): Likewise.
13375         (test-longdouble-yes): Likewise.
13376
13377         (test-float.o): Simplify by increasing the scope of the
13378         recipe which adds libm-test.stmp to the vector types.
13379         (test-ifloat.o): Likewise.
13380         (test-float-finite.o): Likewise.
13381         (test-double.o): Likewise
13382         (test-idouble.o): Likewise.
13383         (test-double-finite.o): Likewise.
13384         (test-ldouble.o): Likewise
13385         (test-ildoubl.o): Likewise.
13386         (test-ldouble-finite.o): Likewise.
13387
13388         (libm-tests): Redefine type tests using foreach and the
13389         list of types in types.
13390
13391         (CPPFLAGS-test-ildoubl.c): Rename to
13392         (CPPFLAGS-test-ildouble.c): New variable
13393
13394         * math/test-ildoubl.c: Rename to
13395         * math/test-ildouble.c: New file.
13396
13397 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13398
13399         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernal_tanl):
13400         Use fabsl instead of fabs.
13401         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl):
13402         Likewise.
13403         * sysdeps/ieee754/ldbl-128/s_atanl.c (__kernel_tanl):
13404         Add long double suffix to constant to ensure proper
13405         promotion to long double.
13406
13407 2016-08-03  Tom Tromey  <tom@tromey.com>
13408
13409         [BZ #20311]
13410         * nptl_db/Makefile (headers): Add proc_service.h.
13411         * nptl_db/proc_service.h: Add include guard.  Use
13412         __BEGIN/__END_DECLS.
13413         (ps_get_thread_area, ps_pstop, ps_pcontinue, ps_lstop)
13414         (ps_lcontinue): Remove "const" from "struct ps_prochandle *"
13415         arguments.
13416
13417
13418 2016-08-03  Florian Weimer  <fweimer@redhat.com>
13419
13420         [BZ #17730]
13421         Avoid using memalign for TCB allocations.
13422         * elf/dl-tls.c (tcb_to_pointer_to_free_location): New.
13423         (_dl_allocate_tls_storage): Use malloc and manual alignment.
13424         Avoid alignment gap in the TLS_DTV_AT_TP case.
13425         (_dl_deallocate_tls): Use tcb_to_pointer_to_free_location to
13426         determine the pointer to free.
13427         * nptl/tst-tls3-malloc.c: New test.
13428         * nptl/Makefile (tests): Add it.
13429         (tst-tls3-malloc): Link with libdl, libpthread.
13430         (LDFLAGS-tst-tls3-malloc): Set.
13431         (tst-tls3-malloc.out): Depend on DSO used in test.
13432
13433 2016-08-03  Florian Weimer  <fweimer@redhat.com>
13434
13435         [BZ #17730]
13436         Avoid using memalign for TLS allocations.
13437         * sysdeps/generic/dl-dtv.h (struct dtv_pointer): New.  Replaces
13438         is_static member with to_free member.
13439         (union dtv): Use struct dtv_pointer.
13440         * csu/libc-tls.c (__libc_setup_tls): Set to_free member of struct
13441         dtv_pointer instead of is_static.
13442         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
13443         (_dl_deallocate_tls): Free to_free member of struct dtv_pointer
13444         instead of val.
13445         (allocate_dtv_entry): New function.
13446         (allocate_and_init): Return struct dtv_pointer.  Call
13447         allocate_dtv_entry instead of __libc_memalign.
13448         (_dl_update_slotinfo): Free to_free member of struct dtv_pointer
13449         instead of val.
13450         (tls_get_addr_tail): Set to_free member of struct dtv_pointer
13451         instead of is_static.  Adjust call to allocate_and_init.
13452         * nptl/allocatestack.c (get_cached_stack): Free to_free member of
13453         struct dtv_pointer instead of val.
13454
13455 2016-08-03  Florian Weimer  <fweimer@redhat.com>
13456
13457         * malloc/malloc.c (INTERNAL_SIZE_T, SIZE_SZ, MALLOC_ALIGNMENT)
13458         (MALLOC_ALIGN_MASK): Move ...
13459         * malloc/malloc-internal.h: ... to here.
13460         * elf/dl-minimal.c (malloc): Allocate with MALLOC_ALIGNMENT.
13461
13462 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
13463
13464         * sysdeps/gnu/netinet/udp.h (UDP_ENCAP_GTP0): New macro.
13465         (UDP_ENCAP_GTP1U): Likewise.
13466
13467         * sysdeps/unix/sysv/linux/bits/socket.h (PF_QIPCRTR): New macro.
13468         (PF_MAX): Update value.
13469         (AF_QIPCRTR): New macro.
13470
13471 2016-08-03  Aurelien Jarno  <aurelien@aurel32.net>
13472
13473         * sysdeps/ieee754/dbl-64/s_trunc.c: Avoid alias renamed.
13474         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
13475         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
13476         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
13477         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
13478         Add s_ceilf-vis3, s_ceil-vis3, s_floorf-vis3, s_floor-vis3,
13479         s_truncf-vis3, s_trunc-vis3.
13480         (CFLAGS-s_ceilf-vis3.c): New. Set to -Wa,-Av9d -mvis3.
13481         (CFLAGS-s_ceil-vis3.c): Likewise.
13482         (CFLAGS-s_floorf-vis3.c): Likewise.
13483         (CFLAGS-s_floor-vis3.c): Likewise.
13484         (CFLAGS-s_truncf-vis3.c): Likewise.
13485         (CFLAGS-s_trunc-vis3.c): Likewise.
13486         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.c: New file.
13487         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
13488         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.c: Likewise.
13489         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
13490         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.c: Likewise.
13491         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
13492         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.c: Likewise.
13493         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
13494         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.c: Likewise.
13495         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
13496         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.c: Likewise.
13497         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
13498
13499 2016-08-02  David S. Miller  <davem@davemloft.net>
13500
13501         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
13502         (__nearbyint_vis3): Don't check for sNaN before float register is
13503         loaded with the incoming argument.
13504         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
13505         (__nearbyintf_vis3): Likewise.
13506         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint):
13507         Likewise.
13508         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf):
13509         Likewise.
13510
13511         * string/test-strncmp.c (do_test_limit): Make sure the test data
13512         stream is aligned as required for the type "CHAR".
13513         (do_test): Likewise.
13514
13515 2016-08-03  Aurelien Jarno  <aurelien@aurel32.net>
13516
13517         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Replace beqlr instructions
13518         by beq instructions jumping to the end of the function.
13519         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Add "11", "12", "cr0" to the
13520         clobber list. Use "i" constraint instead of "X".
13521         (ifunc_one): Add "12" to the clobber list. Use "i" constraint instead
13522         of "X".
13523
13524 2016-08-02  Joseph Myers  <joseph@codesourcery.com>
13525
13526         * bits/libc-header-start.h: New file.
13527         * Makefile (headers): Add bits/libc-header-start.h.
13528         * include/features.h (__STDC_WANT_LIB_EXT2__): Document.
13529         (__GLIBC_USE): New macro.
13530         * libio/stdio.h: Define
13531         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
13532         <bits/libc-header-start.h> instead of including <features.h>.
13533         (fmemopen): Declare also if [__GLIBC_USE (LIB_EXT2)].
13534         (open_memstream): Likewise.
13535         (vasprintf): Declare if [__GLIBC_USE (LIB_EXT2)], not [__USE_GNU].
13536         (__asprintf): Likewise.
13537         (asprintf): Likewise.
13538         (__getdelim): Declare also if [__GLIBC_USE (LIB_EXT2)].
13539         (getdelim): Likewise.
13540         (getline): Likewise.
13541         * string/string.h: Define
13542         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
13543         <bits/libc-header-start.h> instead of including <features.h>.
13544         (strdup): Declare also if [__GLIBC_USE (LIB_EXT2)]
13545         (strndup): Likewise.
13546         * wcsmbs/wchar.h: Define
13547         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
13548         <bits/libc-header-start.h> instead of including <features.h>.
13549         (open_wmemstream): Declare also if [__GLIBC_USE (LIB_EXT2)].
13550         * manual/creature.texi (__STDC_WANT_LIB_EXT2__): Document macro.
13551
13552 2016-08-02  Florian Weimer  <fweimer@redhat.com>
13553
13554         Support linking against compatibility symbols, for use in tests.
13555         * include/libc-symbols.h (symbol_version_reference): New macro.
13556         (symbol_version): Use it.
13557         * include/shlib-compat.h: Unconditionally include <abi-versions.h>.
13558         (compat_symbol): Use compat_symbol_reference.
13559         (compat_symbol_1, compat_symbol_2): Remove.
13560         (compat_symbol_reference, compat_symbol_reference_1)
13561         (compat_symbol_reference_2): New macro.  Use
13562         symbol_version_reference.
13563
13564 2016-08-02  Florian Weimer  <fweimer@redhat.com>
13565
13566         [BZ #19469]
13567         * malloc/Makefile (CPPFLAGS): Compile tests with
13568         -DTEST_NO_MALLOPT.
13569         * test-skeleton.c (main): Only call mallopt if !TEST_NO_MALLOPT.
13570
13571 2016-08-02  Andrew Senkevich  <andrew.senkevich@intel.com>
13572
13573         [BZ #20033]
13574         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: Call
13575         finite version.
13576         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: Likewise.
13577         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: Likewise.
13578         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: Likewise.
13579         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: Likewise.
13580         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: Likewise.
13581         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: Likewise.
13582         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: Likewise.
13583         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: Likewise.
13584         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Likewise.
13585         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: Likewise.
13586         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: Likewise.
13587         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: Likewise.
13588         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: Likewise.
13589         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: Likewise.
13590         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: Likewise.
13591         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: Likewise.
13592         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: Likewise.
13593         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: Likewise.
13594         * sysdeps/x86_64/fpu/svml_d_log2_core.S: Likewise.
13595         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: Likewise.
13596         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: Likewise.
13597         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: Likewise.
13598         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: Likewise.
13599         * math/libm-test.inc (pow_test_data): Exclude tests for qNaN
13600         in zero power.
13601
13602 2016-08-02  Florian Weimer  <fweimer@redhat.com>
13603
13604         [BZ #20370]
13605         * malloc/arena.c (get_free_list): Update comment.  Assert that
13606         arenas on the free list have no attached threads.
13607         (remove_from_free_list): New function.
13608         (reused_arena): Call it.
13609
13610 2016-08-02  Aurelien Jarno  <aurelien@aurel32.net>
13611
13612         * sysdeps/alpha/fpu/s_ceil.c (__ceil): Add argument with itself
13613         when it is a NaN.
13614         [_IEEE_FP_INEXACT] Remove.
13615         * sysdeps/alpha/fpu/s_ceilf.c (__ceilf): Likewise.
13616         * sysdeps/alpha/fpu/s_floor.c (__floor): Add argument with itself
13617         when it is a NaN.
13618         [_IEEE_FP_INEXACT] Remove.
13619         * sysdeps/alpha/fpu/s_floorf.c (__floorf): Likewise.
13620         * sysdeps/alpha/fpu/s_rint.c (__rint): Add argument with itself
13621         when it is a NaN.
13622         * sysdeps/alpha/fpu/s_rintf.c (__rintf): Likewise.
13623         * sysdeps/alpha/fpu/s_trunc.c (__trunc): Return the input value
13624         when its absolute value is greater than 0x1.0p52.
13625         [_IEEE_FP_INEXACT] Remove.
13626         * sysdeps/alpha/fpu/s_truncf.c (__truncf): Return the input value
13627         when its absolute value is greater than 0x1.0p23.
13628         [_IEEE_FP_INEXACT] Remove.
13629
13630 2016-08-01  Carlos O'Donell  <carlos@redhat.com>
13631
13632         * version.h (RELEASE): Set to "development"
13633         (VERSION): Set to 2.24.90.
13634         * NEWS: Add 2.25 section.
13635
13636         * version.h (RELEASE): Set to "stable"
13637         (VERSION): Set to 2.24.
13638         * include/features.h (__GLIBC_MINOR__): Set to 24.
13639
13640         * NEWS: Add 2.24 fixed bugs.
13641         * po/libc.pot: Regenerate.
13642
13643 2016-08-01  Aurelien Jarno  <aurelien@aurel32.net>
13644
13645         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
13646         [$(subdir) = math] (libm-sysdep_routines): Remove.
13647         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
13648         Remove s_ceilf-vis3, s_ceil-vis3, s_floorf-vis3, s_floor-vis3,
13649         s_truncf-vis3, s_trunc-vis3.
13650         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
13651         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: Delete
13652         file.
13653         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Likewise.
13654         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Likewise.
13655         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: Likewise.
13656         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: Likewise.
13657         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
13658         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: Likewise.
13659         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Likewise.
13660         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
13661         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: Likewise.
13662         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: Likewise.
13663         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: Likewise.
13664         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: Likewise.
13665         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: Likewise.
13666         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: Likewise.
13667         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: Likewise.
13668         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
13669         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
13670         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
13671         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: Likewise.
13672         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: Likewise.
13673         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: Likewise.
13674         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: Likewise.
13675         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
13676         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
13677         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: Likewise.
13678         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
13679         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
13680         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: Likewise.
13681         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
13682         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
13683         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: Likewise.
13684         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
13685         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
13686         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: Likewise.
13687         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: Likewise.
13688         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: Likewise.
13689         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: Likewise.
13690         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
13691         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
13692         * sysdeps/sparc/sparc64/fpu/s_floor.S: Likewise.
13693         * sysdeps/sparc/sparc64/fpu/s_floorf.S: Likewise.
13694         * sysdeps/sparc/sparc64/fpu/s_trunc.S: Likewise.
13695         * sysdeps/sparc/sparc64/fpu/s_truncf.S: Likewise.
13696
13697 2016-07-27  H.J. Lu  <hongjiu.lu@intel.com>
13698
13699         [BZ #20384]
13700         * sysdeps/x86_64/fpu/Makefile (extra-test-objs): Add
13701         test-double-libmvec-sincos-avx-main.o,
13702         test-double-libmvec-sincos-avx2-main.o,
13703         test-double-libmvec-sincos-main.o,
13704         test-float-libmvec-sincosf-avx-main.o,
13705         test-float-libmvec-sincosf-avx2-main.o and
13706         test-float-libmvec-sincosf-main.o.
13707         test-float-libmvec-sincosf-avx512-main.o.
13708         ($(objpfx)test-double-libmvec-sincos): Also link with
13709         $(objpfx)test-double-libmvec-sincos-main.o.
13710         ($(objpfx)test-double-libmvec-sincos-avx): Also link with
13711         $(objpfx)test-double-libmvec-sincos-avx-main.o.
13712         ($(objpfx)test-double-libmvec-sincos-avx2): Also link with
13713         $(objpfx)test-double-libmvec-sincos-avx2-main.o.
13714         ($(objpfx)test-float-libmvec-sincosf): Also link with
13715         $(objpfx)test-float-libmvec-sincosf-main.o.
13716         ($(objpfx)test-float-libmvec-sincosf-avx): Also link with
13717         $(objpfx)test-float-libmvec-sincosf-avx2-main.o.
13718         [$(config-cflags-avx512) == yes] (extra-test-objs): Add
13719         test-double-libmvec-sincos-avx512-main.o and
13720         ($(objpfx)test-double-libmvec-sincos-avx512): Also link with
13721         $(objpfx)test-double-libmvec-sincos-avx512-main.o.
13722         ($(objpfx)test-float-libmvec-sincosf-avx512): Also link with
13723         $(objpfx)test-float-libmvec-sincosf-avx512-main.o.
13724         (CFLAGS-test-double-libmvec-sincos.c): Removed.
13725         (CFLAGS-test-float-libmvec-sincosf.c): Likewise.
13726         (CFLAGS-test-double-libmvec-sincos-main.c): New.
13727         (CFLAGS-test-double-libmvec-sincos-avx-main.c): Likewise.
13728         (CFLAGS-test-double-libmvec-sincos-avx2-main.c): Likewise.
13729         (CFLAGS-test-float-libmvec-sincosf-main.c): Likewise.
13730         (CFLAGS-test-float-libmvec-sincosf-avx-main.c): Likewise.
13731         (CFLAGS-test-float-libmvec-sincosf-avx2-main.c): Likewise.
13732         (CFLAGS-test-float-libmvec-sincosf-avx512-main.c): Likewise.
13733         (CFLAGS-test-double-libmvec-sincos-avx.c): Set to -DREQUIRE_AVX.
13734         (CFLAGS-test-float-libmvec-sincosf-avx.c ): Likewise.
13735         (CFLAGS-test-double-libmvec-sincos-avx2.c): Set to
13736         -DREQUIRE_AVX2.
13737         (CFLAGS-test-float-libmvec-sincosf-avx2.c ): Likewise.
13738         (CFLAGS-test-double-libmvec-sincos-avx512.c): Set to
13739         -DREQUIRE_AVX512F.
13740         (CFLAGS-test-float-libmvec-sincosf-avx512.c): Likewise.
13741         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Rewritten.
13742         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
13743         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx-main.c: New
13744         file.
13745         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2-main.c:
13746         Likewise.
13747         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512-main.c:
13748         Likewise.
13749         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-main.c:
13750         Likewise.
13751         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx-main.c:
13752         Likewise.
13753         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2-main.c:
13754         Likewise.
13755         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512-main.c:
13756         Likewise.
13757         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-main.c:
13758         Likewise.
13759
13760 2016-07-27  Chung-Lin Tang  <cltang@codesourcery.com>
13761
13762         * sysdeps/unix/sysv/linux/nios2/localplt.data (__eqsf2): Remove.
13763
13764 2016-07-21  Gustavo Romero  <gromero@linux.vnet.ibm.com>
13765
13766         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Fix missing verb
13767         and typo in a comment about AT_HWCAP entry.
13768
13769 2016-07-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13770
13771         * sysdeps/aarch64/libm-test-ulps: Updated.
13772
13773 2016-07-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
13774
13775         * sysdeps/s390/s390-32/memcpy.S (memcpy): Eliminate the usage
13776         of r13 as it is not restored in mvcle case.
13777
13778 2016-07-19  Mike Frysinger  <vapier@gentoo.org>
13779
13780         * sysdeps/unix/sysv/linux/microblaze/sysdep.h (inline_syscall0):
13781         Rename "ret" to "__ret".
13782         (inline_syscall1, inline_syscall2, inline_syscall3, inline_syscall4,
13783         inline_syscall5, inline_syscall6): Likewise.
13784
13785 2016-07-19   Will Newton  <will.newton@gmail.com>
13786
13787         * elf/elf.h (R_METAG_REL8, R_METAG_REL16, R_METAG_TLS_GD
13788         R_METAG_TLS_LDM, R_METAG_TLS_LDO_HI16, R_METAG_TLS_LDO_LO16,
13789         R_METAG_TLS_LDO, R_METAG_TLS_IE, R_METAG_TLS_IENONPIC,
13790         R_METAG_TLS_IENONPIC_HI16, R_METAG_TLS_IENONPIC_LO16,
13791         R_METAG_TLS_LE, R_METAG_TLS_LE_HI16, R_METAG_TLS_LE_LO16): New.
13792
13793 2016-07-18  H.J. Lu  <hongjiu.lu@intel.com>
13794
13795         * sysdeps/i386/Makefile (rtld-CFLAGS): New.
13796         [subdir == elf] (CFLAGS-.os): Replace -mno-sse -mno-mmx
13797         -mfpmath=387 with $(rtld-CFLAGS).
13798         [subdir != elf] (CFLAGS-.os): Compile rtld-*.os with
13799         $(rtld-CFLAGS).
13800
13801 2016-07-18   Ross Burton  <ross.burton@intel.com>
13802              Khem Raj  <raj.khem@gmail.com>
13803
13804         * elf/elf.h (R_METAG_HIADDR16, R_METAG_LOADDR16,
13805         R_METAG_ADDR32, R_METAG_NONE, R_METAG_RELBRANCH,
13806         R_METAG_GETSETOFF, R_METAG_REG32OP1, R_METAG_REG32OP2,
13807         R_METAG_REG32OP3, R_METAG_REG16OP1, R_METAG_REG16OP2,
13808         R_METAG_REG16OP3, R_METAG_REG32OP4, R_METAG_HIOG,
13809         R_METAG_LOOG, R_METAG_GNU_VTINHERIT, R_METAG_GNU_VTENTRY,
13810         R_METAG_HI16_GOTOFF, R_METAG_LO16_GOTOFF,
13811         R_METAG_GETSET_GOTOFF, R_METAG_GETSET_GOT, R_METAG_HI16_GOTPC,
13812         R_METAG_LO16_GOTPC, R_METAG_HI16_PLT, R_METAG_LO16_PLT,
13813         R_METAG_RELBRANCH_PLT, R_METAG_GOTOFF, R_METAG_PLT,
13814         R_METAG_COPY, R_METAG_JMP_SLOT, R_METAG_RELATIVE,
13815         R_METAG_GLOB_DAT, R_METAG_TLS_TPOFF, R_METAG_TLS_DTPMOD,
13816         R_METAG_TLS_DTPOFF): New.
13817
13818 2016-07-18  Siddhesh Poyarekar  <siddhesh@sourceware.org>
13819             Matt Clay  <mclay@lycos.com>
13820
13821         [BZ #20357]
13822         * sysdeps/ieee754/dbl-64/s_sin.c (sloww): Fix up condition
13823         to call __mpsin/__mpcos and to negate values.
13824         * math/auto-libm-test-in: Add test.
13825         * math/auto-libm-test-out: Regenerate.
13826
13827 2016-07-18  Zack Weinberg  <zackw@panix.com>
13828
13829         * grp/Makefile: Don't install the internal header grp-merge.h.
13830
13831 2016-07-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13832
13833         * sysdeps/aarch64/libm-test-ulps: Regenerated.
13834
13835 2016-07-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13836
13837         * bits/termios.h (TABDLY): Change macro to include TAB3 bit too.
13838
13839 2016-07-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13840
13841         [BZ #15368]
13842         * sysdeps/unix/sysv/linux/nptl-signals.h
13843         (__nptl_clear_internal_signals): New function.
13844         (__libc_signal_block_all): Likewise.
13845         (__libc_signal_block_app): Likewise.
13846         (__libc_signal_restore_set): Likewise.
13847         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Use Linux raise.c
13848         implementation.
13849         * sysdeps/unix/sysv/linux/raise.c (raise): Reimplement to not use
13850         the cached pid/tid value in pthread structure.
13851
13852 2016-07-13  H.J. Lu  <hongjiu.lu@intel.com>
13853
13854         [BZ #20347]
13855         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
13856
13857 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
13858
13859         [BZ #20348]
13860         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add pread64,
13861         preadv64, pwrite64 and pwritev64.
13862
13863 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
13864
13865         [BZ #20350]
13866         * posix/tst-preadwrite.c: Renamed to ...
13867         * posix/tst-preadwrite-common.c: This.
13868         (PREAD): Removed.
13869         (PWRITE): Likewise.
13870         (STRINGIFY): Likewise.
13871         (STRINGIFY2): Likewise.
13872         (do_prepare): Make it static and remove function arguments.
13873         (do_test): Likewise.
13874         (PREPARE): Updated.
13875         (TEST_FUNCTION): New.
13876         (name): Make it static.
13877         (fd): Likewise.
13878         (do_prepare): Use create_temp_file.
13879         (do_test): Renamed to ...
13880         (do_test_with_offset): This.  Make it static and accept offset.
13881         Properly check return value of PWRITE and PREAD.  Return bytes
13882         read.  Don't close fd nor unlink name.
13883         * posix/tst-preadwrite.c: Rewrite.
13884         * posix/tst-preadwrite64.c: Likewise.
13885
13886 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
13887
13888         [BZ #20309]
13889         * configure.ac (have-mtls-dialect-gnu2): Set to yes if
13890         -mtls-dialect=gnu2 works.
13891         * configure: Regenerated.
13892         * elf/Makefile [have-mtls-dialect-gnu2 = yes]
13893         (tests): Add tst-gnu2-tls1.
13894         (modules-names): Add tst-gnu2-tls1mod.
13895         ($(objpfx)tst-gnu2-tls1): New.
13896         (tst-gnu2-tls1mod.so-no-z-defs): Likewise.
13897         (CFLAGS-tst-gnu2-tls1mod.c): Likewise.
13898         * elf/tst-gnu2-tls1.c: New file.
13899         * elf/tst-gnu2-tls1mod.c: Likewise.
13900         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Add 8
13901         bytes for push in the PLT entry to align the stack.
13902
13903 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
13904
13905         [BZ #20349]
13906         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (LO_HI_LONG): New.
13907
13908 2016-07-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13909
13910         [BZ #18707]
13911         * sysdeps/aarch64/Makefile (CFLAGS-mcount.c): Add -mgeneral-regs-only.
13912         * sysdeps/aarch64/sysdep.h (CALL_MCOUNT): Save argument registers.
13913
13914 2016-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13915
13916         * sysdeps/unix/sysv/linux/sysdep.h
13917         [__WORDSIZE == 64 || __ASSUME_WORDSIZE64_ILP32] (LO_HI_LONG): Remove
13918         guards.
13919         * misc/tst-preadvwritev-common.c: New file.
13920         * misc/tst-preadvwritev.c: Use tst-preadvwritev-common.c.
13921         * misc/tst-preadvwritev64.c: Use tst-preadwritev-common.c and add
13922         a check for files larger than 2GB.
13923
13924         * sysdeps/unix/sysv/linux/mips/kernel-features.h
13925         (__ASSUME_OFF_DIFF_OFF64): Remove define.
13926         * sysdeps/unix/sysv/linux/pread.c
13927         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread): Replace by
13928         __OFF_T_MATCHES_OFF64_T.
13929         * sysdeps/unix/sysv/linux/pread64.c
13930         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread64): Likewise.
13931         * sysdeps/unix/sysv/linux/preadv.c
13932         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Likewise.
13933         * sysdeps/unix/sysv/linux/preadv64.c
13934         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv64): Likewise.
13935         * sysdeps/unix/sysv/linux/pwrite.c
13936         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite): Likewise.
13937         * sysdeps/unix/sysv/linux/pwrite64.c
13938         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite64): Likewise.
13939         * sysdeps/unix/sysv/linux/pwritev.c
13940         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Likewise.
13941         * sysdeps/unix/sysv/linux/pwritev64.c
13942         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev64): Likewise.
13943
13944 2016-07-08  Chris Metcalf  <cmetcalf@mellanox.com>
13945
13946         * sysdeps/unix/sysv/linux/tile/kernel-features.h
13947         (__ASSUME_ALIGNED_REGISTER_PAIRS): Only define if !_LP64.
13948
13949 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
13950
13951         * bits/in.h (__USE_KERNEL_IPV6_DEFS): Define to 0.
13952
13953 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
13954
13955         [BZ #20240]
13956         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
13957         (CFLAGS-s_modf-ppc32.c): New variable.
13958         (CFLAGS-s_modff-ppc32.c): Likewise.
13959         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
13960         (CFLAGS-s_modf-ppc64.c): Likewise.
13961         (CFLAGS-s_modff-ppc64.c): Likewise.
13962
13963 2016-07-07  Andreas Schwab  <schwab@suse.de>
13964
13965         [BZ #20263]
13966         * nptl/tst-robust10.c: New test.
13967         * nptl/Makefile (tests): Add tst-robust10.
13968
13969 2016-07-07  Jiyoung Yun  <t2wish@gmail.com>
13970
13971         [BZ #20263]
13972         * nptl/lowlevelrobustlock.c: Implement ETIMEDOUT logic.
13973
13974 2016-07-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
13975
13976         * sysdeps/s390/linkmap.h (struct link_map_machine):
13977         Remove member gotplt and add member jmprel.
13978         * sysdeps/s390/s390-32/dl-machine.h
13979         (elf_machine_runtime_setup): Setup member jmprel with DT_JMPREL
13980         instead of gotplt with &got[3].
13981         (elf_machine_lazy_rel): Calculate address with reloc and jmprel.
13982         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13983
13984 2016-07-06  John David Anglin  <danglin@gcc.gnu.org>
13985
13986         * sysdeps/hppa/fpu/libm-test-ulps: Regenerate.
13987
13988 2016-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13989
13990         * libio/iofopncook.c (_IO_cookie_read, _IO_cookie_write,
13991         _IO_cookie_seek, _IO_cookie_close, _IO_old_cookie_seek)
13992         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
13993         (set_callbacks) [!PTR_MANGLE]: Do not call PTR_MANGLE.
13994         * libio/vtables.c (_IO_vtable_check)
13995         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
13996         * libio/libioP.h (IO_set_accept_foreign_vtables)
13997         [!PTR_MANGLE]: Do not call PTR_MANGLE.
13998
13999 2016-07-05  H.J. Lu  <hongjiu.lu@intel.com>
14000
14001         [BZ #20314]
14002         * Makeconfig (CXXFLAGS): Prepend -I$(common-objpfx).
14003         * Makerules (before-compile): Add $(common-objpfx)cstdlib and
14004         $(common-objpfx)cmath.
14005         ($(common-objpfx)cstdlib): New target.
14006         ($(common-objpfx)cmath): Likewise.
14007
14008 2016-07-05  Chris Metcalf  <cmetcalf@mellanox.com>
14009
14010         * malloc/tst-malloc-thread-fail.c (TIMEOUT): Bump up to 30s.
14011
14012 2016-07-05  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
14013
14014         [BZ #20327]
14015         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Mask bits that
14016         are not part of the string.
14017
14018 2016-07-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14019
14020         * nptl/tst-cancel4-common.c (do_test): Add temporary fifo creation.
14021         * nptl/tst-cancel4-common.h (fifoname): New variable.
14022         (fifofd): Likewise.
14023         (cl_fifo): New function.
14024         * nptl/tst-cancel4.c (tf_sigpause): Replace SIGCANCEL usage by
14025         SIGINT.
14026         (tf_open): Add early cancel test.
14027
14028 2016-07-04  Andreas Schwab  <schwab@linux-m68k.org>
14029
14030         * sysdeps/m68k/Makefile (CFLAGS-mcount.c): Define.
14031
14032 2016-07-01  Maciej W. Rozycki  <macro@imgtec.com>
14033
14034         * sysdeps/generic/ldsodefs.h
14035         (dl_symbol_visibility_binds_local_p): New inline function.
14036         * elf/dl-addr.c (determine_info): Treat hidden and internal
14037         symbols as local.
14038         * elf/dl-lookup.c (do_lookup_x): Likewise.
14039         * elf/dl-reloc.c (RESOLVE_MAP): Likewise.
14040
14041 2016-07-01  Aurelien Jarno  <aurelien@aurel32.net>
14042
14043         * sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint): Trigger an
14044         invalid exception for a sNaN input.
14045         * sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
14046         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
14047         (__nearbyint_vis3): Likewise
14048         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
14049         (__nearbyintf_vis3): Likewise
14050         * sparc/sparc64/fpu/s_nearbyint.S (__nearbyint): Likewise.
14051         * sparc/sparc64/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
14052         * sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S (__nearbyint_vis3):
14053         Likewise.
14054         * sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S (__nearbyintf_vis3):
14055         Likewise.
14056
14057 2016-07-01  H.J. Lu  <hongjiu.lu@intel.com>
14058
14059         [BZ #20139]
14060         * config.h.in (HAVE_AVX512_ASM_SUPPORT): Renamed to ...
14061         (HAVE_AVX512DQ_ASM_SUPPORT): This.
14062         * sysdeps/x86_64/configure.ac: Require assembler from binutils
14063         2.24 or above.
14064         (HAVE_AVX512_ASM_SUPPORT): Removed.
14065         (HAVE_AVX512DQ_ASM_SUPPORT): New.
14066         * sysdeps/x86_64/configure: Regenerated.
14067         * sysdeps/x86_64/dl-trampoline.S: Make HAVE_AVX512_ASM_SUPPORT
14068         check unconditional.
14069         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
14070         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
14071         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
14072         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
14073         Likewise.
14074         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
14075         Likewise.
14076         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
14077         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
14078         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
14079         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
14080         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
14081         Likewise.
14082         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
14083         Likewise.
14084         * sysdeps/x86_64/multiarch/memset.S: Likewise.
14085         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
14086         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Check
14087         HAVE_AVX512DQ_ASM_SUPPORT instead of HAVE_AVX512_ASM_SUPPORT.
14088         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S:
14089         Likewise.
14090         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S:
14091         Likewise.
14092         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S:
14093         Likewise.
14094         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S:
14095         Likewise.
14096         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.:
14097         Likewise.
14098         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S:
14099         Likewise.
14100         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S:
14101         Likewise.
14102         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S:
14103         Likewise.
14104         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S:
14105         Likewise.
14106         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx51:
14107         Likewise.
14108         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S:
14109         Likewise.
14110
14111 2016-07-01  Andrew Senkevich  <andrew.senkevich@intel.com>
14112
14113         [BZ #20024]
14114         * sysdeps/x86/fpu/test-math-vector-sincos.h: New.
14115         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Fixed ABI
14116         of this implementation of vector function.
14117         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
14118         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
14119         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
14120         Likewise.
14121         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
14122         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
14123         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: Likewise.
14124         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: Likewise.
14125         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: Likewise.
14126         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Likewise.
14127         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
14128         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S: Likewise.
14129         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S: Likewise.
14130         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S: Likewise.
14131         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Use another wrapper
14132         for testing vector sincos with fixed ABI.
14133         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
14134         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
14135         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
14136         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
14137         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
14138         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
14139         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
14140         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx.c: New test.
14141         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2.c: Likewise.
14142         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512.c: Likewise.
14143         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Likewise.
14144         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx.c: Likewise.
14145         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2.c: Likewise.
14146         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512.c: Likewise.
14147         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
14148         * sysdeps/x86_64/fpu/Makefile: Added new tests.
14149
14150 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
14151
14152         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Add _Qp_cmp.
14153
14154 2016-06-30  Anton Blanchard  <anton@samba.org>
14155
14156         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
14157         [$(subdir) = math] (libm-sysdep_routines): Add s_sinf-power8 and
14158         s_sinf-ppc64.
14159         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: New file.
14160         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
14161         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
14162         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
14163
14164 2016-06-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
14165
14166         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14167         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
14168         [$(subdir) = math] (libm-sysdep_routines): Add e_expf-power8 and
14169         e_expf-ppc64.
14170         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: New file.
14171         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
14172         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
14173         * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
14174
14175 2016-06-30  John David Anglin  <danglin@gcc.gnu.org>
14176
14177         [BZ #20277]
14178         * sysdeps/hppa/start.S (_start): Correct loading of global pointer
14179         when SHARED is defined.
14180
14181 2016-06-30  H.J. Lu  <hongjiu.lu@intel.com>
14182
14183         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_ERMS): New.
14184         (index_arch_Prefer_ERMS): Likewise.
14185         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Return
14186         __memcpy_erms for Prefer_ERMS.
14187         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
14188         (__memmove_erms): Enabled for libc.a.
14189         * ysdeps/x86_64/multiarch/memmove.S (__libc_memmove): Return
14190         __memmove_erms or Prefer_ERMS.
14191         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Return
14192         __mempcpy_erms for Prefer_ERMS.
14193         * sysdeps/x86_64/multiarch/memset.S (memset): Return
14194         __memset_erms for Prefer_ERMS.
14195
14196 2016-06-30  Andreas Schwab  <schwab@suse.de>
14197
14198         [BZ #20262]
14199         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Return
14200         NSS_STATUS_SUCCESS when done.  Return NSS_STATUS_TRYAGAIN when out
14201         of memory.
14202
14203 2016-06-29  H.J. Lu  <hongjiu.lu@intel.com>
14204
14205         [BZ #18645]
14206         * nptl/Makefile (extra-test-objs): Add tst-cleanupx4aux.o.
14207         (test-extras): Add tst-cleanupx4aux.
14208         (CFLAGS-tst-cleanupx4aux.c): New.  Set to -fexceptions.
14209         ($(objpfx)tst-cleanupx4): Replace tst-cleanup4aux.o with
14210         tst-cleanupx4aux.o.
14211         * nptl/tst-cleanupx4aux.c: New file.
14212
14213 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
14214
14215         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
14216
14217 2016-06-29  Andreas Schwab  <schwab@suse.de>
14218
14219         [BZ #20260]
14220         * sysdeps/x86/bits/string.h (__strncat_g) [!__i686__]: Compute the
14221         address before the beginning of the string as an integer to avoid
14222         array-bounds warning.
14223
14224 2016-06-28  Richard Henderson  <rth@redhat.com>
14225
14226         * elf/elf.h (EM_BPF): New.
14227         (EM_NUM): Update.
14228         (R_BPF_NONE, R_BPF_MAP_FD): New.
14229
14230         * elf/elf.h (EM_IAMCU, EM_SPU, EM_PDP10, EM_PDP11, EM_ARC_COMPACT,
14231         EM_VIDEOCORE, EM_TMM_GPP, EM_NS32K, EM_TPC, EM_SNP1K, EM_ST200,
14232         EM_IP2K, EM_MAX, EM_CR, EM_F2MC16, EM_MSP430, EM_BLACKFIN, EM_SE_C33,
14233         EM_SEP, EM_ARCA, EM_UNICORE, EM_EXCESS, EM_DXP, EM_ALTERA_NIOS2,
14234         EM_CRX, EM_XGATE, EM_C166, EM_M16C, EM_DSPIC30F, EM_CE, EM_M32C,
14235         EM_TSK3000, EM_RS08, EM_SHARC, EM_ECOG2, EM_SCORE7, EM_DSP24,
14236         EM_VIDEOCORE3, EM_LATTICEMICO32, EM_SE_C17, EM_TI_C6000, EM_TI_C2000,
14237         EM_TI_C5500, EM_TI_ARP32, EM_TI_PRU, EM_MMDSP_PLUS, EM_CYPRESS_M8C,
14238         EM_R32C, EM_TRIMEDIA, EM_QDSP6, EM_8051, EM_STXP7X, EM_NDS32,
14239         EM_ECOG1X, EM_MAXQ30, EM_XIMO16, EM_MANIK, EM_CRAYNV2, EM_RX,
14240         EM_METAG, EM_MCST_ELBRUS, EM_ECOG16, EM_CR16, EM_ETPU, EM_SLE9X,
14241         EM_L10M, EM_K10M, EM_AVR32, EM_STM8, EM_TILE64, EM_CUDA,
14242         EM_CLOUDSHIELD, EM_COREA_1ST, EM_COREA_2ND, EM_ARC_COMPACT2,
14243         EM_OPEN8, EM_RL78, EM_VIDEOCORE5, EM_78KOR, EM_56800EX, EM_BA1,
14244         EM_BA2, EM_XCORE, EM_MCHP_PIC, EM_KM32, EM_KMX32, EM_EMX16, EM_EMX8,
14245         EM_KVARC, EM_CDP, EM_COGE, EM_COOL, EM_NORC, EM_CSR_KALIMBA, EM_Z80,
14246         EM_VISIUM, EM_FT32, EM_MOXIE, EM_AMDGPU, EM_RISCV, EM_BPF): New.
14247         (EM_NUM): Update.
14248
14249 2016-06-28  Stefan Liebler  <stli@linux.vnet.ibm.com>
14250
14251         [BZ #18960]
14252         * locale/localeinfo.h (_NL_CURRENT_DEFINE):
14253         Set _nl_current_LC_CATEGORY_used to two instead of one.
14254
14255 2016-06-27  Aurelien Jarno  <aurelien@aurel32.net>
14256
14257         * sysdeps/mips/tst-mode-switch-1.c (main): Converted to ...
14258         (do_test): ... this.
14259         (TEST_FUNCTION): New macro.
14260          Include test-skeleton.c.
14261         * sysdeps/mips/tst-mode-switch-2.c (main): Likewise.
14262         * sysdeps/mips/tst-mode-switch-3.c (main): Likewise.
14263
14264 2016-06-27  Joseph Myers  <joseph@codesourcery.com>
14265
14266         [BZ #15479]
14267         * sysdeps/i386/fpu/s_trunc.S (__trunc): Save and restore
14268         floating-point environment rather than just control word.
14269         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
14270         * sysdeps/i386/fpu/s_truncl.S (__truncl): Save and restore
14271         floating-point environment, with "invalid" exceptions merged in,
14272         rather than just control word.
14273         * sysdeps/x86_64/fpu/s_truncl.S (__truncl): Likewise.
14274         * math/libm-test.inc (trunc_test_data): Do not allow spurious
14275         "inexact" exceptions.
14276
14277         [BZ #15479]
14278         * sysdeps/i386/fpu/s_floor.S (__floor): Save and restore
14279         floating-point environment rather than just control word.
14280         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
14281         * sysdeps/i386/fpu/s_floorl.S (__floorl): Save and restore
14282         floating-point environment, with "invalid" exceptions merged in,
14283         rather than just control word.
14284         * sysdeps/x86_64/fpu/s_floorl.S (__floorl): Likewise.
14285         * math/libm-test.inc (floor_test_data): Do not allow spurious
14286         "inexact" exceptions.
14287
14288         [BZ #15479]
14289         * sysdeps/i386/fpu/s_ceil.S (__ceil): Save and restore
14290         floating-point environment rather than just control word.
14291         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
14292         * sysdeps/i386/fpu/s_ceill.S (__ceill): Save and restore
14293         floating-point environment, with "invalid" exceptions merged in,
14294         rather than just control word.
14295         * sysdeps/x86_64/fpu/s_ceill.S (__ceill): Likewise.
14296         * math/libm-test.inc (ceil_test_data): Do not allow spurious
14297         "inexact" exceptions.
14298
14299 2016-06-21  Aurelien Jarno  <aurelien@aurel32.net>
14300
14301         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Rename into
14302         __libc_vfork.
14303         (__vfork) [IS_IN (libc)]: Remove alias.
14304         (__libc_vfork) [IS_IN (libc)]: Define as an alias.
14305         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
14306         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
14307
14308 2016-06-24  Torvald Riegel  <triegel@redhat.com>
14309
14310         * nscd/cache.c (cache_add): Use new C11-like atomic operation instead
14311         of atomic_compare_and_exchange_bool_rel.
14312         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
14313         * include/atomic.h (atomic_compare_and_exchange_bool_rel,
14314         catomic_compare_and_exchange_bool_rel): Remove.
14315         * sysdeps/aarch64/atomic-machine.h
14316         (atomic_compare_and_exchange_bool_rel): Likewise.
14317         * sysdeps/alpha/atomic-machine.h
14318         (atomic_compare_and_exchange_bool_rel): Likewise.
14319         * sysdeps/arm/atomic-machine.h
14320         (atomic_compare_and_exchange_bool_rel): Likewise.
14321         * sysdeps/mips/atomic-machine.h
14322         (atomic_compare_and_exchange_bool_rel): Likewise.
14323         * sysdeps/microblaze/atomic-machine.h
14324         ( __arch_compare_and_exchange_bool_8_rel,
14325         __arch_compare_and_exchange_bool_16_rel): Likewise.
14326         * sysdeps/powerpc/atomic-machine.h
14327         ( __arch_compare_and_exchange_bool_8_rel,
14328         __arch_compare_and_exchange_bool_16_rel): Likewise.
14329         * sysdeps/powerpc/powerpc32/atomic-machine.h
14330         ( __arch_compare_and_exchange_bool_32_rel,
14331         __arch_compare_and_exchange_bool_64_rel): Likewise.
14332         * sysdeps/powerpc/powerpc64/atomic-machine.h
14333         ( __arch_compare_and_exchange_bool_32_rel,
14334         __arch_compare_and_exchange_bool_64_rel): Likewise.
14335         * sysdeps/tile/atomic-machine.h
14336         (atomic_compare_and_exchange_bool_rel): Likewise.
14337
14338 2016-06-23  Joseph Myers  <joseph@codesourcery.com>
14339
14340         [BZ #20296]
14341         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Add arguments
14342         when either argument is a NaN.
14343         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
14344         * math/libm-test.inc (scalb_test_data): Add sNaN tests.
14345
14346         * math/libm-test.inc (snan_value_ld): New macro.
14347         (isgreater_test_data): Add sNaN tests.
14348         (isgreaterequal_test_data): Likewise.
14349         (isless_test_data): Likewise.
14350         (islessequal_test_data): Likewise.
14351         (islessgreater_test_data): Likewise.
14352         (isunordered_test_data): Likewise.
14353         (nextafter_test_data): Likewise.
14354         (nexttoward_test_data): Likewise.
14355         (remainder_test_data): Likewise.
14356         (remquo_test_data): Likewise.
14357         (significand_test_data): Likewise.
14358         * math/gen-libm-test.pl (%beautify): Add snan_value_ld.
14359
14360 2016-06-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
14361
14362         * posix/getconf.c: Define ALL_ENVIRONMENTS_DEFINED if all
14363         environment macros are defined.
14364         (main): Avoid execve if ALL_ENVIRONMENTS_DEFINED is defined.
14365
14366 2016-06-23  Florian Weimer  <fweimer@redhat.com>
14367
14368         [BZ #20191]
14369         Implement vtable verification in libio.
14370         * Makerules (shlib.lds): Place __libc_IO_vtables section.
14371         * debug/obprintf_chk.c (_IO_obstack_jumps): Define as vtable.
14372         * debug/vdprintf_chk.c (__vdprintf_chk): Call
14373         _IO_new_file_init_internal instead of _IO_file_init.
14374         * debug/vsnprintf_chk.c (_IO_strn_jumps): Define as vtable.
14375         * debug/vsprintf_chk.c (_IO_str_chk_jumps): Likewise.
14376         * libio/Makefile (routines): Add vtables.
14377         * libio/libioP.h (_IO_JUMPS_FUNC): Call IO_validate_vtable.
14378         (_IO_init): Remove, not for internal use.
14379         (_IO_init_internal): Declare, internal replacement for _IO_init.
14380         (_IO_file_init): Remove, not for internal use.
14381         (_IO_new_file_init): Remove, not for internal use.
14382         (_IO_new_file_init_internal): Declare, internal replacement for
14383         _IO_new_file_init.
14384         (_IO_old_file_init): Remove, not for internal use.
14385         (_IO_old_file_init_internal): Declare, internal replacement for
14386         _IO_old_file_init.
14387         (_IO_str_init_static, _IO_str_init_readonly): Remove, not for
14388         internal use.
14389         (__libc_IO_vtables, IO_accept_foreign_vtables, _IO_vtable_check):
14390         Declare.
14391         (libio_vtable): New macro.
14392         (IO_set_accept_foreign_vtables, _IO_validate_vtable): New inline
14393         functions.
14394         * libio/fileops.c (_IO_new_file_init_internal): Rename from
14395         _IO_new_file_init.
14396         (_IO_new_file_init): New externally visible wrapper which disables
14397         vtable verification.
14398         (_IO_file_jumps, _IO_file_jumps_mmap, _IO_file_jumps_maybe_mmap):
14399         Define as vtables.
14400         * libio/genops.c (_IO_init_internal): Rename from _IO_init.
14401         (_IO_init): New externally visible wrapper which disables
14402         vtable verification.
14403         * libio/iofdopen.c (_IO_new_fdopen): Call
14404         _IO_new_file_init_internal instead of _IO_file_init.  Adjust
14405         comment.
14406         * libio/iofopen.c (__fopen_internal): Call
14407         _IO_new_file_init_internal instead of _IO_file_init.
14408         * libio/iofopncook.c (_IO_cookie_jumps, _IO_old_cookie_jumps):
14409         Define as vtables.
14410         (_IO_cookie_init): Call _IO_init_internal instead of _IO_init,
14411         _IO_new_file_init_internal instead of _IO_file_init.
14412         * libio/iopopen.c (_IO_new_popen): Likewise.
14413         (_IO_proc_jumps): Define as vtable.
14414         * libio/iovdprintf.c (_IO_vdprintf): Call
14415         _IO_new_file_init_internal instead of _IO_file_init.
14416         * libio/memstream.c (_IO_mem_jumps): Define as vtable.
14417         (__open_memstream): Call _IO_init_internal instead of _IO_init.
14418         * libio/obprintf.c (_IO_obstack_jumps): Define as vtable.
14419         * libio/oldfileops.c (_IO_old_file_init_internal): Rename from
14420         _IO_old_file_init.
14421         (_IO_old_file_init): New externally visible wrapper which disables
14422         vtable verification.
14423         (_IO_old_file_jumps): Define as vtable.
14424         * libio/oldiofdopen.c (_IO_old_fdopen): Call
14425         _IO_old_file_init_internal instead of _IO_old_file_init.
14426         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
14427         * libio/oldiopopen.c (_IO_old_popen): Likewise.
14428         (_IO_old_proc_jumps): Define as vtable.
14429         * libio/strops.c (_IO_str_jumps, _IO_strn_jumps, _IO_wstrn_jumps):
14430         Define as vtables.
14431         * libio/vtables.c: New file.
14432         * libio/wfileops.c (_IO_wfile_jumps, _IO_wfile_jumps_mmap)
14433         (_IO_wfile_jumps_maybe_mmap): Define as vtables.
14434         * libio/wmemstream.c (_IO_wmem_jumps): Define as vtable.
14435         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
14436         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
14437         * stdlib/strfmon_l.c (__vstrfmon_l): Call _IO_init_internal
14438         instead of _IO_init.
14439
14440 2016-06-23  Florian Weimer  <fweimer@redhat.com>
14441
14442         * test-skeleton.c (xrealloc): Support deallocation with n == 0.
14443
14444 2016-06-23  Florian Weimer  <fweimer@redhat.com>
14445
14446         * test-skeleton.c (xmalloc, xcalloc, xrealloc): Mark as
14447         potentially unused.
14448
14449 2016-06-22  Florian Weimer  <fweimer@redhat.com>
14450
14451         * test-skeleton.c (write_message): New function.
14452         * malloc/tst-mallocfork2.c (write_message): Remove.
14453         * debug/tst-longjmp_chk2.c (write_indented): New function.
14454         (write_message): Remove.
14455         (stackoverflow_handler): Call write_indented.
14456
14457 2016-06-22  Joseph Myers  <joseph@codesourcery.com>
14458
14459         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Do not mask
14460         "inexact" exceptions after fnstenv.
14461         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
14462         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
14463         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
14464
14465 2015-06-22  Zack Weinberg  <zackw@panix.com>
14466
14467         * sysdeps/generic/bits/hwcap.h: Moved to ...
14468         * bits/hwcap.h: Here.
14469
14470 2016-06-22  Wilco Dijkstra  <wdijkstr@arm.com>
14471
14472         * sysdeps/aarch64/memcpy.S (memcpy):
14473         Further tuning for performance.
14474
14475 2016-06-21  Florian Weimer  <fweimer@redhat.com>
14476
14477         [BZ #20284]
14478         * malloc/arena.c (reused_arena): Do not return NULL if we start
14479         out with a non-corrupted arena.
14480
14481 2016-06-21 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14482
14483         * misc/Makefile (tests): Add tst-preadvwritev and tst-preadvwritev64.
14484         * misc/tst-preadvwritev.c: New file.
14485         * misc/tst-preadvwritev64.c: Likewise.
14486         * sysdeps/unix/sysv/linux/preadv.c (preadv): Remove SYSCALL_LL{64}
14487         usage.
14488         * sysdeps/unix/sysv/linux/preadv64.c (preadv64): Likewise.
14489         * sysdeps/unix/sysv/linux/pwritev.c (pwritev): Likewise.
14490         * sysdeps/unix/sysv/linux/pwritev64.c (pwritev64): Likewise.
14491         * sysdeps/unix/sysv/linux/sysdep.h (LO_HI_LONG): New macro.
14492
14493 2016-06-20  Andrew Senkevich  <andrew.senkevich@intel.com>
14494
14495         [BZ #19654]
14496         * sysdeps/x86_64/fpu/Makefile: Added new tests.
14497         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-main.c: New.
14498         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-mod.c: Likewise.
14499         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx.c: Likewise.
14500         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-main.c: Likewise.
14501         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-mod.c: Likewise.
14502         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2.c: Likewise.
14503         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-main.c: Likewise.
14504         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-mod.c: Likewise.
14505         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512.c: Likewise.
14506         * sysdeps/x86_64/fpu/test-double-libmvec-alias-main.c: Likewise.
14507         * sysdeps/x86_64/fpu/test-double-libmvec-alias-mod.c: Likewise.
14508         * sysdeps/x86_64/fpu/test-double-libmvec-alias.c: Likewise.
14509         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-main.c: Likewise.
14510         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-mod.c: Likewise.
14511         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx.c: Likewise.
14512         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-main.c: Likewise.
14513         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-mod.c: Likewise.
14514         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2.c: Likewise.
14515         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-main.c: Likewise.
14516         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-mod.c: Likewise.
14517         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512.c: Likewise.
14518         * sysdeps/x86_64/fpu/test-float-libmvec-alias-main.c: Likewise.
14519         * sysdeps/x86_64/fpu/test-float-libmvec-alias-mod.c: Likewise.
14520         * sysdeps/x86_64/fpu/test-float-libmvec-alias.c: Likewise.
14521         * sysdeps/x86_64/fpu/test-libmvec-alias-mod.c: Likewise.
14522
14523 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
14524
14525         * sysdeps/aarch64/rawmemchr.S (__rawmemchr): New file.
14526         * sysdeps/aarch64/strlen.S (__strlen): Change to __strlen to avoid PLT.
14527
14528 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
14529
14530         * sysdeps/aarch64/memcpy.S (memcpy):
14531         Rewrite of optimized memcpy and memmove.
14532         * sysdeps/aarch64/memmove.S (memmove): Remove
14533         memmove code (merged into memcpy.S).
14534
14535 2016-06-20  Florian Weimer  <fweimer@redhat.com>
14536
14537         Consolidate machine-agnostic DTV definitions in <dl-dtv.h>.
14538         * sysdeps/generic/dl-dtv.h: New file.
14539         * sysdeps/aarch64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14540         * sysdeps/aarch64/nptl/tls.h: Include <dl-dtv.h>.
14541         (dtv_t): Remove.
14542         * sysdeps/alpha/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14543         * sysdeps/alpha/nptl/tls.h: Include <dl-dtv.h>.
14544         (dtv_t): Remove.
14545         * sysdeps/arm/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14546         * sysdeps/arm/nptl/tls.h: Include <dl-dtv.h>.
14547         (dtv_t): Remove.
14548         * sysdeps/hppa/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14549         * sysdeps/hppa/nptl/tls.h: Include <dl-dtv.h>.
14550         (dtv_t): Remove.
14551         * sysdeps/i386/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14552         * sysdeps/i386/nptl/tls.h: Include <dl-dtv.h>.
14553         (dtv_t): Remove.
14554         * sysdeps/ia64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14555         * sysdeps/ia64/nptl/tls.h: Include <dl-dtv.h>.
14556         (dtv_t): Remove.
14557         * sysdeps/m68k/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14558         * sysdeps/m68k/nptl/tls.h: Include <dl-dtv.h>.
14559         (dtv_t): Remove.
14560         * sysdeps/mach/hurd/i386/tls.h: Include <dl-dtv.h>.
14561         (dtv_t): Remove.
14562         * sysdeps/microblaze/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14563         * sysdeps/microblaze/nptl/tls.h: Include <dl-dtv.h>.
14564         (dtv_t): Remove.
14565         * sysdeps/mips/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14566         * sysdeps/mips/nptl/tls.h: Include <dl-dtv.h>.
14567         (dtv_t): Remove.
14568         * sysdeps/nios2/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14569         * sysdeps/nios2/nptl/tls.h: Include <dl-dtv.h>.
14570         (dtv_t): Remove.
14571         * sysdeps/powerpc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14572         * sysdeps/powerpc/nptl/tls.h: Include <dl-dtv.h>.
14573         (dtv_t): Remove.
14574         * sysdeps/s390/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14575         * sysdeps/s390/nptl/tls.h: Include <dl-dtv.h>.
14576         (dtv_t): Remove.
14577         * sysdeps/sh/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14578         * sysdeps/sh/nptl/tls.h: Include <dl-dtv.h>.
14579         (dtv_t): Remove.
14580         * sysdeps/sparc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14581         * sysdeps/sparc/nptl/tls.h: Include <dl-dtv.h>.
14582         (dtv_t): Remove.
14583         * sysdeps/x86_64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14584         * sysdeps/x86_64/nptl/tls.h: Include <dl-dtv.h>.
14585         (dtv_t): Remove.
14586
14587 2016-06-20  Florian Weimer  <fweimer@redhat.com>
14588
14589         Revert symbol poisoning of  __malloc_initialize_hook.
14590         * include/stdc-predef.h (__malloc_initialize_hook): Remove
14591         poisoning.
14592         * malloc/Makefile: Remove un-poisoning.
14593         * malloc/arena.c (ptmalloc_init): Use __malloc_initialize_hook
14594         instead of old__malloc_initialize_hook.
14595         * malloc/malloc-hooks.h: Likewise.
14596         * malloc/malloc.c: Likewise.
14597         * malloc/mcheck-init.c: Likewise.
14598
14599 2016-06-19  Carlos O'Donell  <carlos@redhat.com>
14600
14601         * sysdeps/unix/sysv/linux/times.c (__times): Expand comments.
14602
14603 2016-06-18  Aurelien Jarno  <aurelien@aurel32.net>
14604
14605         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Conditionalize
14606         hidden_def, weak_alias and strong_alias on [IS_IN (libc)].
14607         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
14608         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
14609
14610 2016-06-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
14611
14612         * NEWS: Mention addition of nextup and nextdown.
14613         * manual/arith.texi: Document nextup and nextdown.
14614         * manual/libm-err-tab.pl: Add nextup and nextdown.
14615         * math/Makefile (libm-calls): Add s_nextdown and s_nextup.
14616         * math/Versions (libm): Add GLIBC_2.24.
14617         * math/bits/mathcalls.h: Add nextup and nextdown declaration.
14618         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
14619         Add new test.
14620         (nextafter_test_data) [TEST_COND_binary32]: Likewise.
14621         (nextafter_test_data) [TEST_COND_m68k96]: Likewise.
14622         (nextafter_test_data) [TEST_COND_binary64]: Likewise.
14623         (nextafter_test_data) [TEST_COND_binary128]: Likewise.
14624         (nextup_test_data): Likewise.
14625         (nextdown_test_data): Likewise.
14626         * math/s_nextdown.c: New file.
14627         * math/s_nextdownf.c: Likewise.
14628         * math/s_nextdownl.c: Likewise.
14629         * math/test-tgmath.c F(compile_test)): Add nextup and nextdown tests.
14630         F(nextup): New function.
14631         F(nextdown): Likewise.
14632         * math/tgmath.h: Add nextup and nextdown.
14633         * sysdeps/ieee754/flt-32/s_nextupf.c: New file.
14634         * sysdeps/ieee754/dbl-64/s_nextup.c: Likewise.
14635         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
14636         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
14637         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
14638         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls):
14639         Add nextup and nextdown.
14640         (CFLAGS-nldbl-nextup.c): New variable.
14641         (CFLAGS-nldbl-nextdown.c): Likewise.
14642         * sysdeps/ieee754/ldbl-opt/nldbl-nextdown.c: New file.
14643         * sysdeps/ieee754/ldbl-opt/nldbl-nextup.c: Likewise.
14644         * sysdeps/nacl/libm.abilist: Update.
14645         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14646         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14647         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14648         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14649         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14650         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14651         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14652         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14653         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14654         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14655         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14656         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14657         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14658         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
14659         Likewise.
14660         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14661         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14662         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14663         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14664         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14665         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14666         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14667         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Likewise.
14668         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: Likewise.
14669         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
14670         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14671         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
14672         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14673
14674 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14675
14676         * manual/pattern.texi: Fix typos & grammar errors.
14677
14678 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14679
14680         * manual/search.texi: Fix typos & grammar errors.
14681
14682 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14683
14684         * manual/message.texi: Fix typos & grammar errors.
14685
14686 2016-06-16  Mike Frysinger  <vapier@gentoo.org>
14687
14688         * manual/contrib.texi: Fix spelling typos.
14689         * manual/crypt.texi: Likewise.
14690         * manual/filesys.texi: Likewise.
14691         * manual/locale.texi: Likewise.
14692         * manual/message.texi: Likewise.
14693         * manual/nss.texi: Likewise.
14694         * manual/string.texi: Likewise.
14695
14696 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14697
14698         * manual/locale.texi: Fix typos & grammar errors.
14699
14700 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14701
14702         * manual/charset.texi: Fix typos & grammar errors.
14703
14704 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14705
14706         * manual/string.texi: Fix typos.
14707
14708 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14709
14710         * manual/ctype.texi: Fix typos.
14711
14712 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14713
14714         * manual/memory.texi: Fix various typos & grammar errors.
14715
14716 2016-06-14  Joseph Myers  <joseph@codesourcery.com>
14717
14718         [BZ #20255]
14719         * sysdeps/i386/fpu/s_fdim.c: New file.  Based on math/s_fdim.c.
14720         * math/libm-test.inc (fdim_test_data): Add another test.
14721
14722         [BZ #6796]
14723         [BZ #20255]
14724         [BZ #20256]
14725         * math/s_fdim.c: Include <math_private.h>.
14726         (__fdim): Use math_narrow_eval on result.
14727         * math/s_fdimf.c: Include <math_private.h>.
14728         (__fdimf): Use math_narrow_eval on result.
14729         * sysdeps/i386/fpu/s_fdim.S: Remove file.
14730         * sysdeps/i386/fpu/s_fdimf.S: Likewise.
14731         * sysdeps/i386/fpu/s_fdiml.S: Likewise.
14732         * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
14733         * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
14734         * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
14735         * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
14736         * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
14737         * sysdeps/powerpc/powerpc32/fpu/s_fdim.c: Likewise.
14738         * sysdeps/powerpc/powerpc64/fpu/s_fdim.c: Likewise.
14739         * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
14740         * math/libm-test.inc (fdim_test_data): Expect errno setting on
14741         overflow.  Add sNaN tests.
14742
14743         * math/s_fdim.c (__fdim): Use islessequal and isinf instead of
14744         fpclassify.
14745         * math/s_fdimf.c (__fdimf): Likewise.
14746         * math/s_fdiml.c (__fdiml): Likewise.
14747
14748 2016-06-14  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
14749
14750         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
14751         (sysdep_routines): Add P8 and PPC64 strcasecmp/strncasecmp targets.
14752         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
14753         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
14754         ifunc'ed strcasecmp/strncasecmp.
14755         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S:
14756         [EALIGN]: Removed.
14757         [END]: Likewise.
14758         [__strcasecmp]: Define instead of the above to control symbol name.
14759         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Add IFUNC selector
14760         for __strcasecmp_power8.
14761         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Add IFUNC selector
14762         for __strncasecmp_power8.
14763         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: New File.
14764         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-ppc64.c: Likewise.
14765         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
14766         * sysdeps/powerpc/powerpc64/multiarch/strncase-ppc64.c: Likewise.
14767         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Likewise.
14768         * sysdeps/powerpc/powerpc64/power8/strncase.S: Likewise.
14769
14770 2016-06-13  Joseph Myers  <joseph@codesourcery.com>
14771
14772         [BZ #20252]
14773         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Add both
14774         arguments when second argument is a NaN.
14775         * math/libm-test.inc (atan2_test_data): Add sNaN tests and more
14776         qNaN tests.
14777
14778         * math/libm-test.inc (cimag_test_data): Add sNaN tests.
14779         (conj_test_data): Likewise.
14780         (copysign_test_data): Likewise.
14781         (creal_test_data): Likewise.
14782         (fma_test_data): Likewise.
14783         (fmod_test_data): Likewise.
14784
14785         [BZ #20250]
14786         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Add non-finite input to
14787         itself.
14788         * sysdeps/ieee754/dbl-64/s_frexp.c (__frexp): Add non-finite or
14789         zero input to itself.
14790         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp):
14791         Likewise.
14792         * sysdeps/ieee754/flt-32/s_frexpf.c (__frexpf): Likewise.
14793         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
14794         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
14795         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
14796         * math/libm-test.inc (frexp_test_data): Add sNaN tests.
14797
14798 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14799
14800         * nptl/Makefile (test): Add tst-cancel4_1 and tst-cancel4_2.
14801         * nptl/tst-cancel4-common.c: New file.
14802         * nptl/tst-cancel4-common.h: Likewise.
14803         * nptl/tst-cancel4.c: Move common definitions to
14804         tst-cancel4-common.{c,h} file.
14805         * nptl/tst-cancel4_1.c: New test.
14806         * nptl/tst-cancel4_2.c: New test.
14807
14808 2016-06-13  Florian Weimer  <fweimer@redhat.com>
14809
14810         [BZ #20248]
14811         * debug/tst-longjmp_chk2.c (pass): Use volatile sig_atomic_t.
14812         (write_message): New function.
14813         (stackoverflow_handler): Call it instead of printf, to avoid
14814         excessive stack usage by printf.
14815         (do_test): Restore SIGSEGV, SIGBUS default handlers.
14816
14817 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14818
14819         * nptl/pthread_mutex_init.c [__ASSUME_FUTEX_LOCK_PI]
14820         (prio_inherit_missing): Remove define.
14821         * sysdeps/unix/sysv/linux/arm/kernel-features.h
14822         (__ASSUME_FUTEX_LOCK_PI): Likewise.
14823         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FUTEX_LOCK_PI):
14824         Likewise.
14825         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
14826         (__ASSUME_FUTEX_LOCK_PI): Likewise.
14827         * sysdeps/unix/sysv/linux/mips/kernel-features.h
14828         (__ASSUME_FUTEX_LOCK_PI): Likewise.
14829         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
14830         (__ASSUME_FUTEX_LOCK_PI): Likewise.
14831
14832 2016-06-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
14833
14834         [BZ #19670]
14835         [BZ #19672]
14836
14837         * io/test-lfs.c (do_prepare): Use xmalloc.
14838         * io/tst-fcntl.c (do_prepare): Likewise.
14839         * libio/tst-fopenloc.c (do_bz17916): Likewise.
14840         * libio/tst-mmap2-eofsync.c (do_prepare): Likewise.
14841         * login/tst-utmp.c (do_prepare): Likewise.
14842         * posix/tst-exec.c (do_prepare): Likewise.
14843         * posix/tst-pathconf.c (prepare): Likewise.
14844         * posix/tst-spawn.c (do_prepare): Likewise.
14845         * posix/tst-truncate.c (do_prepare): Likewise.
14846         * rt/tst-aio.c (do_prepare): Likewise.
14847         * rt/tst-aio64.c (do_prepare): Likewise.
14848
14849 2016-06-11  Florian Weimer  <fweimer@redhat.com>
14850
14851         [BZ #20237]
14852         * nss/nss_db/db-XXX.c (set*ent): Reset entidx to NULL.
14853         (get*ent): Set entidx to NULL during initialization.  If entidx is
14854         NULL, start iteration from the beginning.
14855
14856 2016-06-11  Florian Weimer  <fweimer@redhat.com>
14857
14858         * malloc/malloc.c (musable): Return correct size for dumped fake
14859         mmapped chunk.
14860
14861 2016-06-11  Florian Weimer  <fweimer@redhat.com>
14862
14863         [BZ #20222]
14864         * libio/iofopncook.c (_IO_cookie_read): Demangle callback pointer.
14865         (_IO_cookie_write): Likewise.
14866         (_IO_cookie_seek): Likewise.
14867         (_IO_cookie_close): Likewise.
14868         (_IO_old_cookie_seek): Likewise.
14869         (set_callbacks): New function.
14870         (_IO_cookie_init): Call set_callbacks to copy callbacks.
14871
14872 2016-06-11  Marko Myllynen  <myllynen@redhat.com>
14873
14874         * locale/programs/localedef.c (oldstyle_tables): Remove.
14875         * locale/programs/localedef.h (oldstyle_tables): Likewise.
14876
14877 2016-06-10  Joseph Myers  <joseph@codesourcery.com>
14878
14879         [BZ #20240]
14880         * math/Makefile (CFLAGS-s_modf.c): New variable.
14881         (CFLAGS-s_modff.c): Likewise.
14882         (CFLAGS-s_modfl.c): Likewise.
14883         * math/libm-test.inc (modf_test_data): Add sNaN tests.
14884
14885 2016-06-09  Carlos O'Donell  <carlos@redhat.com>
14886
14887         [BZ #20215]
14888         * misc/sys/cdefs.h [__GNUC_PREREQ (3,2)]: Undef __always_inline first.
14889         [!__GNUC_PREREQ (3,2)]: Likewise.
14890
14891 2016-06-10  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
14892
14893         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Add xfail-.
14894         (msghdr.msg_controllen): Likewise.
14895         (cmsghdr.cmsg_len): Likewise.
14896         * nptl/Makefile (libpthread-routines): Remove ptw-oldrecvmsg and
14897         ptw-oldsendmsg.
14898         (CFLAGS-oldrecvmsg.c): Remove rule.
14899         (CFLAGS-oldsendmsg.c): Likewise.
14900         (CFLAGS-recvmsg.c): Add rule.
14901         (CFLAGS-sendmsg.c): Likewise.
14902         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
14903         oldrecvmsg, oldsendmsg, oldrecvmmsg, oldsendmmsg.
14904         (CFLAGS-recvmsg.c): Remove rule.
14905         (CFLAGS-sendmsg.c): Likewise.
14906         (CFLAGS-oldrecvmsg.c): Likewise.
14907         (CFLAGS-oldsendmsg.c): Likewise.
14908         (CFLAGS-recvmmsg.c): Likewise.
14909         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Revert
14910         to kernel defined interfaces.
14911         (msghdr.msg_controllen): Likewise.
14912         (cmsghdr.cmsg_len): Likewise.
14913         (msghdr.__glibc_reserved1): Remove member.
14914         (msghdr.__glibc_reserved2): Likewise.
14915         (cmsghdr.__glibc_reserved1): Likewise.
14916         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: Remove file.
14917         * sysdeps/unix/sysv/linux/oldrecvmsg.c: Likewise.
14918         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
14919         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
14920         * sysdeps/unix/sysv/linux/recvmmsg.c: Revert back to previous
14921         version.
14922         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
14923         * sysdeps/unix/sysv/linux/sendmmsg.c: Likewise.
14924         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
14925         * sysdeps/unix/sysv/linux/aarch64/Versions [libc] (GLIBC_2.24):
14926         Remove recvmsg and sendmsg.
14927         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24):
14928         Likewise.
14929         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
14930         Likewise.
14931         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
14932         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
14933         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
14934         Likewise.
14935         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
14936         Likewise.
14937         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions
14938         [libc] (GLIBC_2.24): Likewise.
14939         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
14940         Likewise.
14941         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
14942         Likewise.
14943         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
14944         [libc] (GLIBC_2.24): Likewise.
14945         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
14946         Likewise.
14947         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
14948         Likewise.
14949         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
14950         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
14951         Likewise.
14952         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
14953         Likewise.
14954         * sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
14955         Likewise.
14956         * sysdeps/unix/sysv/linux/x86_64/Versions [libc] (GLIBC_2.24):
14957         Likewise.
14958         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions: Remove file
14959         * sysdeps/unix/sysv/linux/x86_64/64/Versions: Likewise.
14960         * sysdeps/unix/sysv/linux/mips/mips64/n64/Versions: Likewise.
14961         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Remove new 2.24
14962         version for {recv,send,recm,sendm}msg.
14963         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14964         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
14965         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
14966         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14967         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14968         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14969         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
14970         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
14971         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
14972         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
14973         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14974         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14975         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
14976         Likewise.
14977         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
14978         Likewise.
14979         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
14980         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
14981         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14982         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14983         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
14984         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
14985         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14986         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14987         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
14988         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
14989         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
14990         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14991         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14992
14993 2016-06-10  Florian Weimer  <fweimer@redhat.com>
14994
14995         [BZ #19564]
14996         Remove __malloc_initialize_hook from the API.
14997         * malloc/malloc.h (__malloc_initialize_hook): Remove.
14998         * include/stdc-predef.h (__malloc_initialize_hook): Poison with
14999         #pragma GCC poison.
15000         * malloc/malloc-hooks.h: New file.
15001         * malloc/arena.c (ptmalloc_init): Use old__malloc_initialize_hook.
15002         * malloc/malloc.c (HAVE_MALLOC_INIT_HOOK): New.
15003         (old__malloc_initialize_hook): Rename from
15004         __malloc_initialize_hook to evade poisoning.  Turn into compat
15005         symbol.
15006         * malloc/mcheck-init.c (old__malloc_initialize_hook): Rename from
15007         __malloc_initialize_hook.
15008         * malloc/Makefile (poisoned_apis, unpoisoned_api_defines): New.
15009         (mallo.c, mcheck-init.c): Compile with unpoisoned symbol.
15010         * manual/memory.texi (Hooks for Malloc): Remove
15011         __malloc_initialize_hook.  Adjust hook example.
15012
15013 2016-06-09  Joseph Myers  <joseph@codesourcery.com>
15014
15015         [BZ #20235]
15016         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Add NaN input to
15017         itself.
15018         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
15019         * math/libm-test.inc (log2_test_data): Add sNaN tests.
15020
15021         [BZ #20234]
15022         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Add positive
15023         infinity or NaN input to itself.
15024
15025         [BZ #20233]
15026         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Add NaN input
15027         to itself.
15028
15029         [BZ #20232]
15030         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add NaN input to
15031         itself.
15032
15033 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
15034
15035         * sysdeps/x86_64/start.S (_start): Always indirect branch to
15036         __libc_start_main via GOT.
15037
15038 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
15039
15040         * sysdeps/x86_64/memcopy.h: New file.
15041         * sysdeps/x86_64/wordcopy.c: Likewise.
15042
15043 2016-06-09  Florian Weimer  <fweimer@redhat.com>
15044
15045         Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h.
15046         * stdlib/tst-quick_exit.cc: Include <stdlib.h> instead of
15047         <cstdlib>.
15048         (optimization_barrier): New.
15049         (do_test): Use it.  Call quick_exit in the global namespace.
15050         * stdlib/tst-thread-quick_exit.cc: Include <stdlib.h>, <pthread.h>
15051         instead of <cstdlib>, <thread>.
15052         (optimization_barrier): New.
15053         (non_main_thread): Adjust declaration.  Call optimization_barrier.
15054         Call quick_exit in the global namespace.
15055         (do_test): Call optimization_barrier.  Use pthread_create,
15056         pthread_join instead of std::thread.
15057
15058 2016-06-09  Andreas Schwab  <schwab@suse.de>
15059
15060         [BZ #19755]
15061         * nscd/pwdcache.c (cache_addpw): Lock prune_run_lock while adding
15062         new entries in auto-propagate mode.
15063         * nscd/grpcache.c (cache_addgr): Likewise.
15064
15065 2016-06-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
15066
15067         * test-skeleton.c (oom_error, xmalloc, xcalloc, xrealloc):
15068         New functions.
15069         (add_temp_file): Use them.
15070
15071 2016-06-09  Samuel Thibault  <samuel.thibault@ens-lyon.org
15072
15073         * mach/mach/mach_traps.h (mach_print): Add syscall declaration.
15074
15075 2016-06-08  Joseph Myers  <joseph@codesourcery.com>
15076
15077         [BZ #20229]
15078         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Add NaN input to itself.
15079         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
15080         * math/libm-test.inc (log1p_test_data): Add sNaN tests.
15081
15082         [BZ #20228]
15083         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Add NaN input to
15084         itself.
15085         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Likewise.
15086         * math/libm-test.inc (log10_test_data): Add sNaN tests.
15087
15088         [BZ #20227]
15089         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Add NaN input to
15090         itself.
15091         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
15092         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
15093         * math/libm-test.inc (log_test_data): Add sNaN tests.
15094
15095         [BZ #20226]
15096         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Add NaN argument to
15097         itself.
15098         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
15099         * math/libm-test.inc (exp_test_data): Add sNaN tests.
15100         (exp10_test_data): Likewise.
15101         (expm1_test_data): Likewise.
15102
15103         [BZ #20225]
15104         * math/s_ldexp.c (__ldexp): Add non-finite or zero argument to
15105         itself.
15106         * math/s_ldexpf.c (__ldexpf): Likewise.
15107         * math/s_ldexpl.c (__ldexpl): Likewise.
15108         * math/w_scalbln.c (__w_scalbln): Likewise.
15109         * math/w_scalblnf.c (__w_scalblnf): Likewise.
15110         * math/w_scalblnl.c (__w_scalblnl): Likewise.
15111         * math/libm-test.inc (scalbn_test_data): Add sNaN tests.
15112         (scalbln_test_data): Likewise.
15113
15114         [BZ #20224]
15115         * sysdeps/i386/fpu/s_cbrtl.S (__cbrtl): Add non-finite or zero
15116         argument to itself.
15117         * math/libm-test.inc (cbrt_test_data): Add sNaN tests.
15118
15119 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
15120
15121         [BZ #19776]
15122         * sysdeps/x86_64/memcpy.S: Make it dummy.
15123         * sysdeps/x86_64/mempcpy.S: Likewise.
15124         * sysdeps/x86_64/memmove.S: New file.
15125         * sysdeps/x86_64/memmove_chk.S: Likewise.
15126         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
15127         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
15128         * sysdeps/x86_64/memmove.c: Removed.
15129         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
15130         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
15131         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: Likewise.
15132         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
15133         Likewise.
15134         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
15135         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
15136         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
15137         memcpy-sse2-unaligned, memmove-avx-unaligned,
15138         memcpy-avx-unaligned and memmove-sse2-unaligned-erms.
15139         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
15140         (__libc_ifunc_impl_list): Replace
15141         __memmove_chk_avx512_unaligned_2 with
15142         __memmove_chk_avx512_unaligned.  Remove
15143         __memmove_chk_avx_unaligned_2.  Replace
15144         __memmove_chk_sse2_unaligned_2 with
15145         __memmove_chk_sse2_unaligned.  Remove __memmove_chk_sse2 and
15146         __memmove_avx_unaligned_2.  Replace __memmove_avx512_unaligned_2
15147         with __memmove_avx512_unaligned.  Replace
15148         __memmove_sse2_unaligned_2 with __memmove_sse2_unaligned.
15149         Remove __memmove_sse2.  Replace __memcpy_chk_avx512_unaligned_2
15150         with __memcpy_chk_avx512_unaligned.  Remove
15151         __memcpy_chk_avx_unaligned_2.  Replace
15152         __memcpy_chk_sse2_unaligned_2 with __memcpy_chk_sse2_unaligned.
15153         Remove __memcpy_chk_sse2.  Remove __memcpy_avx_unaligned_2.
15154         Replace __memcpy_avx512_unaligned_2 with
15155         __memcpy_avx512_unaligned.  Remove __memcpy_sse2_unaligned_2
15156         and __memcpy_sse2.  Replace __mempcpy_chk_avx512_unaligned_2
15157         with __mempcpy_chk_avx512_unaligned.  Remove
15158         __mempcpy_chk_avx_unaligned_2.  Replace
15159         __mempcpy_chk_sse2_unaligned_2 with
15160         __mempcpy_chk_sse2_unaligned.  Remove __mempcpy_chk_sse2.
15161         Replace __mempcpy_avx512_unaligned_2 with
15162         __mempcpy_avx512_unaligned.  Remove __mempcpy_avx_unaligned_2.
15163         Replace __mempcpy_sse2_unaligned_2 with
15164         __mempcpy_sse2_unaligned.  Remove __mempcpy_sse2.
15165         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Support
15166         __memcpy_avx512_unaligned_erms and __memcpy_avx512_unaligned.
15167         Use __memcpy_avx_unaligned_erms and __memcpy_sse2_unaligned_erms
15168         if processor has ERMS.  Default to __memcpy_sse2_unaligned.
15169         (ENTRY): Removed.
15170         (END): Likewise.
15171         (ENTRY_CHK): Likewise.
15172         (libc_hidden_builtin_def): Likewise.
15173         Don't include ../memcpy.S.
15174         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Support
15175         __memcpy_chk_avx512_unaligned_erms and
15176         __memcpy_chk_avx512_unaligned.  Use
15177         __memcpy_chk_avx_unaligned_erms and
15178         __memcpy_chk_sse2_unaligned_erms if if processor has ERMS.
15179         Default to __memcpy_chk_sse2_unaligned.
15180         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
15181         Change function suffix from unaligned_2 to unaligned.
15182         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Support
15183         __mempcpy_avx512_unaligned_erms and __mempcpy_avx512_unaligned.
15184         Use __mempcpy_avx_unaligned_erms and __mempcpy_sse2_unaligned_erms
15185         if processor has ERMS.  Default to __mempcpy_sse2_unaligned.
15186         (ENTRY): Removed.
15187         (END): Likewise.
15188         (ENTRY_CHK): Likewise.
15189         (libc_hidden_builtin_def): Likewise.
15190         Don't include ../mempcpy.S.
15191         (mempcpy): New.  Add a weak alias.
15192         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Support
15193         __mempcpy_chk_avx512_unaligned_erms and
15194         __mempcpy_chk_avx512_unaligned.  Use
15195         __mempcpy_chk_avx_unaligned_erms and
15196         __mempcpy_chk_sse2_unaligned_erms if if processor has ERMS.
15197         Default to __mempcpy_chk_sse2_unaligned.
15198
15199 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
15200
15201         [BZ #19881]
15202         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Folded
15203         into ...
15204         * sysdeps/x86_64/memset.S: This.
15205         (__bzero): Removed.
15206         (__memset_tail): Likewise.
15207         (__memset_chk): Likewise.
15208         (memset): Likewise.
15209         (MEMSET_CHK_SYMBOL): New. Define only if MEMSET_SYMBOL isn't
15210         defined.
15211         (MEMSET_SYMBOL): Define only if MEMSET_SYMBOL isn't defined.
15212         * sysdeps/x86_64/multiarch/memset-avx2.S: Removed.
15213         (__memset_zero_constant_len_parameter): Check SHARED instead of
15214         PIC.
15215         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
15216         memset-avx2 and memset-sse2-unaligned-erms.
15217         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
15218         (__libc_ifunc_impl_list): Remove __memset_chk_sse2,
15219         __memset_chk_avx2, __memset_sse2 and __memset_avx2_unaligned.
15220         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
15221         (__bzero): Enabled.
15222         * sysdeps/x86_64/multiarch/memset.S (memset): Replace
15223         __memset_sse2 and __memset_avx2 with __memset_sse2_unaligned
15224         and __memset_avx2_unaligned.  Use __memset_sse2_unaligned_erms
15225         or __memset_avx2_unaligned_erms if processor has ERMS.  Support
15226         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
15227         (memset): Removed.
15228         (__memset_chk): Likewise.
15229         (MEMSET_SYMBOL): New.
15230         (libc_hidden_builtin_def): Replace __memset_sse2 with
15231         __memset_sse2_unaligned.
15232         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk): Replace
15233         __memset_chk_sse2 and __memset_chk_avx2 with
15234         __memset_chk_sse2_unaligned and __memset_chk_avx2_unaligned_erms.
15235         Use __memset_chk_sse2_unaligned_erms or
15236         __memset_chk_avx2_unaligned_erms if processor has ERMS.  Support
15237         __memset_chk_avx512_unaligned_erms and
15238         __memset_chk_avx512_unaligned.
15239
15240 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15241
15242         * math/gen-auto-libm-test.c (fp_format_desc): remove
15243         suffix member.
15244         (output_generic_value): Remove usage of suffix member,
15245         and the resulting unuse of the fp_format argument.
15246         (output_for_one_input_case): Remove unused fp_format
15247         parameter.
15248
15249         * math/auto-libm-test-out: Regenerate.
15250
15251         * math/libm-test.inc (TEST_COND_ldbl_128ibm): replace
15252         usage with TEST_COND_ibm128.
15253         (TEST_COND_flt_32): Remove.
15254         (TEST_COND_dbl_64): Remove.
15255         (TEST_COND_ldbl_96_intel): Remove.
15256         (TEST_COND_ldbl_96_m68k): Remove.
15257         (TEST_COND_ldbl_128): Remove.
15258
15259 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15260
15261         * auto-libm-test-in:
15262         Replace flt-32 usage with binary32.
15263         Replace dbl-64 usage with binary64.
15264         Replace ldbl-intel-96 usage with intel96.
15265         Replace ldbl-m68k-96 usage with m68k96.
15266         Replace ldbl-128ibm usage with ibm128.
15267         Replace ldbl-128 usage with binary128.
15268
15269         * auto-libm-test-out: Regenerate.
15270
15271 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15272
15273         * math/gen-libm-test.pl (all_floats_pfx): New lookup table.
15274         (parse_ulps): Dynamically generate type name matching
15275         string from all_floats.
15276         (get_ulps): Generate the ulps as an array instead.
15277         (output_ulps): Dynamically compose the type based
15278         on the number of supported formats, and print
15279         the indices as type specific helper macros.
15280
15281         * math/libm-test.inc: Remove comment about CHOOSE.
15282         (ulp_data): Generate the type in libm-test-ulps.h.
15283         (ULP_IDX): New macro.
15284         (find_ulps): Update usage of max_ulp.
15285
15286         * math/test-double-vlen2.h (CHOOSE): Remove.
15287         * math/test-double-vlen4.h (CHOOSE): Likewise.
15288         * math/test-double-vlen8.h (CHOOSE): Likewise.
15289         * math/test-float.c (CHOOSE): Likewise.
15290         * math/test-float-finite.c (CHOOSE): Likewise.
15291         * math/test-double.c (CHOOSE): Likewise.
15292         * math/test-double-finite.c (CHOOSE): Likewise.
15293         * math/test-idouble.c (CHOOSE): Likewise.
15294         * math/test-ifloat.c (CHOOSE): Likewise.
15295         * math/test-ildoubl.c (CHOOSE): Likewise.
15296         * math/test-ldouble-finite.c (CHOOSE): Likewise.
15297         * math/test-ldouble.c (CHOOSE): Likewise.
15298
15299         * math/test-float.h (TEST_FLOAT): Remove.
15300         * math/test-double.h (TEST_DOUBLE): Likewise.
15301         * math/test-ldouble.h (TEST_LDOUBLE): Likewise.
15302
15303 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15304
15305         * math/gen-libm-test.pl: (apply_lit): New subroutine.
15306         (parse_args): Strip C suffix from floating point literals
15307         typed with 'f' and wrap them with LIT().
15308
15309         * math/libm-tests.inc (RUN_TEST_LOOP_fj_f): New macro.
15310         (test_ff_f_data_nexttoward): Rename to
15311         (test_fj_f_data): New struct.
15312         (nexttoward_test_data): Relabel tests as
15313         TEST_fj_f instead of TEST_ff_f.
15314
15315 2016-06-08  Florian Weimer  <fweimer@redhat.com>
15316
15317         Emacs bug 23726.
15318         * malloc/malloc.c (dumped_main_arena_start): Update comment.
15319         (__libc_realloc): Correct size computation for dumped fake mmapped
15320         chunks.
15321
15322 2016-06-07  Joseph Myers  <joseph@codesourcery.com>
15323
15324         [BZ #20219]
15325         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): Add NaN argument
15326         to itself.
15327         * math/libm-test.inc (atanh_test_data): Add sNaN tests.
15328
15329         [BZ #20218]
15330         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Add non-finite argument
15331         to itself.
15332         * math/libm-test.inc (asinh_test_data): Add sNaN tests.
15333
15334 2016-06-07  H.J. Lu  <hongjiu.lu@intel.com>
15335
15336         [BZ #20195]
15337         * sysdeps/x86/cpu-features.c (get_common_indeces): Move FMA4
15338         check to ...
15339         (init_cpu_features): Here.
15340
15341 2016-06-07  Carlos O'Donell  <carlos@redhat.com>
15342
15343         [BZ #20214]
15344         * sysdeps/unix/sysv/linux/bits/in.h
15345         [defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
15346          || defined _LINUX_IN6_H || defined _IPV6_H] (__USE_KERNEL_IPV6_DEFS):
15347         Define to 1.
15348         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
15349          || defined _LINUX_IN6_H || defined _IPV6_H)] (__USE_KERNEL_IPV6_DEFS):
15350         Define to 0.
15351         [!__USE_KERNEL_IPV6_DEFS] (IPV6_ADD_MEMBERSHIP): Define.
15352         [!__USE_KERNEL_IPV6_DEFS] (IPV6_DROP_MEMBERSHIP): Define.
15353
15354 2016-06-06  Carlos O'Donell  <carlos@redhat.com>
15355
15356         [BZ #20198]
15357         * stdlib/Makefile (tests): Add tst-quick_exit, and
15358         tst-thread-quick_exit.
15359         [ifeq ($(have-cxx-thread_local),yes)]
15360         (CFLAGS-tst-quick_exit.o): Use -stdc=c++11.
15361         (CFLAGS-tst-thread-quick_exit.o): Likewise.
15362         (LDLIBS-tst-quick_exit): Use -lstdc++ for C++ program.
15363         (LDLIBS-tst-thread-quick_exit): Likewise.
15364         [ifneq ($(have-cxx-thread_local),yes)]
15365         (tests-unsupported): Add tst-quick_exit, and tst-thread-quick_exit.
15366         * stdlib/exit.c (__run_exit_handlers): Add run_dtors argument.
15367         If run_dtors is true call __call_tls_dtors.
15368         (exit): Call __run_exit_handlers with run_dtors set to true.
15369         * stdlib/exit.h: Add run_dtors argument to __run_exit_handlers
15370         definition.
15371         * stdlib/quick_exit.c (quick_exit): Remove function.
15372         (__new_quick_exit): New function.
15373         [SHLIB_COMPAT(libc, GLIBC_2_10, GLIBC_2_24)] (__old_quick_exit): New
15374         function.
15375         * stdlib/tst-quick_exit.cc: New file.
15376         * stdlib/tst-thread-quick_exit.cc: New file.
15377         * stdlib/Versions: Add quick_exit@GLIBC_2.24.
15378         * sysdeps/arm/nacl/libc.abilist: Add 'GLIBC_2.24 quick_exit F'.
15379         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise
15380         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise
15381         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise
15382         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise
15383         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise
15384         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise
15385         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise
15386         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise
15387         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise
15388         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise
15389         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise
15390         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise
15391         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise
15392         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
15393         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise
15394         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise
15395         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise
15396         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise
15397         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise
15398         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise
15399         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise
15400         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise
15401         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise
15402         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise
15403         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise
15404         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise
15405         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise
15406         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise
15407
15408 2016-06-06  H.J. Lu  <hongjiu.lu@intel.com>
15409
15410         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Fix
15411         a typo in comments.
15412
15413 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
15414
15415         [BZ #20213]
15416         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Add NaN
15417         argument to itself.
15418         * math/libm-test.inc (asin_test_data): Add sNaN tests.
15419
15420 2016-06-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15421
15422         * misc/Makefile (CFLAGS-pwritev.c): New variable: add cancellation
15423         required flags.
15424         (CFLAGS-pwritev64.c): Likewise.
15425         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Remove file.
15426         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
15427         * sysdeps/unix/sysv/linux/mips/mips64/n64/pwritev64.c: Likewise.
15428         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
15429         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.: Likewise.
15430         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (pwritev): Remove
15431         syscall from auto-generation.
15432         * sysdeps/unix/sysv/linux/pwritev.c: Rewrite implementation.
15433         [WORDSIZE == 64] (pwritev64): Remove macro.
15434         [!PWRITEV] (PWRITEV): Likewise.
15435         [!PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
15436         [!PWRITEV] (PWRITE): Likewise.
15437         [!PWRITEV] (OFF_T): Likewise.
15438         [!__ASSUME_PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
15439         (LO_HI_LONG): Remove macro.
15440         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Add function.
15441         * sysdeps/unix/sysv/linux/pwritev64.c: Rewrite implementation.
15442         (PWRITEV): Remove macro.
15443         (PWRITEV_REPLACEMENTE): Likewise.
15444         (PWRITE): Likewise.
15445         (OFF_T): Likewise.
15446         (pwritev64): New function.
15447         * nptl/tst-cancel4.c (tf_writev): Add test.
15448
15449         * misc/Makefile (CFLAGS-preadv.c): New variable: add cancellation
15450         required flags.
15451         (CFLAGS-preadv64.c): Likewise.
15452         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Remove file.
15453         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
15454         * sysdeps/unix/sysv/linux/mips/mips64/n64/preadv64.c: Likewise.
15455         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: Likewise.
15456         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.: Likewise.
15457         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (preadv): Remove
15458         syscall from auto-generation.
15459         * sysdeps/unix/sysv/linux/preadv.c: Rewrite implementation.
15460         [WORDSIZE == 64] (preadv64): Remove macro.
15461         [!PREADV] (PREADV): Likewise.
15462         [!PREADV] (PREADV_REPLACEMENT): Likewise.
15463         [!PREADV] (PREAD): Likewise.
15464         [!PREADV] (OFF_T): Likewise.
15465         [!__ASSUME_PREADV] (PREADV_REPLACEMENT): Likewise.
15466         (LO_HI_LONG): Remove macro.
15467         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Add function.
15468         * sysdeps/unix/sysv/linux/preadv64.c: Rewrite implementation.
15469         (PREADV): Remove macro.
15470         (PREADV_REPLACEMENTE): Likewise.
15471         (PREAD): Likewise.
15472         (OFF_T): Likewise.
15473         (preadv64): New function.
15474         * nptl/tst-cancel4.c (tf_preadv): Add test.
15475
15476 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
15477
15478         [BZ #20212]
15479         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_acos): Add NaN
15480         argument to itself.
15481         * math/libm-test.inc (acos_test_data): Add sNaN tests.
15482
15483 2016-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
15484
15485         * sysdeps/powerpc/powerpc64/power8/strcasestr.S (__strcasestr):
15486         New symbol defined as libc_hidden_def.
15487         (strcasestr): Became a weak alias to __strcasestr.
15488         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Handle memset calls
15489         according to multi-arch support.  Move __stpncpy hidden
15490         definition from here to...
15491         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: ...here.  Add
15492         symbol stpncpy.
15493         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Undefine
15494         libc_hidden_builtin_def.
15495         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Specify which
15496         memset symbol to use when multi-arch support is available.
15497
15498 2016-06-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
15499
15500         * dlfcn/tst-rec-dlopen.c: Include string.h.
15501
15502 2016-06-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
15503
15504         * manual/install.texi: Remove mention of --without-tls
15505         * INSTALL: Regenerate.
15506
15507 2016-06-05  Florian Weimer  <fweimer@redhat.com>
15508
15509         * dlfcn/tst-rec-dlopen.c (custom_malloc_hook, old_malloc_hook):
15510         Remove.
15511         (call_function, interposed_malloc_called): New variables.
15512         (malloc): New function.
15513         (do_test): Do not change malloc hooks.  Initialize malloc.  Set
15514         and clear call_function as needed.
15515
15516 2016-06-04  Andreas Schwab  <schwab@linux-m68k.org>
15517
15518         * include/wchar.h (__wmemset): Use __typeof.
15519
15520 2016-06-03  Carlos O'Donell  <carlos@redhat.com>
15521
15522         * include/wchar.h (__wmemset): Declare function without typeof.
15523
15524 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
15525
15526         [BZ #20205]
15527         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Do not adjust
15528         exponent when incrementing negative subnormal with low mantissa
15529         word zero.
15530         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
15531         Add another test.
15532
15533 2016-06-03  Florian Weimer  <fweimer@redhat.com>
15534
15535         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf): Use
15536         __wmemset instead of wmemset.
15537
15538 2016-06-02  Carlos O'Donell  <carlos@redhat.com>
15539
15540         * sysdeps/unix/sysv/linux/bits/in.h [defined _UAPI_LINUX_IN6_H ||
15541         defined _UAPI_IPV6_H]: Define __USE_KERNEL_IPV6_DEFS to 1.
15542         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H)]: Define
15543         __USE_KERNEL_IPV6_DEFS to 0.
15544         * inet/netinet/in.h: Use '#if !__USE_KERNEL_IPV6_DEFS'.
15545         Update comment.
15546
15547 2016-06-01  Florian Weimer  <fweimer@redhat.com>
15548
15549         [BZ #19861]
15550         Do not use IFUNC resolver with potentially unrelocated symbol.
15551         * nptl/pt-fork.c [HAVE_IFUNC]: Remove.
15552         (DEFINE_FORK): Remove macro and inline definition.
15553         (fork_alias): Renamed from fork_ifunc.
15554         (__fork_alias): Renamed from __fork_ifunc.
15555
15556 2016-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
15557
15558         [BZ 19653]
15559         * inet/if_index.c (__protocol_available): Delete #if 0'd code.
15560         * inet/ruserpass.c (ruserpass): Delete #if 0'd code.
15561
15562 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15563
15564         * scripts/check-local-headers.sh (exclude): Add hurd/ihash.h, and
15565         include .*-.*/ in addition to .*-.*-.*/ (i.e. i386-gnu in addition to
15566         i386-linux-gnu).
15567         * sysdeps/mach/hurd/configure.ac (libc_cv_ld_gnu_indirect_function):
15568         Set to no.
15569         * sysdeps/mach/hurd/configure: Refresh.
15570
15571 2016-05-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15572
15573         [BZ #20178]
15574         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call _exit
15575         on failure instead of exit.
15576
15577 2016-05-30  Roland McGrath  <roland@hack.frob.com>
15578
15579         [BZ #3629]
15580         * manual/string.texi (Copying Strings and Arrays): stpcpy is part
15581         of POSIX.1-2008.
15582
15583 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15584
15585         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk) [PIC]:
15586           Use PLT entry for calling _hurd_self_sigstate.
15587
15588 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
15589
15590         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Count number of
15591         available logical processors with SMT level type sharing L2
15592         cache for Intel processors.
15593
15594 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
15595
15596         [BZ #20160]
15597         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Add NaN
15598         argument to itself before returning the result.
15599         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
15600         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
15601         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
15602         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
15603         Likewise.
15604         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
15605         Likewise.
15606         * sysdeps/powerpc/powerpc64/fpu/s_rint.S (__rint): Likewise.
15607         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S (__rintf): Likewise.
15608         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
15609         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
15610         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
15611         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
15612
15613         [BZ #20160]
15614         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Add NaN
15615         argument to itself before returning the result.
15616         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
15617         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
15618         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
15619         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint):
15620         Likewise.
15621         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
15622         Likewise.
15623         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
15624         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
15625         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
15626         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
15627         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
15628         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
15629
15630 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15631
15632         * libm-test.inc: Replace usage of M_El with
15633         (lit_e): New macro.
15634
15635 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15636
15637         * libm-test.inc: Replace usage of M_PI_4l with
15638         (lit_pi_4_d): New macro.
15639
15640 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15641
15642         * libm-test.inc: Replace usage of M_PIl with
15643         (lit_pi): New macro.
15644
15645 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15646
15647         * libm-test.inc: Replace usage of M_PI2l with
15648         (lit_pi_2_d): New macro.
15649
15650         * math/test-double.h (LITM): New macro.
15651         * math/test-float.h (LITM): Likewise.
15652         * math/test-ldouble.h (LITM): Likewise.
15653
15654 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15655
15656         * libm-test.inc (M_PI_34l): Rename to
15657         (lit_pi_3_m_4_d): New Macro.
15658         (M_PI_34_LOG10El): Rename to
15659         (lit_pi_3_m_4_ln10_m_d): New Macro.
15660         (M_PI2_LOG10El): Rename to
15661         (lit_pi_2_ln10_m_d):  New Macro.
15662         (M_PI4_LOG10El): Rename to
15663         (lit_pi_4_ln10_m_d):  New Macro.
15664         (M_PI_LOG10El): Rename to
15665         (lit_pi_ln10_d):  New Macro.
15666
15667 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
15668
15669         [BZ #20157]
15670         * sysdeps/powerpc/powerpc32/fpu/s_fabsl.S (__fabsl): Use fsel to
15671         determine whether to negate low half if [_ARCH_PPCGR], and integer
15672         comparison otherwise.
15673         * sysdeps/powerpc/powerpc64/fpu/s_fabsl.S (__fabsl): Use fsel to
15674         determine whether to negate low half.
15675
15676         * math/libm-test.inc (NO_TEST_INLINE_FLOAT): Remove macro.
15677         (NO_TEST_INLINE_DOUBLE): Likewise.
15678         (TEST_COND_x86_64): Likewise.
15679         (TEST_COND_x86): Likewise.
15680         (M_PI_6l): Likewise.
15681
15682 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15683
15684         * math/libm-test.inc:
15685         (TEST_FLOAT): Change usage to TEST_COND_binary32.
15686         (TEST_DOUBLE): Change usage to TEST_COND_binary64.
15687         (TEST_LDOUBLE): Update usage to evaluate as true if
15688         the guarded tests match the property being tested.
15689         (LDBL_MAX_EXP): Change to MAX_EXP.
15690         (LDBL_MIN_EXP): Change to MIN_EXP.
15691         (LDBL_MANT_DIG): Change to MANT_DIG, except for
15692         nexttoward tests.
15693
15694 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15695
15696         * math/libm-test.inc:
15697         (TYPE_DECIMAL_DIG): Redefine using type supplied PREFIX macro.
15698         (TYPE_MIN): Likewise.
15699         (TYPE_TRUE_MIN): Likewise.
15700         (TYPE_MAX): Likewise.
15701         (MIN_EXP): Likewise.
15702         (MAX_EXP): Likewise.
15703         (MANT_DIG): Likewise.
15704
15705         (FSTR_MAX): New macro.
15706         (__CONCATX): Likewise.
15707         (QTYPE_STR): Likewise.
15708         (TEST_COND_binary32): Likewise.
15709         (TEST_COND_binary64): Likewise.
15710         (TEST_COND_binary128): Likewise.
15711         (TEST_COND_ibm128): Likewise.
15712         (TEST_COND_intel96): Likewise.
15713         (TEST_COND_m68k96): Likewise.
15714
15715         (TEST_COND_flt_32): Redefine as equivalent format test macro.
15716         (TEST_COND_dbl_64): Likewise.
15717         (TEST_COND_ldbl_96_intel): Likewise.
15718         (TEST_COND_ldbl_96_m68k): Likewise.
15719         (TEST_COND_ldbl_128): Likewise.
15720         (TEST_COND_ldbl_128ibm): Likewise.
15721
15722         (plus_zero): Redefine using LIT macro.
15723         (minus_zero): Likewise.
15724         (plus_infty): Redefine as (INF).
15725         (minux_infty): Redefine as (-INF).
15726         (max_value): Redefine as TYPE_MAX.
15727         (min_value): Redefine as TYPE_MIN.
15728         (min_subnorm_value): Redefine as TYPE_TRUE_MIN.
15729
15730         (print_float): Refactor to use snprintf to convert FLOAT values
15731         to string. This brings it closer to dropin replacement of strtof
15732         for the TS 18661 defined types.
15733         (update_stats): Likewise.
15734         (print_complex_function_ulps): Likewise.
15735         (print_max_error): Likewise.
15736         (print_complex_max_error): Likewise.
15737         (check_float_internal): Likewise.
15738
15739         * math/test-float.h (PREFIX): New macro.
15740         (LIT): Likewise.
15741         (TYPE_STR): Likewise.
15742         (FTOSTR): Likewise.
15743
15744         * math/test-double.h (PREFIX): New macro.
15745         (LIT): Likewise.
15746         (TYPE_STR): Likewise.
15747         (FTOSTR): Likewise.
15748
15749         * math/test-ldouble.h (PREFIX): New macro.
15750         (LIT): Likewise.
15751         (TYPE_STR): Likewise.
15752         (FTOSTR): Likewise.
15753
15754 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
15755
15756         [BZ #20156]
15757         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Add high part
15758         to itself when zero or not finite.
15759         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Likewise.
15760         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
15761         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Likewise.
15762         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
15763
15764 2016-05-26  Joseph Myers  <joseph@codesourcery.com>
15765
15766         [BZ #20153]
15767         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Return
15768         x * x + x for infinities and NaNs.
15769
15770         [BZ #20151]
15771         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Add NaN
15772         argument to itself before returning result.
15773         (__ieee754_y0l): Likewise.
15774         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
15775         (__ieee754_y1l).
15776
15777         * math/libm-test.inc (acosh_test_data): Add sNaN tests.
15778         (atan_test_data): Likewise.
15779         (ceil_test_data): Likewise.
15780         (cos_test_data): Likewise.
15781         (cosh_test_data): Likewise.
15782         (erf_test_data): Likewise.
15783         (exp2_test_data): Likewise.
15784         (fabs_test_data): Likewise.
15785         (floor_test_data): Likewise.
15786         (ilogb_test_data): Likewise.
15787         (j0_test_data): Likewise.
15788         (j1_test_data): Likewise.
15789         (jn_test_data): Likewise.
15790         (lgamma_test_data): Likewise.
15791         (lrint_test_data): Likewise.
15792         (llrint_test_data): Likewise.
15793         (logb_test_data): Likewise.
15794         (lround_test_data): Likewise.
15795         (llround_test_data): Likewise.
15796         (nearbyint_test_data): Likewise.
15797         (rint_test_data): Likewise.
15798         (round_test_data): Likewise.
15799         (sin_test_data): Likewise.
15800         (sincos_test_data): Likewise.
15801         (sinh_test_data): Likewise.
15802         (sqrt_test_data): Likewise.
15803         (tan_test_data): Likewise.
15804         (tanh_test_data): Likewise.
15805         (tgamma_test_data): Likewise.
15806         (trunc_test_data): Likewise.
15807         (y0_test_data): Likewise.
15808         (y1_test_data): Likewise.
15809         (yn_test_data): Likewise.
15810
15811         * math/libm-test.inc: Update comment about NaN testing.
15812         (TEST_SNAN): New macro.
15813         (snan_value): Likewise.
15814         (enable_test): Disable tests of sNaNs when SNAN_TESTS fails.
15815         (fpclassify_test_data): Add sNaN tests.
15816         (isfinite_test_data): Likewise.
15817         (isinf_test_data): Likewise.
15818         (isnan_test_data): Likewise.
15819         (isnormal_test_data): Likewise.
15820         (issignaling_test_data): Likewise.
15821         (signbit_test_data): Likewise.
15822         * math/gen-libm-test.pl (%beautify): Add snan_value.
15823         (show_exceptions): Add argument $test_snan.
15824         (parse_args): Handle snan_value as non-finite.  Update call to
15825         show_exceptions.
15826         * math/Makefile (libm-test-no-inline-cflags): Add
15827         -fsignaling-nans.
15828
15829 2016-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15830
15831         * nptl/Makefile (CFLAGS-oldrecvfrom.c): Remove rule.
15832         (CFLAGS-oldsendmsg.c): Add rule.
15833         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
15834         Correct recvmsg symbol name.
15835         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24):
15836         Likewise.
15837
15838 2016-05-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15839
15840         * sysdeps/unix/sysv/linux/Makefile
15841         [$(subdir) = socket] (sysdep_routines): Add oldrecvmmsg and
15842         oldsendmmsg.
15843         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add recvmmsg and
15844         sendmmsg.
15845         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
15846         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
15847         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
15848         * sysdeps/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
15849         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
15850         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
15851         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15852         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
15853         Likewise.
15854         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
15855         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: New file.
15856         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
15857         * sysdeps/unix/sysv/linux/recvmmsg.c (__recvmmsg): Adjust msghdr
15858         iovlen and controllen fields to adjust to POSIX specification.
15859         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
15860
15861         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Remove xfail-
15862         and change to correct expected type.
15863         (msghdr.msg_controllen): Likewise.
15864         (cmsghdr.cmsg_len): Likewise.
15865         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Fix
15866         expected POSIX assumption about the size.
15867         (msghdr.msg_controllen): Likewise.
15868         (msghdr.__glibc_reserved1): Likewise.
15869         (msghdr.__glibc_reserved2): Likewise.
15870         (cmsghdr.cmsg_len): Likewise.
15871         (cmsghdr.__glibc_reserved1): Likewise.
15872         * nptl/Makefile (libpthread-routines): Remove ptw-recvmsg and ptw-sendmsg.
15873         Add ptw-oldrecvmsg and ptw-oldsendmsg.
15874         (CFLAGS-sendmsg.c): Remove rule.
15875         (CFLAGS-recvmsg.c): Likewise.
15876         (CFLAGS-oldsendmsg.c): Add rule.
15877         (CFLAGS-oldrecvmsg.c): Likewise.
15878         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24): Add
15879         recvmsg and sendmsg.
15880         * sysdeps/unix/sysv/linux/aarch64/Version [libc] (GLIBC_2.24):
15881         Likewise.
15882         * sysdeps/unix/sysv/linux/arm/Versions [libc] (GLIBC_2.24): Likewise.
15883         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24): Likewise.
15884         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
15885         * sysdeps/unix/sysv/linux/ia64/Versions [libc] (GLIBC_2.24): Likewise.
15886         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
15887         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
15888         Likewise.
15889         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
15890         Likewise.
15891         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions [libc] (GLIBC_2.24):
15892         Likewise.
15893         * sysdeps/unix/sysv/linux/mips/mips64/Versions [libc] (GLIBC_2.24):
15894         Likewise.
15895         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
15896         Likewise.
15897         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
15898         Likewise.
15899         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions [libc]
15900         (GLIBC_2.24): Likewise.
15901         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
15902         Likewise.
15903         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
15904         Likewise.
15905         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
15906         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
15907         Likewise.
15908         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
15909         Likewise.
15910         ( sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
15911         Likewise.
15912         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions [libc]
15913         (GLIBC_2.24): Likewise.
15914         ( sysdeps/unix/sysv/linux/x86_64/64/Versions [libc] (GLIBC_2.24):
15915         Likewise.
15916         * sysdeps/unix/sysv/linux/x84_64/Versions [libc] (GLIBC_2.24):
15917         Likewise.
15918         * sysdeps/unix/sysv/linux/Makefile
15919         [$(subdir) = socket)] (sysdep_headers): Add oldrecvmsg and oldsendmsg.
15920         (CFLAGS-sendmsg.c): Add rule.
15921         (CFLAGS-recvmsg.c): Likewise.
15922         (CFLAGS-oldsendmsg.c): Likewise.
15923         (CFLAGS-oldrecvmsg.c): Likewise.
15924         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Fix msghdr
15925         initialization.
15926         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
15927         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
15928         * sysdeps/unix/sysv/linux/oldrecvmsg.c: New file.
15929         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
15930         * sysdeps/unix/sysv/linux/recvmsg.c (__libc_recvmsg): Adjust msghdr
15931         iovlen and controllen fields to adjust to POSIX specification.
15932         * sysdeps/unix/sysv/linux/sendmsg.c (__libc_sendmsg): Likewise.
15933         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: New version and
15934         added recvmsg and sendmsg.
15935         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
15936         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
15937         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
15938         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
15939         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
15940         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
15941         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
15942         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
15943         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
15944         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
15945         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
15946         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
15947         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
15948         Likewise.
15949         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
15950         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
15951         * sysdepe/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
15952         Likewise.
15953         Likewise.
15954         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
15955         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
15956         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
15957         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
15958         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15959         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15960         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
15961         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
15962         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
15963         Likewise.
15964         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
15965         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
15966
15967         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg): Remove
15968         from auto-generation.
15969         (sendmsg): Likewise.
15970         * sysdeps/unix/sysv/linux/arm/syscalls.list (recvmsg): Likewise.
15971         (sendmsg): Likewise.
15972         * sysdeps/unix/sysv/linux/generic/syscalls.list (recvmsg): Likewise.
15973         (sendmsg): Likewise.
15974         * sysdeps/unix/sysv/linux/hppa/syscalls.list (recvmsg): Likewise.
15975         (sendmsg): Likewise.
15976         * sysdeps/unix/sysv/linux/ia64/syscalls.list (recvmsg): Likewise.
15977         (sendmsg): Likewise.
15978         * sysdeps/unix/sysv/linux/mips/syscalls.list (recvmsg): Likewise.
15979         (sendmsg): Likewise.
15980         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (recvmsg):
15981         Likewise.
15982         (sendmsg): Likewise.
15983         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (recvmsg): Likewise.
15984         (sendmsg): Likewise.
15985         * sysdeps/unix/sysv/linux/i386/kernel-features.h
15986         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
15987         Remove.
15988         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
15989         Likewise.
15990         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
15991         Undefine.
15992         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
15993         Likewise.
15994         * sysdeps/unix/sysv/linux/kernel-features.h
15995         (__ASSUME_SENDMSG_SYSCALL): Define.
15996         (__ASSUME_RECVMSG_SYSCALL): Likewise.
15997         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
15998         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
15999         Remove.
16000         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
16001         Likewise.
16002         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
16003         Undefine.
16004         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
16005         Likewise.
16006         * sysdeps/unix/sysv/linux/s390/kernel-features.h
16007         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
16008         Remove.
16009         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
16010         Likewise.
16011         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
16012         Undefine.
16013         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
16014         Likewise.
16015         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16016         (__ASSUME_SENDMSG_SYSCALL): Undefine.
16017         (__ASSUME_RECVMSG_SYSCALL): Likewise.
16018         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
16019         (__ASSUME_SENDMSG_SYSCALL): Likewise.
16020         (__ASSUME_RECVMSG_SYSCALL): Likewise.
16021         * sysdeps/unix/sysv/linux/sh/kernel-features.h
16022         (__ASSUME_SENDMSG_SYSCALL): Likewise.
16023         (__ASSUME_RECVMSG_SYSCALL): Likewise.
16024
16025 2016-05-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
16026
16027         * stdlib/gen-tst-strtod-round.c: Add backslash to
16028         compile command in comment.
16029         (printfp): Remove the literal suffix, and define an infinite
16030         value as INF to avoid expansion clash with INFINITY.
16031         (round_str): Remove the literal suffix.
16032         (round_for_all): Likewise, remove the now duplicate ldbl-64
16033         entry, and remove some magic constants.
16034
16035         * stdlib/tst-strtod-round.c: (TEST): Redefine to reduce
16036         duplication.  Remove duplicate dbl-64 and ldbl-64 entries.
16037         (ROUNDING_TESTS_long_double): Define as 0 for ibm128.
16038         (_CONCAT): New macro.
16039         (CONCAT): Likewise.
16040         (CHOOSE_ld): Likewise.
16041         (CHOOSE_f): Likewise.
16042         (CHOOSE_d): Likewise.
16043         (FTYPE_MEMBER): Likewise.
16044         (BOOL_MEMBER): Likewise.
16045         (STRUCT_FOREACH_FLOAT_FTYPE): Likewise.
16046         (STRUCT_FOREACH_FLOAT_BOOL): Likewise.
16047         (_XNTRY): Likewise.
16048         (XNTRY): Likewise.
16049         (_ENTRY): Likewise.
16050         (ENTRY): Likewise.
16051         (test_exactness): Generate members via macro.
16052         (test_results): Likewise.
16053         (test): Update members.
16054         (TEST): Redefine using new macros.
16055         (INF): New macro.
16056         (fetestmodes): New structure.
16057         (do_test): Refactor to be type generic.
16058         (test_in_one_mode): Refactor duplicate code into
16059         (GEN_ONE_TEST): New macro.
16060
16061         * stdlib/tst-strtod-round-data.h: Regenerate.
16062
16063         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH):
16064         Extend to pass additional arbitrary parameters to
16065         generators.
16066
16067 2016-05-25  Joseph Myers  <joseph@codesourcery.com>
16068
16069         [BZ #15479]
16070         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Move save of
16071         floating-point state after first floating-point operation on
16072         input.  Restore full floating-point state instead of just rounding
16073         mode.
16074         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
16075         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
16076         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
16077         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
16078         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
16079
16080         [BZ #15479]
16081         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Move save of
16082         floating-point state after first floating-point operation on
16083         input.  Restore full floating-point state instead of just rounding
16084         mode.
16085         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
16086         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
16087         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
16088         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
16089         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
16090
16091 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
16092
16093         [BZ #19727]
16094         * iconvdata/utf-16.c (BODY): Report an error if first word is not a
16095         valid high surrogate.
16096         * iconvdata/utf-32.c (BODY): Report an error if the value is in range
16097         of an utf16 surrogate.
16098         * iconv/gconv_simple.c (BODY): Likewise.
16099         * iconvdata/bug-iconv12.c: New file.
16100         * iconvdata/Makefile (tests): Add bug-iconv12.
16101
16102 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
16103
16104         [BZ #19726]
16105         * iconv/gconv_simple.c (ucs4le_internal_loop): Update inptrp and
16106         outptrp in case of an illegal input.
16107         * iconv/tst-iconv6.c: New file.
16108         * iconv/Makefile (tests): Add tst-iconv6.
16109
16110 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
16111
16112         * sysdeps/s390/utf16-utf32-z9.c: Disable cu42 instruction and report
16113         an error in case of a value in range of an utf16 low surrogate.
16114
16115 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
16116
16117         * sysdeps/s390/utf8-utf32-z9.c: Disable cu41 instruction and report
16118         an error in case of a value in range of an utf16 low surrogate.
16119
16120 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
16121
16122         * sysdeps/s390/s390-64/Makefile (iconvdata-subdirectory):
16123         Move to ...
16124         * sysdeps/s390/Makefile: ... here.
16125         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Move to ...
16126         * sysdeps/s390/iso-8859-1_cp037_z900.c: ... here.
16127         (BRANCH_ON_COUNT): New define.
16128         (TR_LOOP): Use BRANCH_ON_COUNT instead of brctg.
16129         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Move to ...
16130         * sysdeps/s390/utf16-utf32-z9.c: ... here and adjust to
16131         run on s390-32, too.
16132         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Move to ...
16133         * sysdeps/s390/utf8-utf16-z9.c: ... here and adjust to
16134         run on s390-32, too.
16135         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Move to ...
16136         * sysdeps/s390/utf8-utf32-z9.c: ... here and adjust to
16137         run on s390-32, too.
16138
16139 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
16140
16141         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Use ifunc to select c,
16142         etf3eh or new vector loop-variant.
16143
16144 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
16145
16146         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Use ifunc to select c,
16147         etf3eh or new vector loop-variant.
16148
16149 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
16150
16151         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Use ifunc to select c, etf3eh
16152         or new vector loop-variant.
16153
16154 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
16155
16156         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c (TROO_LOOP):
16157         Rename to TR_LOOP and usage of tr instead of troo instruction.
16158
16159 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
16160
16161         * sysdeps/s390/multiarch/gconv_simple.c: New File.
16162         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add gconv_simple.
16163
16164 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
16165
16166         * sysdeps/s390/multiarch/8bit-generic.c: New File.
16167         * sysdeps/s390/multiarch/gen-8bit.sh: New File.
16168         * sysdeps/s390/multiarch/Makefile (generate-8bit-table):
16169         New override define.
16170         * sysdeps/s390/multiarch/iconv/skeleton.c: Likewise.
16171
16172 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
16173
16174         * config.h.in (HAVE_S390_VX_GCC_SUPPORT): New macro undefine.
16175         * sysdeps/s390/configure.ac: Add test for S390 vector register
16176         support in gcc.
16177         * sysdeps/s390/configure: Regenerated.
16178
16179 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
16180
16181         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules):
16182         Install file from $(objpfx)gconv-modules.
16183         ($(objpfx)gconv-modules): Concatenate architecture specific file
16184         in variable sysdeps-gconv-modules and gconv-modules in src dir.
16185         * sysdeps/s390/gconv-modules: New file.
16186         * sysdeps/s390/s390-64/Makefile: ($(inst_gconvdir)/gconv-modules):
16187         Deleted.
16188         ($(objpfx)gconv-modules-s390): Deleted.
16189         (sysdeps-gconv-modules): New variable.
16190
16191 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
16192
16193         [BZ #15479]
16194         * sysdeps/x86_64/fpu/multiarch/s_ceil.S (__ceil_sse41): Set bit 3
16195         of immediate operand to rounding instruction.
16196         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S (__ceilf_sse41):
16197         Likewise.
16198         * sysdeps/x86_64/fpu/multiarch/s_floor.S (__floor_sse41):
16199         Likewise.
16200         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf_sse41):
16201         Likewise.
16202
16203 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
16204
16205         * math/libm-test.inc (MIN_EXP): Directly define as
16206         (DBL|LDBL|FLT)_MIN_EXP and fixup usage.
16207
16208 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
16209
16210         * math/libm-test.inc (MANT_DIG): Directly define as
16211         (DBL|LDBL|FLT)_MANT_DIG and fixup usage.
16212
16213 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
16214
16215         * stdlib/gen-tst-strtod-round.c (main):
16216           Change usage to more closely match the generated
16217           output.  Add usage and compilation instructions.
16218           (string_to_fp): Add and use FILE* parameter as
16219           output target.
16220           (print_fp): Likewise.
16221           (round_str): Likewise.
16222           (round_for_all): Likewise.
16223         * stdlib/tst-strtod-round.c (tests): Move into
16224         * stdlib/tst-strtod-round-data.h: New file.
16225
16226 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
16227
16228         [BZ #15479]
16229         * sysdeps/ieee754/dbl-64/s_round.c (huge): Remove variable.
16230         (__round): Do not force "inexact" exception.
16231         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (huge): Remove
16232         variable.
16233         (__round): Do not force "inexact" exception.
16234         * sysdeps/ieee754/flt-32/s_roundf.c (huge): Remove variable.
16235         (__roundf): Do not force "inexact" exception.
16236         * sysdeps/ieee754/ldbl-128/s_roundl.c (huge): Remove variable.
16237         (__roundl): Do not force "inexact" exception.
16238         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Remove variable.
16239         (__roundl): Do not force "inexact" exception.
16240         * math/libm-test.inc (round_test_data): Do not allow spurious
16241         "inexact" exceptions.
16242
16243         [BZ #15479]
16244         * sysdeps/ieee754/dbl-64/s_floor.c: Do not mention "inexact"
16245         exception in comment.
16246         (huge): Remove variable.
16247         (__floor): Do not force "inexact" exception.
16248         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Do not mention
16249         "inexact" exception in comment.
16250         (huge): Remove variable.
16251         (__floor): Do not force "inexact" exception.
16252         * sysdeps/ieee754/flt-32/s_floorf.c: Do not mention "inexact"
16253         exception in comment.
16254         (huge): Remove variable.
16255         (__floorf): Do not force "inexact" exception.
16256         * sysdeps/ieee754/ldbl-128/s_floorl.c: Do not mention "inexact"
16257         exception in comment.
16258         (huge): Remove variable.
16259         (__floorl): Do not force "inexact" exception.
16260
16261         [BZ #15479]
16262         * sysdeps/ieee754/dbl-64/s_ceil.c: Do not mention "inexact"
16263         exception in comment.
16264         (huge): Remove variable.
16265         (__ceil): Do not force "inexact" exception.
16266         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Do not mention
16267         "inexact" exception in comment.
16268         (huge): Remove variable.
16269         (__ceil): Do not force "inexact" exception.
16270         * sysdeps/ieee754/flt-32/s_ceilf.c (huge): Remove variable.
16271         (__ceilf): Do not force "inexact" exception.
16272         * sysdeps/ieee754/ldbl-128/s_ceill.c: Do not mention "inexact"
16273         exception in comment.
16274         (huge): Remove variable.
16275         (__ceill): Do not force "inexact" exception.
16276
16277 2016-05-24  H.J. Lu  <hongjiu.lu@intel.com>
16278
16279         * config.h.in (BIND_NOW): New.
16280         * configure.ac (BIND_NOW): New.  Defined for --enable-bind-now.
16281         * configure: Regenerated.
16282         * sysdeps/x86_64/sysdep.h (JUMPTARGET)[BIND_NOW]: Defined to
16283         indirect branch via the GOT slot.
16284
16285 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
16286
16287         [BZ #19765]
16288         * sysdeps/s390/mempcpy.S: New File.
16289         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
16290         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add mempcpy.
16291         * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
16292         Add mempcpy variants.
16293         * sysdeps/s390/s390-32/memcpy.S: Add mempcpy entry point.
16294         (memcpy): Adjust to be usable from mempcpy entry point.
16295         (__memcpy_mvcle): Likewise.
16296         * sysdeps/s390/s390-64/memcpy.S: Likewise.
16297         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add entry points
16298         ____mempcpy_z196, ____mempcpy_z10 and add __GI_ symbols for mempcpy.
16299         (__memcpy_z196): Adjust to be usable from mempcpy entry point.
16300         (__memcpy_z10): Likewise.
16301         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
16302
16303 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
16304
16305         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_libc_ifunc):
16306         Remove __GI_ symbol.
16307         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Add __GI_memcmp symbol.
16308         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Likewise.
16309         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add __GI_memcpy symbol.
16310         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
16311         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Add __GI_memset symbol.
16312         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Likewise.
16313
16314 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
16315
16316         * sysdeps/s390/s390-64/memcpy.S (memcpy):
16317         Use cghi instead of chi to compare 64bit value.
16318
16319 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
16320
16321         * sysdeps/s390/s390-32/memcpy.S (memcpy):
16322         Jump to 1MB check before executing mvc-loop.
16323
16324 2016-05-24  Florian Weimer  <fweimer@redhat.com>
16325
16326         [BZ #6527]
16327         * malloc/malloc.c (MALLOC_ALIGNMENT): Use correct alignment
16328         unconditionally.
16329         * malloc/hooks.c (MALLOC_STATE_VERSION): Increase state version.
16330
16331 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
16332
16333         * stdlib/tst-strtod6.c (do_test): Use new type generic
16334         invocation of the test function.
16335         (test): Refactor into ...
16336         (TEST_STRTOD): New macro base function.
16337
16338 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
16339
16340         * stdlib/bug-strtod2.c (do_test): Refactor strtod usage into ...
16341         (TEST_STRTOD): New macro.
16342         (TEST_FUNCTION): Redefine to use STRTOD_TEST_FOREACH
16343
16344 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
16345
16346         * stdlib/tst-strtod6.c (do_test): Use new type generic
16347         invocation of the test function.
16348         (test): Refactor into ...
16349         (TEST_STRTOD): New macro base function.
16350
16351 2016-05-23  Florian Weimer  <fweimer@redhat.com>
16352
16353         CVE-2016-4429
16354         [BZ #20112]
16355         * sunrpc/clnt_udp.c (clntudp_call): Use malloc/free for the error
16356         payload.
16357
16358 2016-05-23  Florian Weimer  <fweimer@redhat.com>
16359
16360         [BZ #20111]
16361         * bits/sockaddr.h (_SS_SIZE): Define.
16362         * bits/socket.h (_SS_SIZE): Remove.
16363         (_SS_PADSIZE): Adjust to account for all padding.
16364         (struct sockaddr_storage): Update comment.  Avoid implicit
16365         padding.
16366         * sysdeps/mach/hurd/bits/socket.h (_SS_SIZE): Remove.
16367         (_SS_PADSIZE): Adjust to account for all padding.
16368         (struct sockaddr_storage): Update comment.  Avoid implicit
16369         padding.
16370         * sysdeps/unix/bsd/bits/sockaddr.h (_SS_SIZE): Define.
16371         * sysdeps/unix/sysv/linux/bits/socket.h (_SS_SIZE): Remove.
16372         (_SS_PADSIZE): Adjust to account for all padding.
16373         (struct sockaddr_storage): Update comment.  Avoid implicit
16374         padding.
16375         * sysdeps/unix/sysv/linux/m68k/bits/sockaddr.h: New file.
16376         __SS_SIZE is 126 in this version.
16377         * inet/tst-sockaddr.c: New file.
16378         * inet/Makefile (tests): Add tst-sockaddr.c
16379         (tst-sockaddr.c): Compile with non-strict aliasing.
16380
16381 2016-05-23  Joseph Myers  <joseph@codesourcery.com>
16382
16383         * conform/data/limits.h-data (CHARCLASS_NAME_MAX): Also expect for
16384         [XPG3 || XPG4].
16385         (NL_ARGMAX): Also expect for [XPG3].
16386         (NL_LANGMAX): Likewise.
16387         (NL_MSGMAX): Likewise.
16388         (NL_NMAX): Likewise.
16389         (NL_SETMAX): Likewise.
16390         (NL_TEXTMAX): Likewise.
16391         (NZERO): Likewise.
16392         (TMP_MAX): Likewise.
16393         * conform/Makefile (test-xfail-XPG3/limits.h/conform): Remove
16394         variable.
16395
16396         * sysdeps/unix/sysv/linux/bits/socket.h (PF_KCM): New macro.
16397         (PF_MAX): Update value.
16398         (AF_KCM): New macro.
16399         (SOL_NETBEUI): Likewise.
16400         (SOL_LLC): Likewise.
16401         (SOL_DCCP): Likewise.
16402         (SOL_NETLINK): Likewise.
16403         (SOL_TIPC): Likewise.
16404         (SOL_RXRPC): Likewise.
16405         (SOL_PPPOL2TP): Likewise.
16406         (SOL_BLUETOOTH): Likewise.
16407         (SOL_PNPIPE): Likewise.
16408         (SOL_RDS): Likewise.
16409         (SOL_IUCV): Likewise.
16410         (SOL_CAIF): Likewise.
16411         (SOL_ALG): Likewise.
16412         (SOL_NFC): Likewise.
16413         (SOL_KCM): Likewise.
16414         (MSG_BATCH): New enum value and macro.
16415
16416 2016-05-20  H.J. Lu  <hongjiu.lu@intel.com>
16417
16418         [BZ #18185]
16419         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Don't limit threads
16420         sharing L2 cache to 2 for Knights Landing.
16421
16422 2016-05-20  Joseph Myers  <joseph@codesourcery.com>
16423
16424         * conform/data/ftw.h-data (struct FTW): Do not expect for [XPG3].
16425         (FTW_DP): Do not expect for [XPG3 || XPG4].
16426         (FTW_SL): Do not expect for [XPG3].
16427         (FTW_SLN): Likewise.
16428         (FTW_PHYS): Likewise.
16429         (FTW_MOUNT): Likewise.
16430         (FTW_DEPTH): Likewise.
16431         (FTW_CHDIR): Likewise.
16432         (nftw): Likewise.
16433         * conform/Makefile (test-xfail-XPG3/ftw.h/conform): Remove
16434         variable.
16435
16436 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
16437
16438         * manual/errno.texi: Fix various typos & grammar errors.
16439
16440 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
16441
16442         * manual/intro.texi: Fix duplicated typo.
16443
16444 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
16445
16446         [BZ #13304]
16447         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Include <fenv.h>,
16448         <float.h>, <math_private.h> and <stdlib.h>.
16449         (add_split): New function.
16450         (mul_split): Likewise.
16451         (ext_val): New typedef.
16452         (store_ext_val): New function.
16453         (mul_ext_val): New function.
16454         (compare): New function.
16455         (add_split_ext): New function.
16456         (__fmal): After checking for Inf, NaN and zero, compute result as
16457         an exact sum of scaled double values in round-to-nearest before
16458         adding those up and adjusting for other rounding modes.
16459         * math/auto-libm-test-in: Remove xfail-rounding:ldbl-128ibm from
16460         tests of fma.
16461         * math/auto-libm-test-out: Regenerated.
16462
16463 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
16464
16465         [BZ #20119]
16466         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Correct Intel
16467         processor level type mask for CPUID with EAX == 11.
16468
16469 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
16470
16471         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Skip counting
16472         logical threads if the HTT bit is 0.
16473         * sysdeps/x86/cpu-features.h (bit_cpu_HTT): New.
16474         (index_cpu_HTT): Likewise.
16475         (reg_HTT): Likewise.
16476
16477 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
16478
16479         [BZ #20115]
16480         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S (__memset):
16481         Remove alignments on jump targets.
16482
16483 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
16484
16485         * conform/data/pwd.h-data (endpwent): Do not expect for [XPG3].
16486         (getpwent): Likewise.
16487         (setpwent): Likewise.
16488         * conform/Makefile (test-xfail-XPG3/pwd.h/conform): Remove
16489         variable.
16490
16491         * conform/data/search.h-data (insque): Do not expect for [XPG3].
16492         (remque): Likewise.
16493         * conform/Makefile (test-xfail-XPG3/search.h/conform): Remove
16494         variable.
16495
16496 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
16497
16498         * math/libm-test.inc: Update comment not to refer to signs of NaNs
16499         not being tested.
16500
16501 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
16502
16503         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
16504         (__condvar_cleanup2): Remove JUMPTARGET from  _Unwind_Resume
16505         call.
16506         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
16507         (__condvar_cleanup1): Likewise.
16508
16509 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
16510
16511         * sysdeps/unix/sysv/linux/x86_64/cancellation.S (PTHREAD_UNWIND):
16512         New
16513         (__pthread_unwind): Renamed to ...
16514         (PTHREAD_UNWIND): This.
16515         (__pthread_enable_asynccancel): Replace
16516         JUMPTARGET(__pthread_unwind) with PTHREAD_UNWIND.
16517
16518 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
16519
16520         * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU]
16521         (CLONE_NEWCGROUP): New macro.
16522
16523         * sysdeps/unix/sysv/linux/sys/quota.h [_LINUX_QUOTA_VERSION >= 2]
16524         (Q_GETNEXTQUOTA): New macro.
16525
16526 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
16527
16528         [BZ #19907]
16529         * benchtests/bench-memcpy.c (do_one_test): Clear the destination
16530         buffer updated by the previous run.
16531         * string/test-memcpy.c (do_one_test): Likewise.
16532         * benchtests/bench-memmove.c (do_one_test): Add a comment.
16533         * string/test-memmove.c (do_one_test): Likewise.
16534
16535 2016-05-17  Joseph Myers  <joseph@codesourcery.com>
16536
16537         [BZ #20094]
16538         * stdlib/stdlib.h (grantpt): Declare if [__USE_XOPEN_EXTENDED],
16539         not [__USE_XOPEN].
16540         (unlockpt): Likewise.
16541         (ptsname): Likewise.
16542         * conform/Makefile (test-xfail-XPG3/stdlib.h/conform): Remove
16543         variable.
16544
16545         [BZ #20076]
16546         * io/sys/stat.h (S_IFSOCK): Define for [__USE_XOPEN_EXTENDED]
16547         instead of [__USE_UNIX98].
16548         (S_ISSOCK): Likewise.
16549         * conform/Makefile (test-xfail-XPG4/sys/stat.h/conform): Remove
16550         variable.
16551
16552         [BZ #20074]
16553         * stdlib/stdlib.h (rand_r): Declare if [__USE_POSIX199506], not if
16554         [__USE_POSIX].
16555         * conform/Makefile (test-xfail-XPG4/stdlib.h/conform): Remove
16556         variable.
16557
16558         [BZ #20051]
16559         * posix/unistd.h [__USE_XOPEN_EXTENDED && !__USE_UNIX98]
16560         (ttyslot): Do not declare.
16561         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && !__USE_XOPEN2K]
16562         (ttyslot): New prototype.
16563         * conform/Makefile (test-xfail-XPG4/unistd.h/conform): Remove
16564         variable.
16565         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
16566
16567 2016-05-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
16568
16569         * nptl/tst-cancel17.c (do_test): Wait for finishing aio_read(&a).
16570
16571 2016-05-13  Florian Weimer  <fweimer@redhat.com>
16572
16573         Fix race condition in tst-mallocfork2, use fewer resources.
16574         * malloc/tst-mallocfork2.c (sigusr1_handler): Do not send SIGSTOP
16575         to current process group.
16576         (signal_sender): Yield in the non-sleeping case.
16577
16578 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
16579
16580         * conform/data/stdlib.h-data (a64l): Do not expect for [XPG3].
16581         (ecvt): Likewise.
16582         (fcvt): Likewise.
16583         (gcvt): Likewise.
16584         (getsubopt): Likewise.
16585         (grantpt): Likewise.
16586         (initstate): Likewise.
16587         (l64a): Likewise.
16588         (mktemp): Likewise.
16589         (mkstemp): Likewise.
16590         (ptsname): Likewise.
16591         (random): Likewise.
16592         (realpath): Likewise.
16593         (setstate): Likewise.
16594         (srandom): Likewise.
16595         (ttyslot): Likewise.
16596         (unlockpt): Likewise.
16597         (valloc): Likewise.
16598
16599         * conform/data/string.h-data (strdup): Do not expect for [XPG3].
16600         * conform/Makefile (test-xfail-XPG3/string.h/conform): Remove
16601         variable.
16602
16603 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
16604
16605         [BZ #20072]
16606         * sysdeps/i386/dl-machine.h (dl_platform_init): Call
16607         init_cpu_features only if SHARED is defined.
16608         * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
16609
16610 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
16611
16612         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Check and support
16613         non-inclusive caches on Intel processors.
16614
16615 2016-05-13  Florian Weimer  <fweimer@redhat.com>
16616
16617         * malloc/malloc.c (dumped_main_arena_start)
16618         (dumped_main_arena_end): New variables.
16619         (DUMPED_MAIN_ARENA_CHUNK): New macro.
16620         (do_check_chunk): Skip dumped fake mmapped chunks.
16621         (munmap_chunk): Likewise.
16622         (__libc_free): Do not adjust statistics for fake mmapped chunks.
16623         (__libc_realloc): Adjust hardening check.  Always copy dumped fake
16624         mmapped chunks.
16625         * malloc/hooks.c (__malloc_set_state): Do not update main_arena.
16626         Mark dumped chunks as using mmap.  Update dumped_main_arena_start
16627         and dumped_main_arena_end to cover the dumped heap.
16628
16629 2016-05-12  Joseph Myers  <joseph@codesourcery.com>
16630
16631         * conform/data/time.h-data (getdate_err): Do not expect for
16632         [XPG3].
16633         (getdate): Likewise.
16634         * conform/Makefile (test-xfail-XPG3/time.h/conform): Remove
16635         variable.
16636
16637         * conform/data/unistd.h-data (F_LOCK): Do not expect for [XPG3].
16638         (F_ULOCK): Likewise.
16639         (F_TEST): Likewise.
16640         (F_TLOCK): Likewise.
16641         (useconds_t): Likewise.
16642         (intptr_t): Do not expect for [XPG3] or [XPG4].
16643         (brk): Do not expect for [XPG3]
16644         (fchown): Likewise.
16645         (fchdir): Likewise.
16646         (ftruncate): Likewise.
16647         (getdtablesize): Likewise.
16648         (gethostid): Likewise.
16649         (getpagesize): Likewise.
16650         (getpgid): Likewise.
16651         (getsid): Likewise.
16652         (getwd): Likewise.
16653         (lchown): Likewise.
16654         (lockf): Likewise.
16655         (readlink): Likewise.
16656         (sbrk): Likewise.
16657         (setpgrp): Likewise.
16658         (setregid): Likewise.
16659         (setreuid): Likewise.
16660         (symlink): Likewise.
16661         (sync): Likewise.
16662         (truncate): Likewise.
16663         (ualarm): Likewise.
16664         (usleep): Likewise.
16665         (vfork): Likewise.
16666         * conform/Makefile (test-xfail-XPG3/unistd.h/conform): Remove
16667         variable.
16668
16669         [BZ #20054]
16670         * posix/unistd.h (gethostname): Declare if [__USE_XOPEN_EXTENDED],
16671         not [__USE_UNIX98].
16672         * conform/data/unistd.h-data (gethostname): Do not expect for
16673         [XPG3].
16674
16675         * conform/data/fcntl.h-data [!POSIX] (S_IFMT): Do not expect.
16676         [!POSIX] (S_IFBLK): Likewise.
16677         [!POSIX] (S_IFCHR): Likewise.
16678         [!POSIX] (S_IFIFO): Likewise.
16679         [!POSIX] (S_IFREG): Likewise.
16680         [!POSIX] (S_IFDIR): Likewise.
16681         [!POSIX] (S_IFLNK): Likewise.
16682         [!POSIX] (S_IFSOCK): Likewise.
16683         * conform/Makefile (test-xfail-XPG3/fcntl.h/conform): Remove
16684         variable.
16685         (test-xfail-XPG4/fcntl.h/conform): Likewise.
16686
16687 2016-05-12  Wilco Dijkstra  <wdijkstr@arm.com>
16688
16689         * sysdeps/aarch64/memset.S (__memset):
16690         Rewrite of optimized memset.
16691
16692 2016-05-12  Florian Weimer  <fweimer@redhat.com>
16693
16694         [BZ #19703]
16695         Partially async-signal-safe fork for single-threaded processes.
16696         * sysdeps/nptl/fork.c (__libc_fork): Introduce multiple_threads
16697         variable.  Do not acquire and reset/release malloc and libio locks
16698         in single-threaded processes.
16699         * malloc/tst-mallocfork2.c: New file.
16700         * malloc/Makefile (tests): Add it.
16701
16702 2016-05-12  Florian Weimer  <fweimer@redhat.com>
16703
16704         * sysdeps/posix/getaddrinfo.c (gaih_inet_serv): Add tmpbuf
16705         argument.  Use scratch buffer instead of extend_alloca.
16706         (gethosts): Use scratch buffer instead of extend_alloca.
16707         (gaih_inet): Add tmpbuf argument.  Use scratch buffer instead of
16708         extend_alloca.
16709         (getaddrinfo): Allocate scratch buffer and pass it to gaih_inet.
16710
16711 2016-05-11  Joseph Myers  <joseph@codesourcery.com>
16712
16713         [BZ #20055]
16714         * termios/termios.h (pid_t): Define for [__USE_XOPEN_EXTENDED]
16715         instead of [__USE_UNIX98].
16716         (tcgetsid): Declare for [__USE_XOPEN_EXTENDED] instead of
16717         [__USE_UNIX98].
16718         * conform/data/termios.h-data (tcgetsid): Do not expect for
16719         [XPG3].
16720         * conform/Makefile (test-xfail-XPG3/termios.h/conform): Remove
16721         variable.
16722         (test-xfail-XPG4/termios.h/conform): Likewise.
16723
16724 2016-05-11  Florian Weimer  <fweimer@redhat.com>
16725
16726         Do not use mcheck in localedef.
16727         * locale/programs/localedef.c (turn_on_mcheck)
16728         (__malloc_initialize_hook): Remove.
16729
16730 2016-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
16731
16732         * sysdeps/s390/s390-32/Makefile (pic-ccflag): Remove.
16733         * sysdeps/s390/s390-64/Makefile: Likewise.
16734
16735 2016-05-11  H.J. Lu  <hongjiu.lu@intel.com>
16736
16737         * sysdeps/i386/i686/multiarch/Makefile (gen-as-const-headers):
16738         Remove ifunc-defines.sym.
16739         * sysdeps/x86_64/multiarch/Makefile (gen-as-const-headers):
16740         Likewise.
16741         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Removed.
16742         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
16743         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
16744         * sysdeps/x86/Makefile (gen-as-const-headers): Remove
16745         rtld-global-offsets.sym.
16746         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Merged with ...
16747         * sysdeps/x86/cpu-features-offsets.sym: This.
16748         * sysdeps/x86/cpu-features.h: Include <cpu-features-offsets.h>
16749         instead of <ifunc-defines.h> and <rtld-global-offsets.h>.
16750
16751 2016-05-10  Joseph Myers  <joseph@codesourcery.com>
16752
16753         [BZ #20073]
16754         * io/sys/stat.h (fchmod): Declare for
16755         [__USE_POSIX199309 || __USE_XOPEN_EXTENDED], not [__USE_POSIX].
16756         * conform/Makefile (test-xfail-XPG3/sys/stat.h/conform): Remove
16757         variable.
16758
16759         * conform/data/sys/stat.h-data [XPG3] (S_IFLNK): Do not expect.
16760         [XPG3] (S_IFSOCK): Likewise.
16761         [XPG3] (S_ISVTX): Likewise.
16762         [XPG3] (S_ISLNK): Likewise.
16763         [XPG3] (S_ISSOCK): Likewise.
16764         [XPG3] (fchmod): Likewise.
16765         [XPG3] (lstat): Likewise.
16766         [XPG3] (mknod): Likewise.
16767
16768         * conform/data/sys/stat.h-data (st_blksize): Do not expect for
16769         [XPG3].  Expect type long and XFAIL for [XPG4].
16770         (st_blocks): Likewise.
16771
16772         [BZ #20044]
16773         * posix/unistd.h [__USE_UNIX98 && !__USE_XOPEN2K]
16774         (pthread_atfork): New prototype.
16775         * conform/Makefile (test-xfail-UNIX98/unistd.h/conform): Remove
16776         variable.
16777
16778         [BZ #20043]
16779         * posix/unistd.h [__USE_XOPEN && !__USE_XOPEN2K] (cuserid): New
16780         prototype.
16781
16782 2016-05-10  Florian Weimer  <fweimer@redhat.com>
16783
16784         [BZ #20017]
16785         * resolv/res_debug.c (p_secstodate): Call __gmtime_r instead of
16786         gmtime.
16787
16788 2016-05-10  Florian Weimer  <fweimer@redhat.com>
16789
16790         [BZ #19994]
16791         * sysdeps/posix/getaddrinfo.c (gethosts): Restore RES_USE_INET6
16792         flag in _res.options.
16793
16794 2016-05-09  Joseph Myers  <joseph@codesourcery.com>
16795
16796         * conform/data/sys/types.h-data (blkcnt_t): Do not expect for
16797         [XPG3 || XPG4].
16798         (blksize_t): Likewise.
16799         (clockid_t): Likewise.
16800         * conform/Makefile (test-xfail-XPG3/sys/types.h/conform): Remove
16801         variable.
16802         (test-xfail-XPG4/sys/types.h/conform): Likewise.
16803
16804 2016-05-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
16805
16806         * sysdeps/unix/sysv/linux/s390/init-first.c:
16807         Add VDSO_SYMBOL(getcpu).
16808         (_libc_vdso_platform_setup): Initialize VDSO_SYMBOL(getcpu).
16809         * sysdeps/unix/sysv/linux/s390/libc-vdso.h:
16810         Add VDSO_SYMBOL(getcpu).
16811         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
16812         New define HAVE_GETCPU_VSYSCALL.
16813         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
16814
16815 2016-05-08  H.J. Lu  <hongjiu.lu@intel.com>
16816
16817         * sysdeps/i386/cacheinfo.c: Include <sysdeps/x86/cacheinfo.c>
16818         instead of <sysdeps/x86_64/cacheinfo.c>.
16819         * sysdeps/x86_64/cacheinfo.c: Moved to ...
16820         * sysdeps/x86/cacheinfo.c: Here.
16821
16822 2016-05-04  Florian Weimer  <fweimer@redhat.com>
16823
16824         * malloc/malloc-internal.h: Adjust header file guard.
16825
16826 2016-05-04  Florian Weimer  <fweimer@redhat.com>
16827
16828         [BZ #19787]
16829         * inet/getnameinfo.c (check_sprintf_result): New function.
16830         (CHECKED_SNPRINTF): New macro.
16831         (gni_host_inet_numeric): Use CHECKED_SNPRINTF to write the scope
16832         to the host buffer.
16833         (gni_host_local): Use checked_copy to copy the host name.
16834         (gni_serv_inet): Use CHECKED_SNPRINTF to write the service name.
16835         (gni_serv_local): Use checked_copy to copy the service name.
16836         (getnameinfo): Remove unnecessary truncation of result buffers.
16837
16838 2016-05-04  Florian Weimer  <fweimer@redhat.com>
16839
16840         * inet/getnameinfo.c (gni_host_inet_numeric): Return EAI_OVERFLOW
16841         in case of inet_ntop failure.
16842
16843 2016-05-04  Florian Weimer  <fweimer@redhat.com>
16844
16845         * inet/getnameinfo.c (gni_host_inet_name): Use temporaries to
16846         avoid long lines.
16847         (gni_host_inet_numeric): Likewise.  Reduce scope of local
16848         variables.
16849         (gni_host_inet, gni_host_local): Add comment.
16850         (gni_host): Add comment.  Use temporary to avoid long lines.
16851
16852 2016-05-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
16853
16854         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Fix use of condition
16855         registers specifiers where general purpose registers specifiers should
16856         have been used.
16857
16858 2016-05-04  Florian Weimer  <fweimer@redhat.com>
16859
16860         [BZ #19779]
16861         CVE-2016-1234
16862         Avoid copying names of directory entries.
16863         * posix/glob.c (DIRENT_MUST_BE, DIRENT_MIGHT_BE_SYMLINK)
16864         (DIRENT_MIGHT_BE_DIR, CONVERT_D_INO, CONVERT_D_TYPE)
16865         (CONVERT_DIRENT_DIRENT64, REAL_DIR_ENTRY): Remove macros.
16866         (struct readdir_result): New type.
16867         (D_TYPE_TO_RESULT, D_INO_TO_RESULT, READDIR_RESULT_INITIALIZER)
16868         (GL_READDIR): New macros.
16869         (readdir_result_might_be_symlink, readdir_result_might_be_dir)
16870         (convert_dirent, convert_dirent64): New functions.
16871         (glob_in_dir): Use struct readdir_result.  Call convert_dirent or
16872         convert_dirent64.  Adjust references to the readdir result.
16873         * sysdeps/unix/sysv/linux/i386/glob64.c:
16874         (convert_dirent, GL_READDIR): Redefine for second file inclusion.
16875         * posix/bug-glob2.c (LONG_NAME): Define.
16876         (filesystem): Add LONG_NAME.
16877         (my_DIR): Increase the size of room_for_dirent.
16878
16879 2016-05-03  Joseph Myers  <joseph@codesourcery.com>
16880
16881         [BZ #20041]
16882         * misc/sys/select.h (__need_timespec): Only define if
16883         [__USE_XOPEN2K].
16884         * conform/Makefile (test-xfail-XPG4/sys/time.h/conform): Remove
16885         variable.
16886         (test-xfail-XPG4/utmpx.h/conform): Likewise.
16887         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
16888         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
16889
16890 2016-05-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
16891             Segher Boessenkool  <segher@gcc.gnu.org>
16892
16893         [BZ #20004]
16894         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S:
16895         (__novec_swapcontext): Add missing load.
16896
16897 2016-05-02  Joseph Myers  <joseph@codesourcery.com>
16898
16899         [BZ #20023]
16900         * io/fcntl.h [__USE_XOPEN && !__USE_XOPEN2K8]: Do not include
16901         <time.h>.
16902         * conform/Makefile (test-xfail-UNIX98/fcntl.h/conform): Remove
16903         variable.
16904         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
16905
16906 2016-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16907
16908         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone): Fix
16909         flags CLONE_VM compare.
16910
16911 2016-05-02  Florian Weimer  <fweimer@redhat.com>
16912
16913         [BZ #20031]
16914         * hesiod/hesiod.c (get_txt_records): Return error if TXT record is
16915         completely empty.
16916
16917 2016-05-02  Florian Weimer  <fweimer@redhat.com>
16918
16919         [BZ #19573]
16920         * hesiod/Makefile (libnss_hesiod-routines): Remove hesiod-init.
16921         * hesiod/nss_hesiod/hesiod-init.c: Remove file.
16922         * hesiod/nss_hesiod/nss_hesiod.h: Likewise.
16923         * hesiod/hesiod.h (__hesiod_res_get, __hesiod_res_set): Remove.
16924         (hesiod_init, hesiod_end, hesiod_to_bind, hesiod_resolve)
16925         (hesiod_free_list): Mark as hidden.
16926         * hesiod/hesiod_p (struct hesiod_p): Remove res, free_res,
16927         res_set, res_get.
16928         * hesiod/hesiod.c: Remove unnecessary forward declarations.
16929         (init, __hesiod_res_get, __hesiod_res_set): Remove.
16930         (hesiod_init): Remove obsolete res_ninit call.
16931         (hesiod_end): Do not free resolver state.  Do not invoke callback.
16932         (hesiod_bind): Do not call init.
16933         (get_txt_records): Use res_mkquery, res_send instead of
16934         res_nmkquery, res_nsend.
16935         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Call hesiod_init
16936         instead of _nss_hesiod_init.
16937         (_nss_hesiod_initgroups_dyn): Likewise.
16938         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
16939         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Likewise.
16940         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
16941
16942 2016-05-02  Florian Weimer  <fweimer@redhat.com>
16943
16944         * hesiod/hesiod_p.h (DEF_RHS): Remove.
16945         * hesiod/hesiod.c (hesiod_init): Remove code for handling DEF_RHS.
16946
16947 2016-05-02  Florian Weimer  <fweimer@redhat.com>
16948
16949         * hesiod/hesiod.h: Remove RCS keyword.
16950         * hesiod/hesiod_p.h: Likewise.
16951
16952         * hesiod/hesiod.c: Likewise.
16953
16954 2016-05-01  Arnas Udovičius  <arnas.udovicius@gmail.com>
16955
16956         [BZ #12450]
16957         * locale/iso-639.def: Add Samogitian/sgs.
16958
16959 2016-04-30  Andreas Schwab  <schwab@linux-m68k.org>
16960
16961         * sysdeps/m68k/Makefile (CFLAGS-gmon-start.c): Define.
16962
16963         * sysdeps/unix/sysv/linux/m68k/clone.S: Localize labels.
16964
16965 2016-04-29  Stephen Gallagher  <sgallagh@redhat.com>
16966             Carlos O'Donell  <carlos@redhat.com>
16967
16968         [BZ #19072]
16969         * grp/Makefile (headers): Add grp-merge.h
16970         (routines): Add grp-merge.
16971         * grp/getgrgid_r.c: Include grp-merge.h.
16972         (DEEPCOPY_FN): Define.
16973         (MERGE_FN): Define.
16974         * grp/getgrname_r.c: Include grp-merge.h.
16975         (DEEPCOPY_FN): Define.
16976         (MERGE_FN): Define.
16977         * grp/grp-merge.c: New file.
16978         * grp/grp-merge.h: New file.
16979         * include/grp-merge.h: New file.
16980         * grp/Versions: Define __merge_grp@GLIBC_PRIVATE, and
16981         __copy_grp@GLIBC_PRIVATE.
16982         * manual/nss.texi (Actions in the NSS configuration): Describe
16983         return, continue, and merge.
16984         * nscd/getgrgid_r.c: Include grp/grp-merge.h.
16985         (DEEPCOPY_FN): Define.
16986         (MERGE_FN): Define.
16987         * nscd/getgrnam_r.c: Include grp/grp-merge.h.
16988         (DEEPCOPY_FN): Define.
16989         (MERGE_FN): Define.
16990         * nss/getXXbyYY_r.c [!DEEPCOPY_FN]: Define __copy_einval.
16991         [!MERGE_FN]: Define __merge_einval.
16992         (CHECK_MERGE): Define.
16993         (REENTRANT_NAME): Process merge if do_merge is true.
16994         * nss/getnssent_r.c (__nss_setent): Process NSS_ACTION_MERGE.
16995         (__nss_getent_r): Likewise.
16996         * nss/nsswitch.c (nss_parse_service_list): Likewise.
16997         * nss/nsswitch.h (lookup_actions): Define NSS_ACTION_MERGE.
16998
16999 2016-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17000
17001         [BZ #20012]
17002         * libio/fmemopen.c (fmemopen_read): Use buffer maximum position, not
17003         length to calculate the buffer to read.
17004         (fmemopen_write): Set the buffer position based on bytes written.
17005         (fmemopen_seek): Return EINVAL for invalid whence modes.
17006
17007         [BZ #19957]
17008         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nptl] (test): Remove
17009         tst-getpid2.
17010         (test): Add tst-clone2.
17011         * sysdeps/unix/sysv/linux/tst-clone2.c: New file.
17012         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Do not change
17013         pid/tid fields for CLONE_VM.
17014         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
17015         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
17016         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
17017         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise,
17018         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
17019         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
17020         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
17021         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
17022         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
17023         Likewise.
17024         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
17025         Likewise.
17026         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
17027         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
17028         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
17029         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
17030         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
17031         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
17032         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
17033         * sysdeps/unix/sysv/linux/tst-getpid2.c: Remove file.
17034
17035 2016-04-29  Florian Weimer  <fweimer@redhat.com>
17036
17037         [BZ #19642]
17038         * inet/getnameinfo.c (gni_host_inet_name, gni_host_inet_numeric)
17039         (gni_host_inet, gni_host_local, gni_host, gni_serv_inet)
17040         (gni_serv_local, gni_serv): New functions extracted from
17041         getnameinfo.
17042         (getnameinfo): Call gni_host and gni_serv to perform the
17043         processing.  Always free scratch buffer.
17044
17045 2016-04-29  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
17046
17047         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Call memset to pad the
17048         remaining bytes in the dest string, with zeros.
17049
17050 2016-04-29  Florian Weimer  <fweimer@redhat.com>
17051
17052         [BZ #20010]
17053         CVE-2016-3706
17054         * sysdeps/posix/getaddrinfo.c
17055         (convert_hostent_to_gaih_addrtuple): New function.
17056         (gethosts): Call convert_hostent_to_gaih_addrtuple.
17057         (gaih_inet): Use convert_hostent_to_gaih_addrtuple to convert
17058         AF_INET data.
17059
17060 2016-04-29  Florian Weimer  <fweimer@redhat.com>
17061
17062         glob: Simplify and document the interface for the GLOB_ALTDIRFUNC
17063         callback function gl_readdir.
17064         * posix/glob.c (NAMELEN, CONVERT_D_NAMLEN): Remove.
17065         (CONVERT_DIRENT_DIRENT64): Use strcpy instead of memcpy.
17066         (glob_in_dir): Remove len.  Use strdup instead of malloc and
17067         memcpy to copy the name.
17068         * manual/pattern.texi (Calling Glob): Document requirements for
17069         implementations of the gl_readdir callback function.
17070         * manual/examples/mkdirent.c: New example.
17071         * posix/bug-glob2.c (my_readdir): Set d_ino to 1 unconditionally,
17072         per the manual guidance.
17073         * posix/tst-gnuglob.c (my_readdir): Likewise.
17074
17075 2016-04-28  Joseph Myers  <joseph@codesourcery.com>
17076
17077         [BZ #20014]
17078         * libio/stdio.h (getc_unlocked): Declare if [__USE_POSIX199506],
17079         not [__USE_POSIX].
17080         (getchar_unlocked): Likewise.
17081         (putc_unlocked): Likewise.
17082         (putchar_unlocked): Likewise.
17083         (flockfile): Likewise.
17084         (ftrylockfile): Likewise.
17085         (funlockfile): Likewise.
17086         * conform/Makefile (test-xfail-XPG3/stdio.h/conform): Remove
17087         variable.
17088         (test-xfail-XPG4/stdio.h/conform): Likewise.
17089
17090         * conform/data/langinfo.h-data [XPG3 || XPG4 || UNIX98] (YESSTR):
17091         Expect constant.
17092         [XPG3 || XPG4 || UNIX98] (NOSTR): Likewise.
17093         * conform/Makefile (test-xfail-XPG3/langinfo.h/conform): Remove
17094         variable.
17095         (test-xfail-XPG4/langinfo.h/conform): Likewise.
17096         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
17097
17098         * libio/stdio.h (off_t): Also define if [__USE_UNIX98].
17099         [__USE_LARGEFILE64] (off64_t): Likewise.
17100         * conform/Makefile (test-xfail-UNIX98/stdio.h/conform): Remove
17101         variable.
17102
17103 2016-04-28  Florian Weimer  <fweimer@redhat.com>
17104
17105         * inet/getnameinfo.c (getnameinfo): Do not preserve errno.
17106
17107 2016-04-28  Florian Weimer  <fweimer@redhat.com>
17108
17109         * resolv/inet_addr.c: Reindent preprocessor conditionals.
17110         * resolv/res_init.c: Likewise.
17111         * resolv/res_mkquery.c: Likewise.
17112
17113 2016-04-28  Florian Weimer  <fweimer@redhat.com>
17114
17115         * resolv/res_init.c (isascii): Do not define.  Use definition in
17116         <ctype.h>.
17117         * resolv/gethnamaddr.c: Remove USE_OPTIONS_H conditional.
17118         (LOG_AUTH): Remove.
17119         (SPRINTF): Remove, adjust caller.
17120         (MULTI_PTRS_ARE_ALIASES): Remove, always defined.
17121
17122 2016-04-28  Florian Weimer  <fweimer@redhat.com>
17123
17124         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Remove
17125         SUNSECURITY conditional.
17126         * resolv/gethnamaddr.c (gethostbyaddr): Likewise.
17127
17128 2016-04-28  Florian Weimer  <fweimer@redhat.com>
17129
17130         * resolv/arpa/nameser.h: Include <sys/types.h> unconditionally.
17131         * resolv/gethnamaddr.c: Use include files from conf/portability.h.
17132         Remove BSD-related preprocessor conditionals.
17133         * conf/portability.h: Remove.
17134
17135 2016-04-28  Florian Weimer  <fweimer@redhat.com>
17136
17137         * resolv/resolv.h: Remove __BIND_NOSTATIC conditional.
17138         * resolv/res_data.c: Likewise.
17139
17140 2016-04-28  Florian Weimer  <fweimer@redhat.com>
17141
17142         * resolv/res_comp.c: Remove code conditional on __ultrix__.
17143         * resolv/res_data.c: Remove code conditional on ultrix.
17144
17145 2016-04-28  Florian Weimer  <fweimer@redhat.com>
17146
17147         * resolv/res_init.c (RFC1535): Do not define.  Remove
17148         RFC1535 preprocessor conditionals.
17149         * resolv/README: Update.  Do not claim strict RFC 1535 compliance
17150         because there configuration options which make the resolver
17151         behavior different.
17152
17153 2016-04-28  Florian Weimer  <fweimer@redhat.com>
17154
17155         * resolv/gethnamaddr.c (RESOLVSORT): Do not define.  Remove
17156         RESOLVSORT preprocessor conditionals.
17157         * resolv/nss_dns/dns-host.c: Likewise.
17158         * resolv/res_init.c: Likewise.
17159
17160 2016-04-28  Florian Weimer  <fweimer@redhat.com>
17161
17162         * resolv/res_data.c: Remove code conditional on BIND_UPDATE.  It
17163         is never defined.
17164
17165 2016-04-28  Florian Weimer  <fweimer@redhat.com>
17166
17167         * inet/inet_lnaof.c: Remove SCSS keyword.
17168         * inet/inet_mkadr.c: Likewise.
17169         * inet/inet_net.c: Likewise.
17170         * inet/inet_netof.c: Likewise.
17171         * inet/rcmd.c: Likewise.
17172         * inet/rexec.c: Likewise.
17173         * inet/ruserpass.c: Likewise.
17174
17175 2016-04-28  Florian Weimer  <fweimer@redhat.com>
17176
17177         * resolv/inet_addr.c: Remove _LIBC conditionals.
17178         * resolv/res_data.c: Likewise.
17179         * resolv/res_init.c: Likewise.
17180         * resolv/res_mkquery.c: Likewise.
17181         * resolv/res_libc.c: Update comment.
17182         * resolv/README: Update.
17183
17184 2016-04-28  Florian Weimer  <fweimer@redhat.com>
17185
17186         * resolv/gethnamaddr.c: Remove SCSS keyword.
17187         * resolv/herror.c: Likewise.
17188         * resolv/inet_addr.c: Likewise.
17189         * resolv/inet_net_ntop.c: Likewise.
17190         * resolv/inet_net_pton.c: Likewise.
17191         * resolv/inet_neta.c: Likewise.
17192         * resolv/inet_ntop.c: Likewise.
17193         * resolv/inet_pton.c: Likewise.
17194         * resolv/ns_date.c: Remove RCS keyword.
17195         * resolv/ns_name.c: Likewise.
17196         * resolv/ns_netint.c: Likewise.
17197         * resolv/ns_parse.c: Likewise.
17198         * resolv/ns_print.c: Likewise.
17199         * resolv/ns_samedomain.c: Likewise.
17200         * resolv/ns_ttl.c: Likewise.
17201         * resolv/nsap_addr.c: Likewise.
17202         * resolv/res_comp.c: Remove SCSS and RCS keyword.
17203         * resolv/res_data.c: Remove RCS keyword.
17204         * resolv/res_debug.c: Remove SCSS and RCS keyword.
17205         * resolv/res_init.c: Likewise.
17206         * resolv/res_mkquery.c: Likewise.
17207         * resolv/res_query.c: Likewise.
17208         * resolv/res_send.c: Likewise.
17209
17210 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
17211
17212         * conform/data/stdio.h-data (fdopen): Expect also for
17213         [XPG3 || XPG4].
17214
17215         * conform/data/stdio.h-data (flockfile): Also expect for [UNIX98].
17216         (fseeko): Likewise.
17217         (ftello): Likewise.
17218         (ftrylockfile): Likewise.
17219         (funlockfile): Likewise.
17220         (getc_unlocked): Likewise.
17221         (getchar_unlocked): Likewise.
17222         (putc_unlocked): Likewise.
17223         (putchar_unlocked): Likewise.
17224
17225 2016-04-27  Florian Weimer  <fweimer@redhat.com>
17226
17227         [BZ #19868]
17228         * resolv/nss_dns/dns-network.c (getanswer_r): Implement additional
17229         DNS packet syntax checks (which were not needed before).  Skip
17230         over non-PTR records.
17231
17232 2016-04-27  Florian Weimer  <fweimer@redhat.com>
17233
17234         * resolv/nss_dns/dns-network.c (offsetof): Remove macro
17235         definition.  Include <stddef.h> instead.
17236
17237 2016-04-27  Florian Weimer  <fweimer@redhat.com>
17238
17239         [BZ #19831]
17240         * resolv/nss_dns/dns-host.c (rrtype_to_rdata_length): New
17241         function.
17242         (getanswer_r): Check RDATA length against RRTYPE and QTYPE.
17243         (gaih_getanswer_slice): Check RDATA length against RRTYPE.
17244
17245 2016-04-27  Florian Weimer  <fweimer@redhat.com>
17246
17247         [BZ #19862]
17248         * resolv/nss_dns/dns-host.c (AskedForGot): Remove.
17249         (getanswer_r): Do not call syslog.
17250         (gaih_getanswer_slice): Likewise.
17251         * resolv/gethnamaddr.c (AskedForGot): Remove.
17252         (getanswer): Do not call syslog.
17253         (gethostbyaddr): Likewise.
17254
17255 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
17256
17257         * conform/data/signal.h-data (union sigval): Expect also if
17258         [XOPEN2K].
17259         (struct sigevent): Likewise.
17260         (SIGEV_NONE): Likewise.
17261         (SIGEV_SIGNAL): Likewise.
17262         (SIGEV_THREAD): Likewise.
17263         (SIGRTMIN): Likewise.
17264         (SIGRTMAX): Likewise.
17265         * conform/Makefile (test-xfail-XOPEN2K/aio.h/conform): Remove
17266         variable.
17267         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
17268
17269 2016-04-27  Florian Weimer  <fweimer@redhat.com>
17270
17271         [BZ #19830]
17272         * resolv/nss_dns/dns-host.c (getanswer_r): Check RDATA length.
17273         (gaih_getanswer_slice): Likewise.
17274         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Likewise.
17275         Also check for availability of RR metadata.
17276
17277 2016-04-27  Florian Weimer  <fweimer@redhat.com>
17278
17279         [BZ #19825]
17280         * resolv/res_send.c (send_vc): Remove early *resplen2
17281         initialization.  Set *resplen2 on socket error.  Call
17282         close_and_return_error for other errors.
17283
17284 2016-04-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
17285
17286         * sysdeps/unix/sysv/linux/netiucv/iucv.h
17287         (SOL_IUCV, SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE)
17288         (SCM_IUCV_TRGCLS): New define.
17289
17290 2016-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17291
17292         [BZ #20005]
17293         * libio/fmemopen.c (fmemopen_write): Update internal position after
17294         write.
17295         * stdio-common/Makefile (tests): Add tst-fmemopen4.c.
17296         * stdio-common/tst-fmemopen4.c: New file..
17297
17298 2016-04-26  Joseph Myers  <joseph@codesourcery.com>
17299
17300         [BZ #19996]
17301         * locale/langinfo.h (nl_langinfo_l): Declare if [__USE_XOPEN2K8],
17302         not [__USE_XOPEN2K].
17303         * conform/Makefile (test-xfail-XOPEN2K/langinfo.h/conform): Remove
17304         variable.
17305
17306         * conform/data/stdarg.h-data [XOPEN2K] (va_copy): Require macro.
17307         * conform/Makefile (test-xfail-XOPEN2K/stdarg.h/conform): Remove
17308         variable.
17309
17310         * libio/stdio.h (off_t): Define if [__USE_XOPEN2K], not
17311         [__USE_XOPEN2K8].
17312         [__USE_LARGEFILE64] (off64_t): Likewise.
17313         * conform/Makefile (test-xfail-XOPEN2K/stdio.h/conform): Remove
17314         variable.
17315
17316 2016-04-25  Joseph Myers  <joseph@codesourcery.com>
17317
17318         [BZ #19989]
17319         * libio/stdio.h (cuserid): Do not declare if
17320         [__USE_XOPEN2K && !__USE_GNU].
17321         * conform/Makefile (test-xfail-XOPEN2K8/stdio.h/conform): Remove
17322         variable.
17323
17324 2016-04-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
17325
17326         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
17327         (sysdep_routines): Add P8 and PPC64 strcspn targets.
17328         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
17329         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
17330         ifunc'ed strcspn.
17331         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
17332         [EALIGN]: Removed.
17333         [END]: Likewise
17334         [STRSPN]: Define instead of the above to control symbol name.
17335         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S:
17336         New file.
17337         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c:
17338         Likewise.
17339         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c:
17340         Likewise.
17341         * sysdeps/powerpc/powerpc64/power8/strcspn.S:
17342         Likewise.
17343         * sysdeps/powerpc/powerpc64/power8/strspn.S:
17344         [INITIAL_MASK]: New macro.
17345         [STRCSPN]: Likewise.
17346         [UPDATE_MASK]: Likewise.
17347         [USE_AS_STRCSPN]: Likewise.
17348
17349 2016-04-25  Florian Weimer  <fweimer@redhat.com>
17350
17351         [BZ #19931]
17352         * stdio-common/tst-vfprintf-width-prec.c: New file.
17353         * stdio-common/Makefile (tests): Add tst-vfprintf-width-prec.
17354         (tests-special): Add tst-vfprintf-width-prec-mem.out.
17355         (generated): Add mtrace-related files.
17356         (tst-vfprintf-width-prec-ENV): Set MALLOC_TRACE.
17357         (tst-%-mem.out): New pattern rule, replaces
17358         tst-printf-bz18872-mem.out.
17359         * stdio-common/vfprintf.c (vfprintf): When handling a precision
17360         specifier, deallocate any previously allocated work buffer.
17361
17362 2016-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
17363
17364         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__startcontext):
17365         Add nop before __startcontext, add explaining comments.
17366
17367 2016-04-25  Samuel thibault  <samuel.thibault@ens-lyon.org>
17368
17369         RFC2292 macros were obsoleted by RFC3542, and should not be exposed
17370         any more. Notably since IPV6_PKTINFO has been reintroduced with a
17371         completely different API.
17372
17373         * bits/in.h (IPV6_PKTINFO): Rename to IPV6_2292PKTINFO.
17374         (IPV6_HOPOPTS): Rename to IPV6_2292HOPOPTS.
17375         (IPV6_DSTOPTS): Rename to IPV6_2292DSTOPTS.
17376         (IPV6_RTHDR): Rename to IPV6_2292RTHDR.
17377         (IPV6_PKTOPTIONS): Rename to IPV6_2292PKTOPTIONS.
17378         (IPV6_HOPLIMIT): Rename to IPV6_2292HOPLIMIT.
17379         (IPV6_RECVPKTINFO, IPV6_PKTINFO, IPV6_RECVHOPLIMIT, IPV6_HOPLIMIT,
17380         IPV6_RECVHOPOPTS, IPV6_HOPOPTS, IPV6_RTHDRDSTOPTS, IPV6_RECVRTHDR,
17381         IPV6_RTHDR, IPV6_RECVDSTOPTS, IPV6_DSTOPTS, IPV6_RECVPATHMTU,
17382         IPV6_PATHMTU, IPV6_DONTFRAG): New macros.
17383
17384 2016-04-23  H.J. Lu  <hongjiu.lu@intel.com>
17385
17386         * elf/dl-minimal.c (__libc_memalign): Mmap one extra page.
17387
17388 2016-04-23  Mike Frysinger  <vapier@gentoo.org>
17389
17390         * locale/programs/ld-time.c (time_finish): Set week_1stweek to 7
17391         when it is the default of 0.
17392
17393 2016-04-22  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
17394
17395         * sysdeps/powerpc/locale-defines.sym:  Add new macros.
17396         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
17397         (sysdep_routines): Add new strcasestr targets.
17398         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
17399         (__libc_ifunc_impl_list): Likewise.
17400         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: New file.
17401         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-ppc64.c: New file.
17402         * sysdeps/powerpc/powerpc64/multiarch/strcasestr.c: New file.
17403         * sysdeps/powerpc/powerpc64/power8/Makefile:
17404         New file to add strcasestr-ppc64 to sysdep_routines.
17405         * sysdeps/powerpc/powerpc64/power8/strcasestr-ppc64.c: New file.
17406         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: New file.
17407
17408 2016-04-20  Siddhesh Poyarekar  <sid@reserved-bit.com>
17409
17410         * benchtests/Makefile (wcsmbs-benchset): Include only for
17411         native builds and runs.
17412         (LOCALES): Likewise.
17413         (bench-build): Build timing-type here instead of the bench
17414         target.  Generate locale only for native builds.
17415         * benchtests/README: Add note for cross-building.
17416
17417         * benchtests/Makefile (bench-clean): Clean up extra-objs.
17418
17419         * benchtests/README: Update README to include instructions on
17420         using bench-build.
17421
17422         * Makefile.in (bench-build): New target.
17423         * Rules (PHONY): Add bench-build target.
17424         * benchtests/Makefile (bench): Depend on bench-build.
17425         (bench-build): New target.
17426
17427 2016-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17428
17429         * sysdeps/mach/hurd/profil.c (update_waiter): Initialize
17430         profil_reply_port.
17431         (profile_waiter): Do not initialize profil_reply_port.
17432         * sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick
17433         frequency instead of tick length in us.
17434
17435 2016-04-18  Wilco Dijkstra  <wdijkstr@arm.com>
17436
17437         [BZ #18712]
17438         * string/string-inlines.c (__STRING2_COPY_TYPE): Add, moved from string2.h.
17439         (__old_mempcpy_small): Likewise.
17440         (__old_strcpy_small): Likewise.
17441         (__old_stpcpy_small): Likewise.
17442         (__old_strpbrk_c2): Fix compat symbol name.
17443         (__old_strpbrk_c3): Likewise.
17444         * string/bits/string2.h (__STRING2_COPY_TYPE): Remove.
17445         (__mempcpy_small): Remove.
17446         (__strcpy_small): Remove.
17447         (__stpcpy_small): Remove.
17448
17449 2016-04-16  Robin van der Vliet <info@robinvandervliet.com>
17450
17451         [BZ #19400]
17452         * locale/iso-639.def: Add the Talossan/tzl language.
17453
17454 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
17455
17456         [BZ #16983]
17457         * locale/programs/ld-address.c (address_finish): Update postal_fmt
17458         comment.  Add "ln" to strchr check on postal_fmt.
17459
17460 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
17461
17462         * locale/programs/ld-telephone.c (telephone_finish): Add %t to the
17463         default tel_int_fmt.  Add "Cet" to strchr check on tel_int_fmt and
17464         tel_dom_fmt.
17465
17466 2016-04-15  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
17467
17468         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
17469         (sysdep_routines): Added __strlen_power8.
17470         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Added
17471         __strlen_power8 entry.
17472         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: New file.
17473         Implementation for POWER8.
17474         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Added IFUNC selector
17475         for __strlen_power8.
17476         * sysdeps/powerpc/powerpc64/power8/strlen.S: New file.
17477         Implementation for POWER8.
17478
17479 2016-04-15  Mike Frysinger  <vapier@gentoo.org>
17480
17481         * locale/iso-4217.def: Add SSP and change ZMK to ZMW.
17482
17483 2016-04-15   H.J. Lu  <hongjiu.lu@intel.com>
17484
17485         * sysdeps/x86/cpu-features.c (init_cpu_features): Detect Intel
17486         Goldmont and Airmont processors.
17487
17488 2016-04-15  Wilco Dijkstra  <wdijkstr@arm.com>
17489
17490         * string/string.h: Use __GNUC_PREREQ(3,4) for bits/string2.h.
17491         * string/bits/string2.h (__STRING2_SMALL_GET16): Remove.
17492         (__STRING2_SMALL_GET32): Remove.
17493         (memset): Remove.
17494         (__memset_1): Remove.
17495         (__memset_gc): Remove.
17496         (__mempcpy): Remove.
17497         (mempcpy): Remove.
17498         (__mempcpy_args): Remove.
17499         (strchr): Remove.
17500         (strcpy): Remove.
17501         (strcpy_args): Remove.
17502         (__stpcpy_args): Remove.
17503         (__strcmp_cc): Remove.
17504         (__strcmp_gc): Remove.
17505         (strstr): Remove.
17506
17507 2016-04-15  Yvan Roux  <yvan.roux@linaro.org>
17508
17509         * stdlib/setenv.c (unsetenv): Fix ambiguous 'else'.
17510         * nis/nis_call.c (nis_server_cache_add): Likewise.
17511
17512 2016-04-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17513
17514         * sysdeps/unix/sysv/linux/sysdep.h: Include kernel-features.h.
17515
17516 2016-04-14  Florian Weimer  <fweimer@redhat.com>
17517
17518         * malloc/arena.c (__malloc_fork_lock_parent)
17519         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Add
17520         internal_function attribute.
17521
17522 2016-04-14  Stefan Liebler  <stli@linux.vnet.ibm.com>
17523
17524         * stdio-common/printf_fp.c (__printf_fp_l):
17525         Rename ___printf_fp_l to __printf_fp_l and
17526         remove strong alias. Use libc_hidden_def instead
17527         of ldbl_hidden_def macro.
17528
17529 2016-04-14  Florian Weimer  <fweimer@redhat.com>
17530
17531         Remove malloc hooks from fork handler.  They are no longer needed
17532         because malloc runs right before fork, and no malloc calls from
17533         other fork handlers are not possible anymore.
17534         * malloc/malloc.c (malloc_atfork, free_atfork): Remove
17535         declarations.
17536         * malloc/arena.c (save_malloc_hook, save_free_hook, save_arena)
17537         (ATFORK_ARENA_PTR, malloc_atfork, free_atfork)
17538         (atfork_recursive_cntr): Remove.
17539         (__malloc_fork_lock_parent): Do not override malloc hooks and
17540         thread_arena.
17541         (__malloc_fork_unlock_parent): Do not restore malloc hooks and
17542         thread_arena.
17543         (__malloc_fork_unlock_child): Do not restore malloc hooks.  Use
17544         thread_arena instead of save_arena.
17545
17546 2016-04-14  Florian Weimer  <fweimer@redhat.com>
17547
17548         * sysdeps/nptl/malloc-machine.h (ATFORK_MEM, __dso_handle)
17549         (thread_atfork, thread_atfork_static): Remove.
17550         * sysdeps/mach/hurd/malloc-machine.h:
17551         (thread_atfork, thread_atfork_static): Remove.
17552
17553 2016-04-14  Florian Weimer  <fweimer@redhat.com>
17554
17555         [BZ #19431]
17556         Run the malloc fork handler as late as possible to avoid deadlocks.
17557         * malloc/malloc-internal.h: New file.
17558         * malloc/malloc.c: Include it.
17559         * malloc/arena.c (ATFORK_MEM): Remove.
17560         (__malloc_fork_lock_parent): Rename from ptmalloc_lock_all.
17561         Update comment.
17562         (__malloc_fork_unlock_parent): Rename from ptmalloc_unlock_all.
17563         (__malloc_fork_unlock_child): Rename from ptmalloc_unlock_all2.
17564         Remove outdated comment.
17565         (ptmalloc_init): Do not call thread_atfork.  Remove
17566         thread_atfork_static.
17567         * malloc/tst-malloc-fork-deadlock.c: New file.
17568         * Makefile (tests): Add tst-malloc-fork-deadlock.
17569         (tst-malloc-fork-deadlock): Link against libpthread.
17570         * manual/memory.texi (Aligned Memory Blocks): Update safety
17571         annotation comments.
17572         * sysdeps/nptl/fork.c (__libc_fork): Call
17573         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
17574         __malloc_fork_unlock_child.
17575         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
17576
17577 2016-04-14  Florian Weimer  <fweimer@redhat.com>
17578
17579         [BZ #19613]
17580         Remove union wait.
17581         * bits/waitstatus.h (union wait, w_termsig, w_coredump, w_retcode)
17582         (w_stopsig, w_stopval): Remove.
17583         * include/sys/wait.h (__wait, __wait3, __wait4): Use int * for the
17584         stat_loc argument.
17585         * posix/sys/wait.h (__WAIT_INT, __WAIT_STATUS)
17586         (__WAIT_STATUS_DEFN): Remove.
17587         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
17588         (WIFSTOPPED, WIFCONTINUED, WCOREDUMP): Remove __WAIT_INT.
17589         (wait, wait3, wait4): Use int * for the stat_loc argument.
17590         * posix/wait.c (__wait): Likewise.
17591         * posix/wait3.c (__wait3): Likewise.
17592         * posix/wait4.c (__wait4): Likewise.
17593         * stdlib/stdlib.h (__WAIT_INT, __WAIT_STATUS)
17594         (__WAIT_STATUS_DEFN): Remove.
17595         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
17596         (WIFSTOPPED, WIFCONTINUED): Remove __WAIT_INT.
17597         * sysdeps/mach/hurd/wait4.c (__wait4): Use int * for the stat_loc
17598         argument.
17599         * sysdeps/posix/wait.c (__libc_wait): Likewise.
17600         * sysdeps/posix/wait3.c (__wait3): Likewise.
17601         * sysdeps/unix/bsd/wait.c (__libc_wait): Likewise.
17602         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
17603         * sysdeps/unix/bsd/waitpid.c (__waitpid): Remove cast.
17604         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Use int * for the
17605         stat_loc argument.
17606         * manual/process.texi (BSD Wait Functions): Remove union wait.
17607
17608 2016-04-13  Andreas Schwab  <schwab@suse.de>
17609
17610         * elf/Makefile (extra-test-objs): Add tst-tlsalign-vars.o.
17611         (test-extras): Add tst-tlsalign-vars.
17612         * math/Makefile: Wrap long lines.
17613         (libm-vec-test-wrappers): Define.
17614         (test-extras): Add $(libm-vec-test-wrappers).
17615         (extra-test-objs): Add $(libm-vec-test-wrappers) objects.
17616         * nss/Makefile (extra-test-objs): Add nss_test1.os.
17617         * stdlib/Makefile (extra-test-objs): Add $(modules-names) objects.
17618         * sysdeps/x86_64/Makefile (test-extras): Add tst-quadmod1pie
17619         tst-quadmod2pie tst-audit4-aux tst-audit10-aux.
17620         (extra-test-objs): Add corresponding objects.
17621
17622 2016-04-12   H.J. Lu  <hongjiu.lu@intel.com>
17623
17624         [BZ #19928]
17625         * sysdeps/x86_64/cacheinfo.c (__x86_shared_non_temporal_threshold):
17626         New.
17627         (init_cacheinfo): Set __x86_shared_non_temporal_threshold to 6
17628         times of shared cache size.
17629         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S
17630         (VMOVNT): New.
17631         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S
17632         (VMOVNT): Likewise.
17633         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
17634         (VMOVNT): Likewise.
17635         (VMOVU): Changed to movups for smaller code sizes.
17636         (VMOVA): Changed to movaps for smaller code sizes.
17637         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Update
17638         comments.
17639         (PREFETCH): New.
17640         (PREFETCH_SIZE): Likewise.
17641         (PREFETCHED_LOAD_SIZE): Likewise.
17642         (PREFETCH_ONE_SET): Likewise.
17643         Rewrite to use forward and backward loops, which move 4 vector
17644         registers at a time, to support overlapping addresses and use
17645         non temporal store if size is above the threshold and there is
17646         no overlap between destination and source.
17647
17648 2016-04-12  Alex Smith  <alex.smith@imgtec.com>
17649
17650         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines):
17651         Include dl-vdso.
17652         * sysdeps/unix/sysv/linux/mips/Versions: Add
17653         __vdso_clock_gettime.
17654         * sysdeps/unix/sysv/linux/mips/init-first.c: New file.
17655         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: New file.
17656         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h:
17657         (INTERNAL_VSYSCALL_CALL): Define to be compatible with MIPS
17658         definitions of INTERNAL_SYSCALL_{ERROR_P,ERRNO}.
17659         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
17660         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
17661         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
17662         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
17663
17664 2016-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17665
17666         * sysdeps/unix/sysv/linux/arm/pwrite.c: Remove file.
17667         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
17668         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
17669         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
17670         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
17671         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
17672         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
17673         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
17674         * sysdeps/unix/sysv/linux/wordsize-64/pwrite64.c: Likewise.
17675         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (prite): Remove
17676         syscalls generation.
17677         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
17678         [__NR_pwrite64] (__NR_write): Remove define.
17679         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
17680         [__NR_pwrite64] (__NR_write): Remove define.
17681         * sysdeps/unix/sysv/linux/pwrite.c [__NR_pwrite64] (__NR_pwrite):
17682         Remove define.
17683         (__libc_pwrite): Use SYSCALL_LL macro on offset argument.
17684         * sysdeps/unix/sysv/linux/pwrite64.c [__NR_pwrite64] (__NR_pwrite):
17685         Remove define.
17686         (__libc_pwrite64): Use SYSCALL_LL64 macro on offset argument.
17687         * sysdeps/unix/sysv/linux/sh/pwrite.c: Rewrite using default
17688         Linux implementation as base.
17689         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
17690
17691         * sysdeps/unix/sysv/linux/arm/pread.c: Remove file.
17692         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
17693         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
17694         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
17695         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise,
17696         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
17697         * sysdeps/unix/sysv/linux/wordsize-64/pread64.c: Likewise.
17698         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (pread): Remove
17699         syscall generation.
17700         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
17701         [__NR_pread64] (__NR_pread): Remove define.
17702         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
17703         [__NR_pread64] (__NR_pread): Likewise.
17704         * sysdeps/unix/sysv/linux/pread.c [__NR_pread64] (__NR_pread): Remove
17705         define.
17706         (__libc_pread): Use SYSCALL_LL macro on offset argument.
17707         * sysdeps/unix/sysv/linux/pread64.c [__NR_pread64] (__NR_pread):
17708         Remove define.
17709         (__libc_pread64): Use SYSCALL_LL64 macro on offset argument.
17710         * sysdeps/unix/sysv/linux/sh/pread.c: Rewrite using default
17711         Linux implementation as base.
17712         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
17713         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
17714         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
17715
17716         * sysdeps/unix/sysv/linux/generic/sysdep.h (__ALIGNMENT_ARG): Move
17717         definition.
17718         (__ALIGNMENT_COUNT): Likewise.
17719         * sysdeps/unix/sysv/linux/sysdep.h (__ALIGNMENT_ARG): To here.
17720         (__ALIGNMENT_COUNT): Likewise.
17721         (SYSCALL_LL): New define.
17722         (SYSCALL_LL64): Likewise.
17723         * sysdeps/unix/sysv/linux/mips/kernel-features.h:
17724         [_MIPS_SIM == _ABIO32] (__ASSUME_WORDSIZE64_ILP32): Define.
17725         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h:
17726         [ILP32] (__ASUME_WORDSIZE64_ILP32): Likewise.
17727
17728         * sysdeps/unix/sysv/linux/arm/kernel-features.h
17729         (__ASSUME_ALIGNED_REGISTER_PAIRS): Define.
17730         * sysdeps/unix/sysv/linux/mips/kernel-features.h
17731         [_MIPS_SIM == _ABIO32] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
17732         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
17733         [!__powerpc64__] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
17734
17735 2016-04-11  Florian Weimer  <fweimer@redhat.com>
17736
17737         [BZ #19865]
17738         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Restore
17739         original buffer before retry.
17740
17741 2016-04-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17742
17743         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro)
17744         [!HAVE_AUX_VECTOR]: Do not define _dl_auxv field.
17745         * misc/getauxval.c (__getauxval) [!HAVE_AUX_VECTOR]: Do not go through
17746         GLRO(dl_auxv) list.
17747         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_VECTOR): Define before
17748         including <ldsodefs.h>.
17749         * sysdeps/nacl/ldsodefs.h (HAVE_AUX_VECTOR): Likewise.
17750
17751 2016-04-09  Nick Alcock  <nick.alcock@oracle.com>
17752
17753         * elf/rtld-Rules (rtld-compile-command.c): Add $(rtld-CFLAGS).
17754         * scripts/sysd-rules.awk: Substitute in $(CFLAGS) as well as
17755         $(CPPFLAGS).
17756
17757 2016-04-09  Khem Raj  <raj.khem@gmail.com>
17758
17759         [BZ #17950]
17760         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os):
17761         Add -mfpmath=387.
17762
17763 2016-04-09  Mike Frysinger  <vapier@gentoo.org>
17764
17765         * sysdeps/i386/configure.ac: Change == to = when calling test.
17766         * sysdeps/x86_64/configure.ac: Likewise.
17767         * sysdeps/i386/configure: Regenerated.
17768         * sysdeps/x86_64/configure: Likewise.
17769
17770 2016-04-08  Mike Frysinger  <vapier@gentoo.org>
17771
17772         [BZ #16137]
17773         * benchtests/Makefile (LOCALES): Change iw_IL to he_IL.
17774         * benchtests/bench-strcoll.c (input_files): Likewise.
17775         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
17776         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Rename to ...
17777         * benchtests/strcoll-inputs/lorem_ipsum#he_IL.UTF-8: ... here.
17778
17779 2016-04-08  Joseph Myers  <joseph@codesourcery.com>
17780
17781         [BZ #19929]
17782         * include/bits/xopen_lim.h (NL_NMAX): Do not define if
17783         [__USE_XOPEN2K8 && !__USE_GNU].
17784         * conform/Makefile (test-xfail-XOPEN2K8/limits.h/conform): Remove
17785         variable.
17786
17787         [BZ #19925]
17788         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (XCASE): Do not
17789         define if [!__USE_MISC && __USE_XOPEN2K].
17790         * sysdeps/unix/sysv/linux/bits/termios.h (XCASE): Likewise.
17791         * sysdeps/unix/sysv/linux/mips/bits/termios.h (XCASE): Likewise.
17792         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XCASE):
17793         Likewise.
17794         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (XCASE): Likewise.
17795         * conform/Makefile (test-xfail-XOPEN2K/termios.h/conform): Remove
17796         variable.
17797         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
17798
17799 2016-04-07  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
17800
17801         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
17802         (sysdep_routines): Add new strspn targets.
17803         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
17804         (__libc_ifunc_impl_list): Add strspn.
17805         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
17806         New file.
17807         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c:
17808         Likewise.
17809         * sysdeps/powerpc/powerpc64/multiarch/strspn.c:
17810         Likewise.
17811         * sysdeps/powerpc/powerpc64/power8/strspn.S:
17812         Likewise.
17813
17814 2016-04-07  Florian Weimer  <fweimer@redhat.com>
17815
17816         * misc/hsearch_r.c: Include <limits.h>.
17817
17818 2016-04-07  Florian Weimer  <fweimer@redhat.com>
17819
17820         * malloc/scratch_buffer_set_array_size.c: Include <limits.h>.
17821
17822 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
17823
17824         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
17825         (MEMCPY_SYMBOL): New.
17826         (MEMPCPY_SYMBOL): Likewise.
17827         (MEMMOVE_CHK_SYMBOL): Likewise.
17828         Replace MEMMOVE_SYMBOL with MEMMOVE_CHK_SYMBOL on __mempcpy_chk
17829         symbols.  Replace MEMMOVE_SYMBOL with MEMPCPY_SYMBOL on
17830         __mempcpy symbols.  Provide alias for __memcpy_chk in libc.a.
17831         Provide alias for memcpy in libc.a and ld.so.
17832
17833 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
17834
17835         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
17836         (MEMSET_CHK_SYMBOL): New.  Define if not defined.
17837         (__bzero): Check VEC_SIZE == 16 instead of USE_MULTIARCH.
17838         Disabled fro now.
17839         Replace MEMSET_SYMBOL with MEMSET_CHK_SYMBOL on __memset_chk
17840         symbols.  Properly check USE_MULTIARCH on __memset symbols.
17841
17842 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
17843
17844         * benchtests/Makefile (string-benchset): Add memcpy-large,
17845         memmove-large and memset-large.
17846         * benchtests/bench-memcpy-large.c: New file.
17847         * benchtests/bench-memmove-large.c: Likewise.
17848         * benchtests/bench-memmove-large.c: Likewise.
17849         * benchtests/bench-string.h (TIMEOUT): Don't redefine.
17850
17851 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
17852
17853         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Force
17854         32-bit displacement to avoid long nop between instructions.
17855
17856 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
17857
17858         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Add
17859         a comment on VMOVU and VMOVA.
17860
17861 2016-04-04  Florian Weimer  <fweimer@redhat.com>
17862
17863         [BZ #19633]
17864         Use specified locale for number formatting in strfmon_l.
17865         * locale/localeinfo.h (__nl_lookup, _nl_lookup_wstr)
17866         (__nl_lookup_word): New inline functions.
17867         * include/printf.h (__print_fp_l): Declare.
17868         * stdio-common/printf_fp.c (___printf_fp_l): Renamed from
17869         ___printf_fp.  Add locale argument.  Replace _NL_CURRENT with
17870         _nl_lookup and _NL_CURRENT_WORD with _nl_lookup_word.
17871         (___printf_fp): New function.
17872         * stdlib/strfmon_l.c (__printf_fp): Remove declaration.
17873         (__vstrfmon_l): Call __printf_fp_l instead of printf_fp.
17874         * stdlib/tst-strfmon_l.c (do_test): New test.
17875         * stdlib/Makefile (tests): Add kt.
17876         (LOCALES): Build additional locales.
17877         (tst-strfmon_l.out): Require locales.
17878
17879 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
17880
17881         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: Skip
17882         if not in libc.
17883         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
17884         Likewise.
17885         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S:
17886         Likewise.
17887         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
17888         Likewise.
17889
17890 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
17891
17892         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
17893         (__mempcpy_erms, __memmove_erms): Moved before __mempcpy_chk
17894         with unaligned_erms.
17895         (__memmove_erms): Skip if source == destination.
17896         (__memmove_unaligned_erms): Don't check source == destination
17897         first.
17898
17899 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
17900
17901         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
17902         bit_arch_Fast_Copy_Backward for Intel Core proessors.
17903
17904 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17905
17906         * string/strcspn.c (strcspn): Use PTR_ALIGN_DOWN.
17907         * string/strspn.c (strspn): Likewise.
17908
17909 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
17910
17911         * benchtests/bench-memset.c (do_test): Support 64-byte
17912         alignment.
17913         (test_main): Test 64-byte alignment.
17914
17915 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
17916
17917         * benchtests/bench-memmove.c (test_main): Test 64-byte
17918         alignment.
17919
17920 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
17921
17922         * benchtests/bench-memcpy.c (test_main): Test 64-byte alignment.
17923
17924 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17925
17926         * sysdeps/powerpc/powerpc64/strcspn.S: Remove file.
17927         * sysdeps/powerpc/powerpc64/strpbrk.S: Remove file.
17928         * sysdeps/powerpc/powerpc64/strspn.S: Remove file.
17929
17930         * string/strpbrk.c (strpbrk): Rewrite function.
17931         * string/bits/string2.h (strpbrk): Use __builtin_strpbrk.
17932         (__strpbrk_c2): Likewise.
17933         (__strpbrk_c3): Likewise.
17934         * string/string-inlines.c
17935         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c2):
17936         Likewise.
17937         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c3):
17938         Likewise.
17939
17940         * string/strspn.c (strcspn): Rewrite function.
17941         * string/bits/string2.h (strspn): Use __builtin_strcspn.
17942         (__strspn_c1): Remove inline function.
17943         (__strspn_c2): Likewise.
17944         (__strspn_c3): Likewise.
17945         * string/string-inlines.c
17946         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c1): Add
17947         compatibility symbol.
17948         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c2):
17949         Likewise.
17950         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c3):
17951         Likewise.
17952         * string/string-inlines.c: Include generic version.
17953
17954 2016-04-01  Wilco Dijkstra  <wdijkstr@arm.com>
17955             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17956
17957         * string/Version (libc): Add GLIBC_2.24.
17958         * string/strcspn.c (strcspn): Rewrite function.
17959         * string/bits/string2.h (strcspn): Use __builtin_strcspn.
17960         (__strcspn_c1): Remove inline function.
17961         (__strcspn_c2): Likewise.
17962         (__strcspn_c3): Likewise.
17963         * string/string-inline.c
17964         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c1): Add
17965         compatibility symbol.
17966         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c2):
17967         Likewise.
17968         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c3):
17969         Likewise.
17970         * sysdeps/i386/string-inlines.c: Include generic string-inlines.c.
17971
17972 2016-04-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
17973
17974         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
17975         Use ahi instead of aghi to adjust stack pointer.
17976
17977 2016-03-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
17978
17979         [BZ #19853]
17980         * stdio-common/tst-sprintf3.c [TEST_N]: Refactor
17981         TEST to take significant digits as second parameter.
17982         [TEST]: Redefine in terms of TEST_N taking 30
17983         significant digits.
17984         (do_test): Add test case to demonstrate precision
17985         failure in the ldbl-128ibm printf.
17986         * sysdeps/ieee754/ldbl-128ibm/ldbl2pm.c:
17987         (__mpn_extract_long_double): Carry 7 extra intermediate
17988         bits of precision to aide computing difference when
17989         signs differ.
17990
17991 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
17992
17993         [BZ #19881]
17994         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17995         memset-sse2-unaligned-erms, memset-avx2-unaligned-erms and
17996         memset-avx512-unaligned-erms.
17997         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
17998         (__libc_ifunc_impl_list): Test __memset_chk_sse2_unaligned,
17999         __memset_chk_sse2_unaligned_erms, __memset_chk_avx2_unaligned,
18000         __memset_chk_avx2_unaligned_erms, __memset_chk_avx512_unaligned,
18001         __memset_chk_avx512_unaligned_erms, __memset_sse2_unaligned,
18002         __memset_sse2_unaligned_erms, __memset_erms,
18003         __memset_avx2_unaligned, __memset_avx2_unaligned_erms,
18004         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
18005         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S: New
18006         file.
18007         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
18008         Likewise.
18009         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S:
18010         Likewise.
18011         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:
18012         Likewise.
18013
18014 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
18015
18016         [BZ #19776]
18017         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18018         memmove-sse2-unaligned-erms, memmove-avx-unaligned-erms and
18019         memmove-avx512-unaligned-erms.
18020         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
18021         (__libc_ifunc_impl_list): Test
18022         __memmove_chk_avx512_unaligned_2,
18023         __memmove_chk_avx512_unaligned_erms,
18024         __memmove_chk_avx_unaligned_2, __memmove_chk_avx_unaligned_erms,
18025         __memmove_chk_sse2_unaligned_2,
18026         __memmove_chk_sse2_unaligned_erms, __memmove_avx_unaligned_2,
18027         __memmove_avx_unaligned_erms, __memmove_avx512_unaligned_2,
18028         __memmove_avx512_unaligned_erms, __memmove_erms,
18029         __memmove_sse2_unaligned_2, __memmove_sse2_unaligned_erms,
18030         __memcpy_chk_avx512_unaligned_2,
18031         __memcpy_chk_avx512_unaligned_erms,
18032         __memcpy_chk_avx_unaligned_2, __memcpy_chk_avx_unaligned_erms,
18033         __memcpy_chk_sse2_unaligned_2, __memcpy_chk_sse2_unaligned_erms,
18034         __memcpy_avx_unaligned_2, __memcpy_avx_unaligned_erms,
18035         __memcpy_avx512_unaligned_2, __memcpy_avx512_unaligned_erms,
18036         __memcpy_sse2_unaligned_2, __memcpy_sse2_unaligned_erms,
18037         __memcpy_erms, __mempcpy_chk_avx512_unaligned_2,
18038         __mempcpy_chk_avx512_unaligned_erms,
18039         __mempcpy_chk_avx_unaligned_2, __mempcpy_chk_avx_unaligned_erms,
18040         __mempcpy_chk_sse2_unaligned_2, __mempcpy_chk_sse2_unaligned_erms,
18041         __mempcpy_avx512_unaligned_2, __mempcpy_avx512_unaligned_erms,
18042         __mempcpy_avx_unaligned_2, __mempcpy_avx_unaligned_erms,
18043         __mempcpy_sse2_unaligned_2, __mempcpy_sse2_unaligned_erms and
18044         __mempcpy_erms.
18045         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: New
18046         file.
18047         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
18048         Likewise.
18049         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
18050         Likewise.
18051         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
18052         Likewise.
18053
18054 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
18055
18056         * sysdeps/s390/bits/link.h: (La_s390_vr) New typedef.
18057         (La_s390_32_regs): Append vector register lr_v24-lr_v31.
18058         (La_s390_64_regs): Likewise.
18059         (La_s390_32_retval): Append vector register lrv_v24.
18060         (La_s390_64_retval): Likeweise.
18061         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
18062         Handle extended structs La_s390_32_regs and La_s390_32_retval.
18063         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
18064         Handle extended structs La_s390_64_regs and La_s390_64_retval.
18065
18066 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
18067
18068         [BZ #19916]
18069         * sysdeps/s390/s390-32/dl-trampoline.S: Include dl-trampoline.h twice
18070         to create a non-vector/vector version for _dl_runtime_resolve and
18071         _dl_runtime_profile. Move implementation to ...
18072         * sysdeps/s390/s390-32/dl-trampoline.h: ... here.
18073         (_dl_runtime_resolve) Save and restore fpr/vrs.
18074         (_dl_runtime_profile) Save and restore vrs and fix some issues
18075         if _dl_call_pltexit is called.
18076         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
18077         Choose the correct resolver function if running on a machine with vx.
18078         * sysdeps/s390/s390-64/dl-trampoline.S: Include dl-trampoline.h twice
18079         to create a non-vector/vector version for _dl_runtime_resolve and
18080         _dl_runtime_profile. Move implementation to ...
18081         * sysdeps/s390/s390-64/dl-trampoline.h: ... here.
18082         (_dl_runtime_resolve) Save and restore fpr/vrs.
18083         (_dl_runtime_profile) Save and restore vrs and fix some issues
18084         * sysdeps/s390/s390-64/dl-machine.h: (elf_machine_runtime_setup):
18085         Choose the correct resolver function if running on a machine with vx.
18086
18087 2016-03-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18088
18089         * elf/tst-dlsym-error.c: Include <string.h> for strchrnul.
18090
18091 2016-03-31  Florian Weimer  <fweimer@redhat.com>
18092
18093         [BZ #19509]
18094         * elf/dl-lookup.c (_dl_lookup_symbol_x): Report error even if
18095         skip_map != NULL.
18096         * elf/tst-dlsym-error.c: New file.
18097         * elf/Makefile (tests): Add tst-dlsym-error.
18098         (tst-dlsym-error): Link against libdl.
18099
18100 2016-03-29  Joseph Myers  <joseph@codesourcery.com>
18101
18102         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
18103         (__ASSUME_FUTIMESAT): Remove macro.
18104         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: Remove file.
18105
18106 2016-03-29  Florian Weimer  <fweimer@redhat.com>
18107
18108         [BZ #19879]
18109         CVE-2016-3075
18110         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Do not
18111         copy name.
18112
18113 2016-03-29  Florian Weimer  <fweimer@redhat.com>
18114
18115         [BZ #19837]
18116         * nss/nss_db/db-XXX.c (_nss_db_getENTNAME_r): Propagate ERANGE
18117         error if parse_line fails.
18118
18119 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
18120
18121         * sysdeps/x86/cpu-features.h (bit_cpu_ERMS): New.
18122         (index_cpu_ERMS): Likewise.
18123         (reg_ERMS): Likewise.
18124
18125 2016-03-28  Aurelien Jarno  <aurelien@aurel32.net>
18126
18127         * sysdeps/unix/sysv/linux/sys/personality.h (UNAME26, FDPIC_FUNCPTRS,
18128         PER_LINUX_FDPIC): Add.
18129
18130 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
18131
18132         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
18133         memcpy-avx512-no-vzeroupper.
18134         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: Renamed
18135         to ...
18136         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: This.
18137         (MEMCPY): Don't define.
18138         (MEMCPY_CHK): Likewise.
18139         (MEMPCPY): Likewise.
18140         (MEMPCPY_CHK): Likewise.
18141         (MEMPCPY_CHK): Renamed to ...
18142         (__mempcpy_chk_avx512_no_vzeroupper): This.
18143         (MEMPCPY_CHK): Renamed to ...
18144         (__mempcpy_chk_avx512_no_vzeroupper): This.
18145         (MEMCPY_CHK): Renamed to ...
18146         (__memmove_chk_avx512_no_vzeroupper): This.
18147         (MEMCPY): Renamed to ...
18148         (__memmove_avx512_no_vzeroupper): This.
18149         (__memcpy_avx512_no_vzeroupper): New alias.
18150         (__memcpy_chk_avx512_no_vzeroupper): Likewise.
18151
18152 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
18153
18154         [BZ #18858]
18155         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
18156         mempcpy-ssse3, mempcpy-ssse3-back, mempcpy-avx-unaligned
18157         and mempcpy-avx512-no-vzeroupper.
18158         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMPCPY_CHK):
18159         New.
18160         (MEMPCPY): Likewise.
18161         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S
18162         (MEMPCPY_CHK): New.
18163         (MEMPCPY): Likewise.
18164         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S (MEMPCPY_CHK): New.
18165         (MEMPCPY): Likewise.
18166         * sysdeps/x86_64/multiarch/memcpy-ssse3.S (MEMPCPY_CHK): New.
18167         (MEMPCPY): Likewise.
18168         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: Removed.
18169         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S:
18170         Likewise.
18171         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: Likewise.
18172         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: Likewise.
18173
18174 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
18175              Amit Pawar  <Amit.Pawar@amd.com>
18176
18177         [BZ #19583]
18178         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
18179         Fast_Unaligned_Copy with Fast_Unaligned_Load for Intel
18180         processors.  Set Fast_Copy_Backward for AMD Excavator
18181         processors.
18182         * sysdeps/x86/cpu-features.h (bit_arch_Fast_Unaligned_Copy):
18183         New.
18184         (index_arch_Fast_Unaligned_Copy): Likewise.
18185         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check
18186         Fast_Unaligned_Copy instead of Fast_Unaligned_Load.
18187
18188 2016-03-25  Florian Weimer  <fweimer@redhat.com>
18189
18190         [BZ #19791]
18191         * resolv/res_send.c (close_and_return_error): New function.
18192         (send_dg): Initialize *resplen2 after reopen failure.  Call
18193         close_and_return_error for error returns.  On error paths without
18194         __res_iclose, initialze *resplen2 explicitly.  Update comment for
18195         successful return.
18196
18197 2016-03-25  Florian Weimer  <fweimer@redhat.com>
18198
18199         [BZ #19860]
18200         * sysdeps/x86_64/tst-audit10.c (avx512_enabled): Always return
18201         zero if the compiler does not provide the AVX512F bit.
18202
18203 2016-03-24  Joseph Myers  <joseph@codesourcery.com>
18204
18205         [BZ #19848]
18206         * sysdeps/i386/fpu/e_powl.S (p3): Rename to p2 and change value
18207         from 8 to 4.
18208         (__ieee754_powl): Compare integer exponent against 4 not 8.
18209         * sysdeps/x86_64/fpu/e_powl.S (p3): Rename to p2 and change value
18210         from 8 to 4.
18211         (__ieee754_powl): Compare integer exponent against 4 not 8.
18212         * math/auto-libm-test-in: Add more tests of pow.
18213         * math/auto-libm-test-out: Regenerated.
18214         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
18215         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18216
18217 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
18218
18219         * sysdeps/unix/sysv/linux/futimens.c (futimens) [__NR_utimensat]:
18220         Make code unconditional.
18221         [!__NR_utimensat]: Remove conditional code.
18222         * sysdeps/unix/sysv/linux/lutimes.c (lutimes) [__NR_utimensat]:
18223         Make code unconditional.
18224         [!__NR_utimensat]: Remove conditional code.
18225         * sysdeps/unix/sysv/linux/utimensat.c (utimensat) [__NR_utimensat]:
18226         Make code unconditional.
18227         [!__NR_utimensat]: Remove conditional code.
18228
18229 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
18230
18231         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]:
18232         Make code unconditional.
18233
18234 2016-03-23  Nick Alcock  <nick.alcock@oracle.com>
18235
18236         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Reload
18237         call-clobbered %eax on retry path.
18238         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
18239
18240 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
18241
18242         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMCPY):
18243         Don't set %rcx twice before "rep movsb".
18244
18245 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
18246
18247         [BZ #19583]
18248         * sysdeps/x86/cpu-features.c (get_common_indeces): Remove
18249         inline.  Check family before setting family, model and
18250         extended_model.  Set AVX, AVX2, AVX512, FMA and FMA4 usable
18251         bits here.
18252         (init_cpu_features): Replace HAS_CPU_FEATURE and
18253         HAS_ARCH_FEATURE with CPU_FEATURES_CPU_P and
18254         CPU_FEATURES_ARCH_P.  Set index_arch_AVX_Fast_Unaligned_Load
18255         for Intel processors with usable AVX2.  Call get_common_indeces
18256         for other processors with family == NULL.
18257         * sysdeps/x86/cpu-features.h (CPU_FEATURES_CPU_P): New macro.
18258         (CPU_FEATURES_ARCH_P): Likewise.
18259         (HAS_CPU_FEATURE): Use CPU_FEATURES_CPU_P.
18260         (HAS_ARCH_FEATURE): Use CPU_FEATURES_ARCH_P.
18261
18262 2016-03-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18263
18264         * malloc/Makefile ($(objpfx)tst-malloc-backtrace,
18265         $(objpfx)tst-malloc-thread-exit, $(objpfx)tst-malloc-thread-fail): Use
18266         $(shared-thread-library) instead of hardcoding the path to libpthread.
18267
18268 2016-03-22  Joseph Myers  <joseph@codesourcery.com>
18269
18270         * sysdeps/unix/sysv/linux/kernel-features.h
18271         (__ASSUME_GETDENTS64_SYSCALL): Remove macro.
18272         * sysdeps/unix/sysv/linux/getdents.c
18273         [!__ASSUME_GETDENTS64_SYSCALL]: Remove conditional code.
18274         [!have_no_getdents64_defined]: Likewise.
18275         (__GETDENTS): Remove __have_no_getdents64 conditional.
18276
18277 2016-03-21  Joseph Myers  <joseph@codesourcery.com>
18278
18279         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SIGNALFD4):
18280         Remove macro.
18281         * sysdeps/unix/sysv/linux/signalfd.c: Do not include
18282         <kernel-features.h>.
18283         (signalfd) [__NR_signalfd4]: Make code unconditional.
18284         (signalfd) [!__ASSUME_SIGNALFD4]: Remove conditional code.
18285
18286 2016-03-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18287
18288         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix implict checks
18289         style.
18290
18291 2016-03-21  H.J. Lu  <hongjiu.lu@intel.com>
18292
18293         * sysdeps/unix/sysv/linux/x86_64/cancellation.S
18294         (__pthread_enable_asynccancel): Use JUMPTARGET to call
18295         __pthread_unwind.
18296         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
18297         (__condvar_cleanup2): Use JUMPTARGET to call _Unwind_Resume.
18298         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
18299         (__condvar_cleanup1): Likewise.
18300
18301 2016-03-21  Dylan Alex Simon  <dylan-sourceware@dylex.net>
18302
18303         [BZ #19822]
18304         * math/Makefile ($(inst_libdir)/libm.so): Write output to $@.tmp and
18305         move it to the final $@ location.
18306
18307 2016-03-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18308
18309         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix invalid memory
18310         access where posix_spawn success and pid argument is null.
18311         * posix/tst-spawn.c (do_test): Add posix_spawn null pid argument for
18312         success case.
18313
18314 2016-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>:
18315
18316         * sysdeps/mach/hurd/i386/c++-types.data: New file.
18317
18318         * sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1.
18319
18320         * sysdeps/generic/dl-fcntl.h: New file, adds attribute_hidden to __open
18321         and __fcntl.
18322         * sysdeps/mach/hurd/dl-fcntl.h: New file, adds attribute_hidden to
18323         __fcntl only.
18324         * include/fcntl.h [IS_IN (rtld)]: Include <dl-fcntl.h> instead of
18325         adding attribute_hidden to __open and __fcntl.
18326
18327         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Strip
18328         "-include $(common-objpfx)libc-modules.h" from CPPFLAGS, and do not
18329         depend on libc-modules.h,
18330         * mach/Makefile ($(objpfx)mach-syscalls.mk): Depend on libc-modules.h.
18331
18332 2016-03-17  Joseph Myers  <joseph@codesourcery.com>
18333
18334         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EVENTFD2):
18335         Remove macro.
18336         * sysdeps/unix/sysv/linux/eventfd.c: Remove file.
18337         * sysdeps/unix/sysv/linux/syscalls.list (eventfd): New syscall
18338         entry.
18339
18340         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FALLOCATE):
18341         Remove macro.
18342         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Do not
18343         include <kernel-features.h>.
18344         [!__ASSUME_FALLOCATE]: Remove conditional code.
18345         (posix_fallocate) [__NR_fallocate]: Make code unconditional.
18346
18347 2016-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18348
18349         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S
18350         (_ZGVbN2v_cos_sse4): Use JUMPTARGET to call cos.
18351         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S
18352         (_ZGVdN4v_cos_avx2): Likewise.
18353         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S
18354         (_ZGVdN4v_cos): Likewise.
18355         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S
18356         (_ZGVbN2v_exp_sse4): Use JUMPTARGET to call exp.
18357         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S
18358         (_ZGVdN4v_exp_avx2): Likewise.
18359         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S
18360         (_ZGVdN4v_exp): Likewise.
18361         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S
18362         (_ZGVbN2v_log_sse4): Use JUMPTARGET to call log.
18363         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S
18364         (_ZGVdN4v_log_avx2): Likewise.
18365         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S
18366         (_ZGVdN4v_log): Likewise.
18367         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S
18368         (_ZGVbN2vv_pow_sse4): Use JUMPTARGET to call pow.
18369         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S
18370         (_ZGVdN4vv_pow_avx2): Likewise.
18371         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S
18372         (_ZGVdN4vv_pow): Likewise.
18373         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S
18374         (_ZGVbN2v_sin_sse4): Use JUMPTARGET to call sin.
18375         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S
18376         (_ZGVdN4v_sin_avx2): Likewise.
18377         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S
18378         (_ZGVdN4v_sin): Likewise.
18379         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S
18380         (_ZGVbN2vvv_sincos_sse4): Use JUMPTARGET to call sin and cos.
18381         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S
18382         (_ZGVdN4vvv_sincos_avx2): Likewise.
18383         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S
18384         (_ZGVdN4vvv_sincos): Likewise.
18385         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S
18386         (_ZGVdN8v_cosf): Use JUMPTARGET to call cosf.
18387         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S
18388         (_ZGVbN4v_cosf_sse4): Likewise.
18389         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S
18390         (_ZGVdN8v_cosf_avx2): Likewise.
18391         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S
18392         (_ZGVdN8v_expf): Use JUMPTARGET to call expf.
18393         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S
18394         (_ZGVbN4v_expf_sse4): Likewise.
18395         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S
18396         (_ZGVdN8v_expf_avx2): Likewise.
18397         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S
18398         (_ZGVdN8v_logf): Use JUMPTARGET to call logf.
18399         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S
18400         (_ZGVbN4v_logf_sse4): Likewise.
18401         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S
18402         (_ZGVdN8v_logf_avx2): Likewise.
18403         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S
18404         (_ZGVdN8vv_powf): Use JUMPTARGET to call powf.
18405         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S
18406         (_ZGVbN4vv_powf_sse4): Likewise.
18407         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S
18408         (_ZGVdN8vv_powf_avx2): Likewise.
18409         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
18410         (_ZGVdN8vv_powf): Use JUMPTARGET to call sinf and cosf.
18411         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
18412         (_ZGVbN4vvv_sincosf_sse4): Likewise.
18413         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
18414         (_ZGVdN8vvv_sincosf_avx2): Likewise.
18415         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S
18416         (_ZGVdN8v_sinf): Use JUMPTARGET to call sinf.
18417         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S
18418         (_ZGVbN4v_sinf_sse4): Likewise.
18419         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S
18420         (_ZGVdN8v_sinf_avx2): Likewise.
18421         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h (WRAPPER_IMPL_SSE2):
18422         Use JUMPTARGET to call callee.
18423         (WRAPPER_IMPL_SSE2_ff): Likewise.
18424         (WRAPPER_IMPL_SSE2_fFF): Likewise.
18425         (WRAPPER_IMPL_AVX): Likewise.
18426         (WRAPPER_IMPL_AVX_ff): Likewise.
18427         (WRAPPER_IMPL_AVX_fFF): Likewise.
18428         (WRAPPER_IMPL_AVX512): Likewise.
18429         (WRAPPER_IMPL_AVX512_ff): Likewise.
18430         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h (WRAPPER_IMPL_SSE2):
18431         Likewise.
18432         (WRAPPER_IMPL_SSE2_ff): Likewise.
18433         (WRAPPER_IMPL_SSE2_fFF): Likewise.
18434         (WRAPPER_IMPL_AVX): Likewise.
18435         (WRAPPER_IMPL_AVX_ff): Likewise.
18436         (WRAPPER_IMPL_AVX_fFF): Likewise.
18437         (WRAPPER_IMPL_AVX512): Likewise.
18438         (WRAPPER_IMPL_AVX512_ff): Likewise.
18439         (WRAPPER_IMPL_AVX512_fFF): Likewise.
18440
18441 2016-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18442
18443         * sysdeps/mach/hurd/openat.c (__openat): Add missing ellipsis.
18444         * resolv/gai_sigqueue.c (__gai_sigqueue): Add missing internal_function
18445         qualifier.
18446         * /rt/aio_sigqueue.c (__aio_sigqueue): Add missing attribute_hidden
18447         internal_function qualifiers.
18448
18449 2016-03-15  Carlos O'Donell <carlos@redhat.com>
18450
18451         * catgets/tst-catgets.c (do_bz17905): Mark result unused.
18452         * dlfcn/bug-dl-leaf-lib.c (check_val_fini): Mark ret unused.
18453         * math/atest-exp.c (exp_mpn): Mark chk unused.
18454         * math/atest-exp2.c (exp_mpn): Likewise.
18455         * sysdeps/arm/dl-machine.h (elf_machine_rela): Mark td unused.
18456         * sysdeps/i386/i686/dl-hash.h: Mark _dl_elf_hash unused.
18457
18458 2016-03-15  Joseph Myers  <joseph@codesourcery.com>
18459
18460         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PPOLL):
18461         Remove macro.
18462         * sysdeps/unix/sysv/linux/ppoll.c: Do not include
18463         <kernel-features.h>.
18464         [__NR_ppoll]: Make code unconditional.
18465         [!__ASSUME_PPOLL]: Remove conditional code.
18466
18467         * sysdeps/unix/sysv/linux/kernel-features.h
18468         (__ASSUME_ACCEPT4_SYSCALL): Define unconditionally.
18469         (__ASSUME_ACCEPT4): Likewise.
18470         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
18471         Define.
18472         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG):
18473         Likewise.
18474         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
18475         Likewise.
18476         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG):
18477         Likewise.
18478         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: Remove file.
18479         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: Likewise.
18480         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
18481         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
18482         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
18483         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
18484         * sysdeps/unix/sysv/linux/arm/kernel-features.h
18485         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
18486         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
18487         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
18488         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
18489         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
18490         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
18491         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
18492         * sysdeps/unix/sysv/linux/i386/kernel-features.h
18493         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
18494         Likewise.
18495         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
18496         Likewise.
18497         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
18498         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
18499         0x040300].
18500         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
18501         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
18502         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
18503         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
18504         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
18505         0x030300].
18506         [__LINUX_KERNEL_VERSION < 0x030300] (__ASSUME_ACCEPT4): Undefine.
18507         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
18508         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
18509         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
18510         0x040300].
18511         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
18512         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
18513         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
18514         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
18515         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
18516         (__ASSUME_SENDMMSG_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
18517         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
18518         0x030300].
18519         * sysdeps/unix/sysv/linux/mips/kernel-features.h
18520         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
18521         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
18522         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
18523         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
18524         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
18525         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
18526         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
18527         * sysdeps/unix/sysv/linux/s390/kernel-features.h
18528         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
18529         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
18530         0x040300].
18531         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
18532         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
18533         * sysdeps/unix/sysv/linux/sh/kernel-features.h
18534         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
18535         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
18536         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
18537         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
18538         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
18539         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
18540         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
18541         * sysdeps/unix/sysv/linux/tile/kernel-features.h
18542         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
18543         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
18544         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
18545         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h
18546         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
18547         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
18548         Likewise.
18549         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
18550         Likewise.
18551
18552 2016-03-15  Andreas Schwab  <schwab@suse.de>
18553
18554         [BZ #19257]
18555         * resolv/res_init.c (__res_iclose): Use statp->nscount instead of
18556         statp->_u._ext.nscount as loop count.
18557
18558 2016-03-14  Andreas Schwab  <schwab@linux-m68k.org>
18559
18560         * math/test-signgam-finite-c99.c: Also #undef
18561         __LIBC_INTERNAL_MATH_INLINES.
18562         * math/test-signgam-main.c: Likewise.
18563
18564 2016-03-14  Joseph Myers  <joseph@codesourcery.com>
18565
18566         * bits/mman-linux.h [__USE_MISC] (MADV_FREE): New macro.
18567         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
18568         (MADV_FREE): Likewise.
18569         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_HDRINCL): Likewise.
18570         * sysdeps/unix/sysv/linux/sys/epoll.h (enum EPOLL_EVENTS): Add
18571         EPOLLEXCLUSIVE.
18572
18573 2016-03-14  Carlos O'Donell  <carlos@redhat.com>
18574
18575         * timezone/README: Remove mention of checktab.awk. Mention wiki
18576         SharedSourceFiles.
18577
18578 2016-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org
18579
18580         * sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of
18581         WUNTRACED.
18582
18583 2016-03-11  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
18584
18585         * malloc/malloc.c (malloc_consolidate): Replace 0 by NULL in
18586         order to match the type of p when calling atomic_exchange_acq().
18587
18588 2016-03-11  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
18589
18590         * sysdeps/powerpc/powerpc32/power4/memcmp.S (memcmp): Rearrange
18591         cfi_offset calls.
18592         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
18593         * sysdeps/powerpc/powerpc32/power7/memcmp.S (memcmp): Likewise.
18594         * sysdeps/powerpc/powerpc64/power4/memcmp.S (memcmp): Likewise.
18595         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Likewise.
18596         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Likewise.
18597
18598 2016-03-10  Carlos O'Donell  <carlos@redhat.com>
18599
18600         * timezone/checktab.awk: Removed.
18601
18602 2016-03-10  Joseph Myers  <joseph@codesourcery.com>
18603
18604         * manual/math.texi (Errors in Math Functions): Document relaxed
18605         accuracy goals for IBM long double.
18606         * math/libm-test.inc (test_exceptions): Always allow spurious
18607         "underflow" and "inexact" exceptions for IBM long double.
18608
18609 2016-03-10  H.J. Lu  <hongjiu.lu@intel.com>
18610
18611         [BZ #19762]
18612         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
18613         (EXTRA_LD_ENVVARS): Add _arch_ to index_*/bit_*.
18614         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
18615         * sysdeps/x86/cpu-features.h (bit_*): Renamed to ...
18616         (bit_arch_*): This for feature array.
18617         (bit_*): Renamed to ...
18618         (bit_cpu_*): This for cpu array.
18619         (index_*): Renamed to ...
18620         (index_arch_*): This for feature array.
18621         (index_*): Renamed to ...
18622         (index_cpu_*): This for cpu array.
18623         [__ASSEMBLER__] (HAS_FEATURE): Add and use field.
18624         [__ASSEMBLER__] (HAS_CPU_FEATURE)): Pass cpu to HAS_FEATURE.
18625         [__ASSEMBLER__] (HAS_ARCH_FEATURE)): Pass arch to HAS_FEATURE.
18626         [!__ASSEMBLER__] (HAS_CPU_FEATURE): Replace index_##name and
18627         bit_##name with index_cpu_##name and bit_cpu_##name.
18628         [!__ASSEMBLER__] (HAS_ARCH_FEATURE): Replace index_##name and
18629         bit_##name with index_arch_##name and bit_arch_##name.
18630
18631 2016-03-09  Aurelien Jarno  <aurelien@aurel32.net>
18632
18633         [BZ #19792]
18634         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
18635         Terminate FDE before return label.
18636
18637 2016-03-09  Joseph Myers  <joseph@codesourcery.com>
18638
18639         [BZ #19790]
18640         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c [USE_AS_NEARBYINTL]
18641         (rintl): Define as macro.
18642         [USE_AS_NEARBYINTL] (__rintl): Likewise.
18643         (__rintl) [USE_AS_NEARBYINTL]: Use SET_RESTORE_ROUND_NOEX instead
18644         of fesetround.  Ensure results are evaluated before end of scope.
18645         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Define
18646         USE_AS_NEARBYINTL and include s_rintl.c.
18647         * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc):
18648         Disable exception traps in new environment.
18649         (libc_feholdsetround_ppc_ctx): Likewise.
18650
18651 2016-03-08  Roland McGrath  <roland@hack.frob.com>
18652
18653         * sysdeps/x86_64/tst-audit10.c: #include <cpu-features.h>.
18654         * sysdeps/x86_64/tst-audit10-aux.c: Move audit_test extern decl ...
18655         (tst_audit10_aux) [__AVX512F__]: ... here.
18656
18657 2016-03-08  Aurelien Jarno  <aurelien@aurel32.net>
18658
18659         * include/sys/auxv.h: New file.
18660
18661 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
18662
18663         [BZ #19759]
18664         * sysdeps/x86/bits/string.h (_HAVE_STRING_ARCH_mempcpy): New.
18665
18666 2016-03-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
18667
18668         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Remove use of %s
18669         operand modifier.
18670         (feclearexcept): Likewise.
18671
18672 2016-03-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
18673
18674         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Updated
18675         to reflect the entire 32-bit HWCAP.
18676         * sysdeps/powerpc/dl-procinfo.h: Code cleanup.
18677         (_DL_HWCAP_FIRST): Removed.  Replaced by 0 accordingly.
18678
18679 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
18680
18681         [BZ #19783]
18682         * benchtests/Makefile (run-bench): Replace $(rtld-prefix) with
18683         $(test-via-rtld-prefix).
18684         ($(binaries-bench)): Replace $(+link) with $(+link-tests).
18685
18686 2016-03-08  Florian Weimer  <fweimer@redhat.com>
18687
18688         * sunrpc/key_call.c (key_call_keyenvoy): Use int status instead of
18689         union wait.  Report any non-zero exit status as error.
18690
18691 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18692
18693         * posix/tst-execvpe5.c (do_test): Fix fix test invocation when
18694         configured with --enable-hardcoded-path-in-tests.
18695
18696 2016-03-08  Joseph Myers  <joseph@codesourcery.com>
18697
18698         [BZ #19677]
18699         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
18700         (__ieee754_remainderl): Put zero low parts in canonical form.
18701         * sysdeps/ieee754/ldbl-128ibm/test-fmodrem-ldbl-128ibm.c: New
18702         file.  Based on
18703         sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c.
18704         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: Replace
18705         with wrapper round test-fmodrem-ldbl-128ibm.c.
18706         * sysdeps/ieee754/ldbl-128ibm/test-remainderl-ldbl-128ibm.c: New
18707         file.
18708         * sysdeps/ieee754/ldbl-128ibm/test-remquol-ldbl-128ibm.c:
18709         Likewise.
18710         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
18711         test-remainderl-ldbl-128ibm and test-remquol-ldbl-128ibm.
18712
18713 2016-03-07  Florian Weimer  <fweimer@redhat.com>
18714
18715         [BZ #19610]
18716         * elf/ldconfig.c (opt_link): Update comment.
18717         (options): Update help string for option -X.
18718         (search_dir): Unlink stale symbolic link only if updating symbolic
18719         links.
18720         * elf/tst-ldconfig-X.sh: New file.
18721         * elf/Makefile (tests-special): Add tst-ldconfig-X.out.
18722         (tst-ldconfig-X.out): New rule to run tst-ldconfig-X.sh.
18723
18724 2016-03-07  Andreas Schwab  <schwab@suse.de>
18725
18726         * iconv/gconv_builtin.h ("=ascii->INTERNAL"): Correct min/max
18727         needed arguments.
18728
18729 2016-03-07  Hongjiu Zhang  <noctuorare@gmail.com>
18730
18731         [BZ #15333]
18732         * elf/sln.c (makesymlink): Change struct stat to stat64, and lstat
18733         to lstat64.
18734
18735 2016-03-07  Florian Weimer  <fweimer@redhat.com>
18736
18737         * libio/filedoalloc.c (isatty): Remove.
18738         (local_isatty): Add comment.  Call __isatty directly.
18739         (_IO_file_doallocate): Update comment.  Assume _LIBC.
18740         * libio/wfiledoalloc.c (isatty): Remove.
18741         (_IO_wfile_doallocate): Update comment.
18742
18743 2016-03-07  Florian Weimer  <fweimer@redhat.com>
18744
18745         [BZ #19269]
18746         * sysdeps/x86_64/Makefile (tst-audit4): Depend on
18747         tst-audit4-aux.o.
18748         (tst-audit10): Depend on tst-audit10-aux.o.
18749         (CFLAGS-tst-audit4-aux.c): Compile with AVX enabled.
18750         (CFLAGS-tst-audit10-aux.c): Compile with AVX512 enabled.
18751         * sysdeps/x86_64/tst-audit4.c (do_test): Call tst_audit4_aux
18752         instead of inline AVX code.
18753         * sysdeps/x86_64/tst-audit10.c (do_test): Call tst_audit10_aux
18754         instead of inline AVX512 code.
18755         * sysdeps/x86_64/tst-audit4-aux.c: New file
18756         * sysdeps/x86_64/tst-audit10-aux.c: New file
18757
18758         [BZ #19648]
18759         * test-skeleton.c (main): Do not set RLIMIT_DATA.
18760
18761 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18762
18763         [BZ #14750]
18764         [BZ #10354]
18765         [BZ #18433]
18766         * include/sched.h (__clone): Add hidden prototype.
18767         (__clone2): Likewise.
18768         * include/unistd.h (__dup): Likewise.
18769         * posix/Makefile (tests): Add tst-spawn2.
18770         * posix/tst-spawn2.c: New file.
18771         * sysdeps/posix/dup.c (__dup): Add hidden definition.
18772         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Likewise.
18773         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
18774         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
18775         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
18776         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
18777         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise.
18778         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
18779         * sysdeps/unix/sysv/linux/microblaze/clone.S (__clone): Likewise.
18780         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
18781         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
18782         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
18783         Likewise.
18784         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
18785         Likewise.
18786         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
18787         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
18788         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
18789         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
18790         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
18791         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
18792         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
18793         * sysdeps/unix/sysv/linux/nptl-signals.h
18794         (____nptl_is_internal_signal): New function.
18795         * sysdeps/unix/sysv/linux/spawni.c: New file.
18796
18797         * posix/execvpe.c (__execvpe): Remove dynamic allocation.
18798         * posix/Makefile (tests): Add tst-execvpe{1,2,3,4,5,6}.
18799         * posix/tst-execvp1.c (do_test): Use a macro to call execvp.
18800         * posix/tst-execvp2.c (do_test): Likewise.
18801         * posix/tst-execvp3.c (do_test): Likewise.
18802         * posix/tst-execvp4.c (do_test): Likewise.
18803         * posix/tst-execvpe1.c: New file.
18804         * posix/tst-execvpe2.c: Likewise.
18805         * posix/tst-execvpe3.c: Likewise.
18806         * posix/tst-execvpe4.c: Likewise.
18807         * posix/tst-execvpe5.c: Likewise.
18808         * posix/tst-execvpe6.c: Likewise.
18809
18810         [BZ #19534]
18811         * posix/execl.c (execl): Remove dynamic memory allocation.
18812         * posix/execle.c (execle): Likewise.
18813         * posix/execlp.c (execlp): Likewise.
18814
18815 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
18816
18817         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S:
18818         Replace .text with .text.avx512.
18819         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
18820         Likewise.
18821
18822 2016-03-07  Aurelien Jarno  <aurelien@aurel32.net>
18823
18824         * sysdeps/generic/libnsl.abilist: New file.
18825         * sysdeps/generic/libutil.abilist: New file.
18826
18827 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
18828
18829         [BZ #19762]
18830         * sysdeps/i386/i686/multiarch/bcopy.S (bcopy): Use
18831         HAS_ARCH_FEATURE with Fast_Rep_String.
18832         * sysdeps/i386/i686/multiarch/bzero.S (__bzero): Likewise.
18833         * sysdeps/i386/i686/multiarch/memcpy.S (memcpy): Likewise.
18834         * sysdeps/i386/i686/multiarch/memcpy_chk.S (__memcpy_chk):
18835         Likewise.
18836         * sysdeps/i386/i686/multiarch/memmove_chk.S (__memmove_chk):
18837         Likewise.
18838         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy): Likewise.
18839         * sysdeps/i386/i686/multiarch/mempcpy_chk.S (__mempcpy_chk):
18840         Likewise.
18841         * sysdeps/i386/i686/multiarch/memset.S (memset): Likewise.
18842         * sysdeps/i386/i686/multiarch/memset_chk.S (__memset_chk):
18843         Likewise.
18844
18845 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
18846
18847         [BZ #19745]
18848         * sysdeps/x86_64/crti.S (_init): Replace PREINIT_FUNCTION@PLT
18849         with *%rax in call.
18850
18851 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
18852
18853         [BZ #19745]
18854         * sysdeps/x86_64/start.S (_start): Replace __libc_start_main@PLT
18855         with *__libc_start_main@GOTPCREL(%rip) in call.
18856
18857 2016-03-04  Roland McGrath  <roland@hack.frob.com>
18858
18859         * Makefile (tests-special): Add $(objpfx)c++-types-check.out only
18860         inside conditional for nonempty $(CXX).
18861
18862         * math/Makefile (tests): Add test-math-isinff only if $(CXX) is
18863         nonempty.
18864
18865         * Makefile ($(objpfx)c++-types-check.out): Fix conditionalization
18866         to test for empty $(CXX) rather than $(CXX) of "no".
18867
18868 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
18869
18870         * sysdeps/x86_64/Makefile (sysdep_noprof): Add comments.
18871
18872 2016-03-04  Amit Pawar  <Amit.Pawar@amd.com>
18873             H.J. Lu  <hongjiu.lu@intel.com>
18874
18875         [BZ #18880]
18876         * sysdeps/x86_64/multiarch/memcpy.S: Check Fast_Unaligned_Load,
18877         instead of Slow_BSF, and also check for Fast_Copy_Backward to
18878         enable __memcpy_ssse3_back.
18879
18880 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
18881
18882         [BZ #19758]
18883         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
18884         (EXTRA_LD_ENVVARS): Or in bit_Prefer_MAP_32BIT_EXEC.
18885
18886 2016-03-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
18887
18888         [BZ #19490]
18889         * sysdeps/x86_64/_mcount.S (_mcount): Add unwind descriptor.
18890         (__fentry__): Likewise.
18891
18892 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
18893
18894         * gmon/Makefile (noprof): Add $(sysdep_noprof).
18895         * sysdeps/x86_64/Makefile (sysdep_noprof): Add _mcount.
18896
18897 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
18898
18899         * sysdeps/x86_64/_mcount.S (C_LABEL(_mcount)): Call
18900         __mcount_internal directly.
18901         (C_LABEL(__fentry__)): Likewise.
18902         * sysdeps/x86_64/setjmp.S __sigsetjmp): Call __sigjmp_save
18903         directly.
18904
18905 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
18906
18907         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
18908         (__start_context): Call __setcontext directly.
18909
18910 2016-02-26  Joseph Myers  <joseph@codesourcery.com>
18911
18912         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
18913         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
18914         [__LINUX_KERNEL_VERSION >= 0x030200]: Likewise.
18915         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
18916         * sysdeps/unix/sysv/linux/arm/kernel-features.h
18917         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
18918         [__LINUX_KERNEL_VERSION >= 0x020624]: Likewise.
18919         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
18920         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
18921         [__LINUX_KERNEL_VERSION >= 0x020622]: Likewise.
18922         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
18923         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
18924         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
18925         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
18926         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
18927         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
18928         [__LINUX_KERNEL_VERSION < 0x030000]: Remove conditional code.
18929         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
18930         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
18931         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
18932         [__LINUX_KERNEL_VERSION < 0x020625]: Likewise.
18933         * sysdeps/unix/sysv/linux/mips/kernel-features.h
18934         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
18935         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
18936         [_MIPS_SIM == _ABIN32 && __LINUX_KERNEL_VERSION < 0x020623]:
18937         Remove conditional code.
18938         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
18939         [__LINUX_KERNEL_VERSION >= 0x020625]: Make code unconditional.
18940         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
18941         * sysdeps/unix/sysv/linux/sh/kernel-features.h
18942         [__LINUX_KERNEL_VERSION >= 0x020625]: Likewise.
18943         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
18944         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
18945         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
18946         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
18947         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
18948         * sysdeps/unix/sysv/linux/tile/kernel-features.h
18949         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
18950
18951 2016-02-24  Marko Myllynen  <myllynen@redhat.com>
18952
18953         * NEWS (2.23): Fix typo in bug 19048 text.
18954
18955 2016-02-24  Carlos O'Donell  <carlos@redhat.com>
18956
18957         [BZ #14259]
18958         * Makeconfig: Rename msgcatdir to localedir.
18959         Rename inst_msgcatdir to inst_localedir.
18960         * catgets/Makefile (catgets-CPPFLAGS): Use localedir.
18961         * config.make.in: Add localedir.
18962         * elf/Makefile ($(objpfx)sotruss): Use localedir.
18963         (ldd-rewrite): Likewise.
18964         * intl/Makefile: Rename inst_msgcatdir to inst_localedir.
18965         (install-others): Use inst_localedir.
18966         (CPPFLAGS): Use localedir.
18967         * locale/Makefile (locale-CPPFLAGS): Likewise.
18968         * po/Makefile (mo-installed): Use inst_localedir.
18969
18970         [BZ #19575]
18971         * localedata/charmaps/GB18030: Update comments regarding PAU to
18972         non-PUA mappings.
18973
18974 2016-02-24  Joseph Myers  <joseph@codesourcery.com>
18975
18976         * sysdeps/unix/sysv/linux/configure.ac (linux/fanotify.h): Do not
18977         test for header.
18978         * sysdeps/unix/sysv/linux/configure: Regenerated.
18979         * config.h.in (HAVE_LINUX_FANOTIFY_H): Remove #undef.
18980         * sysdeps/unix/sysv/linux/tst-fanotify.c [!HAVE_LINUX_FANOTIFY_H]:
18981         Remove conditional code.
18982         [HAVE_LINUX_FANOTIFY_H]: Make code unconditional.
18983
18984         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
18985         Define to 3.2.0.
18986         (arch_minimum_kernel): Likewise.
18987         * sysdeps/unix/sysv/linux/configure: Regenerated.
18988         * sysdeps/unix/sysv/linux/i386/configure.ac (arch_minimum_kernel):
18989         Define to 2.6.32.
18990         * sysdeps/unix/sysv/linux/i386/configure: Regenerated.
18991         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac
18992         (arch_minimum_kernel): Define to 2.6.32.
18993         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerated.
18994         * README: Document Linux 3.2 requirement.
18995         * manual/install.texi (Linux): Document Linux 3.2 headers
18996         requirement.
18997         * INSTALL: Regenerated.
18998
18999 2016-02-24  Andreas Schwab  <schwab@suse.de>
19000
19001         * math/test-math-isinff.cc (do_test): Only call isinfl and isnanl
19002         if !NO_LONG_DOUBLE.
19003
19004 2016-02-22  Roland McGrath  <roland@hack.frob.com>
19005
19006         * sysdeps/arm/nacl/libc.abilist (GLIBC_2.23): Add GLIBC_2.23,
19007         fts64_children, fts64_close, fts64_open, fts64_read and fts64_set.
19008
19009 2016-02-22  Dmitry V. Levin  <ldv@altlinux.org>
19010
19011         [BZ #19512]
19012         * config.h.in (HAVE_BUILTIN_EXPECT): New macro.
19013
19014 2016-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
19015
19016         * posix/tst-dir.c: Include libc-internal.h.
19017
19018 2016-02-20  Florian Weimer  <fweimer@redhat.com>
19019
19020         [BZ #19056]
19021         * dirent/dirent.h (readdir_r, readdir64_r): Mark as deprecated.
19022         * manual/filesys.texi (Reading/Closing Directory): Mention
19023         deprecaion.
19024         * posix/tst-dir.c (main): Disable deprecation warning in test.
19025
19026 2016-02-19  H.J. Lu  <hongjiu.lu@intel.com>
19027
19028         [BZ #19679]
19029         * sysdeps/x86_64/dl-trampoline.S (DL_RUNIME_UNALIGNED_VEC_SIZE):
19030         Renamed to ...
19031         (DL_RUNTIME_UNALIGNED_VEC_SIZE): This.  Set to 8.
19032         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
19033         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.  Updated.
19034         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
19035         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
19036         * sysdeps/x86_64/dl-trampoline.h
19037         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
19038         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
19039
19040 2016-02-19  Mark Wielaard  <mjw@redhat.com>
19041
19042         * elf/elf.h: Add NT_ARM_SYSTEM_CALL.
19043
19044 2016-02-19  Mark Wielaard  <mjw@redhat.com>
19045
19046         * elf/elf.h (R_386_GOT32X): New.
19047         (R_386_NUM): Update.
19048         (R_X86_64_GOTPCRELX: New.
19049         (R_X86_64_REX_GOTPCRELX): New.
19050         (R_X86_64_NUM): Update.
19051
19052 2016-02-19  Mike Frysinger  <vapier@gentoo.org>
19053
19054         * test-skeleton.c (TIMEOUT): Change to 20 and adjust comment.
19055
19056 2016-02-19  Carlos O'Donell  <carlos@systemhalted.org>
19057
19058         * nptl/allocatestack.c (allocate_stack): Declare new stackaddr,
19059         assign attr->stackaddr to it, and adjust it down when
19060         _STACK_GROWS_UP.  Change all attr->stackaddr to stackaddr.
19061         [_STACK_GROWS_UP]: Delete assert.
19062         * nptl/pthread_create.c (START_THREAD_DEFN) [!_STACK_GROWS_DOWN]:
19063         Implement stack grows up logic.
19064         * nptl/pthread_getattr_np.c (pthread_getattr_np): Implement
19065         stack grows up logic.
19066
19067 2016-02-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19068
19069         * NEWS: Update with 2.24 template.
19070
19071 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
19072
19073         [BZ #19678]
19074         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
19075         Ensure +0.0 is returned when taking the next value below the least
19076         positive value.
19077
19078 2016-02-19  Florian Weimer  <fweimer@redhat.com>
19079
19080         * sysdeps/generic/malloc-machine.h: Assume mutex_init is always
19081         available.  Do not define NO_THREADS.
19082         * malloc/malloc.c: Do not check NO_THREADS.
19083         * malloc/arena.c: Likewise.
19084
19085 2016-02-19  Florian Weimer  <fweimer@redhat.com>
19086
19087         * malloc/malloc.c (__libc_mallinfo): Update comment.
19088         (struct malloc_par): Remove max_total_mem member, it was always 0.
19089         (int_mallinfo): Store 0 into usmblks (no functional change).
19090         * malloc/hooks.c (struct malloc_state): Document that
19091         max_total_mem is always 0.
19092         * malloc/malloc.h (struct mallinfo): Dcoument that usmblks is
19093         always 0.
19094         * manual/memory.texi (Statistics of Malloc): Likewise.
19095
19096 2016-02-19  Florian Weimer  <fweimer@redhat.com>
19097
19098         * malloc/malloc.c (sysmalloc): Do not update arena_max.
19099         * malloc/arena.c (arena_max): Remove.
19100         (heap_trim, _int_new_arena): Do not update arena_max.
19101
19102 2016-02-19  Florian Weimer  <fweimer@redhat.com>
19103
19104         * resolv/res_init.c (res_ninit): Update comment.
19105
19106 2016-02-19  Florian Weimer  <fweimer@redhat.com>
19107
19108         [BZ #19505]
19109         * posix/spawn_int.h: Add headers and include guard.
19110         (__spawn_valid_fd): New function.
19111         * posix/spawn_faction_addopen.c
19112         (posix_spawn_file_actions_addopen): Use __spawn_valid_fd.
19113         * posix/spawn_faction_addclose.c
19114         (posix_spawn_file_actions_addclose): Likewise.
19115         * posix/spawn_faction_adddup2.c
19116         (posix_spawn_file_actions_adddup2): Likewise.  Add check for
19117         second file descriptor.
19118         * posix/spawn_valid_fd.c: New file.
19119         * posix/tst-posix_spawn-fd.c: New file.
19120         * posix/Makefile (routines): Add spawn_valid_fd.
19121         (tests): Add tst-posix_spawn-fd.
19122
19123 2016-02-19  Florian Weimer  <fweimer@redhat.com>
19124
19125         * malloc/tst-malloc-thread-exit.c: Include test-skeleton.c early.
19126         (do_test): Limit the number of arenas, so that we can use fewer
19127         outer threads.  Limit timeout to 3 seconds, in preparation for a
19128         larger TIMEOUT value.
19129
19130 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
19131
19132         [BZ #19674]
19133         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Include
19134         sign in overflowing and underflowing results when overflow or
19135         underflow is detected early.  Include sign in result before rather
19136         than after scaling.
19137
19138         [BZ #19603]
19139         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
19140         (__ieee754_remainderl): Adjust sign of integer version of low part
19141         when taking absolute value of high part.
19142         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
19143         * math/libm-test.inc (remainder_test_data): Add another test.
19144         (remquo_test_data): Likewise.
19145
19146 2016-02-18  Joseph Myers  <joseph@codesourcery.com>
19147
19148         [BZ #19602]
19149         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Handle
19150         equal high parts and both low parts zero specially.
19151         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: New test.
19152         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
19153         Add test-fmodl-ldbl-128ibm.
19154
19155         [BZ #19595]
19156         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Use
19157         common logic for all cases of shifting subnormal results.  Do not
19158         insert sign bit in shifted mantissa.  Always pass -1023 as biased
19159         exponent to ldbl_insert_mantissa in subnormal case.
19160
19161         [BZ #19594]
19162         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Use __round
19163         on high and low parts then adjust result and use
19164         ldbl_canonicalize_int if needed.
19165
19166         [BZ #19593]
19167         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Use __trunc
19168         on high part and __floor or __ceil on low part then use
19169         ldbl_canonicalize_int if needed.
19170
19171         [BZ #19592]
19172         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Use __ceil on
19173         high and low parts then use ldbl_canonicalize_int if needed.
19174
19175         [BZ #17899]
19176         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
19177         New function.
19178         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Use __floor
19179         on high and low parts then use ldbl_canonicalize_int if needed.
19180
19181 2016-02-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19182
19183         * configure: Regenerated.
19184
19185         * po/libc.pot: Regenerated.
19186
19187         * po/be.po: Updated translation.
19188         * po/bg.po: Likewise.
19189         * po/ca.po: Likewise.
19190         * po/cs.po: Likewise.
19191         * po/da.po: Likewise.
19192         * po/el.po: Likewise.
19193         * po/eo.po: Likewise.
19194         * po/es.po: Likewise.
19195         * po/fi.po: Likewise.
19196         * po/fr.po: Likewise.
19197         * po/gl.po: Likewise.
19198         * po/hr.po: Likewise.
19199         * po/hu.po: Likewise.
19200         * po/ia.po: Likewise.
19201         * po/id.po: Likewise.
19202         * po/it.po: Likewise.
19203         * po/ja.po: Likewise.
19204         * po/lt.po: Likewise.
19205         * po/nb.po: Likewise.
19206         * po/nl.po: Likewise.
19207         * po/pt_BR.po: Likewise.
19208         * po/rw.po: Likewise.
19209         * po/sk.po: Likewise.
19210         * po/sl.po: Likewise.
19211         * po/sv.po: Likewise.
19212         * po/tr.po: Likewise.
19213         * po/zh_CN.po: Likewise.
19214         * po/zh_TW.po: Likewise.
19215
19216         * version.h (RELEAES): Set to "development".
19217         (VERSION): Set to 2.23.90.
19218
19219         * version.h (RELEASE): Set to "stable".
19220         (VERSION): Set to 2.23.
19221         * include/feature.h (__GLIBC_MINOR__): Set to 23.
19222
19223         * NEWS: Updated fixed bugs.
19224
19225 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
19226             Wilco Dijkstra  <wdijkstr@arm.com>
19227
19228         [BZ #19462]
19229         * bits/string.h (_STRING_ARCH_unaligned): Renamed to ...
19230         (_STRING_INLINE_unaligned): This.
19231         * include/string.h: Include <string_private.h>.
19232         * string/bits/string2.h: Replace _STRING_ARCH_unaligned with
19233         _STRING_INLINE_unaligned.
19234         * sysdeps/aarch64/bits/string.h (_STRING_ARCH_unaligned): Removed.
19235         (_STRING_INLINE_unaligned): New.
19236         * sysdeps/aarch64/string_private.h: New file.
19237         * sysdeps/generic/string_private.h: Likewise.
19238         * sysdeps/m68k/m680x0/m68020/string_private.h: Likewise.
19239         * sysdeps/s390/string_private.h: Likewise.
19240         * sysdeps/x86/string_private.h: Likewise.
19241         * sysdeps/m68k/m680x0/m68020/bits/string.h
19242         (_STRING_ARCH_unaligned): Renamed to ...
19243         (_STRING_INLINE_unaligned): This.
19244         * sysdeps/s390/bits/string.h (_STRING_ARCH_unaligned): Renamed
19245         to ...
19246         (_STRING_INLINE_unaligned): This.
19247         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Renamed
19248         to ...
19249         (_STRING_INLINE_unaligned): This.
19250         * sysdeps/x86/bits/string.h (_STRING_ARCH_unaligned): Renamed
19251         to ...
19252         (_STRING_INLINE_unaligned): This.
19253
19254 2016-02-17  Andrew Senkevich  <andrew.senkevich@intel.com>
19255             H.J. Lu  <hongjiu.lu@intel.com>
19256
19257         [BZ #19590]
19258         * sysdeps/x86_64/fpu/svml_finite_alias.S (ALIAS_IMPL): Use PIC
19259         relocation.
19260
19261 2016-02-15  Carlos O'Donell  <carlos@redhat.com>
19262
19263         [BZ #18665]
19264         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Always set
19265         *herrno_p.
19266         (gaih_getanswer): Document functional behviour. Return tryagain
19267         if any result is tryagain.
19268         * resolv/res_query.c (__libc_res_nsearch): Set buffer size to zero
19269         when freed.
19270         * resolv/res_send.c: Add copyright text.
19271         (__libc_res_nsend): Document that MAXPACKET is expected.
19272         (send_vc): Document. Remove buffer reuse.
19273         (send_dg): Document. Remove buffer reuse. Set *thisanssizp to set the
19274         size of the buffer. Add Dprint for truncated UDP buffer.
19275
19276 2016-02-14  Carlos O'Donell  <carlos@redhat.com>
19277
19278         * manual/install.texi: Latest tested is GCC 5.3, texinfo 6.0, gawk
19279         4.1.3, and sed 4.2.2. Remove po2test.sed comments.
19280         * INSTALL: Regenerate.
19281
19282 2016-02-14  Jakub Jelinek  <jakub@redhat.com>
19283             Jonathan Wakely  <jwakely@redhat.com>
19284             Carlos O'Donell  <carlos@redhat.com>
19285
19286         [BZ 19439]
19287         * math/Makefile (tests): Add test-math-isinff.
19288         (CFLAGS-test-math-isinff.cc): Use -std=gnu++11.
19289         * math/bits/mathcalls.h [__USE_MISC]: Use
19290         '|| __MATH_DECLARING_DOUBLE == 0' to relax definition of
19291         functions not in C++11 and which don't conflict e.g. isinff,
19292         isinfl etc.
19293         * math/test-math-isinff.cc: New file.
19294
19295 2016-02-12  Florian Weimer  <fweimer@redhat.com>
19296
19297         * misc/bug18240.c (do_test): Set RLIMIT_AS.
19298
19299 2016-02-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19300
19301         [BZ #19529]
19302         * stdlib/Makefile (CFLAGS-tst-makecontext.c): Add -funwind-tables.
19303
19304 2016-02-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
19305
19306         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
19307
19308 2016-02-01  Joseph Myers  <joseph@codesourcery.com>
19309
19310         [BZ #19550]
19311         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: New file.
19312         * sysdeps/unix/sysv/linux/mips/mips64/mmap64.c: Move to ....
19313         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: ... here.
19314         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: New file.
19315         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (mmap64):
19316         New syscall entry.
19317         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list (mmap):
19318         New syscall entry.
19319         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (mmap): Remove
19320         syscall entry.
19321
19322 2016-01-27  Paul Eggert  <eggert@cs.ucla.edu>
19323
19324         [BZ #18240]
19325         * misc/hsearch_r.c (isprime, __hcreate_r): Protect against
19326         unsigned int wraparound.
19327
19328 2016-01-27  Florian Weimer  <fweimer@redhat.com>
19329
19330         [BZ #18240]
19331         * misc/bug18240.c: New test.
19332         * misc/Makefile (tests): Add it.
19333
19334 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
19335             Joseph Myers  <joseph@codesourcery.com>
19336
19337         * sysdeps/mips/memcpy.S (MEMCPY_NAME) [USE_DOUBLE]: Avoid word
19338         load in branch delay slot when less than a word of input left.
19339
19340 2016-01-27  Andreas Schwab  <schwab@suse.de>
19341
19342         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (half): Remove.
19343         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (maxlog, big): Remove.
19344         * sysdeps/powerpc/fpu/s_cosf.c (one): Remove.
19345         * sysdeps/powerpc/fpu/e_hypotf.c (two30): Remove.
19346
19347 2016-01-26  David S. Miller  <davem@davemloft.net>
19348
19349         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Add _Q_cmp.
19350
19351 2016-01-25  David S. Miller  <davem@davemloft.net>
19352
19353         * sysdeps/sparc/sparc32/Versions (GLIBC_2.23): Add entry for
19354         __sqrtl_finite.
19355         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c (__sqrtl_finite): Define
19356         instead using versioned_symbol.
19357         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Fix ordering
19358         of entries.
19359
19360         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Move
19361         __sqrtl_finite to GLIBC_2.23
19362
19363 2016-01-25  Ricchard Henderson  <rth@redhat.com>
19364
19365         * sysdeps/alpha/fpu/libm-test-ulps: Update.
19366
19367 2016-01-25  Andreas Schwab  <schwab@suse.de>
19368
19369         [BZ #17514]
19370         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock)
19371         <case PTHREAD_MUTEX_ERRORCHECK_NP>: Don't do lock elision.
19372         * nptl/Makefile (tests): Add tst-mutex-errorcheck.
19373         * nptl/tst-mutex-errorcheck.c: New file.
19374
19375 2016-01-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
19376
19377         [BZ #18560]
19378         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (__ipc): Remove.
19379         (IPCOP_semop): Likewise.
19380         (IPCOP_semget): Likewise.
19381         (IPCOP_semctl): Likewise.
19382         (IPCOP_msgsnd): Likewise.
19383         (IPCOP_msgrcv): Likewise.
19384         (IPCOP_msgget): Likewise.
19385         (IPCOP_msgctl): Likewise.
19386         (IPCOP_shmat): Likewise.
19387         (IPCOP_shmdt): Likewise.
19388         (IPCOP_shmget): Likewise.
19389         (IPCOP_shmctl): Likewise.
19390
19391 2016-01-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
19392
19393         * string/tst-endian.c: Include <libc-internal.h>.
19394         (do_test): Ignore tautological-compare warnings around
19395         "htobeXX (beXXtoh (i)) != i" and
19396         "htoleXX (leXXtoh (i)) != i" if-statements.
19397
19398 2016-01-24  David S. Miller  <davem@davemloft.net>
19399
19400         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c: New file.
19401         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c (__ieee754_sqrtl): Remove
19402         alias.
19403         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
19404         __sqrtl_finite.
19405
19406         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19407
19408 2016-01-25  Maciej W. Rozycki  <macro@imgtec.com>
19409
19410         * sysdeps/unix/sysv/linux/mips/configure.ac: Set
19411         `arch_minimum_kernel' to 4.5.0 if 2008 NaN encoding is used.
19412         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
19413
19414 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
19415
19416         * nptl/tst-setuid3.c (is_invalid_barrier_ret): New function.
19417         (thread_func): Use new function to simplify barrier check.
19418         (do_test): Use new function to simplify checking barrier exit
19419         code, and actually join the child thread.
19420
19421 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
19422
19423         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin): Remove
19424         semicolon.
19425         (__libc_tend): Likewise.
19426         (__libc_tabort): Likewise.
19427
19428 2016-01-22  Chung-Lin Tang  <cltang@codesourcery.com>
19429
19430         * sysdeps/nios2/libm-test-ulps: Update.
19431         * sysdeps/unix/sysv/linux/nios2/localplt.data (__gtdf2): Add.
19432         (__gtsf2): Likewise.
19433         (__unorddf2): Likewise.
19434         (__unordsf2): Likewise.
19435         (__ledf2): Likewise.
19436
19437 2016-01-20  Chris Metcalf  <cmetcalf@ezchip.com>
19438
19439         * nis/nis_table.c (__follow_path): Disable diagnostic for
19440         uninitialized variable that is a false positive for gcc 4.7.
19441         * stdio-common/vfscanf.c (_IO_vfwscanf): Likewise.
19442
19443 2016-01-20  Roland McGrath  <roland@hack.frob.com>
19444
19445         * sysdeps/nacl/lowlevellock-futex.h
19446         (lll_futex_wait, lll_futex_timed_wait, lll_futex_wake):
19447         Always evaluate PRIVATE argument.
19448
19449 2016-01-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
19450
19451         [BZ #19490]
19452         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
19453         (pthread_cond_broadcast): Use ENTRY/END
19454         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
19455         (pthread_cond_signal): Likewise.
19456         * sysdeps/x86_64/nptl/pthread_spin_lock.S (pthread_spin_lock):
19457         Likewise.
19458         * sysdeps/x86_64/nptl/pthread_spin_trylock.S (pthread_spin_trylock):
19459         Likewise.
19460         * sysdeps/x86_64/nptl/pthread_spin_unlock.S (pthread_spin_unlock):
19461         Likewise.
19462
19463 2016-01-20  Joseph Myers  <joseph@codesourcery.com>
19464
19465         * sysdeps/ieee754/dbl-64/s_finite.c
19466         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Define
19467         compat symbol at version GLIBC_2_1 and use GLIBC_2_1 in
19468         SHLIB_COMPAT condition for libm, not GLIBC_2_0.
19469         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c
19470         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Likewise.
19471
19472         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
19473         (__gtsf2): Add as optional for libc.so.
19474         (__unordsf2): Likewise.
19475         (__signbit): Remove for libc.so.
19476         (__signbitl): Likewise.
19477
19478 2016-01-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
19479
19480         * iconvdata/bug-iconv11.c (test_ibm93x):
19481         Use %zu printf format specifier for size_t argument.
19482
19483 2016-01-19  Joseph Myers  <joseph@codesourcery.com>
19484
19485         * math/gen-libm-test.pl (parse_ulps): Do not reduce
19486         already-recorded ulps.
19487         * sysdeps/arm/libm-test-ulps: Regenerated.
19488         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
19489         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
19490         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
19491
19492 2016-01-19  Andrew Senkevich  <andrew.senkevich@intel.com>
19493             Paul Pluzhnikov  <ppluzhnikov@google.com>
19494
19495         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Fixed build with
19496         assembler not supporting AVX-512.
19497
19498 2016-01-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
19499
19500         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
19501
19502 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
19503
19504         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
19505         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
19506
19507         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
19508
19509         * sysdeps/arm/libm-test-ulps: Regenerated.
19510
19511 2016-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
19512
19513         [BZ #19451]
19514         * math/Makefile (libm-vec-tests): Move libraries after wrappers.o
19515
19516 2016-01-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
19517
19518         [BZ #19486]
19519         * sysdeps/s390/fix-fp-int-convert-overflow.h: New File.
19520         * sysdeps/generic/fix-fp-int-convert-overflow.h
19521         (FIX_LDBL_LONG_CONVERT_OVERFLOW,
19522         FIX_LDBL_LLONG_CONVERT_OVERFLOW): New define.
19523         * sysdeps/arm/fix-fp-int-convert-overflow.h: Likewise.
19524         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h:
19525         Likewise.
19526         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl):
19527         Avoid conversions to long int where inexact exceptions
19528         could be raised.
19529         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl):
19530         Likewise.
19531         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl):
19532         Avoid conversions to long long int where inexact exceptions
19533         could be raised.
19534         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl):
19535         Likewise.
19536
19537 2016-01-17  Mike Frysinger  <vapier@gentoo.org>
19538
19539         * configure.ac: Rewrite error comment and use AC_MSG_ERROR.
19540         * configure: Regenerated.
19541
19542 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
19543
19544         * sysdeps/x86_64/multiarch/memcpy_chk.S: Fixed typos.
19545
19546 2016-01-16  Mike Frysinger  <vapier@gentoo.org>
19547
19548         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT): Move
19549         outside of comment.
19550
19551 2016-01-15  Torvald Riegel  <triegel@redhat.com>
19552
19553         * nptl/tst-barrier1.c: Add description on first line.
19554         * nptl/tst-barrier2.c: Likewise.
19555         * nptl/tst-barrier3.c: Likewise.
19556         * nptl/tst-barrier4.c: Likewise.
19557         * nptl/tst-barrier5.c: Likewise.
19558
19559 2016-01-15  Torvald Riegel  <triegel@redhat.com>
19560
19561         [BZ #18868]
19562         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Apply fix.
19563
19564 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
19565
19566         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new files.
19567         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
19568         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: New file.
19569         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S: Likewise.
19570         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: Likewise.
19571         * sysdeps/x86_64/multiarch/memcpy.S: Added new IFUNC branch.
19572         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
19573         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
19574         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
19575         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
19576         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
19577
19578 2016-01-15  Torvald Riegel  <triegel@redhat.com>
19579
19580         [BZ #13065]
19581         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Replace with
19582         new implementation.
19583         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy): Likewise.
19584         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Adapt.
19585         * sysdeps/nptl/internaltypes.h (pthread_barrier): Adapt.
19586         (BARRIER_IN_THRESHOLD): New macro.
19587         * nptl/pthread_barrierattr_setpshared.c
19588         (pthread_barrierattr_setpshared): Clean up.
19589         * nptl/tst-barrier4.c: Correct comment.
19590         * nptl/tst-barrier5.c: New file.
19591         * nptl/Makefile (tests): Add nptl/tst-barrier5.c.
19592         (gen-as-const-headers): Remove lowlevelbarrier.sym.
19593         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Remove.
19594         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Remove.
19595         * nptl/lowlevelbarrier.sym: Remove.
19596         * nptl/DESIGN-barrier.txt: Remove.
19597         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Remove.
19598         * sysdeps/sparc/nptl/pthread_barrier_init.c: Remove.
19599         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Remove.
19600         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: Replace with build
19601         error.
19602         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: Use generic
19603         implementation.
19604
19605 2016-01-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
19606
19607         * rt/tst-mqueue5.c (thr): Cleanup misleading comment.
19608         (do_child): Mask SIGRTMIN while thr is running.
19609
19610 2016-01-15  Martin Sebor  <msebor@redhat.com>
19611
19612         [BZ #19432]
19613         * iconvdata/Makefile: Add bug-iconv11.
19614         * iconvdata/bug-iconv11.c: New test.
19615         * iconvdata/ibm930.c: Do not reject redundant shift sequences.
19616         * iconvdata/ibm933.c: Same.
19617         * iconvdata/ibm935.c: Same.
19618         * iconvdata/ibm937.c: Same.
19619         * iconvdata/ibm939.c: Same.
19620
19621 2016-01-15  Martin Sebor  <msebor@redhat.com>
19622
19623         [BZ #19443]
19624         * crypt/crypt_util.c [DEBUG] (_ufc_prbits): Correct format string.
19625         [DEBUG] (_ufc_set_bits): Declare used.
19626         * iconv/gconv_dl.c [DEBUG]: Add a missing include directive.
19627         [DEBUG] (print_all): Declare used.
19628         * resolv/res_send.c [DEBUG] (__libc_res_nsend): Explicitly convert
19629         operands of the ternary ?: expression to target type.
19630         * stdlib/rshift.c [DEBUG] (mpn_rshift): Use assert() instead of
19631         calling the undeclared abort.
19632         * time/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.
19633
19634 2016-01-15  Martin Sebor  <msebor@redhat.com>
19635
19636         [BZ #18755]
19637         * iconv/skeleton.c (FUNCTION_NAME): Suppress -Wunused-but-set-variable
19638         warnings.
19639         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread): Same.
19640         (__gai_create_helper_thread): Same.
19641         * nscd/nscd.c (do_exit): Suppress -Wunused-variable.
19642         * iconvdata/iso-2022-cn-ext.c (BODY): Initialize local variable
19643         to suppress -Wmaybe-uninitialized warnings.
19644
19645 2016-01-15  H.J. Lu  <hongjiu.lu@intel.com>
19646
19647         [BZ #19465]
19648         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Call math_opt_barrier
19649         inside if.
19650         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
19651         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
19652         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
19653
19654 2016-01-14  H.J. Lu  <hongjiu.lu@intel.com>
19655
19656         [BZ #19466]
19657         * time/tst-mktime2.c (time_t_max): Removed.
19658         (time_t_min): Likewise.
19659         (TYPE_SIGNED): New.
19660         (TYPE_MINIMUM): Likewise.
19661         (TYPE_MAXIMUM): Likewise.
19662         (TIME_T_MIN): Likewise.
19663         (TIME_T_MAX): Likewise.
19664         (mktime_test): Replace time_t_max and time_t_min with TIME_T_MAX
19665         and TIME_T_MIN.
19666         (do_test): Likewise.
19667
19668 2016-01-14  Amit Pawar  <amit.pawar@amd.com>
19669
19670         [BZ #19467]
19671         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
19672         index_Fast_Unaligned_Load flag for Excavator family CPUs.
19673
19674 2016-01-02  Marcin Kościelnicki  <koriakin@0x04.net>
19675
19676         * sysdeps/s390/nptl/tls.h (struct tcbhead_t): Add __private_ss field.
19677
19678 2016-01-13  Carlos O'Donell  <carlos@redhat.com>
19679
19680         * benchtests/Makefile (PYTHON): Define.
19681         (bench-func): Use $(PYTHON) to run python scripts.
19682         ($(objpfx)bench-%.c): Likewise.
19683
19684 2016-01-13  Flavio Cruz  <flaviocruz@gmail.com>
19685
19686         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Do not remove
19687         leading slash when `file_name' is "/".
19688
19689 2016-01-12  Joseph Myers  <joseph@codesourcery.com>
19690
19691         * bits/mman-linux.h [!MCL_CURRENT] (MCL_ONFAULT): New macro.
19692         * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MCL_ONFAULT):
19693         Likewise.
19694         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MCL_ONFAULT):
19695         Likewise.
19696         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT):
19697         Likewise.
19698         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_GETSIGMASK): New
19699         enum constant and macro.
19700         (PTRACE_SETSIGMASK): Likewise.
19701         (PTRACE_SECCOMP_GET_FILTER): Likewise.
19702         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
19703         (PTRACE_GETSIGMASK): Likewise.
19704         (PTRACE_SETSIGMASK): Likewise.
19705         (PTRACE_SECCOMP_GET_FILTER): Likewise.
19706         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_GETSIGMASK):
19707         Likewise.
19708         (PTRACE_SETSIGMASK): Likewise.
19709         (PTRACE_SECCOMP_GET_FILTER): Likewise.
19710         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
19711         (PTRACE_GETSIGMASK): Likewise.
19712         (PTRACE_SETSIGMASK): Likewise.
19713         (PTRACE_SECCOMP_GET_FILTER): Likewise.
19714         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_GETSIGMASK):
19715         Likewise.
19716         (PTRACE_SETSIGMASK): Likewise.
19717         (PTRACE_SECCOMP_GET_FILTER): Likewise.
19718         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_GETSIGMASK):
19719         Likewise.
19720         (PTRACE_SETSIGMASK): Likewise.
19721         (PTRACE_SECCOMP_GET_FILTER): Likewise.
19722         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_GETSIGMASK):
19723         Likewise.
19724         (PTRACE_SETSIGMASK): Likewise.
19725         (PTRACE_SECCOMP_GET_FILTER): Likewise.
19726
19727 2016-01-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
19728             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19729
19730         [BZ #19439]
19731         * math/bits/mathcalls.h
19732         [!__cplusplus || __cplusplus < 201103L] (isinf): Do not declare
19733         prototype.
19734         [!__cplusplus || __cplusplus < 201103L] (isnan): Likewise.
19735
19736 2016-01-11  Andreas Schwab  <schwab@suse.de>
19737
19738         [BZ #19253]
19739         * time/tzfile.c (__tzfile_default): Invalidate tzfile attribute
19740         cache when TZDEFRULES was used.
19741         * time/tst-tzname.c: New file.
19742         * time/Makefile (test): Add tst-tzname.
19743         (tst-tzname-ENV, CPPFLAGS-tst-tzname.c): Define.
19744         * timezone/Makefile (test-zones): Add $(posixrules-file).
19745         ($(testdata)/$(posixrules-file)): New rule.
19746
19747 2016-01-10  Paul Eggert  <eggert@cs.ucla.edu>
19748
19749         Fix doc quoting problems with Texinfo 5
19750         Without this change, in the info file output, Texinfo 5 quotes code
19751         in text with undirected single quotes 'like this' and generates
19752         code examples that with many PDF readers cannot be cut out of PDFs
19753         and pasted into code.
19754         * manual/libc.texinfo: Configure the libc manual like the GNU
19755         Emacs manual, by using @documentencoding and setting
19756         txicodequoteundirected and txicodequotebacktick.  This way,
19757         Texinfo 5 quotes code in text with directed single quotes ‘like
19758         this’ and produces examples that can be cut out of PDFs.  This
19759         change causes Texinfo 5 to generate info files that contain UTF-8
19760         characters in the set {'‘', '’', '“', '”', 'Ä', 'ä', 'ö', '−',
19761         '–', '—', '©', '⇒', '•', '…'}, which is OK nowadays.
19762
19763 2016-01-08  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
19764
19765         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin,
19766         __libc_tabort, __libc_tend): New wrappers that enforce compiler
19767         barriers to their respective compiler built-ins.
19768         * sysdeps/powerpc/nptl/elide.h (__get_new_count, ELIDE_LOCK,
19769         ELIDE_TRYLOCK, __elide_unlock): Use the new wrappers.
19770         * sysdeps/powerpc/sysdep.h: Likewise.
19771         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: Likewise.
19772         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: Likewise.
19773         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: Likewise.
19774
19775 2016-01-08  Marko Myllynen  <myllynen@redhat.com>
19776
19777         * scripts/config.guess: Revert previous shebang change.
19778         * scripts/config.sub: Likewise.
19779         * scripts/mkinstalldirs: Likewise.
19780
19781 2016-01-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
19782
19783         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_ARCH_3_00 and
19784         PPC_FEATURE2_HAS_IEEE128.
19785         * sysdeps/powerpc/dl-procinfo.c:
19786         (_dl_powerpc_cap_flags): Add corresponding names to new capabilities.
19787
19788 2016-01-08  John David Anglin  <danglin@gcc.gnu.org>
19789
19790         [BZ #19415]
19791         * sysdeps/hppa/dl-fptr.c (_dl_fixup): Declare.
19792         (elf_machine_resolve): New.  Return address of _dl_runtime_resolve.
19793         (_dl_lookup_address): Rewrite using function resolver trampoline.
19794         * sysdeps/hppa/dl-lookupcfg.h (DL_LOOKUP_ADDRESS): Don't clear bottom
19795         two bits in address.
19796
19797 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
19798
19799         * longlong.h: Change !__SHMEDIA__ to
19800         (!defined (__SHMEDIA__) || !__SHMEDIA__).
19801         Change __SHMEDIA__ to defined (__SHMEDIA__) && __SHMEDIA__.
19802
19803 2016-01-07  Daniel Jacobowitz  <dan@codesourcery.com>
19804             Joseph Myers  <joseph@codesourcery.com>
19805             Mark Shinwell  <shinwell@codesourcery.com>
19806             Andrew Stubbs  <ams@codesourcery.com>
19807             Rich Felker <dalias@libc.org>
19808
19809         * longlong.h (udiv_qrnnd): Add FDPIC compatible version for SH.
19810
19811 2016-01-07  Richard Henderson  <rth@redhat.com>
19812
19813         * longlong.h [__alpha] (umul_ppmm): Disable for c++.
19814
19815 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
19816
19817         * sysdeps/unix/sysv/linux/fxstat64.c (___fxstat64): Change
19818         __ASSUME_ST_INO_64_BIT == 0 to !defined __ASSUME_ST_INO_64_BIT.
19819         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
19820         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
19821         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat32_conv): Likewise.
19822
19823 2016-01-07  Paul Eggert  <eggert@cs.ucla.edu>
19824             Joseph Myers  <joseph@codesourcery.com>
19825
19826         * timezone/private.h: Update from tzcode 2015g.
19827         * timezone/tzfile.h: Likewise.
19828         * timezone/tzselect.ksh: Likewise.
19829         * timezone/zdump.c: Likewise.
19830         * timezone/zic.c: Likewise.
19831         * timezone/ialloc.c: Remove file.
19832         * timezone/scheck.c: Likewise.
19833         * timezone/Makefile (extra-objs): Remove variable.
19834         ($(objpfx)zic): Do not depend on scheck.o and ialloc.o.
19835         (tz-cflags): Add -DHAVE_GETTEXT -DUSE_LTZ=0
19836         -Wno-maybe-uninitialized.
19837         (CFLAGS-zdump.c): Remove -fwrapv -DNOID -DHAVE_GETTEXT.
19838         (CFLAGS-zic.c): Remove -DNOID -DHAVE_GETTEXT.
19839         (CFLAGS-ialloc.c): Remove variable.
19840         (CFLAGS-scheck.c): Likewise.
19841         * timezone/README: Update list of files from tzcode.
19842
19843 2016-01-07  Khem Raj  <raj.khem@gmail.com>
19844
19845         * argp/argp-fmtstream.c (__argp_fmtstream_free): Use fwrite_unlocked
19846         instead of __fxprintf when _LIBC is undefined.
19847
19848 2016-01-07  Marko Myllynen  <myllynen@redhat.com>
19849
19850         * catgets/test-gencat.sh: Remove space after shebang.
19851         * conform/GlibcConform.pm: Likewise.
19852         * conform/check-header-lists.sh: Likewise.
19853         * conform/conformtest.pl: Likewise.
19854         * conform/linknamespace.pl: Likewise.
19855         * conform/list-header-symbols.pl: Likewise.
19856         * debug/catchsegv.sh: Likewise.
19857         * elf/genrtldtbl.awk: Likewise.
19858         * elf/tst-pathopt.sh: Likewise.
19859         * elf/tst-rtld-load-self.sh: Likewise.
19860         * grp/tst_fgetgrent.sh: Likewise.
19861         * iconvdata/gen-8bit-gap-1.sh: Likewise.
19862         * iconvdata/gen-8bit-gap.sh: Likewise.
19863         * iconvdata/gen-8bit.sh: Likewise.
19864         * iconvdata/run-iconv-test.sh: Likewise.
19865         * intl/tst-gettext.sh: Likewise.
19866         * intl/tst-gettext2.sh: Likewise.
19867         * intl/tst-gettext4.sh: Likewise.
19868         * intl/tst-gettext6.sh: Likewise.
19869         * intl/tst-translit.sh: Likewise.
19870         * io/ftwtest-sh: Likewise.
19871         * libio/test-freopen.sh: Likewise.
19872         * locale/gen-translit.pl: Likewise.
19873         * malloc/tst-mtrace.sh: Likewise.
19874         * manual/check-safety.sh: Likewise.
19875         * manual/libc-texinfo.sh: Likewise.
19876         * manual/tsort.awk: Likewise.
19877         * manual/xtract-typefun.awk: Likewise.
19878         * nptl/tst-cancel-wrappers.sh: Likewise.
19879         * nptl/tst-tls6.sh: Likewise.
19880         * posix/globtest.sh: Likewise.
19881         * posix/tst-getconf.sh: Likewise.
19882         * posix/wordexp-tst.sh: Likewise.
19883         * scripts/check-c++-types.sh: Likewise.
19884         * scripts/check-local-headers.sh: Likewise.
19885         * scripts/config.guess: Likewise.
19886         * scripts/config.sub: Likewise.
19887         * scripts/cpp: Likewise.
19888         * scripts/cross-test-ssh.sh: Likewise.
19889         * scripts/documented.sh: Likewise.
19890         * scripts/evaluate-test.sh: Likewise.
19891         * scripts/gen-libc-abis: Likewise.
19892         * scripts/gen-sorted.awk: Likewise.
19893         * scripts/list-fixed-bugs.py: Likewise.
19894         * scripts/merge-test-results.sh: Likewise.
19895         * scripts/mkinstalldirs: Likewise.
19896         * scripts/rellns-sh: Likewise.
19897         * scripts/test-installation.pl: Likewise.
19898         * scripts/update-copyrights: Likewise.
19899         * stdio-common/tst-printf.sh: Likewise.
19900         * stdio-common/tst-unbputc.sh: Likewise.
19901         * stdlib/tst-fmtmsg.sh: Likewise.
19902         * stdlib/tst-setcontext3.sh: Likewise.
19903         * sysdeps/i386/tst-ld-sse-use.sh: Likewise.
19904         * sysdeps/unix/make-syscalls.sh: Likewise.
19905
19906 2016-01-06  John David Anglin  <dave.anglin@bell.net>
19907
19908         * sysdeps/hppa/nptl/pthread_spin_init.c (pthread_spin_init): Replace
19909         asm stw with atomic_exchange_rel.  Add explanatory comment.
19910         * sysdeps/hppa/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
19911         Likewise.
19912
19913 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
19914
19915         [BZ #19122]
19916         * include/unistd.h [IS_IN (rtld)]: Include <dl-unistd.h>.
19917         * sysdeps/generic/dl-unistd.h: New file.
19918         * sysdeps/mach/hurd/dl-unistd.h: Likewise.
19919
19920 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
19921
19922          [BZ #19122]
19923          * include/sys/mman.h [IS_IN (rtld)]: Include <dl-mman.h>.
19924          * sysdeps/generic/dl-mman.h: New file.
19925          * sysdeps/mach/hurd/dl-mman.h: Likewise.
19926
19927 2016-01-05  Joseph Myers  <joseph@codesourcery.com>
19928
19929         * manual/texinfo.tex: Update to version 2016-01-04.21 with
19930         trailing whitespace removed.
19931         * scripts/config.guess: Update to version 2016-01-01.
19932         * scripts/config.sub: Update to version 2016-01-01.
19933         * scripts/move-if-change: Update from gnulib.
19934
19935 2016-01-04  Anton Blanchard  <anton@samba.org>
19936
19937         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Use unsigned int
19938         for array indices.
19939         * sysdeps/ieee754/dbl-64/e_pow.c (my_log2): Likewise.
19940
19941 2016-01-04  Joseph Myers  <joseph@codesourcery.com>
19942
19943         * NEWS: Update copyright dates.
19944         * catgets/gencat.c (print_version): Likewise.
19945         * csu/version.c (banner): Likewise.
19946         * debug/catchsegv.sh: Likewise.
19947         * debug/pcprofiledump.c (print_version): Likewise.
19948         * debug/xtrace.sh (do_version): Likewise.
19949         * elf/ldconfig.c (print_version): Likewise.
19950         * elf/ldd.bash.in: Likewise.
19951         * elf/pldd.c (print_version): Likewise.
19952         * elf/sotruss.sh: Likewise.
19953         * elf/sprof.c (print_version): Likewise.
19954         * iconv/iconv_prog.c (print_version): Likewise.
19955         * iconv/iconvconfig.c (print_version): Likewise.
19956         * locale/programs/locale.c (print_version): Likewise.
19957         * locale/programs/localedef.c (print_version): Likewise.
19958         * login/programs/pt_chown.c (print_version): Likewise.
19959         * malloc/memusage.sh (do_version): Likewise.
19960         * malloc/memusagestat.c (print_version): Likewise.
19961         * malloc/mtrace.pl: Likewise.
19962         * manual/libc.texinfo: Likewise.
19963         * nptl/version.c (banner): Likewise.
19964         * nscd/nscd.c (print_version): Likewise.
19965         * nss/getent.c (print_version): Likewise.
19966         * nss/makedb.c (print_version): Likewise.
19967         * posix/getconf.c (main): Likewise.
19968         * scripts/test-installation.pl: Likewise.
19969         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
19970
19971         * All files with FSF copyright notices: Update copyright dates
19972         using scripts/update-copyrights.
19973         * intl/plural.c: Regenerated.
19974         * locale/programs/charmap-kw.h: Likewise.
19975         * locale/programs/locfile-kw.h: Likewise.
19976
19977 2016-01-02  Helge Deller  <deller@gmx.de>
19978
19979         [BZ #19285]
19980         * sysdeps/unix/sysv/linux/hppa/bits/mman.h (MAP_STACK): Define.
19981         (MAP_HUGETLB, MCL_ONFAULT): Likewise.
19982         (MADV_HUGEPAGE, MADV_NOHUGEPAGE, MADV_DONTDUMP, MADV_DODUMP): Likewise.
19983         (MADV_xxK_PAGES): Remove.
19984
19985 2016-01-01  Mike Frysinger  <vapier@gentoo.org>
19986
19987         [BZ #15421]
19988         * sysdeps/ia64/fpu/w_lgamma_main.c: Include math.h & math_private.h.
19989         [BUILD_LGAMMA]: Wrap all code by define.  Re-indent sub-preprocessor.
19990         * sysdeps/ia64/fpu/w_lgammaf_main.c: Likewise.
19991         * sysdeps/ia64/fpu/w_lgammal_main.c: Likewise.
19992
19993 2015-12-30  Dmitry V. Levin  <ldv@altlinux.org>
19994
19995         [BZ #19408]
19996         * sysdeps/unix/sysv/linux/personality.c: New file.
19997         * sysdeps/unix/sysv/linux/sparc/sparc64/personality.c: Likewise.
19998         * sysdeps/unix/sysv/linux/tst-personality.c: Likewise.
19999         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
20000         (sysdep_routines): Add personality.
20001         (tests): Add tst-personality.
20002         * sysdeps/unix/sysv/linux/syscalls.list (personality): Move ...
20003         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ... here.
20004         * sysdeps/unix/sysv/linux/arm/syscalls.list (personality): New entry.
20005         * sysdeps/unix/sysv/linux/hppa/syscalls.list (personality): Likewise.
20006         * sysdeps/unix/sysv/linux/i386/syscalls.list (personality): Likewise.
20007         * sysdeps/unix/sysv/linux/m68k/syscalls.list (personality): Likewise.
20008         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (personality):
20009         Likewise.
20010         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (personality):
20011         Likewise.
20012         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (personality):
20013         Likewise.
20014         * sysdeps/unix/sysv/linux/sh/syscalls.list (personality): Likewise.
20015         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (personality):
20016         Likewise.
20017
20018 2015-12-30  Aurelien Jarno  <aurelien@aurel32.net>
20019
20020         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include <string.h>.
20021         (PATH_ARM_SYSTYPE): Remove.
20022         (PATH_CPUINFO): Likewise.
20023         (IO_BASE_FOOTBRIDGE): Likewise.
20024         (IO_SHIFT_FOOTBRIDGE): Likewise.
20025         (struct platform): Likewise.
20026         (init_iosys): Remove compatibility code for 2.4 kernels.
20027         * sysdeps/unix/sysv/linux/arm/localplt.data: Remove fscanf.
20028
20029 2015-12-29  Florian Weimer  <fweimer@redhat.com>
20030
20031         * malloc/tst-malloc-thread-fail.c: New file.
20032         * malloc/Makefile (tests): Add tst-malloc-thread-fail.
20033         (tst-malloc-thread-fail): Link against libpthread.
20034
20035 2015-12-29  Mike Frysinger  <vapier@gentoo.org>
20036
20037         * scripts/list-fixed-bugs.py: Import argparse.  Call main instead.
20038         (get_parser): New function.
20039         (main): New function.
20040
20041 2015-12-29  Rob Wu  <rob@robwu.nl>
20042
20043         [BZ #19369]
20044         * resolv/res_init.c (__res_vinit): Reset defdname before use.
20045
20046 2015-12-29  John David Anglin  <danglin@gcc.gnu.org>
20047
20048         [BZ #19270]
20049         * sysdeps/hppa/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
20050
20051 2015-12-28  Mike Frysinger  <vapier@gentoo.org>
20052
20053         [BZ #15421]
20054         * sysdeps/ia64/fpu/w_lgamma_main.c: Change gammaf to gamma.
20055
20056 2015-12-23  Torvald Riegel  <triegel@redhat.com>
20057
20058         [BZ #13690]
20059         * sysdeps/nptl/lowlevellock.h (__lll_unlock): Do not access the lock
20060         after releasing it.
20061         (__lll_robust_unlock): Likewise.
20062         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
20063         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_unlock): Likewise.
20064         (lll_robust_unlock): Likewise.
20065         * sysdeps/unix/sysv/linux/lowlevellock-futex.h (__lll_private_flag):
20066         Prevent warnings in callers.
20067
20068 2015-12-23  Florian Weimer  <fweimer@redhat.com>
20069
20070         * malloc/arena.c (list_lock): Update comment.
20071
20072 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
20073
20074         * sysdeps/powerpc/hwcapinfo.c: Export symbol
20075         __parse_hwcap_and_convert_at_platform to libc.a.
20076
20077 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
20078
20079         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Added
20080         platform and feature support for POWER9.
20081         * sysdeps/powerpc/dl-procinfo.h: Likewise.
20082         * sysdeps/powerpc/powerpc32/power9/Implies: New file.
20083         * sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies: Likewise.
20084         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Likewise.
20085         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise, for powerpc64.
20086         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
20087         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
20088         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
20089
20090 2015-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20091
20092         Harmonize generic stdio-lock support with nptl
20093
20094         This fixes build when _IO_funlockfile is a macro, fixes build where
20095         _IO_acquire_lock_clear_flags2 is used, and fixes unlocking on unexpected
20096         stack unwind.
20097
20098         * sysdeps/generic/stdio-lock.h [__EXCEPTIONS] (_IO_acquire_lock,
20099         _IO_release_lock ): Use cleanup attribute on new
20100         _IO_acquire_lock_file variable instead of assuming that
20101         _IO_release_lock will be called.
20102         [!__EXCEPTIONS] (_IO_acquire_lock): Define to non-existing
20103         _IO_acquire_lock_needs_exceptions_enabled.
20104         (_IO_acquire_lock_clear_flags2): New macro.
20105
20106 2015-12-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20107
20108         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
20109
20110 2015-12-21  Florian Weimer  <fweimer@redhat.com>
20111
20112         [BZ #19182]
20113         * malloc/arena.c (list_lock): Document lock ordering requirements.
20114         (free_list_lock): New lock.
20115         (ptmalloc_lock_all): Comment on free_list_lock.
20116         (ptmalloc_unlock_all2): Reinitialize free_list_lock.
20117         (detach_arena): Update comment.  free_list_lock is now needed.
20118         (_int_new_arena): Use free_list_lock around detach_arena call.
20119         Acquire arena lock after list_lock.  Add comment, including FIXME
20120         about incorrect synchronization.
20121         (get_free_list): Switch to free_list_lock.
20122         (reused_arena): Acquire free_list_lock around detach_arena call
20123         and attached threads counter update.  Add two FIXMEs about
20124         incorrect synchronization.
20125         (arena_thread_freeres): Switch to free_list_lock.
20126         * malloc/malloc.c (struct malloc_state): Update comments to
20127         mention free_list_lock.
20128
20129 2015-12-21  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
20130
20131         * sysdeps/ieee754/dbl-64/s_sin.c (csloww, csloww1, csloww2):
20132         Remove functions.
20133         (sloww, sloww1): Accept argument to offset quadrant.
20134         (sloww, sloww1, sloww2): Call __mpsin or __mpcos based on
20135         quadrant.
20136         (__sin, __cos): Consolidate common code into new functions.
20137         (reduce_sincos_1, do_sincos_1): New functions.
20138         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
20139
20140         * sysdeps/ieee754/dbl-64/s_sin.c (__sin, __cos): Move common
20141         code to new functions.
20142         (reduce_sincos_2, do_sincos_2): New functions.
20143         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
20144
20145         * sysdeps/ieee754/dbl-64/s_sin.c (__sin) [!IN_SINCOS]: Skip
20146         common code for sincos.
20147         (__cos) [!IN_SINCOS]: Likewise.
20148         * sysdeps/ieee754/dbl-64/s_sincos.c (reduce_and_compute_sincos):
20149         New function.
20150         (__sincos): Use it.
20151
20152 2015-12-20  Aurelien Jarno  <aurelien@aurel32.net>
20153
20154         * sysdeps/i386/fpu/libm-test-ulps: Move to ....
20155         * sysdeps/i386/i686/multiarch/fpu/libm-test-ulps: ...here.
20156         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
20157
20158 2015-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
20159
20160         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: New file.
20161         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new file.
20162         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
20163         * sysdeps/x86_64/multiarch/memset.S: Added new IFUNC branch.
20164         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
20165         * sysdeps/x86/cpu-features.h (bit_Prefer_No_VZEROUPPER,
20166         index_Prefer_No_VZEROUPPER): New feature.
20167         * sysdeps/x86/cpu-features.c (init_cpu_features): Set the
20168         Prefer_No_VZEROUPPER for Knights Landing.
20169
20170 015-12-18  Torvald Riegel  <triegel@redhat.com>
20171
20172         * math/atest-exp2.c (mp_exp_m1): Remove.
20173
20174 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20175
20176         * sysdeps/unix/sysdep.h (SYSCALL_CANCEL): Fix macro for zero argument
20177         syscalls.
20178         (__SYSCALL0): New macro.
20179         (__SYSCALL1): Likewise.
20180         (__SYSCALL2): Likewise.
20181         (__SYSCALL3): Likewise.
20182         (__SYSCALL4): Likewise.
20183         (__SYSCALL5): Likewise.
20184         (__SYSCALL6): Likewise.
20185         (__SYSCALL_CONCAT_X): Likewise.
20186         (__SYSCALL_CONCAT): Likewise.
20187         (__SYSCALL_DIST): Likewise.
20188         (__SYSCALL_CALL): Likewise.
20189
20190 2015-12-17  H.J. Lu  <hongjiu.lu@intel.com>
20191
20192         [BZ #19363]
20193         * sysdeps/unix/sysv/linux/x86_64/x32/times.c: New file.
20194
20195 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20196
20197         [BZ #19375]
20198         * sysdeps/powerpc/power7/fpu/s_logb.c (__logb): Fix return for
20199         negative subnormals.
20200
20201 2015-12-16  H.J. Lu  <hongjiu.lu@intel.com>
20202
20203         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
20204         (REGISTERS_CLOBBERED_BY_SYSCALL): New.
20205         (INTERNAL_SYSCALL_NCS): Use it.
20206         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
20207
20208 2015-12-16  Florian Weimer  <fweimer@redhat.com>
20209
20210         [BZ #19243]
20211         * malloc/arena.c (get_free_list): Remove assert and adjust
20212         reference count handling.  Add comment about reused_arena
20213         interaction.
20214         (reused_arena): Add comments abount get_free_list interaction.
20215         * malloc/tst-malloc-thread-exit.c: New file.
20216         * malloc/Makefile (tests): Add tst-malloc-thread-exit.
20217         (tst-malloc-thread-exit): Link against libpthread.
20218
20219 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
20220
20221         [BZ #19367]
20222         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: New file.
20223         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h: Likewise.
20224         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
20225         * sysdeps/x86/cpu-features.h (bit_Prefer_MAP_32BIT_EXEC): New.
20226         (index_Prefer_MAP_32BIT_EXEC): Likewise.
20227
20228 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
20229
20230         * sysdeps/x86/cpu-features.c (init_cpu_features): Enable
20231         Silvermont optimizations for Knights Landing.
20232
20233 2015-12-15  Andreas Schwab  <schwab@suse.de>
20234
20235         [BZ #17197]
20236         * iconvdata/ibm930.c (BODY for TO_LOOP): Record current DBCS state
20237         immediately after emitting SI.
20238         * iconvdata/ibm933.c (BODY for TO_LOOP): Likewise.
20239         * iconvdata/ibm935.c (BODY for TO_LOOP): Likewise.
20240         * iconvdata/ibm937.c (BODY for TO_LOOP): Likewise.
20241         * iconvdata/ibm939.c (BODY for TO_LOOP): Likewise.
20242         * iconvdata/bug-iconv10.c: New file.
20243         * iconvdata/Makefile (tests): Add bug-iconv10.
20244         ($(objpfx)bug-iconv10.out): New rule.
20245
20246 2015-12-15  Florian Weimer  <fweimer@redhat.com>
20247
20248         * dlfcn/tst-rec-dlopen.c (call_func): Cast dlsym result, fixing an
20249         aliasing violation.
20250
20251 2015-12-14  Joseph Myers  <joseph@codesourcery.com>
20252
20253         [BZ #18472]
20254         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Handle entries
20255         for the form NAME@VERSION:OBSOLETED and generate SHLIB_COMPAT
20256         conditionals for them.
20257         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Likewise.
20258         * sysdeps/unix/sysv/linux/sys/kdaemon.h: Remove file.
20259         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
20260         sys/kdaemon.h.
20261         * sysdeps/unix/sysv/linux/syscalls.list (bdflush): Make into
20262         compat-only syscall, obsoleted in glibc 2.23.
20263         (create_module): Likewise.
20264         (get_kernel_syms): Likewise.
20265         (query_module): Likewise.
20266         (uselib): Likewise.
20267         * manual/sysinfo.texi (System Parameters): Do not mention bdflush.
20268
20269 2015-12-11  Aurelien Jarno  <aurelien@aurel32.net>
20270
20271         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include
20272         <linux/version.h>.
20273         [LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)]: Remove
20274         conditional code.
20275         (init_iosys): Use CTL_BUS_ISA instead of BUS_ISA in iobase_name
20276         and ioshift_name initialization.
20277
20278 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
20279
20280         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
20281         Fix indentation.
20282
20283 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
20284
20285         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Fix indentation.
20286
20287 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
20288
20289         * stdlib/strtol_l.c (__strtol_l): Fix indentation.
20290
20291 2015-12-10  Aurelien Jarno  <aurelien@aurel32.net>
20292             Jakub Wilk  <jwilk@debian.org>
20293
20294         [BZ #19347]
20295         * sysdeps/unix/grantpt.c [!HAVE_PT_CHOWN] (grantpt): Do not try
20296         to change the group of the device to the tty group.
20297
20298 2015-12-10  Paul Eggert  <eggert@cs.ucla.edu>
20299
20300         Split large string section; add truncation advice
20301         * manual/examples/strncat.c: Remove.
20302         This example was misleading, as the code would have undefined
20303         behavior if "hello" was longer than SIZE.  Anyway, the manual
20304         shouldn't encourage strncpy+strncat for this sort of thing.
20305         * manual/string.texi (Copying Strings and Arrays): Split into
20306         three sections Copying Strings and Arrays, Concatenating Strings,
20307         and Truncating Strings, as this section was way too long.  All
20308         cross-referenced changed.  Add advice about string-truncation
20309         functions.  Remove misleading strncat example.
20310
20311 2015-12-10  Carlos O'Donell  <carlos@redhat.com>
20312
20313         * manual/nss.texi (NSS Modules Interface): Document
20314         NSS_STATUS_NOTFOUND and SUCCESS.
20315
20316 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
20317
20318         [BZ 18568]
20319         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
20320         201505L, for Unicode 8.
20321
20322 2015-12-09  Carlos O'Donell  <carlos@redhat.com>
20323
20324         * locale/C-translit.h: Regenerate.
20325
20326 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
20327
20328         * locale/C-translit.h.in: Remove duplicate transliterations for U+0152
20329         and U+0153.
20330
20331 2015-12-09  Joseph Myers  <joseph@codesourcery.com>
20332
20333         [BZ #19351]
20334         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): When
20335         expanding log(1+z), compare z rather than its square with epsilon
20336         to determine when to avoid evaluating the expansion.
20337
20338         [BZ #19350]
20339         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
20340         Increase overflow threshold.
20341
20342         [BZ #19349]
20343         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Return argument
20344         when small.
20345
20346         * sysdeps/unix/sysv/linux/i386/kernel-features.h
20347         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
20348         New macro.
20349         [__LINUX_KERNEL_VERSION >= 0x040300]
20350         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
20351         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
20352         Likewise.
20353         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
20354         Likewise.
20355         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
20356         Likewise.
20357         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
20358         Likewise.
20359         [__LINUX_KERNEL_VERSION >= 0x040300]
20360         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
20361         [__LINUX_KERNEL_VERSION >= 0x040300]
20362         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
20363         [__LINUX_KERNEL_VERSION >= 0x040300]
20364         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
20365         [__LINUX_KERNEL_VERSION >= 0x040300]
20366         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
20367         [__LINUX_KERNEL_VERSION >= 0x040300]
20368         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
20369         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
20370         Likewise.
20371         [__LINUX_KERNEL_VERSION >= 0x040300]
20372         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
20373         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
20374         Likewise.
20375         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
20376         Likewise.
20377         [__LINUX_KERNEL_VERSION >= 0x040300]
20378         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
20379         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
20380         Likewise.
20381         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
20382         Likewise.
20383         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
20384         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMMSG_SYSCALL):
20385         Likewise.
20386         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMMSG_SYSCALL):
20387         Likewise.
20388         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
20389         Likewise.
20390         [__LINUX_KERNEL_VERSION >= 0x040300]
20391         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
20392         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
20393         Likewise.
20394         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
20395         Likewise.
20396         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
20397         Likewise.
20398         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
20399         Likewise.
20400         [__LINUX_KERNEL_VERSION >= 0x040300]
20401         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
20402         [__LINUX_KERNEL_VERSION >= 0x040300]
20403         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
20404         [__LINUX_KERNEL_VERSION >= 0x040300]
20405         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
20406         [__LINUX_KERNEL_VERSION >= 0x040300]
20407         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
20408         [__LINUX_KERNEL_VERSION >= 0x040300]
20409         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
20410         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
20411         Likewise.
20412         [__LINUX_KERNEL_VERSION >= 0x040300]
20413         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
20414         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
20415         Likewise.
20416         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
20417         Likewise.
20418         [__LINUX_KERNEL_VERSION >= 0x040300]
20419         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
20420         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
20421         Likewise.
20422         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
20423         Likewise.
20424         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
20425         (__ASSUME_SOCKET_SYSCALL): Likewise.
20426         (__ASSUME_BIND_SYSCALL): Likewise.
20427         (__ASSUME_CONNECT_SYSCALL): Likewise.
20428         (__ASSUME_LISTEN_SYSCALL): Likewise.
20429         (__ASSUME_ACCEPT_SYSCALL): Likewise.
20430         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
20431         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
20432         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
20433         (__ASSUME_SEND_SYSCALL): Likewise.
20434         (__ASSUME_SENDTO_SYSCALL): Likewise.
20435         (__ASSUME_RECV_SYSCALL): Likewise.
20436         (__ASSUME_RECVFROM_SYSCALL): Likewise.
20437         (__ASSUME_SHUTDOWN_SYSCALL): Likewise.
20438         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
20439         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
20440         (__ASSUME_SENDMSG_SYSCALL): Likewise.
20441         (__ASSUME_RECVMSG_SYSCALL): Likewise.
20442         * sysdeps/unix/sysv/linux/sh/kernel-features.h
20443         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SOCKET_SYSCALL):
20444         Likewise.
20445         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_BIND_SYSCALL):
20446         Likewise.
20447         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_CONNECT_SYSCALL):
20448         Likewise.
20449         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_LISTEN_SYSCALL):
20450         Likewise.
20451         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_ACCEPT_SYSCALL):
20452         Likewise.
20453         [__LINUX_KERNEL_VERSION >= 0x020625]
20454         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
20455         [__LINUX_KERNEL_VERSION >= 0x020625]
20456         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
20457         [__LINUX_KERNEL_VERSION >= 0x020625]
20458         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
20459         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SEND_SYSCALL):
20460         Likewise.
20461         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDTO_SYSCALL):
20462         Likewise.
20463         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECV_SYSCALL):
20464         Likewise.
20465         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVFROM_SYSCALL):
20466         Likewise.
20467         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SHUTDOWN_SYSCALL):
20468         Likewise.
20469         [__LINUX_KERNEL_VERSION >= 0x020625]
20470         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
20471         [__LINUX_KERNEL_VERSION >= 0x020625]
20472         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
20473         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDMSG_SYSCALL):
20474         Likewise.
20475         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVMSG_SYSCALL):
20476         Likewise.
20477
20478 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
20479
20480         * sysdeps/unix/sysv/linux/mips/configure.ac (has-mpf64): Define to
20481         record the current if the current ABI and CPU support the FP64
20482         extension.
20483         (has-modd-spreg): Define to record the current if the current ABI and
20484         CPU support 32-bit floating point values in odd FPU registers.
20485         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
20486         * sysdeps/mips/Makefile (tst-abi-fpxxomod): Only build when
20487         $(has-modd-spreg) equals yes.
20488         (tst-abi-fp64amod): Only build when $(has-mpf64) equals yes.
20489         (tst-abi-fp64mod): Only build when both $(has-mpf64) and
20490         $(has-modd-spreg) equal yes.
20491
20492 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
20493
20494         * sysdeps/unix/grantpt.c (grantpt): Call__basename instead of
20495         basename.
20496
20497 2015-12-08  Siddhesh Poyarekar  <sid@reserved-bit.com>
20498
20499         * benchtests/Makefile (bench-math): Move ffs and ffsll...
20500         (bench-string): ... here.
20501         (bench): Add bench-string.
20502         (string-bench, wcsmbs-bench, stdlib-bench, stdio-common-bench): Rename
20503         to *-benchset to reflect what they are.
20504         (benchset): Adjust.
20505
20506         * benchtests/sincos-inputs: Add inputs from sin-inputs and
20507         cos-inputs.
20508
20509 2015-12-07  Andrew Senkevich  <andrew.senkevich@intel.com>
20510
20511         * sysdeps/x86/fpu/bits/math-vector.h: W/o -fopenmp use GCC 6.*
20512         __attribute__ ((__simd__)) for vector math function declarations.
20513
20514 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
20515
20516         Fix typo in strncat, wcsncat manual entries
20517         * manual/string.texi (Copying and Concatenation): Fix typos in
20518         sample implementations of strncat and wcsncat, by having them use
20519         the old value of the destination length, not the new one.
20520
20521 2015-12-04  Joseph Myers  <joseph@codesourcery.com>
20522
20523         [BZ #16961]
20524         [BZ #16962]
20525         * math/s_nan.c (__nan): Use __strtod_nan instead of constructing a
20526         string on the stack for strtod.
20527         * math/s_nanf.c (__nanf): Use __strtof_nan instead of constructing
20528         a string on the stack for strtof.
20529         * math/s_nanl.c (__nanl): Use __strtold_nan instead of
20530         constructing a string on the stack for strtold.
20531         * stdlib/Versions (libc): Add __strtof_nan, __strtod_nan and
20532         __strtold_nan to GLIBC_PRIVATE.
20533         * math/test-nan-overflow.c: New file.
20534         * math/test-nan-payload.c: Likewise.
20535         * math/Makefile (tests): Add test-nan-overflow and
20536         test-nan-payload.
20537
20538 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
20539
20540         Consistency about byte vs character in string.texi
20541         * manual/string.texi (String and Array Utilities):
20542         Distinguish more carefully among bytes, multibyte characters,
20543         and wide characters.  Use "byte" when talking about C 'char',
20544         to distinguish it more clearly from multibyte characters.
20545         Say "wide character" or "multibyte character" instead of
20546         "character", when a wide or multibyte character is intended.
20547         Similarly for "multibyte string" versus "string".
20548         Define these terms more carefully.
20549
20550 2015-12-03  Chris Metcalf  <cmetcalf@ezchip.com>
20551
20552         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): New symbol.
20553         * sysdeps/microblaze/math_private.h (LDBL_CLASSIFY_COMPAT):
20554         Likewise.
20555         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
20556         * sysdeps/nios2/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
20557         * sysdeps/sh/math_private.h: New file.
20558         * sysdeps/m68k/coldfire/fpu/math_private.h: Likewise.
20559         * sysdeps/ieee754/dbl-64/s_finite.c [defined NO_LONG_DOUBLE &&
20560         defined LDBL_CLASSIFY_COMPAT]: Create compat symbol for internal
20561         long double function name.
20562         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
20563         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
20564         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
20565         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
20566         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
20567         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
20568         Remove __finitel, __isinfl, and __isnanl.
20569         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
20570         Likewise.
20571         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20572         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
20573         Remove __finitel.
20574         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
20575         Likewise.
20576         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20577
20578 2015-12-03  Andrew Senkevich  <andrew.senkevich@intel.com>
20579
20580         * math/Makefile ($(inst_libdir)/libm.so): Corrected path to
20581         installed libmvec_nonshared.a.
20582
20583 2015-12-03  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
20584
20585         * sysdeps/powerpc/Makefile (sysdep-dl-routines): Add hwcapinfo.
20586         (sysdep_routines): Likewise.
20587         (sysdep-rtld-routines): Likewise.
20588         [$(subdir) = nptl](tests): Add test-get_hwcap and test-get_hwcap-static
20589         [$(subdir) = nptl](tests-static): test-get_hwcap-static
20590         * sysdeps/powerpc/Versions: Added new
20591         __parse_hwcap_and_convert_at_platform symbol to GLIBC-2.23.
20592         * sysdeps/powerpc/hwcapinfo.c: New file.
20593         (__tcb_parse_hwcap_and_convert_at_platform): New function to initialize
20594         and parse hwcap, hwcap2 and platform number information.
20595         * sysdeps/powerpc/hwcapinfo.h: New file.  Creates global variables
20596         to store HWCAP+HWCAP2 and platform number.
20597         * sysdeps/powerpc/nptl/tcb-offsets.sym: Added new offsets
20598         for HWCAP+HWCAP2 and platform number in the TCB.
20599         * sysdeps/powerpc/nptl/tls.h: New functionality.  Stores
20600         the HWCAP, HWCAP2 and platform number in the TCB.
20601         (dtv): Added new fields for HWCAP+HWCAP2 and platform number.
20602         (TLS_INIT_TP): Included calls to add the hwcap and
20603         at_platform values in the TCB in TP initialization.
20604         (TLS_DEFINE_INIT_TP): Likewise.
20605         (THREAD_GET_HWCAP): New macro.
20606         (THREAD_SET_HWCAP): Likewise.
20607         (THREAD_GET_AT_PLATFORM): Likewise.
20608         (THREAD_SET_AT_PLATFORM): Likewise.
20609         * sysdeps/powerpc/powerpc32/dl-machine.h:
20610         (dl_platform_init): New function that calls
20611         __parse_hwcap_and_convert_at_platform for the dymanic linking case for
20612         powerpc32.
20613         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise, for powerpc64.
20614         * sysdeps/powerpc/test-get_hwcap-static.c: New file.  Testcase for
20615         this functionality, static linking case.
20616         * sysdeps/powerpc/test-get_hwcap.c: New file.  Likewise, dynamic
20617         linking case.
20618         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Added call to
20619         __parse_hwcap_and_convert_at_platform for the static linking case.
20620         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist:
20621         Included the new __parse_hwcap_and_convert_at_platform symbol in the
20622         ABI list for GLIBC 2.23.
20623         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist:
20624         Likewise.
20625         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist:
20626         Likewise.
20627
20628 2015-12-02  Ludovic Courtès  <ludo@gnu.org>
20629
20630         * configure.ac: Use 'pwd -P' instead of '/bin/pwd'.
20631         * configure: Regenerate.
20632         * io/ftwtest-sh: Use 'pwd -P' instead of '/bin/pwd'.
20633         * scripts/rellns-sh: Likewise.  Remove 'pwd' variable.
20634
20635 2015-12-02  Carlos O'Donell  <carlos@redhat.com>
20636
20637         * iconvdata/ibm930.c: Add comment explaining encoding uses.
20638         * iconvdata/ibm933.c: Likewise.
20639         * iconvdata/ibm935.c: Likewise.
20640         * iconvdata/ibm937.c: Likewise.
20641         * iconvdata/ibm939.c: Likewise.
20642
20643 2015-12-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20644
20645         * nptl/tst-cancel20.c (do_one_test): Move the pipe closing after
20646         pthread_join.
20647         * nptl/tst-cancel21.c (tf): Likewise.
20648
20649 2015-12-01  H.J. Lu  <hongjiu.lu@intel.com>
20650
20651         [BZ #19313]
20652         * bits/typesizes.h (__CPU_MASK_TYPE): New.
20653         * sysdeps/mach/hurd/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
20654         * sysdeps/nacl/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
20655         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__CPU_MASK_TYPE):
20656         Likewise.
20657         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h (__CPU_MASK_TYPE):
20658         Likewise.
20659         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h (__CPU_MASK_TYPE):
20660         Likewise.
20661         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__CPU_MASK_TYPE):
20662         Likewise.
20663         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h (__CPU_MASK_TYPE):
20664         * sysdeps/unix/sysv/linux/bits/sched.h (__cpu_mask): Replace
20665         unsigned long int with __CPU_MASK_TYPE.
20666
20667 2015-12-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20668
20669         * sysdeps/aarch64/libm-test-ulps: Regenerated.
20670
20671 2015-12-01  Joseph Myers  <joseph@codesourcery.com>
20672
20673         * sysdeps/ieee754/dbl-64/e_sqrt.c: Do not include uroot.h.
20674         (__ieee754_sqrt): Use hex float constants instead of tm256.x and
20675         t512.x.
20676         * sysdeps/ieee754/dbl-64/uroot.h: Remove file.
20677
20678 2015-11-30  Amit Pawar  <amit.pawar@amd.com>
20679
20680         [BZ #19214]
20681         * sysdeps/x86/cpu-features.c (get_common_indeces): Add an
20682         argument to return extended model.  Update family and model
20683         with extended family and model when family == 0x0f.
20684         (init_cpu_features): Updated.
20685
20686 2015-11-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20687
20688         The RPC interface used by mmap uses the unsigned vm_offset_t, not the
20689         signed off_t, so 32bit bigger than 2GiB values are fine actually.
20690
20691         * sysdeps/mach/hurd/mmap64.c: New file.
20692
20693 2015-11-29  Thomas Schwinge  <thomas@codesourcery.com>
20694
20695         * sysdeps/mach/hurd/fork.c (__fork): Install correct number of send
20696         rights for its main user thread in NEWTASK.
20697
20698 2015-11-28  Maciej W. Rozycki  <macro@imgtec.com>
20699
20700         * sysdeps/mips/fpu_control.h (_FPU_RESERVED): Include ABS2008.
20701         (_FPU_DEFAULT, _FPU_IEEE) [__mips_nan2008]: Set ABS2008.
20702
20703 2015-11-27  Carlos O'Donell  <carlos@redhat.com>
20704
20705         [BZ #14259]
20706         * Makeconfig: Rename localedir to complocaledir.
20707         Rename inst_localedir to inst_complocaledir.
20708         * aclocal.m4: Rename libc_cv_localedir to libc_cv_complocaledir.
20709         * config.make.in: Use complocaledir and libc_cv_complocaledir.
20710         * configure.ac: Use libc_cv_complocaledir.
20711         * configure: Regenerate.
20712         * locale/Makefile: Use complocaledir. Rename define -DLOCALEDIR to
20713         -DCOMPLOCALEDIR.
20714         * locale/findlocale.c: Use COMPLOCALEDIR.
20715         * locale/loadarchive.c: Likewise.
20716         * locale/programs/locale.c: Likewise.
20717         * locale/programs/localedef.c: Likewise.
20718         * locale/programs/locarchive.c: Likewise.
20719         * localedata/Makefile: Use inst_complocaledir.
20720         * sysdeps/gnu/configure: Regenerate.
20721         * sysdeps/hppa/configure: Regenerate.
20722         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
20723         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
20724         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
20725         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
20726         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
20727         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
20728         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
20729
20730 2015-11-27  Andrew Senkevich  <andrew.senkevich@intel.com>
20731
20732         [BZ #19058]
20733         * math/Makefile ($(inst_libdir)/libm.so): Added libmvec_nonshared.a to
20734         AS_NEEDED.
20735         * sysdeps/x86/fpu/bits/math-vector.h: Removed code with asm aliases
20736         workaround.
20737         * sysdeps/x86_64/fpu/Makefile (libmvec-support,
20738         libmvec-static-only-routines): Added new file.
20739         * sysdeps/x86_64/fpu/svml_finite_alias.S: New file.
20740
20741 2015-11-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20742
20743         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Destroy reply port
20744         of interrupted RPC instead of restoring it.
20745
20746         * sysdeps/i386/setjmp.S (__sigsetjmp): Add hidden_def.
20747         * sysdeps/mach/hurd/accept4.c (__libc_accept4): Remove
20748         libc_hidden_def.
20749         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Initialize to get
20750         into initialized data instead of common. Define rtld_hidden_data_def.
20751         * sysdeps/mach/hurd/fxstatat64.c (__fxstatat64): Add libc_hidden_def.
20752         * sysdeps/mach/hurd/if_index.c (__if_freenameindex): Add
20753         libc_hidden_def.
20754         (if_freenameindex): Add libc_hidden_weak.
20755         (if_nameindex): Add libc_hidden_weak.
20756         * sysdeps/mach/hurd/open.c (_open64): Rename libc_hidden_weak into
20757         __open64.
20758         * sysdeps/mach/hurd/sigwait.c (__sigwait): Add libc_hidden_def.
20759         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Add libc_hidden_def.
20760         * sysdeps/mach/nanosleep.c: Include <time.h>
20761         (__nanosleep): Rename to __libc_nanosleep.
20762         (__nanosleep): Add weak_alias.
20763         (nanosleep): Update alias.
20764
20765 2015-11-24  Joseph Myers  <joseph@codesourcery.com>
20766
20767         * stdlib/strtod_nan.c: New file.
20768         * stdlib/strtod_nan_double.h: Likewise.
20769         * stdlib/strtod_nan_float.h: Likewise.
20770         * stdlib/strtod_nan_main.c: Likewise.
20771         * stdlib/strtod_nan_narrow.h: Likewise.
20772         * stdlib/strtod_nan_wide.h: Likewise.
20773         * stdlib/strtof_nan.c: Likewise.
20774         * stdlib/strtold_nan.c: Likewise.
20775         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Likewise.
20776         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Likewise.
20777         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Likewise.
20778         * wcsmbs/wcstod_nan.c: Likewise.
20779         * wcsmbs/wcstof_nan.c: Likewise.
20780         * wcsmbs/wcstold_nan.c: Likewise.
20781         * stdlib/Makefile (routines): Add strtof_nan, strtod_nan and
20782         strtold_nan.
20783         * wcsmbs/Makefile (routines): Add wcstod_nan, wcstold_nan and
20784         wcstof_nan.
20785         * include/stdlib.h (__strtof_nan): Declare and use
20786         libc_hidden_proto.
20787         (__strtod_nan): Likewise.
20788         (__strtold_nan): Likewise.
20789         (__wcstof_nan): Likewise.
20790         (__wcstod_nan): Likewise.
20791         (__wcstold_nan): Likewise.
20792         * include/wchar.h (____wcstoull_l_internal): Declare.
20793         * stdlib/strtod_l.c: Do not include <ieee754.h>.
20794         (____strtoull_l_internal): Remove declaration.
20795         (STRTOF_NAN): Define macro.
20796         (SET_MANTISSA): Remove macro.
20797         (STRTOULL): Likewise.
20798         (____STRTOF_INTERNAL): Use STRTOF_NAN to parse NaN payload.
20799         * stdlib/strtof_l.c (____strtoull_l_internal): Remove declaration.
20800         (STRTOF_NAN): Define macro.
20801         (SET_MANTISSA): Remove macro.
20802         * sysdeps/ieee754/ldbl-128/strtold_l.c (STRTOF_NAN): Define macro.
20803         (SET_MANTISSA): Remove macro.
20804         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (STRTOF_NAN): Define
20805         macro.
20806         (SET_MANTISSA): Remove macro.
20807         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (STRTOF_NAN): Define
20808         macro.
20809         (SET_MANTISSA): Remove macro.
20810         * sysdeps/ieee754/ldbl-96/strtold_l.c (STRTOF_NAN): Define macro.
20811         (SET_MANTISSA): Remove macro.
20812         * wcsmbs/wcstod_l.c (____wcstoull_l_internal): Remove declaration.
20813         * wcsmbs/wcstof_l.c (____wcstoull_l_internal): Likewise.
20814         * wcsmbs/wcstold_l.c (____wcstoull_l_internal): Likewise.
20815
20816         [BZ #19266]
20817         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check directly for
20818         upper case and lower case letters inside NAN(), not using TOLOWER.
20819         * stdlib/tst-strtod-nan-locale-main.c: New file.
20820         * stdlib/tst-strtod-nan-locale.c: Likewise.
20821         * stdlib/Makefile (tests): Add tst-strtod-nan-locale.
20822         [$(run-built-tests) = yes] ($(objpfx)tst-strtod-nan-locale.out):
20823         Depend on $(gen-locales).
20824         ($(objpfx)tst-strtod-nan-locale): Depend on $(libm).
20825         * wcsmbs/tst-wcstod-nan-locale.c: New file.
20826         * wcsmbs/Makefile (tests): Add tst-wcstod-nan-locale.
20827         [$(run-built-tests) = yes] ($(objpfx)tst-wcstod-nan-locale.out):
20828         Depend on $(gen-locales).
20829         ($(objpfx)tst-wcstod-nan-locale): Depend on $(libm).
20830
20831 2015-11-24  Chris Metcalf  <cmetcalf@ezchip.com>
20832
20833         * misc/tst-tsearch.c (TIMEOUT): Set to 10.
20834
20835         * sysdeps/tile/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
20836         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Add
20837         __finitel, __isinfl, and __isnanl.
20838         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
20839         Likewise.
20840         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20841         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Add
20842         __finitel.
20843         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
20844         Likewise.
20845         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20846
20847 2015-11-24  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
20848
20849         * malloc/memusage.c (me): Remove redundant getenv call.
20850
20851 2015-10-24  Florian Weimer  <fweimer@redhat.com>
20852
20853         [BZ #19143]
20854         [BZ #19164]
20855         * nptl/check-cpuset.h: Remove.
20856         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
20857         Remove CPU set size check.
20858         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
20859         Likewise.
20860         * sysdeps/unix/sysv/linux/check-cpuset.h: Remove.
20861         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
20862         (__kernel_cpumask_size, __determine_cpumask_size): Remove.
20863         (__pthread_setaffinity_new): Remove CPU set size check.
20864         * sysdeps/unix/sysv/linux/sched_setaffinity.c
20865         (__kernel_cpumask_size): Remove.
20866         (__sched_setaffinity_new): Remove CPU set size check.
20867         * manual/threads.texi (Default Thread Attributes): Remove stale
20868         reference to check_cpuset_attr, determine_cpumask_size in comment.
20869         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == posix] (tests):
20870         Remove tst-getcpu.  Add tst-affinity, tst-affinity-pid.
20871         [$(subdir) == nptl] (tests): Add tst-thread-affinity-pthread,
20872         tst-thread-affinity-pthread2, tst-thread-affinity-sched.
20873         * sysdeps/unix/sysv/linux/tst-affinity.c: New file.
20874         * sysdeps/unix/sysv/linux/tst-affinity-pid.c: New file.
20875         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c: New skeleton test file.
20876         * sysdeps/unix/sysv/linux/tst-thread-affinity-sched.c: New file.
20877         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread.c: New file.
20878         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread2.c: New file.
20879         * sysdeps/unix/sysv/linux/tst-thread-skeleton-affinity.c: New
20880         skeleton test file.
20881         * sysdeps/unix/sysv/linux/tst-getcpu.c: Remove.  Superseded by
20882         tst-affinity-pid.
20883
20884 2015-11-24  Florian Weimer  <fweimer@redhat.com>
20885
20886         * scripts/update-abilist.sh: New file.
20887         * Makefile (+subdir_targets): Add subdir_update-all-abi.
20888         * Makerules (update-all-abi-%, update-all-abi)
20889         (subdir_update-all-abi): New targets.
20890         * elf/Makefile (update-all-abi): New target.
20891
20892 2015-11-24  Florian Weimer  <fweimer@redhat.com>
20893
20894         Replace MUTEX_INITIALIZER with _LIBC_LOCK_INITIALIZER in generic code.
20895         * sysdeps/mach/hurd/libc-lock.h (_LIBC_LOCK_INITIALIZER): Define.
20896         (__libc_lock_define_initialized): Use it.
20897         * sysdeps/nptl/libc-lockP.h (_LIBC_LOCK_INITIALIZER): Define.
20898         * malloc/arena.c (list_lock): Use _LIBC_LOCK_INITIALIZER.
20899         * malloc/malloc.c (main_arena): Likewise.
20900         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): Remove.
20901         * sysdeps/nptl/malloc-machine.h (MUTEX_INITIALIZER): Remove.
20902
20903 2015-11-23  Joseph Myers  <joseph@codesourcery.com>
20904
20905         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
20906         (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions.
20907         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
20908         (PTRACE_O_MASK): Update value.
20909         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_O_EXITKILL):
20910         New value in enum __ptrace_setoptions.
20911         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
20912         (PTRACE_O_MASK): Update value.
20913         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
20914         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
20915         (PTRACE_O_MASK): Update value.
20916         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
20917         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
20918         (PTRACE_O_MASK): Update value.
20919         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
20920         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
20921         (PTRACE_O_MASK): Update value.
20922         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP):
20923         New value in enum __ptrace_setoptions.
20924         (PTRACE_O_MASK): Update value.
20925         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_O_EXITKILL):
20926         New value in enum __ptrace_setoptions.
20927         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
20928         (PTRACE_O_MASK): Update value.
20929
20930         * sysdeps/unix/sysv/linux/netpacket/packet.h (PACKET_COPY_THRESH):
20931         New macro.
20932         (PACKET_AUXDATA): Likewise.
20933         (PACKET_ORIGDEV): Likewise.
20934         (PACKET_VERSION): Likewise.
20935         (PACKET_HDRLEN): Likewise.
20936         (PACKET_RESERVE): Likewise.
20937         (PACKET_TX_RING): Likewise.
20938         (PACKET_LOSS): Likewise.
20939         (PACKET_VNET_HDR): Likewise.
20940         (PACKET_TX_TIMESTAMP): Likewise.
20941         (PACKET_TIMESTAMP): Likewise.
20942         (PACKET_FANOUT): Likewise.
20943         (PACKET_TX_HAS_OFF): Likewise.
20944         (PACKET_QDISC_BYPASS): Likewise.
20945         (PACKET_ROLLOVER_STATS): Likewise.
20946         (PACKET_FANOUT_DATA): Likewise.
20947         (PACKET_MR_UNICAST): Likewise.
20948
20949         [BZ #19242]
20950         * stdlib/strtol_l.c (ISALPHA): Use _nl_C_locobj_ptr for locale.
20951         (TOUPPER): Likewise.
20952         * stdlib/tst-strtol-locale-main.c: New file.
20953         * stdlib/tst-strtol-locale.c: Likewise.
20954         * stdlib/Makefile (tests): Add tst-strtol-locale.
20955         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.ISO-8859-9.
20956         [$(run-built-tests) = yes] ($(objpfx)tst-strtol-locale.out):
20957         Depend on $(gen-locales).
20958         * wcsmbs/tst-wcstol-locale.c: New file.
20959         * wcsmbs/Makefile (tests): Add tst-wcstol-locale.
20960         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.UTF-8 and
20961         tr_TR.ISO-8859-9.
20962         [$(run-built-tests) = yes] ($(objpfx)tst-wcstol-locale.out):
20963         Depend on $(gen-locales).
20964
20965 2015-11-20  Roland McGrath  <roland@hack.frob.com>
20966
20967         * sysdeps/nacl/dl-map-segments.h (_dl_map_segments): Use
20968         __glibc_likely instead of __builtin_expect.  After falling back to
20969         dyncode_create in a non-ET_DYN case, use the allocate_code_data
20970         system interface to register the code pages as occupied.
20971
20972 2015-11-20  Joseph Myers  <joseph@codesourcery.com>
20973
20974         * sysdeps/arm/math_private.h [!_MATH_PRIVATE_H]: Change guard to
20975         [!ARM_MATH_PRIVATE_H].
20976         [!ARM_MATH_PRIVATE_H] (ARM_MATH_PRIVATE_H): Define macro.
20977         * sysdeps/hppa/math_private.h [!_MATH_PRIVATE_H]: Change guard to
20978         [!HPPA_MATH_PRIVATE_H].
20979         [!HPPA_MATH_PRIVATE_H] (HPPA_MATH_PRIVATE_H): Define macro.
20980         * sysdeps/i386/fpu/math_private.h [!_MATH_PRIVATE_H]: Change guard
20981         to [!I386_MATH_PRIVATE_H].
20982         [!I386_MATH_PRIVATE_H] (I386_MATH_PRIVATE_H): Define macro.
20983         * sysdeps/m68k/m680x0/fpu/math_private.h [!_MATH_PRIVATE_H]:
20984         Change guard to [!M68K_MATH_PRIVATE_H].
20985         [!M68K_MATH_PRIVATE_H] (M68K_MATH_PRIVATE_H): Define macro.
20986         * sysdeps/microblaze/math_private.h [!_MATH_PRIVATE_H]: Change
20987         guard to [!MICROBLAZE_MATH_PRIVATE_H].
20988         [!MICROBLAZE_MATH_PRIVATE_H] (MICROBLAZE_MATH_PRIVATE_H): Define
20989         macro.
20990         * sysdeps/mips/math_private.h [!_MATH_PRIVATE_H]: Change guard to
20991         [!MIPS_MATH_PRIVATE_H].
20992         [!MIPS_MATH_PRIVATE_H] (MIPS_MATH_PRIVATE_H): Define macro.
20993         * sysdeps/nios2/math_private.h [!_MATH_PRIVATE_H]: Change guard to
20994         [!NIO2_MATH_PRIVATE_H].
20995         [!NIO2_MATH_PRIVATE_H] (NIO2_MATH_PRIVATE_H): Define macro.
20996         * sysdeps/tile/math_private.h [!_MATH_PRIVATE_H]: Change guard to
20997         [!TILE_MATH_PRIVATE_H].
20998         [!TILE_MATH_PRIVATE_H] (TILE_MATH_PRIVATE_H): Define macro.
20999
21000         [BZ #15421]
21001         * sysdeps/ieee754/s_signgam.c (signgam): Rename to __signgam,
21002         initialize with 0 and define as weak alias of __signgam.
21003         * include/math.h [!_ISOMAC] (__signgam): Declare.
21004         * math/Makefile (libm-calls): Add w_lgamma_compat.
21005         (tests): Add test-signgam-uchar, test-signgam-uchar-init,
21006         test-signgam-uint, test-signgam-uint-init, test-signgam-ullong and
21007         test-signgam-ullong-init.
21008         (tests-static): Add test-signgam-uchar-static,
21009         test-signgam-uchar-init-static, test-signgam-uint-static,
21010         test-signgam-uint-init-static, test-signgam-ullong-static and
21011         test-signgam-ullong-init-static.
21012         (CFLAGS-test-signgam-uchar.c): New variable.
21013         (CFLAGS-test-signgam-uchar-init.c): Likewise.
21014         (CFLAGS-test-signgam-uchar-static.c): Likewise.
21015         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
21016         (CFLAGS-test-signgam-uint.c): Likewise.
21017         (CFLAGS-test-signgam-uint-init.c): Likewise.
21018         (CFLAGS-test-signgam-uint-static.c): Likewise.
21019         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
21020         (CFLAGS-test-signgam-ullong.c): Likewise.
21021         (CFLAGS-test-signgam-ullong-init.c): Likewise.
21022         (CFLAGS-test-signgam-ullong-static.c): Likewise.
21023         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
21024         * math/Versions (libm): Add GLIBC_2.23.
21025         * math/lgamma-compat.h: New file.
21026         * math/test-signgam-main.c: Likewise.
21027         * math/test-signgam-uchar-init-static.c: Likewise.
21028         * math/test-signgam-uchar-init.c: Likewise.
21029         * math/test-signgam-uchar-static.c: Likewise.
21030         * math/test-signgam-uchar.c: Likewise.
21031         * math/test-signgam-uint-init-static.c: Likewise.
21032         * math/test-signgam-uint-init.c: Likewise.
21033         * math/test-signgam-uint-static.c: Likewise.
21034         * math/test-signgam-uint.c: Likewise.
21035         * math/test-signgam-ullong-init-static.c: Likewise.
21036         * math/test-signgam-ullong-init.c: Likewise.
21037         * math/test-signgam-ullong-static.c: Likewise.
21038         * math/test-signgam-ullong.c: Likewise.
21039         * math/w_lgamma.c: Rename to w_lgamma_main.c and replace by
21040         wrapper of w_lgamma_main.c.
21041         * math/w_lgamma_compat.c: New file.
21042         * math/w_lgamma_compatf.c: Likewise.
21043         * math/w_lgamma_compatl.c: Likewise.
21044         * math/w_lgamma_main.c: New file.  Based on w_lgamma.c.  Include
21045         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
21046         defining compatibility symbols.
21047         (__lgamma): Change to LGFUNC (__lgamma).  Use CALL_LGAMMA.
21048         * math/w_lgammaf.c: Rename to w_lgammaf_main.c and replace by
21049         wrapper of w_lgammaf_main.c.
21050         * math/w_lgammaf_main.c: New file.  Based on w_lgammaf.c.  Include
21051         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
21052         defining compatibility symbols.
21053         (__lgammaf): Change to LGFUNC (__lgammaf).  Use CALL_LGAMMA.
21054         * math/w_lgammal.c: Rename to w_lgammal_main.c and replace by
21055         wrapper of w_lgammal_main.c.
21056         * math/w_lgammal_main.c: New file.  Based on w_lgammal.c.  Include
21057         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
21058         defining compatibility symbols.
21059         (__lgammal): Change to LGFUNC (__lgammal).  Use CALL_LGAMMA.
21060         * sysdeps/ia64/fpu/lgamma-compat.h: New file.
21061         * sysdeps/ia64/fpu/w_lgamma.c: Move to ....
21062         * sysdeps/ia64/fpu/w_lgamma_main.c: ...here.  Include
21063         <lgamma-compat.h>.
21064         (__ieee754_lgamma): Change to LGFUNC (lgamma).  Use CALL_LGAMMA.
21065         (__ieee754_gamma): Define as alias.
21066         * sysdeps/ia64/fpu/w_lgammaf.c: Move to ....
21067         * sysdeps/ia64/fpu/w_lgammaf_main.c: ...here.  Include
21068         <lgamma-compat.h>.
21069         (__ieee754_lgammaf): Change to LGFUNC (lgammaf).  Use CALL_LGAMMA.
21070         (__ieee754_gammaf): Define as alias.
21071         * sysdeps/ia64/fpu/w_lgammal.c: Move to ....
21072         * sysdeps/ia64/fpu/w_lgammal_main.c: ...here.  Include
21073         <lgamma-compat.h>.
21074         (__ieee754_lgammal): Change to LGFUNC (lgammal).  Use CALL_LGAMMA.
21075         (__ieee754_gammal): Define as alias.
21076         * sysdeps/ieee754/ldbl-opt/w_lgamma.c: Move to ....
21077         * sysdeps/ieee754/ldbl-opt/w_lgamma_compat.c: ...here.  Include
21078         <math/w_lgamma_compat.c>.
21079         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__lgammal_dbl_compat):
21080         Define as alias of __lgamma_compat and use in defining lgammal.
21081         * sysdeps/ieee754/ldbl-opt/w_lgammal.c: Move to ....
21082         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c: ...here.  Include
21083         <math/lgamma-compat.h> and <math/w_lgamma_compatl.c>.
21084         (USE_AS_COMPAT): New macro.
21085         (LGAMMA_OLD_VER): Undefine and redefine.
21086         (lgammal): Do not define here.
21087         (gammal): Only define here if [GAMMA_ALIAS].
21088         * conform/linknamespace.pl (@whitelist): Remove signgam.
21089         * sysdeps/nacl/libm.abilist: Update.
21090         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21091         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21092         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21093         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21094         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21095         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21096         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21097         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21098         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21099         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21100         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21101         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21102         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
21103         Likewise.
21104         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
21105         Likewise.
21106         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21107         Likewise.
21108         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
21109         Likewise.
21110         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21111         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21112         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21113         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21114         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21115         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
21116         Likewise.
21117         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
21118         Likewise.
21119         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
21120         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21121         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21122
21123 2015-11-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21124
21125         [BZ #16364]
21126         * sysdeps/unix/sysv/linux/sleep.c: Remove file.
21127         * sysdeps/posix/sleep.c (__sleep): Simplify cancellation handling.
21128
21129 2015-11-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
21130
21131         * sysdeps/s390/fpu/bits/mathinline.h:
21132         Use __asm__ [__volatile__] instead of asm [volatile].
21133         * sysdeps/s390/abort-instr.h: Likewise.
21134         * sysdeps/s390/atomic-machine.h: Likewise.
21135         * sysdeps/s390/bits/string.h: Likewise.
21136         * sysdeps/s390/dl-tls.h: Likewise.
21137         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
21138         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
21139         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
21140         * sysdeps/s390/fpu/fesetround.c: Likewise.
21141         * sysdeps/s390/fpu/fpu_control.h: Likewise.
21142         * sysdeps/s390/fpu/s_fma.c: Likewise.
21143         * sysdeps/s390/fpu/s_fmaf.c: Likewise.
21144         * sysdeps/s390/memusage.h: Likewise.
21145         * sysdeps/s390/multiarch/ifunc-resolve.h: Likewise.
21146         * sysdeps/s390/nptl/pthread_spin_lock.c: Likewise.
21147         * sysdeps/s390/nptl/pthread_spin_trylock.c: Likewise.
21148         * sysdeps/s390/nptl/pthread_spin_unlock.c: Likewise.
21149         * sysdeps/s390/nptl/tls.h: Likewise.
21150         * sysdeps/s390/s390-32/__longjmp.c: Likewise.
21151         * sysdeps/s390/s390-32/backtrace.c: Likewise.
21152         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
21153         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
21154         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
21155         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
21156         * sysdeps/s390/s390-64/__longjmp.c: Likewise.
21157         * sysdeps/s390/s390-64/backtrace.c: Likewise.
21158         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
21159         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Likewise.
21160         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
21161         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
21162         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
21163         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
21164         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
21165         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
21166         * sysdeps/unix/sysv/linux/s390/brk.c: Likewise.
21167         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
21168         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Likewise.
21169         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
21170         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: Likewise.
21171         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
21172         * sysdeps/unix/sysv/linux/s390/sysconf.c: Likewise.
21173
21174 2015-11-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21175             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
21176
21177         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
21178         Add lwarx hint, and use macro for acquire instruction.
21179         * sysdeps/powerpc/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
21180         Likewise.
21181         * sysdep/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Move to ...
21182         * sysdeps/powerpc/nptl/pthread_spin_unlock.c: ... here, and
21183         update to use new atomic macros.
21184
21185 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
21186
21187         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
21188         (__lll_trylock_elision): Fix setting of adapt_count.
21189         * sysdeps/unix/sysv/linux/powerpc/htm.h
21190         (_ABORT_PERSISTENT): Define to clarify persistent aborts.
21191         (_ABORT_NESTED_TRYLOCK): Renumber, and make persistent.
21192         (_ABORT_SYSCALL): Renumber, and clarify definition.
21193         (_ABORT_LOCK_BUSY): Renumber, make non-persistent.
21194
21195 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
21196
21197         * sysdeps/ieee754/ldbl-128ibm/mpn2ldl.c: Include gmp headers
21198         after system headers to prevent MIN/MAX redefinition.  Define
21199         HAVE_ALLOCA to preserve builtin alloca usage.
21200
21201 2015-11-17  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
21202
21203         * sysdeps/ieee754/dbl-64/s_sin.c (__sin)[IN_SINCOS]: Mark function
21204         static and don't set or restore rounding.
21205         (__cos)[IN_SINCOS]: Likewise.
21206         * sysdeps/ieee754/dbl-64/s_sincos.c: Include s_sin.c.
21207         (__sincos): Set and restore rounding mode.  Remove check for infinite
21208         or NaN input.
21209
21210         * sysdeps/ieee754/dbl-64/s_sin.c: Remove redundant else clauses.
21211
21212         * benchtests/scripts/bench.py (_print_arg_data): Mark output variables
21213         as used.
21214
21215 2015-11-16  Florian Weimer  <fweimer@redhat.com>
21216
21217         * math/test-signgam-finite-c99.c (_Mlong_double_): Undefine.
21218
21219 2015-11-14  H.J. Lu  <hongjiu.lu@intel.com>
21220
21221         * config.make.in (have-glob-dat-reloc): New.
21222         * configure.ac (libc_cv_has_glob_dat): New.  Set to yes if
21223         target supports GLOB_DAT relocaton. AC_SUBST.
21224         * configure: Regenerated.
21225         * elf/Makefile (tests): Add tst-prelink.
21226         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
21227         (tst-prelink-ENV): New.
21228         ($(objpfx)tst-prelink-conflict.out): Likewise.
21229         ($(objpfx)tst-prelink-cmp.out): Likewise.
21230         * sysdeps/x86/tst-prelink.c: Moved to ...
21231         * elf/tst-prelink.c: Here.
21232         * sysdeps/x86/tst-prelink.exp: Moved to ...
21233         * elf/tst-prelink.exp: Here.
21234         * sysdeps/x86/Makefile (tests): Don't add tst-prelink.
21235         (tst-prelink-ENV): Removed.
21236         ($(objpfx)tst-prelink-conflict.out): Likewise.
21237         ($(objpfx)tst-prelink-cmp.out): Likewise.
21238         (tests-special): Don't add $(objpfx)tst-prelink-cmp.out.
21239
21240 2015-11-13  Joseph Myers  <joseph@codesourcery.com>
21241
21242         [BZ #14551]
21243         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Include <errno.h>.
21244         (__mpn_construct_long_double): If high part overflows to infinity,
21245         set errno and recompute overflowed result of the correct sign.
21246         * sysdeps/ieee754/ldbl-128ibm/Makefile
21247         [$(subdir) = stdlib] (tests): Add tst-strtold-ldbl-128ibm.
21248         [$(subdir) = stdlib] ($(objpfx)tst-strtold-ldbl-128ibm): Depend on
21249         $(libm).
21250         * sysdeps/ieee754/ldbl-128ibm/tst-strtold-ldbl-128ibm.c: New file.
21251
21252 2015-11-12  Joseph Myers  <joseph@codesourcery.com>
21253
21254         [BZ #15479]
21255         [BZ #19238]
21256         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Save
21257         floating-point state after first operation on input.  Restore full
21258         state rather than just rounding mode.
21259         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
21260         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
21261         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
21262
21263         [BZ #19235]
21264         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Do not
21265         add 0.5 to integer arguments.
21266         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf):
21267         Likewise.
21268         (.LC2): New object.
21269
21270 2015-11-11  Mike Frysinger  <vapier@gentoo.org>
21271
21272         * scripts/pylintrc (reports): Set to no.
21273
21274 2015-11-10  Roland McGrath  <roland@hack.frob.com>
21275
21276         * elf/dl-load.c (open_verify): Take new argument FD.
21277         Skip __open call if passed FD is not -1.
21278         (_dl_map_object, open_path): Update callers.
21279         * elf/dl-sysdep-open.h: New file.
21280         * elf/dl-load.c: Include it.
21281         (_dl_map_object): Try _dl_sysdep_open_object before ldconfig cache.
21282         * sysdeps/nacl/dl-sysdep.c (_dl_sysdep_open_object): New function.
21283         * sysdeps/nacl/dl-sysdep-open.h: New file.
21284         * sysdeps/nacl/nacl-interface-list.h: Move nacl_irt_resource_open
21285         from libc to rtld.
21286
21287 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
21288
21289         [BZ #19228]
21290         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Save
21291         and restore full floating-point state.
21292         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
21293         Likewise.
21294         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
21295         Likewise.
21296         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
21297         Likewise.
21298         * math/test-nearbyint-except-2.c: New file.
21299         * math/Makefile (tests): Add test-nearbyint-except-2.
21300
21301 2015-11-10  H.J. Lu  <hongjiu.lu@intel.com>
21302
21303         [BZ #19178]
21304         * sysdeps/x86/Makefile (tests): Add tst-prelink.
21305         (tst-prelink-ENV): New.
21306         ($(objpfx)tst-prelink-conflict.out): Likewise.
21307         ($(objpfx)tst-prelink-cmp.out): Likewise.
21308         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
21309         * sysdeps/x86/tst-prelink.c: New file.
21310         * sysdeps/x86/tst-prelink.exp: Likewise.
21311
21312 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
21313
21314         * math/auto-libm-test-in: Add another test of pow.
21315         * math/auto-libm-test-out: Regenerated.
21316         * math/libm-test.inc (pow_test_data): Add another test.
21317
21318 2015-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21319
21320         [BZ #19219]
21321         * sysdeps/ia64/fpu/s_nearbyintl.S (__nearbyint): Define and
21322         weak_alias to nearbyintl.
21323
21324 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
21325
21326         * sysdeps/aarch64/bits/string.h: New file.
21327         (_STRING_ARCH_unaligned): Define.
21328
21329 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
21330
21331         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Remove __signbit*.
21332         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
21333         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
21334         * sysdeps/unix/sysv/linux/nios2/localplt.data: Likewise.
21335         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data: Likewise.
21336
21337 2015-11-09  Ulrich Drepper  <drepper@gmail.com>
21338
21339         * elf/dl-load.c (_dl_map_object_from_fd): Add additional parameter
21340         for original name of the DSO.  Add it to the name list of the DSO
21341         if it is actually given.
21342         (_dl_map_object): Keep track of whether an audit module rewrote
21343         the file name.  If yes, pass the original name to
21344         _dl_map_object_from_fd in a new parameter, otherwise NULL.  When
21345         debugging is enabled, log the change of the file name.
21346         * sysdeps/mach/hur/dl-sysdep.c: Adjust commented-out call to
21347         _dl_map_object_from_fd.
21348         * elf/Makefile: Build and run tst-audit11 and tst-audit12.
21349         * elf/tst-audit11.c: New file
21350         * elf/tst-auditmod11.c: New file.
21351         * elf/tst-audit11mod1.c: New file.
21352         * elf/tst-audit11mod2.c: New file.
21353         * elf/tst-audit11mod2.map: New file.
21354         * elf/tst-audit12.c: New file
21355         * elf/tst-auditmod12.c: New file.
21356         * elf/tst-audit12mod1.c: New file.
21357         * elf/tst-audit12mod2.c: New file.
21358         * elf/tst-audit12mod2.map: New file.
21359         * elf/tst-audit12mod3.c: New file.
21360
21361 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
21362
21363         * sysdeps/s390/longjmp.c (longjmp, _longjmp, siglongjmp):
21364         Don't create weak aliases,
21365         because versioned symbols are created later.
21366         * sysdeps/s390/s390-32/setjmp.S
21367         (setjmp, _setjmp): Remove weak and rename to an unique name
21368         in SHARED case due to existing versioned symbols.
21369         * sysdeps/s390/s390-64/setjmp.S: Likewise.
21370         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S
21371         (getcontext): Create weak alias only in non SHARED case.
21372         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
21373
21374 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
21375
21376         * sysdeps/unix/sysv/linux/s390/kernel-features.h:
21377         (__ASSUME_*_SYSCALL) Define new macros.
21378         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:
21379         Remove socketcall syscalls.
21380         * sysdeps/unix/sysv/linux/accept.c (__libc_accept):
21381         Use accept4 if defined __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL.
21382         * sysdeps/unix/sysv/linux/recv.c (__libc_recv):
21383         Use recvfrom if defined __ASSUME_RECVFROM_FOR_RECV_SYSCALL.
21384         * sysdeps/unix/sysv/linux/send.c (__libc_send):
21385         Use sendto if defined __ASSUME_SENDTO_FOR_SEND_SYSCALL.
21386
21387 2015-11-09  Florian Weimer  <fweimer@redhat.com>
21388
21389         [BZ #12926]
21390         Terminate process on invalid netlink response.
21391         * sysdeps/unix/sysv/linux/netlinkaccess.h
21392         (__netlink_assert_response): Declare.
21393         * sysdeps/unix/sysv/linux/netlink_assert_response.c: New file.
21394         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == inet]
21395         (sysdep_routines): Add netlink_assert_response.
21396         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Call
21397         __netlink_assert_response.
21398         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
21399         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
21400         * sysdeps/unix/sysv/linux/Versions (GLIBC_PRIVATE): Add
21401         __netlink_assert_response.
21402
21403 2015-11-07  H.J. Lu  <hongjiu.lu@intel.com>
21404
21405         [BZ #19178]
21406         * elf/dl-lookup.c (RTYPE_CLASS_VALID): New.
21407         (RTYPE_CLASS_PLT): Likewise.
21408         (RTYPE_CLASS_COPY): Likewise.
21409         (RTYPE_CLASS_TLS): Likewise.
21410         (_dl_debug_bindings): Use RTYPE_CLASS_TLS and RTYPE_CLASS_VALID
21411         to set relocation type class for DL_DEBUG_PRELINK.  Keep only
21412         ELF_RTYPE_CLASS_PLT and ELF_RTYPE_CLASS_COPY bits for
21413         DL_DEBUG_PRELINK.
21414
21415 2015-11-06  Joseph Myers  <joseph@codesourcery.com>
21416
21417         * math/test-signgam-finite.c (RUN_TESTS): Correct messages about
21418         calls with argument -0.5.
21419         * math/test-signgam-finite-c99.c (RUN_TESTS): Likewise.
21420
21421         * configure.ac (libc_cv_z_nodelete): Remove configure test.
21422         (libc_cv_z_nodlopen): Likewise.
21423         (libc_cv_z_initfirst): Likewise.
21424         * configure: Regenerated.
21425
21426 2015-11-06  Florian Weimer  <fweimer@redhat.com>
21427
21428         Simplify abilist format to be line-based.
21429         * scripts/abilist.awk: Collect descriptors in the descs variable.
21430         (emit): Write descs variable and sort it
21431         externally, with sort.
21432         * sysdeps/**/*.abilist: Convert to new format.
21433
21434 2015-11-06  Mark Wielaard  <mjw@redhat.com>
21435
21436         [BZ #11460]
21437         * io/Makefile (routines): Add fts64.
21438         (tests): Add tst-fts and tst-fts-lfs.
21439         (CFLAGS-fts64.c): New.
21440         * io/Versions (GLIBC_2.23): New.
21441         * io/fts.c: Replace FTS with FTSOBJ, FTSENT with FTSENTRY. Use
21442         function defines FTS_OPEN, FTS_CLOSE, FTS_READ, FTS_SET and
21443         FTS_CHILDREN. Define FTSOBJ, FTSENTRY, FTS_OPEN, FTS_CLOSE,
21444         FTS_READ, FTS_SET, FTS_CHILDREN, INO_T, STAT and LSTAT if necessary.
21445         * io/fts.h (FTS64): New if _USE_LARGEFILE64.
21446         (FTSENT64): Likewise.
21447         (fts64_children): Likewise.
21448         (fts64_close): Likewise.
21449         (fts64_open): Likewise.
21450         (fts64_read): Likewise.
21451         (fts64_set): Likewise.
21452         * io/fts64.c: New file.
21453         * io/tst-fts.c: New test.
21454         * io/tst-fts-lfs.c: Likewise.
21455         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.23): Add
21456         GLIBC_2.23, fts64_children, fts64_close, fts64_open, fts64_read and
21457         fts64_set.
21458         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21459         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
21460         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
21461         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21462         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21463         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
21464         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
21465         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
21466         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
21467         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
21468         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21469         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21470         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
21471         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
21472         Likewise.
21473         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
21474         Likewise.
21475         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
21476         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
21477         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21478         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21479         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
21480         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21481         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21482         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
21483         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
21484         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
21485         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21486         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21487         * sysdeps/wordsize-64/fts.c: New file.
21488         * sysdeps/wordsize-64/fts64.c: Likewise.
21489         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts.c: Likewise.
21490         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts64.c: Likewise.
21491         * sysdeps/unix/sysv/linux/x86_64/x32/fts.c: likewise.
21492         * sysdeps/unix/sysv/linux/x86_64/x32/fts64.c: likewise.
21493
21494 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
21495
21496         * math/libm-test.inc (NON_FINITE): New macro.
21497         (enable_test): Do not run tests flagged NON_FINITE if TEST_FINITE.
21498         * math/gen-libm-test.pl (show_exceptions): Add argument
21499         $non_finite.
21500         (parse_args): Update call to show_exceptions.
21501         * math/test-math-finite.h: New file.
21502         * math/test-math-no-finite.h: Likewise.
21503         * math/test-double-finite.c: Likewise.
21504         * math/test-float-finite.c: Likewise.
21505         * math/test-ldouble-finite.c: Likewise.
21506         * math/test-double.c: Include "test-math-no-finite.h".
21507         * math/test-float.c: Include "test-math-no-finite.h".
21508         * math/test-ldouble.c: Include "test-math-no-finite.h".
21509         * math/test-math-inline.h (TEST_FINITE): New macro.
21510         * math/test-math-vector.h (TEST_FINITE): Likewise.
21511         * math/Makefile (test-longdouble-yes): Add test-ldouble-finite.
21512         (libm-tests): Add test-float-finite and test-double-finite.
21513         ($(objpfx)test-float-finite.o): New dependency on
21514         $(objpfx)libm-test.stmp.
21515         ($(objpfx)test-double-finite.o): Likewise.
21516         ($(objpfx)test-ldouble-finite.o): Likewise.
21517         (libm-test-no-inline-cflags): New variable.
21518         (libm-test-finite-cflags): Likewise.
21519         (CFLAGS-test-float-finite.c): Likewise.
21520         (CFLAGS-test-double-finite.c): Likewise.
21521         (CFLAGS-test-ldouble-finite.c): Likewise.
21522         (CFLAGS-test-float.c): Use $(libm-test-no-inline-cflags).
21523         (CFLAGS-test-double.c): Likewise.
21524         (CFLAGS-test-ldouble.c): Likewise.
21525
21526 2015-11-05  Roland McGrath  <roland@hack.frob.com>
21527
21528         * io/fcntl.c (__fcntl): Add ... to prototype.
21529         * misc/ioctl.c (__ioctl): Likewise.
21530         * misc/syscall.c (syscall): Likewise.
21531
21532 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
21533
21534         * scripts/list-fixed-bugs.py: New file.
21535
21536         [BZ #19213]
21537         * sysdeps/i386/fpu/e_log.S (__log_finite): Ensure +0 is always
21538         returned for argument 1.
21539         * sysdeps/i386/fpu/e_logf.S (__logf_finite): Likewise.
21540         * sysdeps/i386/fpu/e_logl.S (__logl_finite): Likewise.
21541         * sysdeps/i386/i686/fpu/e_logl.S (__logl_finite): Likewise.
21542         * sysdeps/x86_64/fpu/e_log10l.S (__log10l_finite): Likewise.
21543         * sysdeps/x86_64/fpu/e_log2l.S (__log2l_finite): Likewise.
21544         * sysdeps/x86_64/fpu/e_logl.S (__logl_finite): Likewise.
21545
21546         [BZ #19211]
21547         * math/bits/math-finite.h (lgamma): Set signgam if [__USE_MISC ||
21548         __USE_XOPEN], not if [!__USE_ISOC99].
21549         (lgammaf): Likewise.
21550         (lgammal): Likewise.
21551         (gamma): Set signgam unconditionally, not if [!__USE_ISOC99].
21552         (gammaf): Likewise.
21553         (gammal): Likewise.
21554         * math/test-signgam-finite-c11.c: New file.
21555         * math/test-signgam-finite-c99.c: Likewise.
21556         * math/test-signgam-finite.c: Likewise.
21557         * math/Makefile (tests): Add test-signgam-finite,
21558         test-signgam-finite-c99 and test-signgam-finite-c11.
21559         (CFLAGS-test-signgam-finite.c): New variable.
21560         (CFLAGS-test-signgam-finite-c99.c): Likewise.
21561         (CFLAGS-test-signgam-finite-c11.c): Likewise.
21562
21563         [BZ #19212]
21564         * include/features.h [(_XOPEN_SOURCE - 0) >= 500]: Change
21565         conditional to [defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >=
21566         500].
21567         [_POSIX_C_SOURCE >= 1]: Change conditional to [defined
21568         _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 1].
21569         [(_POSIX_C_SOURCE - 0) >= 199309L]: Change conditional to [defined
21570         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199309L].
21571         [(_POSIX_C_SOURCE - 0) >= 199506L]: Change conditional to [defined
21572         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199506L].
21573         [(_POSIX_C_SOURCE - 0) >= 200112L]: Change conditional to [defined
21574         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200112L].
21575         [(_POSIX_C_SOURCE - 0) >= 200809L]: Change conditional to [defined
21576         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200809L].
21577
21578         [BZ #19209]
21579         * math/bits/math-finite.h (ldexp): Remove declaration.
21580         (ldexpf): Likewise.
21581         (ldexpl): Likewise.
21582
21583         [BZ #19205]
21584         * math/bits/math-finite.h (acosf): Condition declaration on
21585         [__USE_ISOC99].
21586         (acosl): Likewise.
21587         (acoshf): Likewise.
21588         (acoshl): Likewise.
21589         (asinf): Likewise.
21590         (asinl): Likewise.
21591         (atan2f): Likewise.
21592         (atan2l): Likewise.
21593         (atanhf): Likewise.
21594         (atanhl): Likewise.
21595         (coshf): Likewise.
21596         (coshl): Likewise.
21597         (expf): Likewise.
21598         (expl): Likewise.
21599         (fmodf): Likewise.
21600         (fmodl): Likewise.
21601         (hypot): Change condition to [__USE_XOPEN || __USE_ISOC99].
21602         (j0f): Change condition to [__USE_MISC && __USE_ISOC99].
21603         (j0l): Likewise.
21604         (y0f): Likewise.
21605         (y0l): Likewise.
21606         (j1f): Likewise.
21607         (j1l): Likewise.
21608         (y1f): Likewise.
21609         (y1l): Likewise.
21610         (jnf): Likewise.
21611         (jnl): Likewise.
21612         (ynf): Likewise.
21613         (ynl): Likewise.
21614         (lgammaf_r): Condition declaration on [__USE_ISOC99].
21615         (lgammal_r): Likewise.
21616         (__lgamma_r_finite): New declaration.
21617         (__lgammaf_r_finite): Likewise.
21618         (__lgammal_r_finite): Likewise.
21619         (lgamma): Use __lgamma_r_finite.
21620         (lgammaf): Condition definition on [__USE_ISOC99].  Use
21621         __lgammaf_r_finite.
21622         (lgammal): Condition definition on [__USE_ISOC99].  Use
21623         __lgammal_r_finite.
21624         (gamma): Do not define for [!__USE_MISC && __USE_XOPEN2K].  Use
21625         __lgamma_r_finite.
21626         (gammaf): Condition definition on [__USE_ISOC99].  Use
21627         __lgammaf_r_finite.
21628         (gammal): Condition definition on [__USE_ISOC99].  Use
21629         __lgammal_r_finite.
21630         (logf): Condition declaration on [__USE_ISOC99].
21631         (logl): Likewise.
21632         (log10f): Likewise.
21633         (log10l): Likewise.
21634         (ldexpf): Likewise.
21635         (ldexpl): Likewise.
21636         (powf): Likewise.
21637         (powl): Likewise.
21638         (remainder): Condition declaration on [__USE_XOPEN_EXTENDED ||
21639         __USE_ISOC99].
21640         (remainderf): Condition declaration on [__USE_ISOC99].
21641         (remainderl): Likewise.
21642         (scalb): Do not declare for [!__USE_MISC && __USE_XOPEN2K8].
21643         (scalbf): Change condition to [__USE_MISC && __USE_ISOC99].
21644         (scalbl): Likewise.
21645         (sinhf): Condition declaration on [__USE_ISOC99].
21646         (sinhl): Likewise.
21647         (sqrtf): Likewise.
21648         (sqrtl): Likewise.
21649
21650 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
21651
21652         * sysdeps/arm/atomic-machine.h
21653         [__GNUC_PREREQ (4, 7) && __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
21654         Change conditional to [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
21655         [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 && !__GNUC_PREREQ (4, 7)]:
21656         Remove conditional code.
21657         [!__GNUC_PREREQ (4, 7) || !__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
21658         Change conditional to [!__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
21659         * sysdeps/i386/sysdep.h [__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]:
21660         Change conditional to [__ASSEMBLER__].
21661         [__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
21662         [!__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]: Change conditional to
21663         [!__ASSEMBLER__].
21664         [!__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional
21665         code.
21666         * sysdeps/unix/sysv/linux/sh/atomic-machine.h (rNOSP): Remove
21667         conditional macro definitions.
21668         (__arch_compare_and_exchange_val_8_acq): Use "u" instead of rNOSP.
21669         (__arch_compare_and_exchange_val_16_acq): Likewise.
21670         (__arch_compare_and_exchange_val_32_acq): Likewise.
21671         (atomic_exchange_and_add): Likewise.
21672         (atomic_add): Likewise.
21673         (atomic_add_negative): Likewise.
21674         (atomic_add_zero): Likewise.
21675         (atomic_bit_set): Likewise.
21676         (atomic_bit_test_set): Likewise.
21677         * sysdeps/x86_64/atomic-machine.h [__GNUC_PREREQ (4, 7)]: Make
21678         code unconditional.
21679         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
21680
21681         * math/test-math-errno.h: New file.
21682         * math/test-math-inline.h (TEST_INLINE): Define to 1 instead of
21683         empty.
21684         (TEST_ERRNO): New macro.
21685         (TEST_EXCEPTIONS): Likewise.
21686         * math/test-math-no-inline.h (TEST_INLINE): Likewise.
21687         (TEST_EXCEPTIONS): Likewise.
21688         * math/test-math-vector.h (TEST_ERRNO): Likewise.
21689         * math/test-double.c: Include "test-math-errno.h".
21690         * math/test-float.c: Likewise.
21691         * math/test-ldouble.c: Likewise.
21692         * math/libm-test.inc (test_single_exception) [!TEST_INLINE]: Make
21693         code unconditional.
21694         (test_exceptions): Only run code if TEST_EXCEPTIONS.
21695         (test_single_errno) [!TEST_INLINE && !TEST_MATHVEC]: Make code
21696         unconditional.
21697         (test_errno): Only run code if TEST_ERRNO.
21698         (enable_test): Use "if" conditional on TEST_INLINE, not #ifdef.
21699
21700 2015-11-04  Florian Weimer  <fweimer@redhat.com>
21701
21702         * nptl/tst-once5.cc: Remove attribution.
21703
21704 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
21705
21706         * math/auto-libm-test-in: Add more tests of sin, sincos, sinh,
21707         sqrt, tan, tanh, y0, y1 and yn.
21708         * math/auto-libm-test-out: Regenerated.
21709         * math/libm-test.inc (scalb_test_data): Add more tests.
21710         (scalbn_test_data): Likewise.
21711         (scalbln_test_data): Likewise.
21712         (signbit_test_data): Likewise.
21713         (sin_test_data): Likewise.
21714         (sincos_test_data): Likewise.
21715         (sinh_test_data): Likewise.
21716         (sqrt_test_data): Likewise.
21717         (tan_test_data): Likewise.
21718         (tanh_test_data): Likewise.
21719         (tgamma_test_data): Likewise.
21720         (y0_test_data): Likewise.
21721         (y1_test_data): Likewise.
21722         (yn_test_data): Likewise.
21723         (significand_test_data): Likewise.
21724         * sysdeps/i386/fpu/libm-test-ulps: Update.
21725
21726 2015-11-03  David Kastrup  <dak@gnu.org>
21727
21728         [BZ #18604]
21729         * assert/assert.h (assert): Don't macro-expand failed assertion
21730         expression in error message.
21731         * malloc/malloc.c (assert): Likewise.
21732
21733 2015-11-03  Joseph Myers  <joseph@codesourcery.com>
21734
21735         * configure.ac (libc_cv_ld_no_whole_archive): Remove configure
21736         test.
21737         * configure: Regenerated.
21738
21739 2015-11-02  Joseph Myers  <joseph@codesourcery.com>
21740
21741         * math/libm-test.inc (modf_test_data): Add more tests.
21742         (nearbyint_test_data): Likewise.
21743         (nextafter_test_data): Likewise.
21744         (nexttoward_test_data): Likewise.
21745         (pow_test_data): Likewise.
21746         (remainder_test_data): Likewise.
21747         (remquo_test_data): Likewise.
21748         (rint_test_data): Likewise.
21749
21750         [BZ #19201]
21751         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
21752         Check for zero remainder in case of large exponents and ensure
21753         correct sign of result in that case.
21754         * math/libm-test.inc (remainder_test_data): Add more tests.
21755
21756         [BZ #6799]
21757         * math/s_nextafter.c: Include <errno.h>.
21758         (__nextafter): Set errno on overflow and underflow.
21759         * math/s_nexttowardf.c: Include <errno.h>.
21760         (__nexttowardf): Set errno on overflow and underflow.
21761         * sysdeps/i386/fpu/s_nextafterl.c: Include <errno.h>.
21762         (__nextafterl): Set errno on overflow and underflow.
21763         * sysdeps/i386/fpu/s_nexttoward.c: Include <errno.h>.
21764         (__nexttoward): Set errno on overflow and underflow.
21765         * sysdeps/i386/fpu/s_nexttowardf.c: Include <errno.h>.
21766         (__nexttowardf): Set errno on overflow and underflow.
21767         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include <errno.h>.
21768         (__nextafterf): Set errno on overflow and underflow.
21769         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include <errno.h>.
21770         (__nextafterl): Set errno on overflow and underflow.
21771         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Include <errno.h>.
21772         (__nexttoward): Set errno on overflow and underflow.
21773         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Include <errno.h>.
21774         (__nexttowardf): Set errno on overflow and underflow.
21775         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <errno.h>.
21776         (__nextafterl): Set errno on overflow and underflow.
21777         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Include <errno.h>.
21778         (__nexttoward): Set errno on overflow and underflow.
21779         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include <errno.h>.
21780         (__nexttowardf): Set errno on overflow and underflow.
21781         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Include <errno.h>.
21782         (__nexttoward): Set errno on overflow and underflow.
21783         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include <errno.h>.
21784         (__nexttowardf): Set errno on overflow and underflow.
21785         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include <errno.h>.
21786         (__nldbl_nexttowardf): Set errno on overflow and underflow.
21787         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Include <errno.h>.
21788         (__nextafterl): Set errno on overflow and underflow.
21789         * math/libm-test.inc (nextafter_test_data): Do not allow errno
21790         setting to be missing on overflow.  Add more tests.
21791         (nexttoward_test_data): Likewise.
21792
21793         * configure.ac (libc_cv_initfini_array): Remove configure test.
21794         * configure: Regenerated.
21795
21796 2015-10-29  Joseph Myers  <joseph@codesourcery.com>
21797
21798         [BZ #19189]
21799         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Make check for
21800         non-finite argument handle arguments with negative sign.
21801
21802         * math/libm-test.inc (j0_test_data): Do not test sign of zero
21803         result from infinite argument.
21804         (j1_test_data): Likewise.
21805         (jn_test_data): Likewise.
21806         (y0_test_data): Likewise.
21807         (y1_test_data): Likewise.
21808         (yn_test_data): Likewise.
21809
21810         [BZ #16171]
21811         * math/w_remainder.c (drem): Define as weak alias of __remainder.
21812         [NO_LONG_DOUBLE] (dreml): Define as weak alias of __remainder.
21813         * math/w_remainderf.c (dremf): Define as weak alias of
21814         __remainderf.
21815         * math/w_remainderl.c (dreml): Define as weak alias of
21816         __remainderl.
21817         * sysdeps/ia64/fpu/e_remainder.S (drem): Define as weak alias of
21818         __remainder.
21819         * sysdeps/ia64/fpu/e_remainderf.S (dremf): Define as weak alias of
21820         __remainderf.
21821         * sysdeps/ia64/fpu/e_remainderl.S (dreml): Define as weak alias of
21822         __remainderl.
21823         * sysdeps/ieee754/ldbl-opt/nldbl-remainder.c (dreml): Define as
21824         weak alias of remainderl.
21825         * sysdeps/ieee754/ldbl-opt/w_remainder.c
21826         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__drem): Define as strong
21827         alias of __remainder.
21828         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (dreml): Use compat_symbol.
21829         * sysdeps/ieee754/ldbl-opt/w_remainderl.c (__dreml): Define as
21830         strong alias of __remainderl.
21831         (dreml): Use long_double_symbol.
21832         * math/Makefile (libm-calls): Remove w_drem.
21833         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove drem.
21834         (CFLAGS-nldbl-drem.c): Remove variable.
21835         (CFLAGS-nldbl-remainder.c): Add -fno-builtin-dreml.
21836         * math/w_drem.c: Remove file.
21837         * math/w_dremf.c: Likewise.
21838         * math/w_dreml.c: Likewise.
21839         * sysdeps/ieee754/ldbl-opt/nldbl-drem.c: Likewise.
21840         * sysdeps/ieee754/ldbl-opt/w_drem.c: Likewise.
21841         * sysdeps/ieee754/ldbl-opt/w_dreml.c: Likewise.
21842
21843         * sysdeps/i386/configure.ac (cpuid.h): Do not test for header.
21844         * sysdeps/i386/configure: Regenerated.
21845         * sysdeps/x86_64/configure.ac (cpuid.h): Do not test for header.
21846         * sysdeps/x86_64/configure: Regenerated.
21847
21848         * configure.ac (libc_cv_asm_protected_directive): Remove configure
21849         test.
21850         (libc_cv_visibility_attribute): Likewise.
21851         (libc_cv_protected_data): Test unconditionally.
21852         (libc_cv_broken_visibility_attribute): Remove configure test.
21853         (libc_cv_have_sdata_section): Test unconditionally.
21854         * configure: Regenerated.
21855
21856         * include/libc-internal.h (libc_max_align_t): Remove typedef.
21857         * include/scratch_buffer.h: Include <stddef.h> instead of
21858         <libc-internal.h>.
21859         (struct scratch_buffer): Use max_align_t instead of
21860         libc_max_align_t.
21861
21862 2015-10-29  Florian Weimer  <fweimer@redhat.com>
21863
21864         * elf/dl-fini.c (_dl_fini): Rewrite to use variable-length array
21865         instead of extend_alloca.  Change control flow to avoid a goto.
21866         Remove assert which is trivially always true.
21867
21868 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
21869
21870         [BZ #16068]
21871         * sysdeps/i386/fpu/fesetenv.c: Include <fpu_control.h>.
21872         (FE_ALL_EXCEPT_X86): New macro.
21873         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
21874         FE_ALL_EXCEPT.  Ensure precision control is included in
21875         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
21876         handle "denormal operand exception" and clear FZ and DAZ bits.
21877         * sysdeps/x86_64/fpu/fesetenv.c: Include <fpu_control.h>.
21878         (FE_ALL_EXCEPT_X86): New macro.
21879         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
21880         FE_ALL_EXCEPT.  Ensure precision control is included in
21881         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
21882         handle "denormal operand exception" and clear FZ and DAZ bits.
21883         * sysdeps/x86/fpu/test-fenv-sse-2.c: New file.
21884         * sysdeps/x86/fpu/test-fenv-x87.c: Likewise.
21885         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
21886         test-fenv-x87 and test-fenv-sse-2.
21887         [$(subdir) = math] (CFLAGS-test-fenv-sse-2.c): New variable.
21888
21889         * math/libm-test.inc (BUILD_COMPLEX): Remove macro.
21890         * math/test-double.h (BUILD_COMPLEX): New macro.
21891         * math/test-float.h (BUILD_COMPLEX): Likewise.
21892         * math/test-ldouble.h (BUILD_COMPLEX): Likewise.
21893
21894         * math/libm-test.inc (min_subnorm_value): Use LDBL_TRUE_MIN,
21895         DBL_TRUE_MIN and FLT_TRUE_MIN instead of __LDBL_DENORM_MIN__,
21896         __DBL_DENORM_MIN__ and __FLT_DENORM_MIN__.
21897         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Refer to DBL_TRUE_MIN
21898         instead of DBL_DENORM_MIN in comment.
21899         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Refer to
21900         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
21901         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <float.h>.
21902         (__nextafterl): Use LDBL_TRUE_MIN instead of __LDBL_DENORM_MIN__.
21903         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Refer to
21904         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
21905
21906 2015-10-28  Florian Weimer  <fweimer@redhat.com>
21907
21908         [BZ #19048]
21909         * malloc/malloc.c (struct malloc_state): Update comment.  Add
21910         attached_threads member.
21911         (main_arena): Initialize attached_threads.
21912         * malloc/arena.c (list_lock): Update comment.
21913         (ptmalloc_lock_all, ptmalloc_unlock_all): Likewise.
21914         (ptmalloc_unlock_all2): Reinitialize arena reference counts.
21915         (deattach_arena): New function.
21916         (_int_new_arena): Initialize arena reference count and deattach
21917         replaced arena.
21918         (get_free_list, reused_arena): Update reference count and deattach
21919         replaced arena.
21920         (arena_thread_freeres): Update arena reference count and only put
21921         unreferenced arenas on the free list.
21922
21923 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
21924
21925         [BZ #19181]
21926         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Clear already-raised
21927         SSE exceptions when argument is FE_DFL_ENV or FE_NOMASK_ENV.
21928         * sysdeps/x86_64/fpu/fesetenv.c (__fesetenv): Likewise.
21929         * math/test-fenv-clear-main.c: New file.
21930         * math/test-fenv-clear.c: Likewise.
21931         * math/Makefile (tests): Add test-fenv-clear.
21932         * sysdeps/x86/fpu/test-fenv-clear-sse.c: New file.
21933         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
21934         test-fenv-clear-sse.
21935         [$(subdir) = math] (CFLAGS-test-fenv-clear-sse.c): New variable.
21936
21937         * math/libm-test.inc (TYPE_DECIMAL_DIG): Use LDBL_DECIMAL_DIG,
21938         DBL_DECIMAL_DIG and FLT_DECIMAL_DIG instead of __DECIMAL_DIG__,
21939         __DBL_DECIMAL_DIG__ and __FLT_DECIMAL_DIG__.
21940
21941 2015-10-28  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
21942
21943         * sysdeps/powerpc/libc-tls.c: New file. Provides __tls_get_addr () in
21944         static libc.
21945
21946 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
21947
21948         * sysdeps/i386/configure.ac (libc_cv_cc_avx2): Remove configure
21949         test.
21950         * sysdeps/i386/configure: Regenerated.
21951         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx2): Remove configure
21952         test.
21953         * sysdeps/x86_64/configure: Regenerated.
21954         * config.h.in (HAVE_AVX2_SUPPORT): Remove #undef.
21955         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21956         memset-avx2 unconditionally instead of conditionally on
21957         [$(config-cflags-avx2) = yes].
21958         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
21959         (__libc_ifunc_impl_list) [HAVE_AVX2_SUPPORT]: Make code
21960         unconditional.
21961         * sysdeps/x86_64/multiarch/memset.S [HAVE_AVX2_SUPPORT]: Likewise.
21962         * sysdeps/x86_64/multiarch/memset_chk.S
21963         [IS_IN (libc) && SHARED && HAVE_AVX2_SUPPORT]: Change conditional
21964         to [IS_IN (libc) && SHARED].
21965
21966 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
21967
21968         * sysdeps/arm/configure.ac (libc_cv_arm_tls_desc): Remove
21969         configure test.
21970         * sysdeps/arm/configure: Regenerated.
21971         * sysdeps/arm/Makefile [!have-arm-tls-desc] (have-arm-tls-desc):
21972         Define variable if not already defined.
21973
21974         [BZ #17404]
21975         * sysdeps/mips/atomic-machine.h
21976         [__GNUC_PREREQ (4, 8) || (__mips16 && __GNUC_PREREQ (4, 7))]:
21977         Change conditional to [__GNUC_PREREQ (4, 8) || __mips16].
21978         [__mips16 && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
21979
21980         * resolv/res_send.c (send_vc) [__GNUC_PREREQ (4, 7)]: Make code
21981         unconditional.
21982         * soft-fp/fmadf4.c [__GNUC_PREREQ (4, 7)]: Likewise.
21983         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
21984         * soft-fp/fmasf4.c [__GNUC_PREREQ (4, 7)]: Make code
21985         unconditional.
21986         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
21987         * soft-fp/fmatf4.c [__GNUC_PREREQ (4, 7)]: Make code
21988         unconditional.
21989         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
21990         * stdlib/setenv.c
21991         [((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7)]: Make
21992         code unconditional.
21993         [!(((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7))]:
21994         Remove conditional code.
21995         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
21996         (__ieee754_lgamma_r) [__GNUC_PREREQ (4, 7)]: Make code
21997         unconditional.
21998         (__ieee754_lgamma_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
21999         code.
22000         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
22001         (__ieee754_lgammaf_r) [__GNUC_PREREQ (4, 7)]: Make code
22002         unconditional.
22003         (__ieee754_lgammaf_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
22004         code.
22005         * sysdeps/ieee754/ldbl-128/k_tanl.c
22006         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
22007         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
22008         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
22009         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
22010         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
22011         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
22012         (__ieee754_lgammal_r) [__GNUC_PREREQ (4, 7)]: Make code
22013         unconditional.
22014         (__ieee754_lgammal_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
22015         code.
22016         * sysdeps/ieee754/ldbl-96/k_tanl.c
22017         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
22018         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
22019
22020         * nptl/tst-initializers1-c11.c: New file.
22021         * nptl/tst-initializers1-gnu11.c: Likewise.
22022         * nptl/Makefile (tests): Add these new tests.
22023         (CFLAGS-tst-initializers1-c11.c): New variable.
22024         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
22025
22026         * Makeconfig (CFLAGS): Use -std=gnu11 instead of -std=gnu99.
22027         * Makefile ($(objpfx)c++-types-check.out): Filter out -std=gnu11
22028         instead of -std=gnu99.
22029         * configure.ac (systemtap): Test with -std=gnu11 instead of
22030         -std=gnu99.
22031         * configure: Regenerated.
22032         * math/gen-auto-libm-tests.c: Use -std=gnu11 instead of -std=gnu99
22033         in compilation command in comment.
22034
22035         * sysdeps/nptl/configure.ac: Remove file.
22036         * sysdeps/nptl/configure: Remove generated file.
22037         * configure.ac (libc_cv_forced_unwind): Do not substitute.
22038         * configure: Regenerated.
22039         * config.h.in (HAVE_FORCED_UNWIND): Remove #undef.
22040         * config.make.in (have-forced-unwind): Remove variable.
22041         * nptl/Makefile [$(have-forced-unwind) = yes]: Make code
22042         unconditional.
22043         * nptl/descr.h [HAVE_FORCED_UNWIND]: Likewise.
22044         * nptl/unwind.c [HAVE_FORCED_UNWIND]: Likewise.
22045         (__pthread_unwind) [!HAVE_FORCED_UNWIND]: Remove conditional code.
22046         * nptl/version.c [HAVE_FORCED_UNWIND]: Make code unconditional.
22047         * sysdeps/nptl/Makefile [$(have-forced-unwind) = yes]: Make code
22048         unconditional.
22049
22050 2015-10-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
22051
22052         [BZ #19174]
22053         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Fix usage of
22054         .skip_lock_out_of_tbegin_retries.
22055         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
22056         (__lll_lock_elision): Likewise, and respect a value of
22057         try_tbegin <= 0.
22058
22059 2015-10-27  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
22060
22061         * elf/dl-support.c (_dl_aux_init): Added AT_PLATFORM to the case
22062         statement.
22063
22064 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
22065
22066         * conform/Makefile (test-xfail-ISO11/complex.h/conform): Remove
22067         variable.
22068         (test-xfail-ISO11/stdalign.h/conform): Likewise.
22069         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
22070
22071         * conform/GlibcConform.pm ($CFLAGS{"ISO11"}): Use -std=c11 instead
22072         of -std=c1x -D_ISOC11_SOURCE.
22073
22074         * configure.ac (libc_cv_compiler_ok): Require GCC 4.7 or later.
22075         * configure: Regenerated.
22076         * manual/install.texi (Tools for Compilation): Document
22077         requirement for GCC 4.7 or later.
22078         * INSTALL: Regenerated.
22079
22080 2015-10-27  Ludovic Courtès  <ludo@gnu.org>
22081
22082         * locale/loadlocale.c (_nl_intern_locale_data): Change assertion
22083         on CNT to a conditional jump to 'puntdata'.
22084
22085 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
22086
22087         * configure.ac (libc_cv_gcc___thread): Remove configure test.
22088         (libc_cv_gcc_tls_model_attr): Likewise.
22089         * configure: Regenerated.
22090
22091         * configure.ac (libc_cv_need_minus_P): Remove configure test.
22092         * configure: Regenerated.
22093         * Makeconfig (asm-CPPFLAGS): Remove reference to -P in comment.
22094
22095 2015-10-26  Joseph Myers  <joseph@codesourcery.com>
22096
22097         * configure.ac (old_glibc_headers): Remove configure test.
22098         * configure: Regenerated.
22099         * config.make.in (old-glibc-headers): Remove variable.
22100         * Makefile [!$(install_root) && $(old-glibc-headers) = yes]
22101         (install): Remove dependency on remove-old-headers.
22102         (headers2_0): Remove variable.
22103         (remove-old-headers): Remove rule.
22104
22105         * configure.ac (libc_cv_dot_text): Remove configure test.
22106         (libc_cv_asm_set_directive): Use .text instead of
22107         ${libc_cv_dot_text} in configure test.
22108         * configure: Regenerated.
22109
22110 2015-10-26  Florian Weimer  <fweimer@redhat.com>
22111
22112         [BZ #19168]
22113         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22114
22115 2015-10-26  Florian Weimer  <fweimer@redhat.com>
22116
22117         * configure.ac (CXX): Clear the variable if the C++ toolchain does
22118         not support static linking.
22119         * configure: Regenerate.
22120
22121 2015-10-23  Joseph Myers  <joseph@codesourcery.com>
22122
22123         * math/libm-test.inc (check_float_internal): Do not special-case
22124         errors up to 0.5 ulp.
22125
22126         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
22127         log2.
22128         * math/auto-libm-test-out: Regenerated.
22129         * math/libm-test.inc (MAX_EXP): New macro.
22130         (ilogb_test_data): Add more tests.
22131         (isfinite_test_data): Likewise.
22132         (isgreater_test_data): Likewise.
22133         (isgreaterequal_test_data): Likewise.
22134         (isinf_test_data): Likewise.
22135         (isless_test_data): Likewise.
22136         (islessequal_test_data): Likewise.
22137         (islessgreater_test_data): Likewise.
22138         (isnan_test_data): Likewise.
22139         (isnormal_test_data): Likewise.
22140         (issignaling_test_data): Likewise.
22141         (isunordered_test_data): Likewise.
22142         (j0_test_data): Likewise.
22143         (j1_test_data): Likewise.
22144         (jn_test_data): Likewise.
22145         (lgamma_test_data): Likewise.
22146         (log_test_data): Likewise.
22147         (log10_test_data): Likewise.
22148         (log1p_test_data): Likewise.
22149         (log2_test_data): Likewise.
22150         (logb_test_data): Likewise.
22151         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
22152
22153         [BZ #18611]
22154         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Set errno and
22155         avoid excess range and precision on underflow.
22156         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
22157         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
22158         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
22159         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Set errno on
22160         underflow.
22161         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
22162         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
22163         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
22164         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
22165         * math/auto-libm-test-in: Do not allow missing errno setting for
22166         tests of j1 and jn.
22167         * math/auto-libm-test-out: Regenerated.
22168
22169 2015-10-22  Joseph Myers  <joseph@codesourcery.com>
22170
22171         [BZ #15491]
22172         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Save and restore
22173         floating-point environment instead of clearing all exceptions.
22174         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
22175         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise,
22176         merging in "invalid" exceptions from frndint.
22177         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
22178         * math/test-nearbyint-except.c: New file.
22179         * math/Makefile (tests): Add test-nearbyint-except.
22180
22181 2015-10-22  Chris Metcalf  <cmetcalf@ezchip.com>
22182
22183         * NEWS: Mention bug 18699 fixed by commit fe8c2b33aed0.
22184
22185         * sysdeps/tile/libm-test-ulps: Regenerated.
22186
22187 2015-10-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22188
22189         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c
22190         (__NR_sync_file_range2): Assume it is always defined.
22191         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
22192         (__NR_sync_file_range): Assume it is always defined.
22193
22194 2015-10-22  Andreas Schwab  <schwab@suse.de>
22195
22196         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
22197         INTERNAL_SYSCALL_ERRNO.
22198         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
22199         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
22200         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
22201         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
22202         Likewise.
22203         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
22204
22205 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
22206
22207         * io/tst-fcntl.c (fd): New static variable.
22208         (do_prepare): Open temporary file here....
22209         (do_test): ...not here.
22210
22211         * io/ftwtest-sh: Also trap on exit to remove temporary files.
22212
22213 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
22214
22215         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: Replace
22216         __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
22217         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
22218         Moved before "#ifdef __ASSEMBLER__".
22219
22220 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
22221
22222         [BZ #19156]
22223         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Return 1 for
22224         arguments very close to 0.
22225
22226 2015-10-21  Chris Metcalf  <cmetcalf@ezchip.com>
22227
22228         * sysdeps/unix/sysv/linux/tile/sysdep.h (PSEUDO_END)
22229         (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO): Undef before defining.
22230
22231 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
22232
22233         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
22234         New.  Defined for GCC 5 and above when not compiling for
22235         profiling.
22236         Replace __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
22237
22238         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
22239         Renamed to ...
22240         (CFLAGS-epoll_pwait.o): This.
22241         (CFLAGS-mmap.c): Renamed to ...
22242         (CFLAGS-mmap.o): This.
22243         (CFLAGS-mmap64.c): Renamed to ...
22244         (CFLAGS-mmap64.o): This.
22245         (CFLAGS-epoll_pwait.os): New.
22246         (CFLAGS-mmap.os): Likewise.
22247         (CFLAGS-mmap64.os): Likewise.
22248         (CFLAGS-semtimedop.os): Likewise.
22249         (CFLAGS-semtimedop.c): Renamed to ...
22250         (CFLAGS-semtimedop.o): This.
22251
22252 2015-10-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
22253
22254         * debug/tst-backtrace4.c (handle_signal): Fix a comment and
22255         warning message.
22256
22257 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
22258
22259         * Makeconfig (+gccwarn-c): Add -Wold-style-definition.
22260         * Makefile ($(objpfx)c++-types-check.out): Filter out
22261         $(+gccwarn-c) instead of -Wstrict-prototypes.
22262
22263         * io/fts.c (fts_open): Convert to prototype-style function
22264         definition.
22265         * malloc/mcheck.c (mcheck): Likewise.
22266         (mcheck_pedantic): Likewise.
22267         * posix/regexec.c (re_search_2_stub): Likewise.  Use
22268         internal_function.
22269         (re_search_internal): Likewise.
22270         * resolv/res_init.c [RESOLVSORT] (net_mask): Convert to
22271         prototype-style function definition.
22272         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
22273         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
22274         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Likewise.
22275         (xdr_utmpptr): Likewise.
22276         (xdr_utmparr): Likewise.
22277         (xdr_utmpidle): Likewise.
22278         (xdr_utmpidleptr): Likewise.
22279         (xdr_utmpidlearr): Likewise.
22280
22281         * math/auto-libm-test-in: Add more tests of hypot, j0, j1, jn,
22282         log, log10 and log2.
22283         * math/auto-libm-test-out: Regenerated.
22284         * math/libm-test.inc (fmod_test_data): Add more tests.
22285         (fpclassify_test_data): Likewise.
22286         (frexp_test_data): Likewise.
22287         (hypot_test_data): Likewise.
22288         (ilogb_test_data): Likewise.
22289
22290 2015-10-20  Joseph Myers  <joseph@codesourcery.com>
22291
22292         * debug/fortify_fail.c (__fortify_fail): Convert to
22293         prototype-style function definition.  Use internal_function.
22294         * libio/genops.c (save_for_backup): Convert to prototype-style
22295         function definition.
22296         * libio/wgenops.c (save_for_wbackup): Likewise.
22297         * login/grantpt.c (grantpt): Likewise.
22298         * login/ptsname.c (ptsname): Likewise.
22299         (__ptsname_r): Likewise.
22300         * login/unlockpt.c (unlockpt): Likewise.
22301         * mach/msgserver.c (__mach_msg_server): Likewise.
22302         * misc/efgcvt.c (__APPEND (FUNC_PREFIX, fcvt)): Likewise.
22303         (__APPEND (FUNC_PREFIX, ecvt)): Likewise.
22304         (__APPEND (FUNC_PREFIX, gcvt)): Likewise.
22305         * misc/efgcvt_r.c (__APPEND (FUNC_PREFIX, fcvt_r)): Likewise.
22306         (__APPEND (FUNC_PREFIX, ecvt_r)): Likewise.
22307         * nptl/cleanup_compat.c (_pthread_cleanup_push): Likewise.
22308         * nptl/cleanup_defer_compat.c (_pthread_cleanup_push_defer):
22309         Likewise.
22310         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.  Use
22311         internal_function.
22312         * nptl/pthread_atfork.c (__pthread_atfork): Convert to
22313         prototype-style function definition.
22314         * nptl/pthread_create.c (__pthread_create_2_1): Likewise.
22315         [SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)]
22316         (__pthread_create_2_0): Likewise.
22317         * nptl/pthread_key_create.c (__pthread_key_create): Likewise.
22318         * nptl/register-atfork.c (__register_atfork): Likewise.
22319         * posix/glob.c (glob): Likewise.
22320         * posix/regcomp.c (re_comp): Likewise.
22321         * posix/regexec.c (re_exec): Likewise.
22322         * stdlib/add_n.c [__STDC__]: Make code unconditional.
22323         [!__STDC__]: Remove conditional code.
22324         * stdlib/cmp.c [__STDC__]: Make code unconditional.
22325         [!__STDC__]: Remove conditional code.
22326         * stdlib/divmod_1.c [__STDC__]: Make code unconditional.
22327         [!__STDC__]: Remove conditional code.
22328         * stdlib/divrem.c [__STDC__]: Make code unconditional.
22329         [!__STDC__]: Remove conditional code.
22330         * stdlib/lshift.c [__STDC__]: Make code unconditional.
22331         [!__STDC__]: Remove conditional code.
22332         * stdlib/mod_1.c [__STDC__]: Make code unconditional.
22333         [!__STDC__]: Remove conditional code.
22334         * stdlib/mul.c [__STDC__]: Make code unconditional.
22335         [!__STDC__]: Remove conditional code.
22336         * stdlib/mul_n.c [__STDC__]: Make code unconditional.
22337         [!__STDC__]: Remove conditional code.
22338         * stdlib/rshift.c [__STDC__]: Make code unconditional.
22339         [!__STDC__]: Remove conditional code.
22340         * stdlib/strtod.c (INTERNAL (STRTOF)): Convert to prototype-style
22341         function definition.
22342         (STRTOF): Likewise.
22343         * stdlib/strtod_l.c (__STRTOF): Likewise.
22344         * stdlib/strtol.c (INTERNAL (strtol)): Likewise.
22345         * stdlib/strtol_l.c (INTERNAL (__strtol_l)): Likewise.
22346         (__strtol_l): Likewise.
22347         * stdlib/sub_n.c [__STDC__]: Make code unconditional.
22348         [!__STDC__]: Remove conditional code.
22349         * string/memrchr.c (MEMRCHR): Convert to prototype-style function
22350         definition.
22351         * string/strcasecmp.c (LOCALE_PARAM_DECL): Remove macro.
22352         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
22353         type.
22354         (__strcasecmp): Convert to prototype-style function definition.
22355         * string/strncase.c (LOCALE_PARAM_DECL): Remove macro.
22356         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
22357         type.
22358         (__strncasecmp): Convert to prototype-style function definition.
22359         * sunrpc/pm_getport.c (__libc_rpc_getport): Likewise.
22360         * sunrpc/xdr.c (xdr_union): Likewise.
22361         * sunrpc/xdr_array.c (xdr_array): Likewise.
22362         * sunrpc/xdr_ref.c (xdr_reference): Likewise.
22363         * sysdeps/m68k/m680x0/fpu/s_atan.c (__CONCATX(__,FUNC)): Likewise.
22364         * sysdeps/m68k/m680x0/fpu/s_isinf.c (__CONCATX(__,FUNC)):
22365         Likewise.
22366         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(__scalbn,suffix):
22367         Likewise.
22368         * sysdeps/m68k/m680x0/fpu/s_sincos.c (CONCATX(__,FUNC)): Likewise.
22369         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
22370         Likewise.
22371         * time/strftime_l.c (LOCALE_PARAM_DECL): Remove macro.
22372         (LOCALE_PARAM_PROTO): Likewise.
22373         [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include
22374         argument type.
22375         (ut_argument_spec): Remove macro.
22376         (ut_argument_spec_iso): Rename to ut_argument_spec.
22377         (memcpy_lowcase): Use LOCALE_PARAM in declaration.  Convert to
22378         prototype-style function definition.
22379         (memcpy_uppcase): Likewise.
22380         (__strftime_internal): Likewise.
22381         (my_strftime): Likewise.
22382         * time/strptime_l.c (LOCALE_PARAM_PROTO): Remove macro.
22383         (LOCALE_PARAM_DECL): Likewise.
22384         [_LIBC] (LOCALE_PARAM): Include argument type.
22385         (__strptime_internal): Convert to prototype-style function
22386         definition.
22387         (strptime): Likewise.
22388         * wcsmbs/wcscasecmp.c (LOCALE_PARAM_DECL): Remove macro.
22389         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
22390         type.
22391         (__wcscasecmp): Convert to prototype-style function definition.
22392         * wcsmbs/wcsncase.c (LOCALE_PARAM_DECL): Remove macro.
22393         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
22394         type.
22395         (__wcsncasecmp): Convert to prototype-style function definition.
22396
22397         * crypt/md5-crypt.c (__md5_crypt_r): Convert to prototype-style
22398         function definition.
22399         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
22400         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
22401         * debug/backtracesyms.c (__backtrace_symbols): Likewise.
22402         * elf/dl-minimal.c (_itoa): Likewise.
22403         * hurd/hurdmalloc.c (malloc): Likewise.
22404         (free): Likewise.
22405         (realloc): Likewise.
22406         * inet/inet6_option.c (inet6_option_space): Likewise.
22407         (inet6_option_init): Likewise.
22408         (inet6_option_append): Likewise.
22409         (inet6_option_alloc): Likewise.
22410         (inet6_option_next): Likewise.
22411         (inet6_option_find): Likewise.
22412         * io/ftw.c (FTW_NAME): Likewise.
22413         (NFTW_NAME): Likewise.
22414         (NFTW_NEW_NAME): Likewise.
22415         (NFTW_OLD_NAME): Likewise.
22416         * libio/iofwide.c (_IO_fwide): Likewise.
22417         * libio/strops.c (_IO_str_init_static_internal): Likewise.
22418         (_IO_str_init_static): Likewise.
22419         (_IO_str_init_readonly): Likewise.
22420         (_IO_str_overflow): Likewise.
22421         (_IO_str_underflow): Likewise.
22422         (_IO_str_count): Likewise.
22423         (_IO_str_seekoff): Likewise.
22424         (_IO_str_pbackfail): Likewise.
22425         (_IO_str_finish): Likewise.
22426         * libio/wstrops.c (_IO_wstr_init_static): Likewise.
22427         (_IO_wstr_overflow): Likewise.
22428         (_IO_wstr_underflow): Likewise.
22429         (_IO_wstr_count): Likewise.
22430         (_IO_wstr_seekoff): Likewise.
22431         (_IO_wstr_pbackfail): Likewise.
22432         (_IO_wstr_finish): Likewise.
22433         * locale/programs/localedef.c (normalize_codeset): Likewise.
22434         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
22435         (add_locales_to_archive): Likewise.
22436         (delete_locales_from_archive): Likewise.
22437         * malloc/malloc.c (__libc_mallinfo): Likewise.
22438         * math/gen-auto-libm-tests.c (init_fp_formats): Likewise.
22439         * misc/tsearch.c (__tfind): Likewise.
22440         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Likewise.
22441         * nptl/pthread_attr_getdetachstate.c
22442         (__pthread_attr_getdetachstate): Likewise.
22443         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
22444         Likewise.
22445         * nptl/pthread_attr_getinheritsched.c
22446         (__pthread_attr_getinheritsched): Likewise.
22447         * nptl/pthread_attr_getschedparam.c
22448         (__pthread_attr_getschedparam): Likewise.
22449         * nptl/pthread_attr_getschedpolicy.c
22450         (__pthread_attr_getschedpolicy): Likewise.
22451         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope):
22452         Likewise.
22453         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack):
22454         Likewise.
22455         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
22456         Likewise.
22457         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
22458         Likewise.
22459         * nptl/pthread_attr_init.c (__pthread_attr_init_2_1): Likewise.
22460         (__pthread_attr_init_2_0): Likewise.
22461         * nptl/pthread_attr_setdetachstate.c
22462         (__pthread_attr_setdetachstate): Likewise.
22463         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
22464         Likewise.
22465         * nptl/pthread_attr_setinheritsched.c
22466         (__pthread_attr_setinheritsched): Likewise.
22467         * nptl/pthread_attr_setschedparam.c
22468         (__pthread_attr_setschedparam): Likewise.
22469         * nptl/pthread_attr_setschedpolicy.c
22470         (__pthread_attr_setschedpolicy): Likewise.
22471         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope):
22472         Likewise.
22473         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack):
22474         Likewise.
22475         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
22476         Likewise.
22477         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
22478         Likewise.
22479         * nptl/pthread_condattr_setclock.c (pthread_condattr_setclock):
22480         Likewise.
22481         * nptl/pthread_create.c (__find_in_stack_list): Likewise.
22482         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
22483         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Define to
22484         use internal_function.
22485         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Convert to
22486         prototype-style function definition.
22487         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
22488         (__pthread_mutex_cond_lock_adjust): Likewise.  Use
22489         internal_function.
22490         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock):
22491         Convert to prototype-style function definition.
22492         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
22493         Likewise.
22494         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
22495         Likewise.
22496         (__pthread_mutex_unlock): Likewise.
22497         * nptl_db/td_ta_clear_event.c (td_ta_clear_event): Likewise.
22498         * nptl_db/td_ta_set_event.c (td_ta_set_event): Likewise.
22499         * nptl_db/td_thr_clear_event.c (td_thr_clear_event): Likewise.
22500         * nptl_db/td_thr_event_enable.c (td_thr_event_enable): Likewise.
22501         * nptl_db/td_thr_set_event.c (td_thr_set_event): Likewise.
22502         * nss/makedb.c (process_input): Likewise.
22503         * posix/fnmatch.c (__strchrnul): Likewise.
22504         (__wcschrnul): Likewise.
22505         (fnmatch): Likewise.
22506         * posix/fnmatch_loop.c (FCT): Likewise.
22507         * posix/glob.c (globfree): Likewise.
22508         (__glob_pattern_type): Likewise.
22509         (__glob_pattern_p): Likewise.
22510         * posix/regcomp.c (re_compile_pattern): Likewise.
22511         (re_set_syntax): Likewise.
22512         (re_compile_fastmap): Likewise.
22513         (regcomp): Likewise.
22514         (regerror): Likewise.
22515         (regfree): Likewise.
22516         * posix/regexec.c (regexec): Likewise.
22517         (re_match): Likewise.
22518         (re_search): Likewise.
22519         (re_match_2): Likewise.
22520         (re_search_2): Likewise.
22521         (re_search_stub): Likewise.  Use internal_function
22522         (re_copy_regs): Likewise.
22523         (re_set_registers): Convert to prototype-style function
22524         definition.
22525         (prune_impossible_nodes): Likewise.  Use internal_function.
22526         * resolv/inet_net_pton.c (inet_net_pton): Convert to
22527         prototype-style function definition.
22528         (inet_net_pton_ipv4): Likewise.
22529         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
22530         * sysdeps/pthread/aio_cancel.c (aio_cancel): Likewise.
22531         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
22532         * sysdeps/pthread/timer_delete.c (timer_delete): Likewise.
22533         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
22534         Make variadic.
22535         * time/strptime_l.c (localtime_r): Convert to prototype-style
22536         function definition.
22537         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
22538         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
22539         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
22540         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
22541
22542         * crypt/crypt.c (_ufc_doit_r): Convert to prototype-style function
22543         definition.
22544         (_ufc_doit_r): Likewise.
22545         * crypt/crypt_util.c (_ufc_copymem): Likewise.
22546         (_ufc_output_conversion_r): Likewise.
22547         * inet/inet_mkadr.c (__inet_makeaddr): Likewise.
22548         * inet/rcmd.c (rcmd_af): Likewise.
22549         (rcmd): Likewise.
22550         (ruserok_af): Likewise.
22551         (ruserok): Likewise.
22552         (ruserok2_sa): Likewise.
22553         (ruserok_sa): Likewise.
22554         (iruserok_af): Likewise.
22555         (iruserok): Likewise.
22556         (__ivaliduser): Likewise.
22557         (__validuser2_sa): Likewise.
22558         * inet/rexec.c (rexec_af): Likewise.
22559         (rexec): Likewise.
22560         * inet/ruserpass.c (ruserpass): Likewise.
22561         * locale/programs/xmalloc.c (xcalloc): Likewise.
22562         * manual/examples/timeval_subtract.c (timeval_subtract): Likewise.
22563         * math/w_drem.c (__drem): Likewise.
22564         * math/w_dremf.c (__dremf): Likewise.
22565         * math/w_dreml.c (__dreml): Likewise.
22566         * misc/daemon.c (daemon): Likewise.
22567         * resolv/res_debug.c (p_fqnname): Likewise.
22568         * stdlib/div.c (div): Likewise.
22569         * string/memcmp.c (memcmp_bytes): Likewise.
22570         * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
22571         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
22572
22573         * crypt/cert.c (main): Convert to prototype-style function
22574         definition.
22575         * io/pipe.c (__pipe): Likewise.
22576         * io/pipe2.c (__pipe2): Likewise.
22577         * misc/futimesat.c (futimesat): Likewise.
22578         * misc/utimes.c (__utimes): Likewise.
22579         * posix/execve.c (__execve): Likewise.
22580         * posix/execvp.c (execvp): Likewise.
22581         * posix/execvpe.c (__execvpe): Likewise.
22582         * posix/fexecve.c (fexecve): Likewise.
22583         * socket/socketpair.c (socketpair): Likewise.
22584         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
22585         * stdlib/erand48.c (erand48): Likewise.
22586         * stdlib/erand48_r.c (__erand48_r): Likewise.
22587         * stdlib/jrand48.c (jrand48): Likewise.
22588         * stdlib/jrand48_r.c (__jrand48_r): Likewise.
22589         * stdlib/lcong48.c (lcong48): Likewise.
22590         * stdlib/lcong48_r.c (__lcong48_r): Likewise.
22591         * stdlib/nrand48.c (nrand48): Likewise.
22592         * stdlib/nrand48_r.c (__nrand48_r): Likewise.
22593         * stdlib/seed48.c (seed48): Likewise.
22594         * stdlib/seed48_r.c (__seed48_r): Likewise.
22595         * sysdeps/mach/hurd/execve.c (__execve): Likewise.
22596         * sysdeps/mach/hurd/utimes.c (__utimes): Likewise.
22597         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Likewise.
22598
22599 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
22600
22601         * configure.ac (libc_cv_asm_unique_object): Remove configure test.
22602         * configure: Regenerated.
22603         * config.h.in (HAVE_ASM_UNIQUE_OBJECT): Remove #undef.
22604         * elf/tst-unique1.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Make code
22605         unconditional.
22606         * elf/tst-unique1mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
22607         * elf/tst-unique1mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
22608         * elf/tst-unique2.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
22609         (do_test) [!HAVE_ASM_UNIQUE_OBJECT]: Remove conditional code.
22610         * elf/tst-unique2mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Make code
22611         unconditional.
22612         * elf/tst-unique2mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
22613
22614         * posix/Makefile (CFLAGS-regex.c): Remove variable.
22615         * resolv/Makefile (+cflags): Do not use -Wno-strict-prototypes.
22616
22617         * crypt/crypt-entry.c (__crypt_r): Convert to prototype-style
22618         function definition.
22619         * crypt/crypt_util.c (__encrypt_r): Likewise.
22620         * libio/genops.c (_IO_no_init): Likewise.
22621         * libio/iofopncook.c (_IO_fopencookie): Likewise.
22622         (_IO_old_fopencookie): Likewise.
22623         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
22624         * libio/iogetline.c (_IO_getline): Likewise.
22625         (_IO_getline_info): Likewise.
22626         * libio/iogetwline.c (_IO_getwline): Likewise.
22627         (_IO_getwline_info): Likewise.
22628         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
22629         * libio/vswprintf.c (_IO_vswprintf): Likewise.
22630         * locale/programs/simple-hash.c (insert_entry_2): Likewise.
22631         (find_entry): Likewise.
22632         (iterate_table): Likewise.
22633         (lookup): Likewise.
22634         * login/forkpty.c (forkpty): Likewise.
22635         * misc/hsearch_r.c (__hsearch_r): Likewise.
22636         * misc/select.c (__select): Likewise.
22637         * nptl/cleanup_defer_compat.c (_pthread_cleanup_pop_restore):
22638         Likewise.
22639         * nptl/old_pthread_cond_init.c (__pthread_cond_init_2_0):
22640         Likewise.
22641         * nptl/old_pthread_cond_timedwait.c
22642         (__pthread_cond_timedwait_2_0): Likewise.
22643         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
22644         * nptl/pthread_barrierattr_getpshared.c
22645         (pthread_barrierattr_getpshared): Likewise.
22646         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
22647         Likewise.
22648         * nptl/pthread_mutex_setprioceiling.c
22649         (pthread_mutex_setprioceiling): Likewise.
22650         * nptl/pthread_mutexattr_getprioceiling.c
22651         (pthread_mutexattr_getprioceiling): Likewise.
22652         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
22653         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
22654         Likewise.
22655         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
22656         Likewise.
22657         * nptl/pthread_setschedparam.c (__pthread_setschedparam):
22658         Likewise.
22659         * socket/recvfrom.c (__recvfrom): Likewise.
22660         * socket/sendto.c (__sendto): Likewise.
22661         * socket/setsockopt.c (__setsockopt): Likewise.
22662         * stdio-common/_itoa.c (_itoa): Likewise.
22663         * stdio-common/_itowa.c (_itowa): Likewise.
22664         * stdio-common/reg-printf.c (__register_printf_specifier):
22665         Likewise.
22666         (__register_printf_function): Likewise.
22667         * stdio-common/tempname.c (__path_search): Likewise.
22668         * stdlib/addmul_1.c (mpn_addmul_1): Likewise.
22669         * stdlib/mul_1.c (mpn_mul_1): Likewise.
22670         * stdlib/random_r.c (__initstate_r): Likewise.
22671         * stdlib/setenv.c (__add_to_environ): Likewise.
22672         * stdlib/submul_1.c (mpn_submul_1): Likewise.
22673         * streams/getpmsg.c (getpmsg): Likewise.
22674         * streams/putmsg.c (putmsg): Likewise.
22675         * streams/putpmsg.c (putpmsg): Likewise.
22676         * sunrpc/clnt_raw.c (clntraw_call): Likewise.
22677         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
22678         * sunrpc/clnt_udp.c (clntudp_create): Likewise.
22679         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
22680         * sunrpc/pm_getport.c (pmap_getport): Likewise.
22681         * sunrpc/svc_udp.c (cache_get): Likewise.
22682         * sunrpc/xdr_array.c (xdr_vector): Likewise.
22683         * sysdeps/mach/hurd/getcwd.c
22684         (__canonicalize_directory_name_internal): Likewise.
22685         * sysdeps/mach/hurd/pselect.c (__pselect): Likewise.
22686         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
22687         * sysdeps/mach/hurd/select.c (__select): Likewise.
22688         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
22689         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
22690         * sysdeps/sparc/nptl/pthread_barrier_init.c
22691         (__pthread_barrier_init): Likewise.
22692         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c
22693         (__pthread_cond_timedwait): Likewise.
22694         * sysdeps/unix/sysv/linux/i386/putmsg.c (putmsg): Likewise.
22695         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop):
22696         Likewise.
22697         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Likewise.
22698         * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime):
22699         Likewise.
22700         * sysvipc/semtimedop.c (semtimedop): Likewise.
22701         * time/setitimer.c (__setitimer): Likewise.
22702         * time/strftime_l.c (emacs_strftime): Likewise.
22703
22704 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
22705
22706         * config.make.in (have-ssp): Delete.
22707         (stack-protector): New variable.
22708         * configure.ac: Delete libc_cv_ssp export.  Add libc_cv_ssp_strong
22709         cache test for -fstack-protector-strong.  Export stack_protector to
22710         the best ssp flag.
22711         * configure: Regenerated.
22712         * login/Makefile (pt_chown-cflags): Always add $(stack-protector).
22713         * nscd/Makefile (CFLAGS-nscd): Likewise.
22714         * resolv/Makefile (CFLAGS-libresolv): Likewise.
22715
22716 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
22717
22718         [BZ #19122]
22719         * include/sys/stat.h [IS_IN (rtld)] (__fxstatat64): Add
22720         attribute_hidden.
22721
22722 2015-10-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
22723
22724         [BZ #18743]
22725         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Move most of this
22726         code to...
22727         (ELIDE_LOCK): ...here.
22728         (__get_new_count): New function with part of the code from
22729         __elide_lock that updates the value of adapt_count after a
22730         transaction abort.
22731         (__elided_trylock): Moved this code to...
22732         (ELIDE_TRYLOCK): ...here.
22733
22734 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
22735
22736         * configure.ac (AC_ARG_ENABLE(timezone-tools)): Tweak help phrasing.
22737         * configure: Regenerate.
22738         * INSTALL: Regenerate.
22739         * manual/install.texi (--disable-timezone-tools): Use @theglibc{}
22740         and tweak grammar.
22741
22742 2015-10-19  Geoffrey Thomas  <geofft@ldpreload.com>
22743
22744         * login/programs/pt_chown.c: Include signal.h
22745         (main): Clear any signal mask from the parent process.
22746
22747 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
22748
22749         * configure.ac (libc_cv_gnu89_inline): Remove configure test.
22750         * configure: Regenerated.
22751         * config.make.in (gnu89-inline-CFLAGS): Remove variable.
22752         * Makeconfig (CFLAGS): Use -fgnu89-inline instead of
22753         $(gnu89-inline-CFLAGS).
22754
22755         * configure.ac (libc_cv_asm_weak_directive): Remove configure
22756         test.
22757         (libc_cv_asm_weakext_directive): Likewise.
22758         * configure: Regenerated.
22759         * config.h.in (HAVE_ASM_WEAK_DIRECTIVE): Remove #undef.
22760         (HAVE_ASM_WEAKEXT_DIRECTIVE): Likewise.
22761         * include/libc-symbols.h
22762         [!HAVE_ASM_WEAK_DIRECTIVE && !HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove
22763         #error.
22764         [HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove conditional code.
22765         [!HAVE_ASM_WEAKEXT_DIRECTIVE]: Make code unconditional.
22766
22767         * sysdeps/arm/backtrace.c (__backtrace): Convert to
22768         prototype-style function definition.
22769         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
22770         * sysdeps/i386/ffs.c (__ffs): Likewise.
22771         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
22772         * sysdeps/ia64/nptl/pthread_spin_lock.c (pthread_spin_lock):
22773         Likewise.
22774         * sysdeps/ia64/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
22775         Likewise.
22776         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
22777         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
22778         Likewise.
22779         * sysdeps/m68k/ffs.c (__ffs): Likewise.
22780         * sysdeps/m68k/m680x0/fpu/e_acos.c (FUNC): Likewise.
22781         * sysdeps/m68k/m680x0/fpu/e_fmod.c (FUNC): Likewise.
22782         * sysdeps/mach/adjtime.c (__adjtime): Likewise.
22783         * sysdeps/mach/gettimeofday.c (__gettimeofday): Likewise.
22784         * sysdeps/mach/hurd/_exit.c (_exit): Likewise.
22785         * sysdeps/mach/hurd/access.c (__access): Likewise.
22786         * sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise.
22787         * sysdeps/mach/hurd/chdir.c (__chdir): Likewise.
22788         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
22789         * sysdeps/mach/hurd/chown.c (__chown): Likewise.
22790         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Likewise.
22791         (cthread_getspecific): Likewise.
22792         (cthread_setspecific): Likewise.
22793         (__libc_getspecific): Likewise.
22794         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Likewise.
22795         * sysdeps/mach/hurd/faccessat.c (faccessat): Likewise.
22796         * sysdeps/mach/hurd/fchdir.c (__fchdir): Likewise.
22797         * sysdeps/mach/hurd/fchmod.c (__fchmod): Likewise.
22798         * sysdeps/mach/hurd/fchmodat.c (fchmodat): Likewise.
22799         * sysdeps/mach/hurd/fchown.c (__fchown): Likewise.
22800         * sysdeps/mach/hurd/fchownat.c (fchownat): Likewise.
22801         * sysdeps/mach/hurd/flock.c (__flock): Likewise.
22802         * sysdeps/mach/hurd/fsync.c (fsync): Likewise.
22803         * sysdeps/mach/hurd/ftruncate.c (__ftruncate): Likewise.
22804         * sysdeps/mach/hurd/getgroups.c (__getgroups): Likewise.
22805         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
22806         * sysdeps/mach/hurd/getitimer.c (__getitimer): Likewise.
22807         * sysdeps/mach/hurd/getlogin_r.c (__getlogin_r): Likewise.
22808         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
22809         * sysdeps/mach/hurd/getrusage.c (__getrusage): Likewise.
22810         * sysdeps/mach/hurd/getsockname.c (__getsockname): Likewise.
22811         * sysdeps/mach/hurd/group_member.c (__group_member): Likewise.
22812         * sysdeps/mach/hurd/isatty.c (__isatty): Likewise.
22813         * sysdeps/mach/hurd/lchown.c (__lchown): Likewise.
22814         * sysdeps/mach/hurd/link.c (__link): Likewise.
22815         * sysdeps/mach/hurd/linkat.c (linkat): Likewise.
22816         * sysdeps/mach/hurd/listen.c (__listen): Likewise.
22817         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
22818         * sysdeps/mach/hurd/mkdirat.c (mkdirat): Likewise.
22819         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
22820         * sysdeps/mach/hurd/poll.c (__poll): Likewise.
22821         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
22822         * sysdeps/mach/hurd/readlinkat.c (readlinkat): Likewise.
22823         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
22824         * sysdeps/mach/hurd/rename.c (rename): Likewise.
22825         * sysdeps/mach/hurd/renameat.c (renameat): Likewise.
22826         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
22827         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Likewise.
22828         * sysdeps/mach/hurd/rmdir.c (__rmdir): Likewise.
22829         * sysdeps/mach/hurd/seekdir.c (seekdir): Likewise.
22830         * sysdeps/mach/hurd/send.c (__send): Likewise.
22831         * sysdeps/mach/hurd/setdomain.c (setdomainname): Likewise.
22832         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
22833         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
22834         * sysdeps/mach/hurd/setgid.c (__setgid): Likewise.
22835         * sysdeps/mach/hurd/setgroups.c (setgroups): Likewise.
22836         * sysdeps/mach/hurd/sethostid.c (sethostid): Likewise.
22837         * sysdeps/mach/hurd/sethostname.c (sethostname): Likewise.
22838         * sysdeps/mach/hurd/setlogin.c (setlogin): Likewise.
22839         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
22840         * sysdeps/mach/hurd/setregid.c (__setregid): Likewise.
22841         * sysdeps/mach/hurd/setreuid.c (__setreuid): Likewise.
22842         * sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise.
22843         * sysdeps/mach/hurd/setuid.c (__setuid): Likewise.
22844         * sysdeps/mach/hurd/shutdown.c (shutdown): Likewise.
22845         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
22846         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
22847         * sysdeps/mach/hurd/sigpending.c (sigpending): Likewise.
22848         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
22849         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
22850         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
22851         * sysdeps/mach/hurd/symlink.c (__symlink): Likewise.
22852         * sysdeps/mach/hurd/symlinkat.c (symlinkat): Likewise.
22853         * sysdeps/mach/hurd/telldir.c (telldir): Likewise.
22854         * sysdeps/mach/hurd/truncate.c (__truncate): Likewise.
22855         * sysdeps/mach/hurd/umask.c (__umask): Likewise.
22856         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
22857         * sysdeps/mach/hurd/unlinkat.c (unlinkat): Likewise.
22858         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
22859         * sysdeps/posix/alarm.c (alarm): Likewise.
22860         * sysdeps/posix/cuserid.c (cuserid): Likewise.
22861         * sysdeps/posix/dirfd.c (dirfd): Likewise.
22862         * sysdeps/posix/dup.c (__dup): Likewise.
22863         * sysdeps/posix/dup2.c (__dup2): Likewise.
22864         * sysdeps/posix/euidaccess.c (euidaccess): Likewise.
22865         (main): Likewise.
22866         * sysdeps/posix/flock.c (__flock): Likewise.
22867         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
22868         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
22869         * sysdeps/posix/gethostname.c (__gethostname): Likewise.
22870         * sysdeps/posix/gettimeofday.c (__gettimeofday): Likewise.
22871         * sysdeps/posix/isatty.c (__isatty): Likewise.
22872         * sysdeps/posix/killpg.c (killpg): Likewise.
22873         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
22874         * sysdeps/posix/mkfifoat.c (mkfifoat): Likewise.
22875         * sysdeps/posix/raise.c (raise): Likewise.
22876         * sysdeps/posix/remove.c (remove): Likewise.
22877         * sysdeps/posix/rename.c (rename): Likewise.
22878         * sysdeps/posix/rewinddir.c (__rewinddir): Likewise.
22879         * sysdeps/posix/seekdir.c (seekdir): Likewise.
22880         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
22881         * sysdeps/posix/sigignore.c (sigignore): Likewise.
22882         * sysdeps/posix/sigintr.c (siginterrupt): Likewise.
22883         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
22884         * sysdeps/posix/sigset.c (sigset): Likewise.
22885         * sysdeps/posix/sigsuspend.c (__sigsuspend): Likewise.
22886         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
22887         * sysdeps/posix/sysv_signal.c (__sysv_signal): Likewise.
22888         * sysdeps/posix/time.c (time): Likewise.
22889         * sysdeps/posix/ttyname.c (getttyname): Likewise.
22890         (ttyname): Likewise.
22891         * sysdeps/posix/ttyname_r.c (__ttyname_r): Likewise.
22892         * sysdeps/posix/utime.c (utime): Likewise.
22893         * sysdeps/powerpc/fpu/s_isnan.c (__isnan): Likewise.
22894         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
22895         Likewise.
22896         * sysdeps/powerpc/nptl/pthread_spin_trylock.c
22897         (pthread_spin_trylock): Likewise.
22898         * sysdeps/pthread/aio_error.c (aio_error): Likewise.
22899         * sysdeps/pthread/aio_read.c (aio_read): Likewise.
22900         * sysdeps/pthread/aio_read64.c (aio_read64): Likewise.
22901         * sysdeps/pthread/aio_write.c (aio_write): Likewise.
22902         * sysdeps/pthread/aio_write64.c (aio_write64): Likewise.
22903         * sysdeps/pthread/flockfile.c (__flockfile): Likewise.
22904         * sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise.
22905         * sysdeps/pthread/funlockfile.c (__funlockfile): Likewise.
22906         * sysdeps/pthread/timer_create.c (timer_create): Likewise.
22907         * sysdeps/pthread/timer_getoverr.c (timer_getoverrun): Likewise.
22908         * sysdeps/pthread/timer_gettime.c (timer_gettime): Likewise.
22909         * sysdeps/s390/ffs.c (__ffs): Likewise.
22910         * sysdeps/s390/nptl/pthread_spin_lock.c (pthread_spin_lock):
22911         Likewise.
22912         * sysdeps/s390/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
22913         Likewise.
22914         * sysdeps/sh/nptl/pthread_spin_lock.c (pthread_spin_lock):
22915         Likewise.
22916         * sysdeps/sparc/nptl/pthread_barrier_destroy.c
22917         (pthread_barrier_destroy): Likewise.
22918         * sysdeps/sparc/nptl/pthread_barrier_wait.c
22919         (__pthread_barrier_wait): Likewise.
22920         * sysdeps/sparc/sparc32/e_sqrt.c (__ieee754_sqrt): Likewise.
22921         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
22922         (__pthread_barrier_wait): Likewise.
22923         * sysdeps/sparc/sparc32/sem_init.c (__old_sem_init): Likewise.
22924         * sysdeps/tile/memcmp.c (memcmp_common_alignment): Likewise.
22925         (memcmp_not_common_alignment): Likewise.
22926         (MEMCMP): Likewise.
22927         * sysdeps/tile/wordcopy.c (_wordcopy_fwd_aligned): Likewise.
22928         (_wordcopy_fwd_dest_aligned): Likewise.
22929         (_wordcopy_bwd_aligned): Likewise.
22930         (_wordcopy_bwd_dest_aligned): Likewise.
22931         * sysdeps/unix/bsd/ftime.c (ftime): Likewise.
22932         * sysdeps/unix/bsd/gtty.c (gtty): Likewise.
22933         * sysdeps/unix/bsd/stty.c (stty): Likewise.
22934         * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
22935         * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
22936         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Likewise.
22937         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
22938         * sysdeps/unix/bsd/tcsendbrk.c (tcsendbreak): Likewise.
22939         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
22940         * sysdeps/unix/bsd/tcsetpgrp.c (tcsetpgrp): Likewise.
22941         * sysdeps/unix/bsd/ualarm.c (ualarm): Likewise.
22942         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
22943         * sysdeps/unix/getlogin_r.c (__getlogin_r): Likewise.
22944         * sysdeps/unix/sockatmark.c (sockatmark): Likewise.
22945         * sysdeps/unix/stime.c (stime): Likewise.
22946         * sysdeps/unix/sysv/linux/_exit.c (_exit): Likewise.
22947         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue):
22948         Likewise.  Use internal_function.
22949         * sysdeps/unix/sysv/linux/arm/sigaction.c (__libc_sigaction):
22950         Convert to prototype-style function definition.
22951         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
22952         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
22953         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Likewise.
22954         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
22955         Likewise.  Use internal_function.
22956         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Convert to
22957         prototype-style function definition
22958         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
22959         Likewise.
22960         (__getlogin_r): Likewise.
22961         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Likewise.
22962         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
22963         (__pthread_cond_broadcast): Likewise.
22964         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
22965         (__pthread_cond_destroy): Likewise.
22966         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
22967         (__pthread_cond_init): Likewise.
22968         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
22969         (__pthread_cond_signal): Likewise.
22970         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
22971         (__pthread_cond_wait): Likewise.
22972         * sysdeps/unix/sysv/linux/i386/getmsg.c (getmsg): Likewise.
22973         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
22974         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__libc_sigaction):
22975         Likewise.
22976         * sysdeps/unix/sysv/linux/ia64/sigpending.c (sigpending):
22977         Likewise.
22978         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
22979         Likewise.
22980         * sysdeps/unix/sysv/linux/mips/sigaction.c (__libc_sigaction):
22981         Likewise.
22982         * sysdeps/unix/sysv/linux/msgget.c (msgget): Likewise.
22983         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
22984         (__ftruncate64): Likewise.
22985         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
22986         (truncate64): Likewise.
22987         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Likewise.
22988         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
22989         (pthread_getcpuclockid): Likewise.
22990         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
22991         Likewise.
22992         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
22993         Likewise.
22994         * sysdeps/unix/sysv/linux/pthread_sigmask.c (pthread_sigmask):
22995         Likewise.
22996         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
22997         Likewise.
22998         * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
22999         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
23000         (__libc_sigaction): Likewise.
23001         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c (sigpending):
23002         Likewise.
23003         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
23004         (__sigprocmask): Likewise.
23005         * sysdeps/unix/sysv/linux/semget.c (semget): Likewise.
23006         * sysdeps/unix/sysv/linux/semop.c (semop): Likewise.
23007         * sysdeps/unix/sysv/linux/setrlimit64.c (setrlimit64): Likewise.
23008         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
23009         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
23010         * sysdeps/unix/sysv/linux/shmget.c (shmget): Likewise.
23011         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
23012         Likewise.
23013         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Likewise.
23014         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
23015         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
23016         * sysdeps/unix/sysv/linux/sigstack.c (sigstack): Likewise.
23017         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c (sigpending):
23018         Likewise.
23019         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
23020         (__sigprocmask): Likewise.
23021         * sysdeps/unix/sysv/linux/speed.c (cfgetospeed): Likewise.
23022         (cfgetispeed): Likewise.
23023         (cfsetospeed): Likewise.
23024         (cfsetispeed): Likewise.
23025         * sysdeps/unix/sysv/linux/tcflow.c (tcflow): Likewise.
23026         * sysdeps/unix/sysv/linux/tcflush.c (tcflush): Likewise.
23027         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
23028         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
23029         * sysdeps/unix/sysv/linux/time.c (time): Likewise.
23030         * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
23031         * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Likewise.
23032         * sysdeps/unix/sysv/linux/timer_getoverr.c (timer_getoverrun):
23033         Likewise.
23034         * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime):
23035         Likewise.
23036         * sysdeps/unix/sysv/linux/x86_64/sigpending.c (sigpending):
23037         Likewise.
23038         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
23039         Likewise.
23040         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
23041
23042 2015-10-17  Florian Weimer  <fweimer@redhat.com>
23043
23044         sunrpc: Rewrite with explicit TLS access using __thread.
23045         * sunrpc/rpc_thread.c (thread_rpc_vars): New TLS variable.
23046         (__rpc_thread_destroy, rpc_thread_multi): Access thread_rpc_vars
23047         directly.
23048         (__rpc_thread_variables): Access thread_rpc_vars directly.
23049         Eliminate redundant assignment of the tvp variable.
23050
23051 2015-10-17  Florian Weimer  <fweimer@redhat.com>
23052
23053         malloc: Rewrite with explicit TLS access using __thread.
23054         * sysdeps/generic/malloc-machine.h (tsd_key_t, tsd_key_create)
23055         (tsd_setspecific, tsd_getspecific): Remove.
23056         * sysdeps/mach/hurd/malloc-machine.h (tsd_key_t, tsd_key_create)
23057         (tsd_setspecific, tsd_getspecific): Likewise.
23058         * sysdeps/nptl/malloc-machine.h (tsd_key_t, tsd_key_create)
23059         (tsd_setspecific, tsd_getspecific): Likewise.
23060         * malloc/arena.c (thread_arena): New TLS variable.
23061         (arena_key): Remove variable.
23062         (arena_get): Use thread_arena.
23063         (arena_lookup): Remove macro.
23064         (malloc_atfork, free_atfork, ptmalloc_lock_all)
23065         (ptmalloc_unlock_all, ptmalloc_unlock_all2, ptmalloc_init)
23066         (_int_new_arena, get_free_list, reused_arena)
23067         (arena_thread_freeres): Use thread_arena.
23068         * manual/memory.texi (Basic Allocation): Remove arena_lookup,
23069         tsd_getspecific, tsd_setspecific from safety annotations.
23070         (Allocating Cleared Space): Remove arena_lookup from safety
23071         annotations.
23072
23073 2015-10-17  Florian Weimer  <fweimer@redhat.com>
23074
23075         * stdio-common/vfprintf.c (printf_positional): Rewrite to use
23076         struct scratch_buffer instead of extend_alloca.
23077
23078 2015-10-17  Florian Weimer  <fweimer@redhat.com>
23079
23080         * sysdeps/unix/sysv/linux/kernel-features.h
23081         (__ASSUME_SOCK_CLOEXEC): Remove.
23082         * include/sys/socket.h (__have_sock_cloexec): Remove declaration.
23083         (__have_paccept): Remove unused macro.
23084         * include/unistd.h (__have_sock_cloexec): Remove declaration.
23085         * misc/syslog.c (openlog_internal): Remove fallback code for
23086         !__ASSUME_SOCK_CLOEXEC.
23087         * nis/ypclnt.c (yp_bind_client_create): Remove fallback code for
23088         missing SOCK_CLOEXEC.
23089         * nscd/connections.c (have_sock_cloexec): Remove definition.
23090         (nscd_init): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
23091         * nscd/nscd_helper.c (open_socket): Remove fallback code for
23092         !__ASSUME_SOCK_CLOEXEC.
23093         * resolv/res_send.c (__have_o_nonblock): Remove definition.
23094         (reopen): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
23095         * socket/have_sock_cloexec.c (__have_sock_cloexec): Remove
23096         definition.
23097         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Remove fallback
23098         code for !__ASSUME_SOCK_CLOEXEC.
23099
23100 2015-10-17  Florian Weimer  <fweimer@redhat.com>
23101
23102         [BZ #18982]
23103         * manual/stdio.texi (Variable Arguments Output): Add portability
23104         note, explaining that vfprintf clobbers the va_list pointer.
23105
23106 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
23107
23108         * math/libm-test.inc (fabs_test_data): Add more tests.
23109         (fdim_test_data): Likewise.
23110         (fma_test_data): Likewise.
23111         (fmax_test_data): Likewise.
23112         (fmin_test_data): Likewise.
23113         (fmod_test_data): Likewise.
23114
23115 2015-10-16  Steve Ellcey  <sellcey@imgtec.com>
23116
23117         * sysdeps/mips/memcpy.S (memcpy):  Add word copies for small aligned
23118         data.
23119
23120 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
23121
23122         * math/libm-test.inc (ceil_test_data): Add more tests and more
23123         expectations for "inexact".
23124         (floor_test_data): Add more tests.
23125         (round_test_data): Likewise.
23126         (trunc_test_data): Likewise.
23127
23128         * crypt/cert.c (good_bye): Convert to prototype-style function
23129         definition.
23130         (get8): Likewise.
23131         (put8): Likewise.
23132         * crypt/crypt-entry.c (crypt): Likewise.
23133         (__fcrypt): Likewise.
23134         * crypt/crypt_util.c (_ufc_prbits): Likewise.
23135         (_ufc_set_bits): Likewise.
23136         (_ufc_clearmem): Likewise.
23137         (__init_des_r): Likewise.
23138         (shuffle_sb): Likewise.
23139         (shuffle_sb): Likewise.
23140         (_ufc_setup_salt_r): Likewise.
23141         (_ufc_mk_keytab_r): Likewise.
23142         (_ufc_dofinalperm_r): Likewise.
23143         (encrypt): Likewise.
23144         (__setkey_r): Likewise.
23145         (setkey): Likewise.
23146         * crypt/md5.c (md5_init_ctx): Likewise.
23147         (md5_read_ctx): Likewise.
23148         (md5_finish_ctx): Likewise.
23149         (md5_stream): Likewise.
23150         (md5_buffer): Likewise.
23151         (md5_process_bytes): Likewise.
23152         * crypt/sha256.c (__sha256_init_ctx): Likewise.
23153         (__sha256_finish_ctx): Likewise.
23154         (__sha256_process_bytes): Likewise.
23155         * crypt/sha512.c (__sha512_init_ctx): Likewise.
23156         (__sha512_finish_ctx): Likewise.
23157         (__sha512_process_bytes): Likewise.
23158         * ctype/isctype.c (__isctype): Likewise.
23159         * debug/backtrace.c (__backtrace): Likewise.
23160         * debug/backtracesymsfd.c (__backtrace_symbols_fd): Likewise.
23161         * debug/fgets_chk.c (__fgets_chk): Likewise.
23162         * debug/fgets_u_chk.c (__fgets_unlocked_chk): Likewise.
23163         * debug/memcpy_chk.c (__memcpy_chk): Likewise.
23164         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
23165         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
23166         * debug/memset_chk.c (__memset_chk): Likewise.
23167         * debug/strcat_chk.c (__strcat_chk): Likewise.
23168         * debug/strncat_chk.c (__strncat_chk): Likewise.
23169         * debug/strncpy_chk.c (__strncpy_chk): Likewise.
23170         * debug/vsprintf_chk.c (_IO_str_chk_overflow): Likewise.
23171         * dirent/dirfd.c (dirfd): Likewise.
23172         * dirent/getdents.c (__getdirentries): Likewise.
23173         * dirent/getdents64.c (getdirentries64): Likewise.
23174         * dirent/rewinddir.c (__rewinddir): Likewise.
23175         * dirent/seekdir.c (seekdir): Likewise.
23176         * dirent/telldir.c (telldir): Likewise.
23177         * elf/sln.c (makesymlinks): Likewise.
23178         (makesymlink): Likewise.
23179         * gmon/gmon.c (__moncontrol): Likewise.
23180         (__monstartup): Likewise.
23181         (write_hist): Likewise.
23182         (write_call_graph): Likewise.
23183         (write_bb_counts): Likewise.
23184         * grp/setgroups.c (setgroups): Likewise.
23185         * inet/inet_lnaof.c (inet_lnaof): Likewise.
23186         * inet/inet_net.c (inet_network): Likewise.
23187         * inet/inet_netof.c (inet_netof): Likewise.
23188         * inet/rcmd.c (rresvport_af): Likewise.
23189         (rresvport): Likewise.
23190         * io/access.c (__access): Likewise.
23191         * io/chdir.c (__chdir): Likewise.
23192         * io/chmod.c (__chmod): Likewise.
23193         * io/chown.c (__chown): Likewise.
23194         * io/close.c (__close): Likewise.
23195         * io/creat.c (creat): Likewise.
23196         * io/creat64.c (creat64): Likewise.
23197         * io/dup.c (__dup): Likewise.
23198         * io/dup2.c (__dup2): Likewise.
23199         * io/dup3.c (__dup3): Likewise.
23200         * io/euidaccess.c (__euidaccess): Likewise.
23201         * io/faccessat.c (faccessat): Likewise.
23202         * io/fchmod.c (__fchmod): Likewise.
23203         * io/fchmodat.c (fchmodat): Likewise.
23204         * io/fchown.c (__fchown): Likewise.
23205         * io/fchownat.c (fchownat): Likewise.
23206         * io/fcntl.c (__fcntl): Likewise.
23207         * io/flock.c (__flock): Likewise.
23208         * io/fts.c (fts_load): Likewise.
23209         (fts_close): Likewise.
23210         (fts_read): Likewise.
23211         (fts_set): Likewise.
23212         (fts_children): Likewise.
23213         (fts_build): Likewise.
23214         (fts_stat): Likewise.
23215         (fts_sort): Likewise.
23216         (fts_alloc): Likewise.
23217         (fts_lfree): Likewise.
23218         (fts_palloc): Likewise.
23219         (fts_padjust): Likewise.
23220         (fts_maxarglen): Likewise.
23221         (fts_safe_changedir): Likewise.
23222         * io/getwd.c (getwd): Likewise.
23223         * io/isatty.c (__isatty): Likewise.
23224         * io/lchown.c (__lchown): Likewise.
23225         * io/link.c (__link): Likewise.
23226         * io/linkat.c (linkat): Likewise.
23227         * io/lseek.c (__libc_lseek): Likewise.
23228         * io/mkdir.c (__mkdir): Likewise.
23229         * io/mkdirat.c (mkdirat): Likewise.
23230         * io/mkfifo.c (mkfifo): Likewise.
23231         * io/mkfifoat.c (mkfifoat): Likewise.
23232         * io/open.c (__libc_open): Likewise.
23233         * io/open64.c (__libc_open64): Likewise.
23234         * io/readlink.c (__readlink): Likewise.
23235         * io/readlinkat.c (readlinkat): Likewise.
23236         * io/rmdir.c (__rmdir): Likewise.
23237         * io/symlink.c (__symlink): Likewise.
23238         * io/symlinkat.c (symlinkat): Likewise.
23239         * io/ttyname.c (ttyname): Likewise.
23240         * io/ttyname_r.c (__ttyname_r): Likewise.
23241         * io/umask.c (__umask): Likewise.
23242         * io/unlink.c (__unlink): Likewise.
23243         * io/unlinkat.c (unlinkat): Likewise.
23244         * io/utime.c (utime): Likewise.
23245         * libio/clearerr.c (clearerr): Likewise.
23246         * libio/clearerr_u.c (clearerr_unlocked): Likewise.
23247         * libio/feof.c (_IO_feof): Likewise.
23248         * libio/feof_u.c (feof_unlocked): Likewise.
23249         * libio/ferror.c (_IO_ferror): Likewise.
23250         * libio/ferror_u.c (ferror_unlocked): Likewise.
23251         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
23252         * libio/fileno.c (__fileno): Likewise.
23253         * libio/fputc.c (fputc): Likewise.
23254         * libio/fputc_u.c (fputc_unlocked): Likewise.
23255         * libio/fputwc.c (fputwc): Likewise.
23256         * libio/fputwc_u.c (fputwc_unlocked): Likewise.
23257         * libio/freopen.c (freopen): Likewise.
23258         * libio/freopen64.c (freopen64): Likewise.
23259         * libio/fseek.c (fseek): Likewise.
23260         * libio/fseeko.c (fseeko): Likewise.
23261         * libio/fseeko64.c (fseeko64): Likewise.
23262         * libio/ftello.c (__ftello): Likewise.
23263         * libio/ftello64.c (ftello64): Likewise.
23264         * libio/fwide.c (fwide): Likewise.
23265         * libio/genops.c (_IO_un_link): Likewise.
23266         (_IO_link_in): Likewise.
23267         (_IO_least_marker): Likewise.
23268         (_IO_switch_to_main_get_area): Likewise.
23269         (_IO_switch_to_backup_area): Likewise.
23270         (_IO_switch_to_get_mode): Likewise.
23271         (_IO_free_backup_area): Likewise.
23272         (_IO_switch_to_put_mode): Likewise.
23273         (__overflow): Likewise.
23274         (__underflow): Likewise.
23275         (__uflow): Likewise.
23276         (_IO_setb): Likewise.
23277         (_IO_doallocbuf): Likewise.
23278         (_IO_default_underflow): Likewise.
23279         (_IO_default_uflow): Likewise.
23280         (_IO_default_xsputn): Likewise.
23281         (_IO_sgetn): Likewise.
23282         (_IO_default_xsgetn): Likewise.
23283         (_IO_sync): Likewise.
23284         (_IO_default_setbuf): Likewise.
23285         (_IO_default_seekpos): Likewise.
23286         (_IO_default_doallocate): Likewise.
23287         (_IO_init): Likewise.
23288         (_IO_old_init): Likewise.
23289         (_IO_default_sync): Likewise.
23290         (_IO_default_finish): Likewise.
23291         (_IO_default_seekoff): Likewise.
23292         (_IO_sputbackc): Likewise.
23293         (_IO_sungetc): Likewise.
23294         (_IO_set_column): Likewise.
23295         (_IO_set_column): Likewise.
23296         (_IO_adjust_column): Likewise.
23297         (_IO_get_column): Likewise.
23298         (_IO_init_marker): Likewise.
23299         (_IO_remove_marker): Likewise.
23300         (_IO_marker_difference): Likewise.
23301         (_IO_marker_delta): Likewise.
23302         (_IO_seekmark): Likewise.
23303         (_IO_unsave_markers): Likewise.
23304         (_IO_nobackup_pbackfail): Likewise.
23305         (_IO_default_pbackfail): Likewise.
23306         (_IO_default_seek): Likewise.
23307         (_IO_default_stat): Likewise.
23308         (_IO_default_read): Likewise.
23309         (_IO_default_write): Likewise.
23310         (_IO_default_showmanyc): Likewise.
23311         (_IO_default_imbue): Likewise.
23312         (_IO_iter_next): Likewise.
23313         (_IO_iter_file): Likewise.
23314         * libio/getc.c (_IO_getc): Likewise.
23315         * libio/getwc.c (_IO_getwc): Likewise.
23316         * libio/iofclose.c (_IO_new_fclose): Likewise.
23317         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
23318         * libio/iofflush.c (_IO_fflush): Likewise.
23319         * libio/iofflush_u.c (__fflush_unlocked): Likewise.
23320         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
23321         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
23322         * libio/iofgets.c (_IO_fgets): Likewise.
23323         * libio/iofgets_u.c (__fgets_unlocked): Likewise.
23324         * libio/iofgetws.c (fgetws): Likewise.
23325         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
23326         * libio/iofopen64.c (_IO_fopen64): Likewise.
23327         * libio/iofopncook.c (_IO_cookie_read): Likewise.
23328         (_IO_cookie_write): Likewise.
23329         (_IO_cookie_seek): Likewise.
23330         (_IO_cookie_close): Likewise.
23331         (_IO_cookie_seekoff): Likewise.
23332         (_IO_old_cookie_seek): Likewise.
23333         * libio/iofputs.c (_IO_fputs): Likewise.
23334         * libio/iofputs_u.c (__fputs_unlocked): Likewise.
23335         * libio/iofputws.c (fputws): Likewise.
23336         * libio/iofputws_u.c (fputws_unlocked): Likewise.
23337         * libio/iofread.c (_IO_fread): Likewise.
23338         * libio/iofread_u.c (__fread_unlocked): Likewise.
23339         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
23340         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
23341         * libio/ioftell.c (_IO_ftell): Likewise.
23342         * libio/iofwrite.c (_IO_fwrite): Likewise.
23343         * libio/iogetdelim.c (_IO_getdelim): Likewise.
23344         * libio/iogets.c (_IO_gets): Likewise.
23345         * libio/iopadn.c (_IO_padn): Likewise.
23346         * libio/iopopen.c (_IO_new_proc_open): Likewise.
23347         (_IO_new_popen): Likewise.
23348         (_IO_new_proc_close): Likewise.
23349         * libio/ioputs.c (_IO_puts): Likewise.
23350         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
23351         (_IO_seekoff): Likewise.
23352         * libio/ioseekpos.c (_IO_seekpos_unlocked): Likewise.
23353         (_IO_seekpos): Likewise.
23354         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
23355         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
23356         * libio/ioungetc.c (_IO_ungetc): Likewise.
23357         * libio/ioungetwc.c (ungetwc): Likewise.
23358         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
23359         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
23360         * libio/iowpadn.c (_IO_wpadn): Likewise.
23361         * libio/libc_fatal.c (__libc_fatal): Likewise.
23362         * libio/memstream.c (__open_memstream): Likewise.
23363         (_IO_mem_sync): Likewise.
23364         (_IO_mem_finish): Likewise.
23365         * libio/oldfileops.c (_IO_old_file_init): Likewise.
23366         (_IO_old_file_close_it): Likewise.
23367         (_IO_old_file_finish): Likewise.
23368         (_IO_old_file_fopen): Likewise.
23369         (_IO_old_file_attach): Likewise.
23370         (_IO_old_file_setbuf): Likewise.
23371         (_IO_old_do_write): Likewise.
23372         (old_do_write): Likewise.
23373         (_IO_old_file_underflow): Likewise.
23374         (_IO_old_file_overflow): Likewise.
23375         (_IO_old_file_sync): Likewise.
23376         (_IO_old_file_seekoff): Likewise.
23377         (_IO_old_file_write): Likewise.
23378         (_IO_old_file_xsputn): Likewise.
23379         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
23380         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
23381         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
23382         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
23383         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
23384         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
23385         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
23386         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
23387         (_IO_old_popen): Likewise.
23388         (_IO_old_proc_close): Likewise.
23389         * libio/oldpclose.c (__old_pclose): Likewise.
23390         * libio/pclose.c (__new_pclose): Likewise.
23391         * libio/peekc.c (_IO_peekc_locked): Likewise.
23392         * libio/putc.c (_IO_putc): Likewise.
23393         * libio/putc_u.c (putc_unlocked): Likewise.
23394         * libio/putchar.c (putchar): Likewise.
23395         * libio/putchar_u.c (putchar_unlocked): Likewise.
23396         * libio/putwc.c (putwc): Likewise.
23397         * libio/putwc_u.c (putwc_unlocked): Likewise.
23398         * libio/putwchar.c (putwchar): Likewise.
23399         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
23400         * libio/rewind.c (rewind): Likewise.
23401         * libio/setbuf.c (setbuf): Likewise.
23402         * libio/setlinebuf.c (setlinebuf): Likewise.
23403         * libio/vasprintf.c (_IO_vasprintf): Likewise.
23404         * libio/vscanf.c (_IO_vscanf): Likewise.
23405         * libio/vsnprintf.c (_IO_strn_overflow): Likewise.
23406         * libio/vswprintf.c (_IO_wstrn_overflow): Likewise.
23407         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
23408         * libio/wgenops.c (_IO_least_wmarker): Likewise.
23409         (_IO_switch_to_main_wget_area): Likewise.
23410         (_IO_switch_to_wbackup_area): Likewise.
23411         (_IO_wsetb): Likewise.
23412         (_IO_wdefault_pbackfail): Likewise.
23413         (_IO_wdefault_finish): Likewise.
23414         (_IO_wdefault_uflow): Likewise.
23415         (__woverflow): Likewise.
23416         (__wuflow): Likewise.
23417         (__wunderflow): Likewise.
23418         (_IO_wdefault_xsputn): Likewise.
23419         (_IO_wdefault_xsgetn): Likewise.
23420         (_IO_wdoallocbuf): Likewise.
23421         (_IO_wdefault_doallocate): Likewise.
23422         (_IO_switch_to_wget_mode): Likewise.
23423         (_IO_free_wbackup_area): Likewise.
23424         (_IO_switch_to_wput_mode): Likewise.
23425         (_IO_sputbackwc): Likewise.
23426         (_IO_sungetwc): Likewise.
23427         (_IO_adjust_wcolumn): Likewise.
23428         (_IO_init_wmarker): Likewise.
23429         (_IO_wmarker_delta): Likewise.
23430         (_IO_seekwmark): Likewise.
23431         (_IO_unsave_wmarkers): Likewise.
23432         * libio/wmemstream.c (open_wmemstream): Likewise.
23433         (_IO_wmem_sync): Likewise.
23434         (_IO_wmem_finish): Likewise.
23435         * locale/nl_langinfo.c (nl_langinfo): Likewise.
23436         * locale/nl_langinfo_l.c (__nl_langinfo_l): Likewise.
23437         * locale/programs/simple-hash.c (init_hash): Likewise.
23438         (delete_hash): Likewise.
23439         (insert_entry): Likewise.
23440         (set_entry): Likewise.
23441         (next_prime): Likewise.
23442         (is_prime): Likewise.
23443         * locale/programs/xmalloc.c (fixup_null_alloc): Likewise.
23444         (xmalloc): Likewise.
23445         (xrealloc): Likewise.
23446         * locale/programs/xstrdup.c (xstrdup): Likewise.
23447         * localedata/collate-test.c (xstrcoll): Likewise.
23448         * localedata/xfrm-test.c (xstrcmp): Likewise.
23449         * login/getlogin_r.c (__getlogin_r): Likewise.
23450         * login/getpt.c (__posix_openpt): Likewise.
23451         * login/login_tty.c (login_tty): Likewise.
23452         * login/setlogin.c (setlogin): Likewise.
23453         * mach/msg-destroy.c (__mach_msg_destroy): Likewise.
23454         (mach_msg_destroy_port): Likewise.
23455         (mach_msg_destroy_memory): Likewise.
23456         * malloc/mcheck.c (flood): Likewise.
23457         * misc/acct.c (acct): Likewise.
23458         * misc/brk.c (__brk): Likewise.
23459         * misc/chflags.c (chflags): Likewise.
23460         * misc/chroot.c (chroot): Likewise.
23461         * misc/fchflags.c (fchflags): Likewise.
23462         * misc/fstab.c (getfsspec): Likewise.
23463         (getfsfile): Likewise.
23464         * misc/fsync.c (fsync): Likewise.
23465         * misc/ftruncate.c (__ftruncate): Likewise.
23466         * misc/ftruncate64.c (__ftruncate64): Likewise.
23467         * misc/getdomain.c (getdomainname): Likewise.
23468         (getdomainname): Likewise.
23469         * misc/gethostname.c (__gethostname): Likewise.
23470         * misc/getpass.c (getpass): Likewise.
23471         * misc/getttyent.c (skip): Likewise.
23472         (value): Likewise.
23473         * misc/gtty.c (gtty): Likewise.
23474         * misc/hsearch.c (hsearch): Likewise.
23475         (hcreate): Likewise.
23476         * misc/hsearch_r.c (__hcreate_r): Likewise.
23477         (__hdestroy_r): Likewise.
23478         * misc/ioctl.c (__ioctl): Likewise.
23479         * misc/mkdtemp.c (mkdtemp): Likewise.
23480         * misc/mkostemp.c (mkostemp): Likewise.
23481         * misc/mkostemp64.c (mkostemp64): Likewise.
23482         * misc/mkostemps.c (mkostemps): Likewise.
23483         * misc/mkostemps64.c (mkostemps64): Likewise.
23484         * misc/mkstemp.c (mkstemp): Likewise.
23485         * misc/mkstemp64.c (mkstemp64): Likewise.
23486         * misc/mkstemps.c (mkstemps): Likewise.
23487         * misc/mkstemps64.c (mkstemps64): Likewise.
23488         * misc/mktemp.c (__mktemp): Likewise.
23489         * misc/preadv.c (preadv): Likewise.
23490         * misc/preadv64.c (preadv64): Likewise.
23491         * misc/pwritev.c (pwritev): Likewise.
23492         * misc/pwritev64.c (pwritev64): Likewise.
23493         * misc/readv.c (__readv): Likewise.
23494         * misc/revoke.c (revoke): Likewise.
23495         * misc/setdomain.c (setdomainname): Likewise.
23496         * misc/setegid.c (setegid): Likewise.
23497         * misc/seteuid.c (seteuid): Likewise.
23498         * misc/sethostid.c (sethostid): Likewise.
23499         * misc/sethostname.c (sethostname): Likewise.
23500         * misc/setregid.c (__setregid): Likewise.
23501         * misc/setreuid.c (__setreuid): Likewise.
23502         * misc/sstk.c (sstk): Likewise.
23503         * misc/stty.c (stty): Likewise.
23504         * misc/syscall.c (syscall): Likewise.
23505         * misc/syslog.c (setlogmask): Likewise.
23506         * misc/truncate.c (__truncate): Likewise.
23507         * misc/truncate64.c (truncate64): Likewise.
23508         * misc/ualarm.c (ualarm): Likewise.
23509         * misc/usleep.c (usleep): Likewise.
23510         * misc/ustat.c (ustat): Likewise.
23511         * misc/writev.c (__writev): Likewise.
23512         * nptl/cleanup_compat.c (_pthread_cleanup_pop): Likewise.
23513         * nptl/old_pthread_cond_broadcast.c
23514         (__pthread_cond_broadcast_2_0): Likewise.
23515         * nptl/old_pthread_cond_destroy.c (__pthread_cond_destroy_2_0):
23516         Likewise.
23517         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0):
23518         Likewise.
23519         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0):
23520         Likewise.
23521         * nptl/pt-raise.c (raise): Likewise.
23522         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy):
23523         Likewise.
23524         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Likewise.
23525         * nptl/pthread_barrierattr_destroy.c
23526         (pthread_barrierattr_destroy): Likewise.
23527         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
23528         Likewise.
23529         * nptl/pthread_barrierattr_setpshared.c
23530         (pthread_barrierattr_setpshared): Likewise.
23531         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
23532         Likewise.
23533         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
23534         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
23535         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
23536         * nptl/pthread_condattr_destroy.c (__pthread_condattr_destroy):
23537         Likewise.
23538         * nptl/pthread_condattr_getclock.c (pthread_condattr_getclock):
23539         Likewise.
23540         * nptl/pthread_condattr_getpshared.c
23541         (pthread_condattr_getpshared): Likewise.
23542         * nptl/pthread_condattr_init.c (__pthread_condattr_init):
23543         Likewise.
23544         * nptl/pthread_condattr_setpshared.c
23545         (pthread_condattr_setpshared): Likewise.
23546         * nptl/pthread_detach.c (pthread_detach): Likewise.
23547         * nptl/pthread_equal.c (__pthread_equal): Likewise.
23548         * nptl/pthread_getcpuclockid.c (pthread_getcpuclockid): Likewise.
23549         * nptl/pthread_getspecific.c (__pthread_getspecific): Likewise.
23550         * nptl/pthread_key_delete.c (pthread_key_delete): Likewise.
23551         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent):
23552         Likewise.
23553         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
23554         Likewise.
23555         * nptl/pthread_mutex_getprioceiling.c
23556         (pthread_mutex_getprioceiling): Likewise.
23557         * nptl/pthread_mutexattr_destroy.c (__pthread_mutexattr_destroy):
23558         Likewise.
23559         * nptl/pthread_mutexattr_getprotocol.c
23560         (pthread_mutexattr_getprotocol): Likewise.
23561         * nptl/pthread_mutexattr_getpshared.c
23562         (pthread_mutexattr_getpshared): Likewise.
23563         * nptl/pthread_mutexattr_getrobust.c
23564         (pthread_mutexattr_getrobust): Likewise.
23565         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
23566         Likewise.
23567         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init):
23568         Likewise.
23569         * nptl/pthread_mutexattr_setprioceiling.c
23570         (pthread_mutexattr_setprioceiling): Likewise.
23571         * nptl/pthread_mutexattr_setprotocol.c
23572         (pthread_mutexattr_setprotocol): Likewise.
23573         * nptl/pthread_mutexattr_setpshared.c
23574         (pthread_mutexattr_setpshared): Likewise.
23575         * nptl/pthread_mutexattr_setrobust.c
23576         (pthread_mutexattr_setrobust): Likewise.
23577         * nptl/pthread_mutexattr_settype.c (__pthread_mutexattr_settype):
23578         Likewise.
23579         * nptl/pthread_rwlock_destroy.c (__pthread_rwlock_destroy):
23580         Likewise.
23581         * nptl/pthread_rwlockattr_destroy.c (pthread_rwlockattr_destroy):
23582         Likewise.
23583         * nptl/pthread_rwlockattr_getkind_np.c
23584         (pthread_rwlockattr_getkind_np): Likewise.
23585         * nptl/pthread_rwlockattr_getpshared.c
23586         (pthread_rwlockattr_getpshared): Likewise.
23587         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init):
23588         Likewise.
23589         * nptl/pthread_rwlockattr_setkind_np.c
23590         (pthread_rwlockattr_setkind_np): Likewise.
23591         * nptl/pthread_rwlockattr_setpshared.c
23592         (pthread_rwlockattr_setpshared): Likewise.
23593         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate):
23594         Likewise.
23595         * nptl/pthread_setcanceltype.c (__pthread_setcanceltype):
23596         Likewise.
23597         * nptl/pthread_setconcurrency.c (pthread_setconcurrency):
23598         Likewise.
23599         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
23600         * nptl/pthread_setspecific.c (__pthread_setspecific): Likewise.
23601         * nptl/pthread_spin_destroy.c (pthread_spin_destroy): Likewise.
23602         * nptl/pthread_tryjoin.c (pthread_tryjoin_np): Likewise.
23603         * nptl/sem_close.c (sem_close): Likewise.
23604         * nptl/sem_destroy.c (__new_sem_destroy): Likewise.
23605         * nptl/sem_init.c (__old_sem_init): Likewise.
23606         * nptl/sigaction.c (__sigaction): Likewise.
23607         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
23608         * posix/_exit.c (_exit): Likewise.
23609         * posix/alarm.c (alarm): Likewise.
23610         * posix/confstr.c (confstr): Likewise.
23611         * posix/fpathconf.c (__fpathconf): Likewise.
23612         * posix/getgroups.c (__getgroups): Likewise.
23613         * posix/getpgid.c (__getpgid): Likewise.
23614         * posix/group_member.c (__group_member): Likewise.
23615         * posix/pathconf.c (__pathconf): Likewise.
23616         * posix/sched_getaffinity.c (sched_getaffinity): Likewise.
23617         * posix/sched_setaffinity.c (sched_setaffinity): Likewise.
23618         * posix/setgid.c (__setgid): Likewise.
23619         * posix/setpgid.c (__setpgid): Likewise.
23620         * posix/setuid.c (__setuid): Likewise.
23621         * posix/sleep.c (__sleep): Likewise.
23622         * posix/sysconf.c (__sysconf): Likewise.
23623         * posix/times.c (__times): Likewise.
23624         * posix/uname.c (__uname): Likewise.
23625         * posix/waitid.c (__waitid): Likewise.
23626         * pwd/getpw.c (__getpw): Likewise.
23627         * resolv/base64.c (b64_pton): Likewise.
23628         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
23629         * resolv/gethnamaddr.c (Dprintf): Likewise.
23630         (gethostbyname): Likewise.
23631         (gethostbyname2): Likewise.
23632         (gethostbyaddr): Likewise.
23633         (_sethtent): Likewise.
23634         (_gethtbyname): Likewise.
23635         (_gethtbyname2): Likewise.
23636         (_gethtbyaddr): Likewise.
23637         (map_v4v6_address): Likewise.
23638         (map_v4v6_hostent): Likewise.
23639         (addrsort): Likewise.
23640         (ht_sethostent): Likewise.
23641         (ht_gethostbyname): Likewise.
23642         (ht_gethostbyaddr): Likewise.
23643         * resolv/inet_net_ntop.c (inet_net_ntop): Likewise.
23644         (inet_net_ntop_ipv4): Likewise.
23645         * resolv/inet_neta.c (inet_neta): Likewise.
23646         * resolv/inet_ntop.c (inet_ntop): Likewise.
23647         (inet_ntop4): Likewise.
23648         (inet_ntop6): Likewise.
23649         * resolv/inet_pton.c (__inet_pton): Likewise.
23650         (inet_pton4): Likewise.
23651         (inet_pton6): Likewise.
23652         * resolv/res_debug.c (loc_aton): Likewise.
23653         (loc_ntoa): Likewise.
23654         * resource/getpriority.c (__getpriority): Likewise.
23655         * resource/getrusage.c (__getrusage): Likewise.
23656         * resource/nice.c (nice): Likewise.
23657         * resource/setpriority.c (__setpriority): Likewise.
23658         * resource/setrlimit64.c (setrlimit64): Likewise.
23659         * resource/vlimit.c (vlimit): Likewise.
23660         * resource/vtimes.c (vtimes): Likewise.
23661         * rt/aio_error.c (aio_error): Likewise.
23662         * rt/aio_return.c (aio_return): Likewise.
23663         * rt/aio_sigqueue.c (__aio_sigqueue): Likewise.
23664         * signal/kill.c (__kill): Likewise.
23665         * signal/killpg.c (killpg): Likewise.
23666         * signal/raise.c (raise): Likewise.
23667         * signal/sigaction.c (__sigaction): Likewise.
23668         * signal/sigaddset.c (sigaddset): Likewise.
23669         * signal/sigaltstack.c (sigaltstack): Likewise.
23670         * signal/sigandset.c (sigandset): Likewise.
23671         * signal/sigblock.c (__sigblock): Likewise.
23672         * signal/sigdelset.c (sigdelset): Likewise.
23673         * signal/sigempty.c (sigemptyset): Likewise.
23674         * signal/sigfillset.c (sigfillset): Likewise.
23675         * signal/sighold.c (sighold): Likewise.
23676         * signal/sigignore.c (sigignore): Likewise.
23677         * signal/sigintr.c (siginterrupt): Likewise.
23678         * signal/sigisempty.c (sigisemptyset): Likewise.
23679         * signal/sigismem.c (sigismember): Likewise.
23680         * signal/signal.c (signal): Likewise.
23681         * signal/sigorset.c (sigorset): Likewise.
23682         * signal/sigpause.c (__sigpause): Likewise.
23683         * signal/sigpending.c (sigpending): Likewise.
23684         * signal/sigprocmask.c (__sigprocmask): Likewise.
23685         * signal/sigrelse.c (sigrelse): Likewise.
23686         * signal/sigreturn.c (__sigreturn): Likewise.
23687         * signal/sigset.c (sigset): Likewise.
23688         * signal/sigsetmask.c (__sigsetmask): Likewise.
23689         * signal/sigstack.c (sigstack): Likewise.
23690         * signal/sigsuspend.c (__sigsuspend): Likewise.
23691         * signal/sigvec.c (sigvec_wrapper_handler): Likewise.
23692         * signal/sysv_signal.c (__sysv_signal): Likewise.
23693         * socket/accept.c (accept): Likewise.
23694         * socket/accept4.c (__libc_accept4): Likewise.
23695         * socket/bind.c (__bind): Likewise.
23696         * socket/connect.c (__connect): Likewise.
23697         * socket/getpeername.c (getpeername): Likewise.
23698         * socket/getsockname.c (__getsockname): Likewise.
23699         * socket/getsockopt.c (getsockopt): Likewise.
23700         * socket/listen.c (__listen): Likewise.
23701         * socket/recv.c (__recv): Likewise.
23702         * socket/recvmsg.c (__recvmsg): Likewise.
23703         * socket/send.c (__send): Likewise.
23704         * socket/sendmsg.c (__sendmsg): Likewise.
23705         * socket/shutdown.c (shutdown): Likewise.
23706         * socket/sockatmark.c (sockatmark): Likewise.
23707         * socket/socket.c (__socket): Likewise.
23708         * stdio-common/ctermid.c (ctermid): Likewise.
23709         * stdio-common/cuserid.c (cuserid): Likewise.
23710         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
23711         * stdio-common/remove.c (remove): Likewise.
23712         * stdio-common/rename.c (rename): Likewise.
23713         * stdio-common/renameat.c (renameat): Likewise.
23714         * stdio-common/tempname.c (__gen_tempname): Likewise.
23715         * stdio-common/xbug.c (InitBuffer): Likewise.
23716         (AppendToBuffer): Likewise.
23717         (ReadFile): Likewise.
23718         * stdlib/a64l.c (a64l): Likewise.
23719         * stdlib/drand48_r.c (drand48_r): Likewise.
23720         * stdlib/getcontext.c (getcontext): Likewise.
23721         * stdlib/getenv.c (getenv): Likewise.
23722         * stdlib/l64a.c (l64a): Likewise.
23723         * stdlib/llabs.c (llabs): Likewise.
23724         * stdlib/lldiv.c (lldiv): Likewise.
23725         * stdlib/lrand48_r.c (lrand48_r): Likewise.
23726         * stdlib/mrand48_r.c (mrand48_r): Likewise.
23727         * stdlib/putenv.c (putenv): Likewise.
23728         * stdlib/random.c (__srandom): Likewise.
23729         (__initstate): Likewise.
23730         (__setstate): Likewise.
23731         * stdlib/random_r.c (__srandom_r): Likewise.
23732         (__setstate_r): Likewise.
23733         (__random_r): Likewise.
23734         * stdlib/secure-getenv.c (__libc_secure_getenv): Likewise.
23735         * stdlib/setcontext.c (setcontext): Likewise.
23736         * stdlib/setenv.c (setenv): Likewise.
23737         (unsetenv): Likewise.
23738         * stdlib/srand48.c (srand48): Likewise.
23739         * stdlib/srand48_r.c (__srand48_r): Likewise.
23740         * stdlib/swapcontext.c (swapcontext): Likewise.
23741         * stdlib/system.c (__libc_system): Likewise.
23742         * stdlib/tst-strtod.c (expand): Likewise.
23743         * stdlib/tst-strtol.c (expand): Likewise.
23744         * stdlib/tst-strtoll.c (expand): Likewise.
23745         * streams/fattach.c (fattach): Likewise.
23746         * streams/fdetach.c (fdetach): Likewise.
23747         * streams/getmsg.c (getmsg): Likewise.
23748         * streams/isastream.c (isastream): Likewise.
23749         * string/ffs.c (__ffs): Likewise.
23750         * string/ffsll.c (ffsll): Likewise.
23751         * string/memcmp.c (memcmp_common_alignment): Likewise.
23752         (memcmp_not_common_alignment): Likewise.
23753         (MEMCMP): Likewise.
23754         * string/memcpy.c (memcpy): Likewise.
23755         * string/memmove.c (MEMMOVE): Likewise.
23756         * string/memset.c (memset): Likewise.
23757         * string/rawmemchr.c (RAWMEMCHR): Likewise.
23758         * string/strchrnul.c (STRCHRNUL): Likewise.
23759         * string/strerror.c (strerror): Likewise.
23760         * string/strndup.c (__strndup): Likewise.
23761         * string/strverscmp.c (__strverscmp): Likewise.
23762         * sunrpc/clnt_raw.c (clntraw_freeres): Likewise.
23763         * sunrpc/clnt_tcp.c (clnttcp_geterr): Likewise.
23764         (clnttcp_freeres): Likewise.
23765         * sunrpc/clnt_unix.c (clntunix_freeres): Likewise.
23766         * sunrpc/pmap_prot.c (xdr_pmap): Likewise.
23767         * sunrpc/pmap_prot2.c (xdr_pmaplist): Likewise.
23768         * sunrpc/pmap_rmt.c (xdr_rmtcallres): Likewise.
23769         * sunrpc/rpc_prot.c (xdr_replymsg): Likewise.
23770         (xdr_callhdr): Likewise.
23771         * sunrpc/rpcinfo.c (udpping): Likewise.
23772         (tcpping): Likewise.
23773         (pstatus): Likewise.
23774         (pmapdump): Likewise.
23775         (brdcst): Likewise.
23776         (deletereg): Likewise.
23777         (getprognum): Likewise.
23778         (getvers): Likewise.
23779         (get_inet_address): Likewise.
23780         * sunrpc/svc_raw.c (svcraw_recv): Likewise.
23781         * sunrpc/svc_udp.c (svcudp_create): Likewise.
23782         (svcudp_stat): Likewise.
23783         (svcudp_recv): Likewise.
23784         (svcudp_reply): Likewise.
23785         (svcudp_getargs): Likewise.
23786         (svcudp_freeargs): Likewise.
23787         (svcudp_destroy): Likewise.
23788         * sunrpc/xdr.c (xdr_bytes): Likewise.
23789         (xdr_netobj): Likewise.
23790         (xdr_string): Likewise.
23791         (xdr_wrapstring): Likewise.
23792         * sunrpc/xdr_float.c (xdr_float): Likewise.
23793         (xdr_double): Likewise.
23794         * sunrpc/xdr_mem.c (xdrmem_setpos): Likewise.
23795         * sunrpc/xdr_ref.c (xdr_pointer): Likewise.
23796         * sysvipc/ftok.c (ftok): Likewise.
23797         * sysvipc/msgctl.c (msgctl): Likewise.
23798         * sysvipc/msgget.c (msgget): Likewise.
23799         * sysvipc/msgrcv.c (msgrcv): Likewise.
23800         * sysvipc/msgsnd.c (msgsnd): Likewise.
23801         * sysvipc/semget.c (semget): Likewise.
23802         * sysvipc/semop.c (semop): Likewise.
23803         * sysvipc/shmat.c (shmat): Likewise.
23804         * sysvipc/shmctl.c (shmctl): Likewise.
23805         * sysvipc/shmdt.c (shmdt): Likewise.
23806         * sysvipc/shmget.c (shmget): Likewise.
23807         * termios/cfmakeraw.c (cfmakeraw): Likewise.
23808         * termios/speed.c (cfgetospeed): Likewise.
23809         (cfgetispeed): Likewise.
23810         (cfsetospeed): Likewise.
23811         (cfsetispeed): Likewise.
23812         * termios/tcflow.c (tcflow): Likewise.
23813         * termios/tcflush.c (tcflush): Likewise.
23814         * termios/tcgetattr.c (__tcgetattr): Likewise.
23815         * termios/tcgetpgrp.c (tcgetpgrp): Likewise.
23816         * termios/tcgetsid.c (tcgetsid): Likewise.
23817         * termios/tcsendbrk.c (tcsendbreak): Likewise.
23818         * termios/tcsetpgrp.c (tcsetpgrp): Likewise.
23819         * time/adjtime.c (__adjtime): Likewise.
23820         * time/dysize.c (dysize): Likewise.
23821         * time/ftime.c (ftime): Likewise.
23822         * time/getitimer.c (__getitimer): Likewise.
23823         * time/gettimeofday.c (__gettimeofday): Likewise.
23824         * time/gmtime.c (__gmtime_r): Likewise.
23825         (gmtime): Likewise.
23826         * time/localtime.c (__localtime_r): Likewise.
23827         (localtime): Likewise.
23828         * time/offtime.c (__offtime): Likewise.
23829         * time/settimeofday.c (__settimeofday): Likewise.
23830         * time/stime.c (stime): Likewise.
23831         * time/strftime_l.c (tm_diff): Likewise.
23832         (iso_week_days): Likewise.
23833         * time/strptime.c (strptime): Likewise.
23834         * time/time.c (time): Likewise.
23835         * time/timespec_get.c (timespec_get): Likewise.
23836         * time/tzset.c (tzset_internal): Likewise.
23837         (compute_change): Likewise.
23838         (__tz_compute): Likewise.
23839         * wcsmbs/btowc.c (__btowc): Likewise.
23840         * wcsmbs/mbrlen.c (__mbrlen): Likewise.
23841         * wcsmbs/mbsinit.c (__mbsinit): Likewise.
23842         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
23843         * wcsmbs/wcpcpy.c (__wcpcpy): Likewise.
23844         * wcsmbs/wcpncpy.c (__wcpncpy): Likewise.
23845         * wcsmbs/wcscat.c (__wcscat): Likewise.
23846         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
23847         * wcsmbs/wcscmp.c (WCSCMP): Likewise.
23848         * wcsmbs/wcscpy.c (WCSCPY): Likewise.
23849         * wcsmbs/wcscspn.c (wcscspn): Likewise.
23850         * wcsmbs/wcsdup.c (wcsdup): Likewise.
23851         * wcsmbs/wcslen.c (__wcslen): Likewise.
23852         * wcsmbs/wcsncat.c (WCSNCAT): Likewise.
23853         * wcsmbs/wcsncmp.c (WCSNCMP): Likewise.
23854         * wcsmbs/wcsncpy.c (__wcsncpy): Likewise.
23855         * wcsmbs/wcsnlen.c (__wcsnlen): Likewise.
23856         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
23857         * wcsmbs/wcsrchr.c (WCSRCHR): Likewise.
23858         * wcsmbs/wcsspn.c (wcsspn): Likewise.
23859         * wcsmbs/wcsstr.c (wcsstr): Likewise.
23860         * wcsmbs/wcstok.c (wcstok): Likewise.
23861         * wcsmbs/wctob.c (wctob): Likewise.
23862         * wcsmbs/wmemchr.c (__wmemchr): Likewise.
23863         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
23864         * wcsmbs/wmemcpy.c (__wmemcpy): Likewise.
23865         * wcsmbs/wmemmove.c (__wmemmove): Likewise.
23866         * wcsmbs/wmempcpy.c (__wmempcpy): Likewise.
23867         * wcsmbs/wmemset.c (__wmemset): Likewise.
23868         * wctype/wcfuncs.c (__towlower): Likewise.
23869         (__towupper): Likewise.
23870
23871         * sysdeps/unix/sysv/linux/i386/lowlevellock.h
23872         (lll_unlock_elision): Add adapt_count parameter.
23873
23874 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
23875
23876         * sysdeps/nptl/configure.ac: Do not give errors based on the
23877         results of top-level configure tests.
23878         * sysdeps/nptl/configure: Regenerated.
23879
23880         * configure.ac (libc_cv_Bgroup): Remove configure test.
23881         * configure: Regenerated.
23882         * config.make.in (have-Bgroup): Remove variable.
23883
23884         * configure.ac (sizeof_long_double): Remove configure test.
23885         * configure: Regenerated.
23886         * config.make.in (sizeof-long-double): Remove variable.
23887
23888         * configure.ac (libc_cv_gcc_exceptions): Remove configure test.
23889         * configure: Regenerated.
23890         * sysdeps/arm/configure.ac (libc_cv_gcc_exceptions): Do not set
23891         variable.
23892         (exceptions): Likewise.
23893         * sysdeps/arm/configure: Regenerated.
23894         * config.make.in (exceptions): Remove variable.
23895         * Makeconfig (uses-callbacks): Use -fexceptions instead of
23896         $(exceptions).
23897         * debug/Makefile (CFLAGS-dprintf_chk.c): Likewise.
23898         (CFLAGS-vdprintf_chk.c): Likewise.
23899         (CFLAGS-printf_chk.c): Likewise.
23900         (CFLAGS-fprintf_chk.c): Likewise.
23901         (CFLAGS-vprintf_chk.c): Likewise.
23902         (CFLAGS-vfprintf_chk.c): Likewise.
23903         (CFLAGS-gets_chk.c): Likewise.
23904         (CFLAGS-fgets_chk.c): Likewise.
23905         (CFLAGS-fgets_u_chk.c): Likewise.
23906         (CFLAGS-fread_chk.c): Likewise.
23907         (CFLAGS-fread_u_chk.c): Likewise.
23908         (CFLAGS-wprintf_chk.c): Likewise.
23909         (CFLAGS-fwprintf_chk.c): Likewise.
23910         (CFLAGS-vwprintf_chk.c): Likewise.
23911         (CFLAGS-vfwprintf_chk.c): Likewise.
23912         (CFLAGS-fgetws_chk.c): Likewise.
23913         (CFLAGS-fgetws_u_chk.c): Likewise.
23914         * libio/Makefile (CFLAGS-fileops.c): Likewise.
23915         (CFLAGS-fputc.c): Likewise.
23916         (CFLAGS-fputwc.c): Likewise.
23917         (CFLAGS-freopen64.c): Likewise.
23918         (CFLAGS-freopen.c): Likewise.
23919         (CFLAGS-fseek.c): Likewise.
23920         (CFLAGS-fseeko64.c): Likewise.
23921         (CFLAGS-fseeko.c): Likewise.
23922         (CFLAGS-ftello64.c): Likewise.
23923         (CFLAGS-ftello.c): Likewise.
23924         (CFLAGS-fwide.c): Likewise.
23925         (CFLAGS-genops.c): Likewise.
23926         (CFLAGS-getc.c): Likewise.
23927         (CFLAGS-getchar.c): Likewise.
23928         (CFLAGS-getwc.c): Likewise.
23929         (CFLAGS-getwchar.c): Likewise.
23930         (CFLAGS-iofclose.c): Likewise.
23931         (CFLAGS-iofflush.c): Likewise.
23932         (CFLAGS-iofgetpos64.c): Likewise.
23933         (CFLAGS-iofgetpos.c): Likewise.
23934         (CFLAGS-iofgets.c): Likewise.
23935         (CFLAGS-iofgetws.c): Likewise.
23936         (CFLAGS-iofputs.c): Likewise.
23937         (CFLAGS-iofputws.c): Likewise.
23938         (CFLAGS-iofread.c): Likewise.
23939         (CFLAGS-iofsetpos64.c): Likewise.
23940         (CFLAGS-iofsetpos.c): Likewise.
23941         (CFLAGS-ioftell.c): Likewise.
23942         (CFLAGS-iofwrite.c): Likewise.
23943         (CFLAGS-iogetdelim.c): Likewise.
23944         (CFLAGS-iogetline.c): Likewise.
23945         (CFLAGS-iogets.c): Likewise.
23946         (CFLAGS-iogetwline.c): Likewise.
23947         (CFLAGS-ioputs.c): Likewise.
23948         (CFLAGS-ioseekoff.c): Likewise.
23949         (CFLAGS-ioseekpos.c): Likewise.
23950         (CFLAGS-iosetbuffer.c): Likewise.
23951         (CFLAGS-iosetvbuf.c): Likewise.
23952         (CFLAGS-ioungetc.c): Likewise.
23953         (CFLAGS-ioungetwc.c): Likewise.
23954         (CFLAGS-oldfileops.c): Likewise.
23955         (CFLAGS-oldiofclose.c): Likewise.
23956         (CFLAGS-oldiofgetpos64.c): Likewise.
23957         (CFLAGS-oldiofgetpos.c): Likewise.
23958         (CFLAGS-oldiofsetpos64.c): Likewise.
23959         (CFLAGS-oldiofsetpos.c): Likewise.
23960         (CFLAGS-peekc.c): Likewise.
23961         (CFLAGS-putc.c): Likewise.
23962         (CFLAGS-putchar.c): Likewise.
23963         (CFLAGS-putwc.c): Likewise.
23964         (CFLAGS-putwchar.c): Likewise.
23965         (CFLAGS-rewind.c): Likewise.
23966         (CFLAGS-wfileops.c): Likewise.
23967         (CFLAGS-wgenops.c): Likewise.
23968         (CFLAGS-oldiofopen.c): Likewise.
23969         (CFLAGS-iofopen.c): Likewise.
23970         (CFLAGS-iofopen64.c): Likewise.
23971         (CFLAGS-oldtmpfile.c): Likewise.
23972         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
23973         (CFLAGS-fprintf.c): Likewise.
23974         (CFLAGS-printf.c): Likewise.
23975         (CFLAGS-vfwprintf.c): Likewise.
23976         (CFLAGS-vfscanf.c): Likewise.
23977         (CFLAGS-vfwscanf.c): Likewise.
23978         (CFLAGS-fscanf.c): Likewise.
23979         (CFLAGS-scanf.c): Likewise.
23980         (CFLAGS-isoc99_vfscanf.c): Likewise.
23981         (CFLAGS-isoc99_vscanf.c): Likewise.
23982         (CFLAGS-isoc99_fscanf.c): Likewise.
23983         (CFLAGS-isoc99_scanf.c): Likewise.
23984         * wcsmbs/Makefile (CFLAGS-isoc99_wscanf.c): Likewise.
23985         (CFLAGS-isoc99_fwscanf.c): Likewise.
23986         (CFLAGS-isoc99_vwscanf.c): Likewise.
23987         (CFLAGS-isoc99_vfwscanf.c): Likewise.
23988
23989         * io/test-lfs.c (do_prepare): Do not call add_temp_file until
23990         after mkstemp64.
23991         * login/tst-utmp.c (do_prepare): Likewise.
23992         * rt/tst-aio.c (do_prepare): Likewise.
23993         * rt/tst-aio64.c (do_prepare): Likewise.
23994
23995 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
23996
23997         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
23998         (__lll_lock_elision): Remove adapt_count decrement...
23999         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
24000         (__lll_trylock_elision): Likewise.
24001         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
24002         (__lll_unlock_elision): ... to here. And utilize
24003         new adapt_count parameter.
24004         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
24005         (__lll_unlock_elision): Update to include adapt_count
24006         parameter.
24007         (lll_unlock_elision): Pass pointer to adapt_count
24008         variable.
24009
24010 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
24011
24012         * nptl/pthread_mutex_unlock.c (lll_unlock_elision):
24013         Add elision adapt_count parameter to list of arguments.
24014         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
24015         (lll_unlock_elision): Update with new parameter list
24016         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
24017         (lll_unlock_elision): Likewise.
24018         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
24019         (lll_unlock_elision): Likewise.
24020
24021 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
24022
24023         [BZ #19122]
24024         * include/sys/utsname.h [IS_IN (rtld)] (__uname): Add
24025         attribute_hidden.
24026
24027         * include/string.h [IS_IN (rtld)] (__stpcpy): Add
24028         attribute_hidden.
24029         [IS_IN (rtld)] (__strdup): Likewise.
24030         [IS_IN (rtld)] (__strerror_r): Likewise.
24031         [IS_IN (rtld)] (__strsep_g): Likewise.
24032         [IS_IN (rtld)] (memchr): Likewise.
24033         [IS_IN (rtld)] (memcmp): Likewise.
24034         [IS_IN (rtld)] (memcpy): Likewise.
24035         [IS_IN (rtld)] (memmove): Likewise.
24036         [IS_IN (rtld)] (memset): Likewise.
24037         [IS_IN (rtld)] (rawmemchr): Likewise.
24038         [IS_IN (rtld)] (stpcpy): Likewise.
24039         [IS_IN (rtld)] (strchr): Likewise.
24040         [IS_IN (rtld)] (strcmp): Likewise.
24041         [IS_IN (rtld)] (strlen): Likewise.
24042         [IS_IN (rtld)] (strnlen): Likewise.
24043         [IS_IN (rtld)] (strsep): Likewise.
24044
24045         * include/stdlib.h [IS_IN (rtld)] (unsetenv): Add
24046         attribute_hidden.
24047         [IS_IN (rtld)] (__strtoul_internal): Likewise.
24048
24049         * include/signal.h [IS_IN (rtld)] (__sigaction): Add
24050         attribute_hidden.
24051         [IS_IN (rtld)] (__libc_sigaction): Likewise.
24052
24053         * include/setjmp.h (__longjmp): Add attribute_hidden.
24054         [IS_IN (rtld)] (__sigsetjmp): Likewise.
24055
24056         * include/libc-internal.h [IS_IN (rtld)] (__profile_frequency):
24057         Add attribute_hidden.
24058
24059         * include/fcntl.h (__libc_fcntl): Add attribute_hidden.
24060         [IS_IN (rtld)] (__open): Likewise.
24061         [IS_IN (rtld)] (__fcntl): Likewise.
24062
24063         * include/dirent.h (__opendirat): Add attribute_hidden.
24064         (__getdents): Likewise.
24065         (__getdents64): Likewise.
24066         (__alloc_dir): Likewise.
24067         [IS_IN (rtld)] (__closedir): Likewise.
24068         [IS_IN (rtld)] (__fdopendir): Likewise.
24069         [IS_IN (rtld)] (__readdir): Likewise.
24070         [IS_IN (rtld)] (__readdir64): Likewise.
24071         [IS_IN (rtld)] (__rewinddir): Likewise.
24072
24073         * include/dlfcn.h (_dl_catch_error): Moved to ...
24074         * sysdeps/generic/ldsodefs.h (_dl_catch_error): Add
24075         attribute_hidden.
24076
24077         * sysdeps/generic/_itoa.h (_itoa): Add attribute_hidden.
24078         (_itoa_word): Likewise.
24079
24080         * elf/dl-runtime.c (_dl_fixup): Add attribute_hidden.
24081         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
24082         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
24083         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Likewise.
24084         (_dl_higher_prime_number): Likewise.
24085         (_dl_debug_printf_c): Likewise.
24086         (_dl_signal_cerror): Likewise.
24087         (_dl_receive_error): Likewise.
24088         (_dl_reloc_bad_type): Likewise.
24089         (_dl_resolve_conflicts): Likewise.
24090         (_dl_check_all_versions): Likewise.
24091         (_dl_check_map_versions): Likewise.
24092         (_dl_sort_fini): Likewise.
24093         (_dl_debug_initialize): Likewise.
24094         (_dl_init_paths): Likewise.
24095         (_dl_show_auxv): Likewise.
24096         (_dl_next_ld_env_entry): Likewise.
24097         (_dl_important_hwcaps): Likewise.
24098         (_dl_load_cache_lookup): Likewise.
24099         (_dl_update_slotinfo): Likewise.
24100         (_dl_show_scope): Likewise.
24101
24102         * sysdeps/generic/memcopy.h (_wordcopy_fwd_aligned): Add
24103         attribute_hidden.
24104         (_wordcopy_fwd_dest_aligned): Likewise.
24105         (_wordcopy_bwd_aligned): Likewise.
24106         (_wordcopy_bwd_dest_aligned): Likewise.
24107
24108         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
24109         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
24110         Likewise.
24111         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
24112         Likewise.
24113         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
24114
24115 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
24116
24117         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add comments for
24118         GCC 5 requirement.
24119
24120 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
24121
24122         * sysdeps/i386/configure.ac (libc_cv_as_i686): Remove configure
24123         test.
24124         * sysdeps/i386/configure: Regenerated.
24125         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]: Make
24126         code unconditional.
24127
24128         * configure.ac (libc_cv_asm_previous_directive): Remove configure
24129         test.
24130         (libc_cv_asm_popsection_directive): Likewise.
24131         * configure: Regenerated.
24132         * config.h.in (HAVE_ASM_PREVIOUS_DIRECTIVE): Remove #undef.
24133         (HAVE_ASM_POPSECTION_DIRECTIVE): Likewise.
24134         * include/libc-symbols.h [HAVE_ASM_PREVIOUS_DIRECTIVE]
24135         (__make_section_unallocated): Make definition unconditional.
24136         [HAVE_ASM_POPSECTION_DIRECTIVE] (__make_section_unallocated):
24137         Remove conditional definition.
24138         [!HAVE_ASM_PREVIOUS_DIRECTIVE && !HAVE_ASM_POPSECTION_DIRECTIVE]
24139         (__make_section_unallocated): Likewise.
24140
24141         * configure.ac (libc_cv_gcc_static_libgcc): Remove configure test.
24142         * configure: Regenerated.
24143         * config.make.in (static-libgcc): Remove variable.
24144         * Makerules (build-shlib-helper): Use -static-libgcc instead of
24145         $(static-libgcc).
24146         (build-module-helper): Likewise.
24147
24148         * configure.ac (libc_cv_friendly_stddef): Remove configure test.
24149         * configure: Regenerated.
24150
24151 2015-10-15  Florian Weimer  <fweimer@redhat.com>
24152
24153         * stdio-common/vfscanf.c (MEMCPY): Remove macro.
24154         (struct char_buffer): New type.
24155         (char_buffer_start, char_buffer_size, char_buffer_error)
24156         (char_buffer_rewind, char_buffer_add): New functions.
24157         (ADDW): Remove macro, replaced by the char_buffer_add function.
24158         (_IO_vfscanf_internal): Rewrite using struct char_buffer instead
24159         of extend_alloca.  Make control flow more explicit.
24160
24161 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
24162
24163         [BZ #19137]
24164         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
24165         Add -fomit-frame-pointer.
24166         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Remove file.
24167
24168 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
24169
24170         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S
24171         (__libc_do_syscall): Defined only if !__GNUC_PREREQ (5,0).
24172         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define assembler macros
24173         only if !__GNUC_PREREQ (5,0).
24174         (INTERNAL_SYSCALL_MAIN_6): Optimize for GCC 5.
24175         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
24176         (INTERNAL_SYSCALL_NCS): Likewise.
24177         (LOADREGS_0): New macro for GCC 5.
24178         (ASMARGS_0): Likewise.
24179         (LOADREGS_1): Likewise.
24180         (ASMARGS_1): Likewise.
24181         (LOADREGS_2): Likewise.
24182         (ASMARGS_2): Likewise.
24183         (LOADREGS_3): Likewise.
24184         (ASMARGS_3): Likewise.
24185         (LOADREGS_4): Likewise.
24186         (ASMARGS_4): Likewise.
24187         (LOADREGS_5): Likewise.
24188         (ASMARGS_5): Likewise.
24189         (LOADREGS_6): Likewise.
24190         (ASMARGS_6): Likewise.
24191
24192 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
24193
24194         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-mmap.c): Add
24195         -fomit-frame-pointer.
24196         (CFLAGS-mmap64.c): Likewise.
24197         (CFLAGS-semtimedop.c): Likewise.
24198         * sysdeps/unix/sysv/linux/i386/mmap.c: New file.
24199         * sysdeps/unix/sysv/linux/i386/mmap.S: Remove file.
24200         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
24201         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
24202
24203 2015-10-15  Florian Weimer  <fweimer@redhat.com>
24204
24205         [BZ #18928]
24206         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
24207         _dl_pointer_guard member.
24208         * elf/rtld.c (_rtld_global_ro): Remove _dl_pointer_guard
24209         initializer.
24210         (security_init): Always set up pointer guard.
24211         (process_envvars): Do not process LD_POINTER_GUARD.
24212
24213 2015-10-14  Joseph Myers  <joseph@codesourcery.com>
24214
24215         [BZ #19134]
24216         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (.LC1): New object.
24217         (.LC2): Likewise.
24218         (.LC3): Likewise.
24219         (__lround): Do not add 0.5 to integer or out-of-range arguments.
24220
24221 2015-10-14  Szabolcs Nagy  <szabolcs.nagy@arm.com>
24222
24223         [BZ #19129]
24224         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save and restore
24225         r0 and r1.
24226
24227 2015-10-14  Namhyung Kim  <namhyung@gmail.com>
24228
24229         * manaual/argp.texi (Specifying Argp Parsers): Fix typo.
24230
24231 2015-10-14  Carlos O'Donell  <carlos@redhat.com>
24232
24233         * include/stap-probe.h: Fix macro definition formatting.
24234
24235 2015-10-14  Florian Weimer  <fweimer@redhat.com>
24236
24237         [BZ #19074]
24238         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use atomics to
24239         load and store num_ifs.
24240
24241 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
24242
24243         [BZ #18822]
24244         * sysdeps/unix/sysv/linux/sched_getaffinity.c
24245         (__sched_getaffinity_new): Add libc_hidden_proto and
24246         libc_hidden_def.
24247
24248 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
24249
24250         [BZ #19007]
24251         * scripts/localplt.awk: Also allow GOT references.
24252         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark
24253         _Unwind_Find_FDE, calloc, memalign, realloc and __libc_memalign
24254         with "+ REL R_386_GLOB_DAT".
24255         * sysdeps/x86_64/localplt.data: Mark calloc, memalign, realloc
24256         and __libc_memalign with "+ RELA R_X86_64_GLOB_DAT".
24257
24258 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
24259
24260         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use
24261         INLINE_SYSCALL_ERROR_RETURN_VALUE.
24262         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat):
24263         Likewise.
24264         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
24265         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
24266         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
24267         INTERNAL_SYSCALLINTERNAL_SYSCALL and
24268         INLINE_SYSCALL_ERROR_RETURN_VALUE.
24269         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
24270         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
24271         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
24272         Likewise.
24273         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
24274
24275 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
24276
24277         [BZ #19125]
24278         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include <limits.h>,
24279         <math_private.h> and <stdint.h>.
24280         (__llround): Avoid conversions to and from long long int, and
24281         subtractions, where those might raise spurious exceptions.
24282         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
24283         <math_private.h> and <stdint.h>.
24284         (__llroundf): Avoid conversions to and from long long int, and
24285         subtractions, where those might raise spurious exceptions.
24286
24287 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
24288
24289         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use
24290         INLINE_SYSCALL_ERROR_RETURN_VALUE.
24291         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
24292         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Likewise.
24293         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
24294         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
24295         * sysdeps/unix/sysv/linux/fcntl.c (do_fcntl): Likewise.
24296         * sysdeps/unix/sysv/linux/futimens.c (futimens): Likewise.
24297         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
24298         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
24299         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
24300         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
24301         * sysdeps/unix/sysv/linux/lutimes.c (lutimes): Likewise.
24302         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
24303         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
24304         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Likewise.
24305         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Likewise.
24306         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
24307         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Likewise.
24308         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Likewise.
24309         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
24310         * sysdeps/unix/sysv/linux/signalfd.c (signalfd): Likewise.
24311         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Likewise.
24312         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
24313         * sysdeps/unix/sysv/linux/ustat.c (ustat): Likewise.
24314         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
24315         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
24316         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
24317         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
24318         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Likewise.
24319         (__xstat64_conv): Likewise.
24320         (__xstat32_conv): Likewise.
24321
24322 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
24323
24324         * sysdeps/unix/sysv/linux/sysdep.h: New file.
24325         * sysdeps/unix/sysv/linux/i386/sysdep.c: Likewise.
24326         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include
24327         <sysdeps/unix/sysv/linux/sysdep.h>.
24328         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
24329         * sysdeps/unix/sysv/linux/generic/sysdep.h: Likewise.
24330         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
24331         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24332         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
24333         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Likewise.
24334         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Likewise.
24335         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
24336         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
24337         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
24338         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
24339         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
24340         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
24341         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
24342         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
24343         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
24344         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == csu]
24345         (sysdep-dl-routines): Add sysdep.
24346         [$(subdir) == nptl] (libpthread-routines): Likewise.
24347         [$(subdir) == rt] (librt-routines): Likewise.
24348         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Don't check
24349         PIC when branching to SYSCALL_ERROR_LABEL.
24350         * sysdeps/unix/sysv/linux/i386/sysdep.S: Removed.
24351         * sysdeps/unix/sysv/linux/i386/sysdep.h: Include
24352         <sysdeps/unix/sysv/linux/sysdep.h>.
24353         (SYSCALL_ERROR_LABEL): Changed to __syscall_error.
24354         (SYSCALL_ERROR_ERRNO): Removed.
24355         (SYSCALL_ERROR_HANDLER): Changed to empty.
24356         (SYSCALL_ERROR_HANDLER_TLS_STORE): Likewise.
24357         (__syscall_error): New prototype.
24358         [IS_IN (libc)] (INLINE_SYSCALL): New macro.
24359         (INLINE_SYSCALL_ERROR_RETURN_VALUE): Likewise.
24360
24361 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
24362
24363         [BZ #19124]
24364         * sysdeps/x86_64/dl-trampoline.S [!HAVE_AVX512_ASM_SUPPORT]
24365         (_dl_runtime_resolve_avx512): Make it a hidden alias of
24366         _dl_runtime_resolve_avx.
24367         (_dl_runtime_profile_avx512): Make it a hidden alias of
24368         _dl_runtime_profile_avx.
24369
24370 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
24371
24372         * sysdeps/powerpc/fpu/s_llround.c: Move to ....
24373         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: ...here.
24374         * sysdeps/powerpc/fpu/s_llroundf.c: Move to ....
24375         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: ...here.
24376
24377         [BZ #16422]
24378         * sysdeps/powerpc/powerpc32/fpu/configure.ac (libc_cv_ppc_fctidz):
24379         New configure test.
24380         * sysdeps/powerpc/powerpc32/fpu/configure: Regenerated.
24381         * config.h.in [_LIBC] (HAVE_PPC_FCTIDZ): New macro.
24382         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include <limits.h>,
24383         <math_private.h> and <stdint.h>.
24384         (__llrint): Avoid conversions to long long int where those might
24385         raise spurious exceptions.
24386         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
24387         <math_private.h> and <stdint.h>.
24388         (__llrintf): Avoid conversions to long long int where those might
24389         raise spurious exceptions.
24390
24391 2015-10-12  Andreas Schwab  <schwab@suse.de>
24392
24393         [BZ #18969]
24394         * debug/Makefile (LOCALES): Define.  Include gen-locales.mk.
24395         ($(objpfx)tst-chk1.out): Depend on $(gen-locales).
24396         * iconvdata/Makefile (LOCALES): Define.  Include gen-locales.mk.
24397         ($(objpfx)bug-iconv6.out, $(objpfx)tst-iconv7.out): Depend on
24398         $(gen-locales).
24399         * intl/Makefile (LOCALES): Define.  Include gen-locales.mk.
24400         ($(objpfx)tst-codeset.out, $(objpfx)tst-gettext.out)
24401         ($(objpfx)tst-gettext2.out, $(objpfx)tst-gettext3.out)
24402         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext5.out)
24403         ($(objpfx)tst-gettext6.out, $(objpfx)tst-translit.out): Depend on
24404         $(gen-locales).
24405         * libio/Makefile (LOCALES): Define.  Include gen-locales.mk.
24406         ($(objpfx)bug-ftell.out, $(objpfx)bug-ungetwc1.out)
24407         ($(objpfx)bug-ungetwc2.out, $(objpfx)tst-fgetwc.out)
24408         ($(objpfx)tst-fgetws.out, $(objpfx)tst-fopenloc.out)
24409         ($(objpfx)tst-fputws.out, $(objpfx)tst-fseek.out)
24410         ($(objpfx)tst-ftell-active-handler.out)
24411         ($(objpfx)tst-ftell-append.out)
24412         ($(objpfx)tst-ftell-partial-wide.out, $(objpfx)tst-setvbuf1.out)
24413         ($(objpfx)tst-swscanf.out, $(objpfx)tst-ungetwc1.out)
24414         ($(objpfx)tst-ungetwc2.out, $(objpfx)tst-widetext.out)
24415         ($(objpfx)tst_wprintf2.out): Depend on $(gen-locales).
24416         * posix/Makefile (LOCALES): Define.  Include gen-locales.mk.
24417         ($(objpfx)bug-regex1.out, $(objpfx)bug-regex4.out)
24418         ($(objpfx)bug-regex5.out, $(objpfx)bug-regex6.out)
24419         ($(objpfx)bug-regex17.out, $(objpfx)bug-regex18.out)
24420         ($(objpfx)bug-regex19.out, $(objpfx)bug-regex20.out)
24421         ($(objpfx)bug-regex22.out, $(objpfx)bug-regex23.out)
24422         ($(objpfx)bug-regex25.out, $(objpfx)bug-regex26.out)
24423         ($(objpfx)bug-regex30.out, $(objpfx)bug-regex32.out)
24424         ($(objpfx)bug-regex33.out, $(objpfx)bug-regex34.out)
24425         ($(objpfx)bug-regex35.out, $(objpfx)tst-fnmatch.out)
24426         ($(objpfx)tst-fnmatch4.out, $(objpfx)tst-fnmatch5.out)
24427         ($(objpfx)tst-regex.out, $(objpfx)tst-regex2.out)
24428         ($(objpfx)tst-regexloc.out, $(objpfx)tst-rxspencer.out)
24429         ($(objpfx)tst-rxspencer-no-utf8.out): Depend on $(gen-locales).
24430         * stdio-common/Makefile (LOCALES): Define.  Include gen-locales.mk.
24431         ($(objpfx)bug14.out, $(objpfx)scanf13.out)
24432         ($(objpfx)test-vfprintf.out, $(objpfx)tst-grouping.out)
24433         ($(objpfx)tst-sprintf.out, $(objpfx)tst-sscanf.out)
24434         ($(objpfx)tst-swprintf.out): Depend on $(gen-locales).
24435         * stdlib/Makefile (LOCALES): Define.  Include gen-locales.mk.
24436         ($(objpfx)bug-strtod2.out, $(objpfx)testmb2.out)
24437         ($(objpfx)tst-strtod.out, $(objpfx)tst-strtod3.out)
24438         ($(objpfx)tst-strtod4.out, $(objpfx)tst-strtod5.out): Depend on
24439         $(gen-locales).
24440         * time/Makefile (LOCALES): Define.  Include gen-locales.mk.
24441         ($(objpfx)tst-ftime_l.out, $(objpfx)tst-strptime.out): Depend on
24442         $(gen-locales).
24443         * wcsmbs/Makefile (LOCALES): Define.  Include gen-locales.mk.
24444         ($(objpfx)tst-btowc.out, $(objpfx)tst-c16c32-1.out)
24445         ($(objpfx)tst-mbrtowc.out, $(objpfx)tst-mbrtowc2.out)
24446         ($(objpfx)tst-wcrtomb.out, $(objpfx)wcsmbs-tst1.out): Depend on
24447         $(gen-locales).
24448         * libio/tst_wprintf2.c (main): Use explicit locale.
24449         * wcsmbs/wcsmbs-tst1.c (main): Likewise.
24450
24451 2015-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24452
24453         * hurd/hurd-raise.c (_hurd_raise_signal): Return error returned by
24454         __msg_sig_post.
24455         * hurd/hurd/signal.h (_hurd_raise_signal): Add int return type.
24456
24457 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
24458
24459         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
24460         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
24461
24462         * sysdeps/arm/libm-test-ulps: Regenerated.
24463
24464         [BZ #15470]
24465         * sysdeps/arm/fix-fp-int-convert-overflow.h: New file.
24466
24467         [BZ #16399]
24468         * sysdeps/generic/fix-fp-int-convert-overflow.h: New file.
24469         * sysdeps/ieee754/dbl-64/s_llrint.c: Include <fenv.h>, <limits.h>
24470         and <fix-fp-int-convert-overflow.h>.
24471         (__llrint) [FE_INVALID]: Force FE_INVALID exception as needed if
24472         FIX_DBL_LLONG_CONVERT_OVERFLOW.
24473         * sysdeps/ieee754/dbl-64/s_llround.c: Include <fenv.h>, <limits.h>
24474         and <fix-fp-int-convert-overflow.h>.
24475         (__llround) [FE_INVALID]: Force FE_INVALID exception as needed if
24476         FIX_DBL_LLONG_CONVERT_OVERFLOW.
24477         * sysdeps/ieee754/dbl-64/s_lrint.c: Include
24478         <fix-fp-int-convert-overflow.h>.
24479         (__lrint) [FE_INVALID]: Force FE_INVALID exception as needed if
24480         FIX_DBL_LLONG_CONVERT_OVERFLOW.
24481         * sysdeps/ieee754/dbl-64/s_lround.c: Include
24482         <fix-fp-int-convert-overflow.h>.
24483         (__lround) [FE_INVALID]: Force FE_INVALID exception as needed if
24484         FIX_DBL_LLONG_CONVERT_OVERFLOW.
24485         * sysdeps/ieee754/flt-32/s_llrintf.c: Include <fenv.h>, <limits.h>
24486         and <fix-fp-int-convert-overflow.h>.
24487         (__llrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
24488         FIX_DBL_LLONG_CONVERT_OVERFLOW.
24489         * sysdeps/ieee754/flt-32/s_llroundf.c: Include <fenv.h>,
24490         <limits.h> and <fix-fp-int-convert-overflow.h>.
24491         (__llroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
24492         FIX_DBL_LLONG_CONVERT_OVERFLOW.
24493         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <fenv.h>, <limits.h>
24494         and <fix-fp-int-convert-overflow.h>.
24495         (__lrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
24496         FIX_DBL_LLONG_CONVERT_OVERFLOW.
24497         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <fenv.h>, <limits.h>
24498         and <fix-fp-int-convert-overflow.h>.
24499         (__lroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
24500         FIX_DBL_LLONG_CONVERT_OVERFLOW.
24501         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h: New file.
24502
24503 2015-10-09  Carlos O'Donell  <carlos@redhat.com>
24504
24505         [BZ #18589]
24506         * string/bug-strcoll2.c: Adjust copyright, and remove contributed by.
24507         * string/Makefile ($(objpfx)bug-strcoll2.out): Depend on
24508         $(gen-locales).
24509
24510 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24511             Phil Blundell <pb@pbcl.net>
24512
24513         * nptl/Makefile (tests): Add tst-cancel26.c and tst-cancel27.c.
24514         * nptl/tst-cancel26.c: New file.
24515         * nptl/tst-cancel27.c: Likewise.
24516
24517 2015-10-09  H.J. Lu  <hongjiu.lu@intel.com>
24518
24519         * sysdeps/x86_64/fpu/s_llrint.S (__lrint): Add alias only if
24520         __ILP32__ isn't defined.
24521         (lrint): Likewise.
24522         * sysdeps/x86_64/fpu/s_llrintf.S (__lrintf): Likewise.
24523         (lrintf): Likewise.
24524         * sysdeps/x86_64/fpu/s_llrintl.S (__lrintl): Likewise.
24525         (lrintl): Likewise.
24526         * sysdeps/x86_64/x32/fpu/s_lrint.S: New file.
24527         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Likewise.
24528         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Likewise.
24529
24530 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24531
24532         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
24533         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
24534
24535         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Remove
24536         file.
24537         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Likewise.
24538         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
24539
24540 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
24541
24542         * sysdeps/i386/configure.ac (libc_cv_cc_novzeroupper): Remove
24543         configure test.
24544         * sysdeps/i386/configure: Regenerated.
24545         * sysdeps/x86_64/configure.ac (libc_cv_cc_novzeroupper): Remove
24546         configure test.
24547         * sysdeps/x86_64/configure: Regenerated.
24548         * sysdeps/x86_64/Makefile [$(config-cflags-novzeroupper) = yes]:
24549         Make code unconditional.
24550
24551         * sysdeps/i386/configure.ac (libc_cv_cc_fma4): Remove configure
24552         test.
24553         * sysdeps/i386/configure: Regenerated.
24554         * sysdeps/x86_64/configure.ac (libc_cv_cc_fma4): Remove configure
24555         test.
24556         * sysdeps/x86_64/configure: Regenerated.
24557         * sysdeps/x86_64/fpu/multiarch/Makefile [$(have-mfma4) = yes]:
24558         Make code unconditional.
24559         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
24560         Likewise.
24561         * sysdeps/x86_64/fpu/multiarch/e_atan2.c [HAVE_FMA4_SUPPORT]:
24562         Likewise.
24563         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
24564         * sysdeps/x86_64/fpu/multiarch/e_exp.c [HAVE_FMA4_SUPPORT]: Make
24565         code unconditional.
24566         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
24567         * sysdeps/x86_64/fpu/multiarch/e_log.c [HAVE_FMA4_SUPPORT]: Make
24568         code unconditional.
24569         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
24570         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]: Make
24571         code unconditional.
24572         * sysdeps/x86_64/fpu/multiarch/s_atan.c [HAVE_FMA4_SUPPORT]: Make
24573         code unconditional.
24574         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
24575         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_FMA4_SUPPORT]: Make
24576         code unconditional.
24577         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
24578         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_FMA4_SUPPORT]: Make
24579         code unconditional.
24580         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
24581         * sysdeps/x86_64/fpu/multiarch/s_sin.c [HAVE_FMA4_SUPPORT]: Make
24582         code unconditional.
24583         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
24584         * sysdeps/x86_64/fpu/multiarch/s_tan.c [HAVE_FMA4_SUPPORT]: Make
24585         code unconditional.
24586         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
24587         * config.h.in (HAVE_FMA4_SUPPORT): Remove #undef.
24588
24589         [BZ #19095]
24590         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Cast low part of
24591         mantissa to long int before shifting left.
24592
24593 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
24594
24595         [BZ #19094]
24596         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <fenv.h> and
24597         <limits.h>.
24598         (__lrint) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
24599         when result overflows but exception would not result from cast.
24600         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include <fenv.h> and
24601         <limits.h>.
24602         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
24603         when result overflows but exception would not result from cast.
24604         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include <fenv.h> and
24605         <limits.h>.
24606         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
24607         when result overflows but exception would not result from cast.
24608         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include <fenv.h> and
24609         <limits.h>.
24610         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
24611         when result overflows but exception would not result from cast.
24612         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include <fenv.h> and
24613         <limits.h>.
24614         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
24615         when result overflows but exception would not result from cast.
24616         * math/libm-test.inc (lrint_test_data): Add more tests.
24617         (llrint_test_data): Likewise.
24618
24619 2015-10-08  Roland McGrath  <roland@hack.frob.com>
24620
24621         [BZ #18872]
24622         * stdio-common/Makefile ($(objpfx)tst-unbputc.out):
24623         Move out from under [$(run-built-tests) = yes] conditional.
24624         ($(objpfx)tst-printf.out, $(objpfx)tst-printf-bz18872.c): Likewise.
24625         ($(objpfx)tst-printf-bz18872-mem.out): Likewise.
24626
24627 2015-10-08  Carlos O'Donell  <carlos@redhat.com>
24628
24629         [BZ #18589]
24630         * string/Makefile (tests): Add bug-strcoll2.
24631         (LOCALES): Add cs_CZ.UTF-8.
24632         * string/bug-strcoll2.c (test_cs_CZ): Fix typo in FAIL string.
24633
24634         [BZ #18589]
24635         * string/bug-strcoll2.c: New file.
24636         * locale/categories.def: Revert commit
24637         f13c2a8dff2329c6692a80176262ceaaf8a6f74e.
24638         * locale/langinfo.h: Likewise.
24639         * locale/localeinfo.h: Likewise.
24640         * locale/C-collate.c: Likewise.
24641         * locale/programs/ld-collate.c (collate_output): Likewise.
24642         * string/strcoll_l.c (STRDIFF): Likewise.
24643         (STRCOLL): Likewise.
24644         * wcsmbs/wcscoll_l.c: Likewise.
24645
24646 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
24647
24648         * math/libm-test.inc (lround_test_data): Do not expect the absence
24649         of "inexact" for some tests with non-integer arguments.
24650         (llround_test_data): Likewise.
24651
24652         * sysdeps/i386/configure.ac (libc_cv_cc_avx): Remove configure
24653         test.
24654         (libc_cv_cc_sse2avx): Likewise.
24655         * sysdeps/i386/configure: Regenerated.
24656         * sysdeps/i386/i686/multiarch/Makefile
24657         [$(subdir)$(config-cflags-avx) = mathyes]: Change conditional to
24658         [$(subdir) = math].
24659         * sysdeps/i386/i686/multiarch/s_fma-fma.c [HAVE_AVX_SUPPORT]: Make
24660         code unconditional.
24661         * sysdeps/i386/i686/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
24662         Likewise.
24663         * sysdeps/i386/i686/multiarch/s_fmaf-fma.c [HAVE_AVX_SUPPORT]:
24664         Likewise.
24665         * sysdeps/i386/i686/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
24666         Likewise.
24667         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx): Remove configure
24668         test.
24669         (libc_cv_cc_sse2avx): Likewise.
24670         * sysdeps/x86_64/configure: Regenerated.
24671         * sysdeps/x86_64/Makefile [$(config-cflags-avx) = yes]: Make code
24672         unconditional.
24673         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile)
24674         [HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT]: Make code
24675         unconditional.
24676         (_dl_runtime_profile)
24677         [!(HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT)]: Remove
24678         conditional code.
24679         * sysdeps/x86_64/fpu/multiarch/Makefile
24680         [$(config-cflags-sse2avx) = yes]: Make code unconditional.
24681         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
24682         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
24683         * sysdeps/x86_64/fpu/multiarch/e_exp.c
24684         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
24685         * sysdeps/x86_64/fpu/multiarch/e_log.c
24686         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
24687         * sysdeps/x86_64/fpu/multiarch/s_atan.c
24688         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
24689         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
24690         Likewise.
24691         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
24692         Likewise.
24693         * sysdeps/x86_64/fpu/multiarch/s_sin.c
24694         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
24695         * sysdeps/x86_64/fpu/multiarch/s_tan.c
24696         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
24697         * sysdeps/x86_64/multiarch/strcmp.S [HAVE_AVX_SUPPORT]: Likewise.
24698         * config.h.in (HAVE_AVX_SUPPORT): Remove #undef.
24699         (HAVE_SSE2AVX_SUPPORT): Likewise.
24700
24701 2015-10-07  Paul Pluzhnikov  <ppluzhnikov@google.com>
24702
24703         * stdio-common/tst-printf-bz18872.sh: Use attribute optimize
24704         instead of #pragma optimize.
24705
24706 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
24707
24708         [BZ #17195]
24709         * malloc/arena.c (heap_trim): Apply trim_treshold to top_chunck size,
24710         as is similarly done in systrim and _int_free already.
24711
24712 2015-10-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24713
24714         * sysdeps/mach/configure.ac (mach_interface_list): Add task_notify.
24715
24716 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
24717
24718         [BZ #19088]
24719         * sysdeps/ieee754/dbl-64/s_lround.c: Include <fenv.h> and
24720         <limits.h>.
24721         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
24722         overflows but exception would not result from cast.
24723         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include <fenv.h>
24724         and <limits.h>.
24725         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
24726         overflows but exception would not result from cast.
24727         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include <fenv.h> and
24728         <limits.h>.
24729         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
24730         overflows but exception would not result from cast.
24731         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include <fenv.h> and
24732         <limits.h>.
24733         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
24734         overflows but exception would not result from cast.
24735         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include <fenv.h> and
24736         <limits.h>.
24737         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
24738         overflows but exception would not result from cast.
24739         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include <fenv.h> and
24740         <limits.h>.
24741         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
24742         overflows but exception would not result from cast.
24743         * math/libm-test.inc (lround_test_data): Add more tests.
24744         (llround_test_data): Likewise.
24745
24746 2015-10-07  Steve Ellcey  <sellcey@imgtec.com>
24747
24748         * timezone/Makefile (CFLAGS-zic.c): Add -Wno-unused-variable.
24749         (CFLAGS-ialloc.c): Ditto.
24750         (CFLAGS-scheck.c): Ditto.
24751
24752 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
24753
24754         [BZ #19086]
24755         * manual/filesys.texi (Storage Allocation): Fix argument order for
24756         posix_fallocate64.
24757
24758 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
24759
24760         [BZ #19085]
24761         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Move test for
24762         exponent below 48 inside case for non-overflowing exponent.
24763         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
24764
24765 2015-10-07  Florian Weimer  <fweimer@redhat.com>
24766
24767         * iconvdata/cp737.h (from_idx): Add const.
24768         * iconvdata/cp775.h (from_idx): Likewise.
24769
24770 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
24771
24772         * sysdeps/mips/mips64/Implies: Use ieee754/dbl-64/wordsize-64.
24773         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
24774         (__issignaling) [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Remove #error.
24775
24776         [BZ #19079]
24777         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Restore previous
24778         file, conditioned on [!_LP64].
24779         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c
24780         [!_LP64] (__lround): Do not define as function or alias.
24781         [!_LP64] (lround): Likewise.
24782         [!_LP64] (__lroundl): Likewise.
24783         [!_LP64] (lroundl): Likewise.
24784         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Remove
24785         macro.
24786         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
24787         Likewise.
24788
24789 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
24790
24791         * math/libm-test.inc (lrint_test_data): Add more tests.
24792         (llrint_test_data): Likewise.
24793         (lround_test_data): Likewise.
24794         (llround_test_data): Likewise.
24795
24796         * math/libm-test.inc (lrint_test_data): Add tests used for llrint.
24797         (llrint_test_data): Add tests used for lrint.
24798
24799         * sysdeps/i386/configure.ac (libc_cv_cc_sse4): Remove configure
24800         test.
24801         * sysdeps/i386/configure: Regenerated.
24802         * sysdeps/i386/i686/multiarch/Makefile
24803         [$(config-cflags-sse4) = yes]: Make code unconditional.
24804         * sysdeps/i386/i686/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
24805         Likewise.
24806         * sysdeps/i386/i686/multiarch/strspn.S [HAVE_SSE4_SUPPORT]:
24807         Likewise.
24808         * sysdeps/x86_64/configure.ac (libc_cv_cc_sse4): Remove configure
24809         test.
24810         * sysdeps/x86_64/configure: Regenerated.
24811         * sysdeps/x86_64/multiarch/Makefile [$(config-cflags-sse4) = yes]:
24812         Make code unconditional.
24813         * sysdeps/x86_64/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
24814         Likewise.
24815         * sysdeps/x86_64/multiarch/strspn.S [HAVE_SSE4_SUPPORT]: Likewise.
24816         * config.h.in (HAVE_SSE4_SUPPORT): Remove #undef.
24817
24818         * scripts/rpm2dynsym.sh: Remove file.
24819
24820 2015-10-06  Florian Weimer  <fweimer@redhat.com>
24821
24822         * configure.ac (libc_cv_cxx_thread_local): Define.
24823         * configure: Regenerate.
24824         * config.make.in (have-cxx-thread_local): Define.
24825         * nptl/Makefile (CFLAGS-tst-thread_local1.o):
24826         (LDLIBS-tst-thread_local1): Define.
24827         (tests): Add tst-thread_local1.
24828         [have-cxx-thread_local != yes] (tests-unsupported): Add
24829         tst-thread_local1.
24830         * nptl/tst-thread_local1.cc: New file.
24831
24832 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
24833
24834         [BZ #19078]
24835         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (o_thres): Remove variable.
24836         (u_thres): Likewise.
24837         (__expl): Determine whether to call __kernel_standard_l based on
24838         value of result, not argument.
24839
24840         * math/libm-test.inc (scalb_test_data): Add more expectations for
24841         the "inexact" exception.
24842
24843         [BZ #19077]
24844         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Return
24845         0.0L for argument 1.0L.
24846
24847         [BZ #19076]
24848         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Divide by
24849         constant 0.0L when computing infinite result.
24850
24851 2015-10-06  Florian Weimer  <fweimer@redhat.com>
24852
24853         [BZ #10432]
24854         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Remove call to
24855         malloc_usable_size.
24856
24857 2015-10-06  Florian Weimer  <fweimer@redhat.com>
24858
24859         [BZ #19018]
24860         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
24861         Mangle function pointer before storing it.
24862         (__call_tls_dtors): Demangle function pointer before calling it.
24863
24864 2015-10-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
24865
24866         [BZ #19012]
24867         * iconv/gconv_db.c (gen_steps): Check for additional errors.
24868         Clean up on failure.
24869
24870 2015-10-05  Joseph Myers  <joseph@codesourcery.com>
24871
24872         [BZ #19071]
24873         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Use unsigned
24874         long int variable to store possibly incremented high part of
24875         mantissa.
24876         * math/libm-test.inc (lround_test_data): Add tests used for
24877         llround.  Use [LONG_MAX > 0x7fffffff] consistently as condition
24878         for tests requiring 64-bit long.  Do not condition tests on
24879         [TEST_FLOAT] unnecessarily.
24880         (llround_test_data): Add tests used for lround.  Add another
24881         expectation for the "inexact" exception.  Do not condition tests
24882         on [TEST_FLOAT] unnecessarily.
24883
24884         [BZ #887]
24885         [BZ #19049]
24886         [BZ #19050]
24887         * sysdeps/generic/fix-int-fp-convert-zero.h: New file.
24888         * sysdeps/ieee754/dbl-64/e_log10.c: Include
24889         <fix-int-fp-convert-zero.h>.
24890         (__ieee754_log10): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24891         * sysdeps/ieee754/dbl-64/e_log2.c: Include
24892         <fix-int-fp-convert-zero.h>.
24893         (__ieee754_log2): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24894         * sysdeps/ieee754/dbl-64/s_erf.c: Include
24895         <fix-int-fp-convert-zero.h>.
24896         (__erfc): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24897         * sysdeps/ieee754/dbl-64/s_logb.c: Include
24898         <fix-int-fp-convert-zero.h>.
24899         (__logb): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24900         * sysdeps/ieee754/flt-32/e_log10f.c: Include
24901         <fix-int-fp-convert-zero.h>.
24902         (__ieee754_log10f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24903         * sysdeps/ieee754/flt-32/e_log2f.c: Include
24904         <fix-int-fp-convert-zero.h>.
24905         (__ieee754_log2f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24906         * sysdeps/ieee754/flt-32/s_erff.c: Include
24907         <fix-int-fp-convert-zero.h>.
24908         (__erfcf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24909         * sysdeps/ieee754/flt-32/s_logbf.c: Include
24910         <fix-int-fp-convert-zero.h>.
24911         (__logbf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24912         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include
24913         <fix-int-fp-convert-zero.h>.
24914         (__erfcl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24915         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Include
24916         <fix-int-fp-convert-zero.h>.
24917         (__logbl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24918         * sysdeps/powerpc/powerpc32/fpu/configure.ac: New file.
24919         * sysdeps/powerpc/powerpc32/fpu/configure: New generated file.
24920         * sysdeps/powerpc/powerpc32/fpu/fix-int-fp-convert-zero.h: New
24921         file.
24922         * config.h.in [_LIBC] (HAVE_PPC_FCFID): New macro.
24923
24924 2015-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
24925
24926         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
24927
24928 2015-10-02  Joseph Myers  <joseph@codesourcery.com>
24929
24930         [BZ #19059]
24931         * math/s_nexttowardf.c (__nexttowardf): Do not return value from
24932         overflowing computation.
24933         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
24934         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
24935         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
24936         Likewise.
24937         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
24938         Likewise.
24939         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
24940         Likewise.
24941         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
24942         Likewise.
24943         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
24944         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
24945         Likewise.
24946         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
24947         Likewise.
24948         * math/libm-test.inc (nexttoward_test_data): Add more tests.
24949
24950         * nss/rewrite_field.c (__nss_rewrite_field): Use
24951         internal_function.
24952         * nss/valid_field.c (__nss_valid_field): Likewise.
24953         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
24954
24955 2015-10-02  Florian Weimer  <fweimer@redhat.com>
24956
24957         [BZ #18724]
24958         * include/nss.h (NSS_INVALID_FIELD_CHARACTERS): Define.
24959         (__nss_invalid_field_characters, __nss_valid_field)
24960         (__nss_valid_list_field, __nss_rewrite_field): Declare.
24961         * nss/valid_field.c, nss/valid_list_field, nss/rewrite_field.c,
24962         tst-field.c: New file.
24963         * nss/Makefile (routines): Add valid_field, rewrite_field.
24964         (tests-static): Define unconditionally.
24965         (tests): Include tests-static.
24966         [build-static-nss] (tests-static): Use append.
24967         [build-static-nss] (tests): Remove modification.
24968         * nss/getent.c (print_group): Call putgrent.  Report error.
24969         (print_gshadow): Call putsgent.  Report error.
24970         (print_passwd): Call putpwent.  Report error.
24971         (print_shadow): Call putspent.  Report error.
24972         * include/pwd.h: Include <nss.h> instead of <nss/nss.h>.
24973         * pwd/pwd.h (putpwent): Remove incorrect nonnull attribute.
24974         * pwd/putpwent.c (putpwent): Use ISO function definition.  Check
24975         name, password, directory, shell fields for valid syntax.  Rewrite
24976         GECOS field to match syntax.
24977         * pwd/Makefile (tests): Add tst-putpwent.
24978         * pwd/tst-putpwent.c: New file.
24979         * grp/putgrent.c (putgrent): Convert to ISO function definition.
24980         Check grName, grpasswd, gr_mem fields for valid syntax.
24981         Change loop variable i to size_t.
24982         * grp/Makefile (tests): Add tst-putgrent.
24983         * grp/tst-putgrent.c: New file.
24984         * shadow/putspent.c (putspent): Check sp_namp, sp_pwdp fields for
24985         valid syntax.
24986         * shadow/Makefile (tests): Add tst-putspent.
24987         * shadow/tst-putspent.c: New file.
24988         * gshadow/putsgent.c (putsgent): Check sg_namp, sg_passwd, sg_adm,
24989         sg_mem fields for valid syntax.
24990         * gshadow/Makefile (tests): Add tst-putsgent.
24991         * gshadow/tst-putsgent.c: New file.
24992
24993 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
24994
24995         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Added comments to some
24996         assembly instructions.
24997
24998 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
24999
25000         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Remove or add register
25001         prefix from operands.
25002
25003 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
25004
25005         [BZ #16347]
25006         [BZ #19046]
25007         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Do not include
25008         <libc-internal.h>.
25009         (MAXLGM): Do not use diagnostic control macros.
25010         [LDBL_MANT_DIG == 106] (MAXLGM): Change value to overflow
25011         threshold for ldbl-128ibm.
25012         (__ieee754_lgammal_r): For large arguments, multiply by log - 1
25013         instead of multiplying by log then subtracting.
25014         * math/auto-libm-test-in: Add more tests of lgamma.
25015         * math/auto-libm-test-out: Regenerated.
25016
25017         * math/libm-test.inc (TYPE_DECIMAL_DIG): New macro.
25018         (TYPE_HEX_DIG): Likewise.
25019         (print_float): Use TYPE_DECIMAL_DIG - 1 and TYPE_HEX_DIG - 1 as
25020         precisions when printing floating-point numbers.
25021         (check_float_internal): Likewise.
25022
25023 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
25024
25025         [BZ #16620]
25026         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (log10_high): Use value
25027         of log (10) rounded downward to 48 bits.
25028         (log10_low): Use corresponding low part of log (10).
25029
25030         [BZ #19032]
25031         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): For arguments < 1,
25032         compute result as (x - x) / (x - x) not as 0 / 0.
25033         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
25034         * math/libm-test.inc (acosh_test_data): Add another test of acosh.
25035
25036         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
25037         atan, atan2, atanh, cbrt, cos, cosh, erf, erfc, exp, exp10, exp2
25038         and expm1.
25039         * math/auto-libm-test-out: Regenerated.
25040         * math/libm-test.inc (acos_test_data): Add more tests.
25041         (asin_test_data): Likewise.
25042         (asinh_test_data): Likewise.
25043         (atan_test_data): Likewise.
25044         (atanh_test_data): Likewise.
25045         (atan2_test_data): Likewise.
25046         (cbrt_test_data): Likewise.
25047         (ceil_test_data): Likewise.
25048         (copysign_test_data): Likewise.
25049         (cos_test_data): Likewise.
25050         (cosh_test_data): Likewise.
25051         (erf_test_data): Likewise.
25052         (erfc_test_data): Likewise.
25053         (exp_test_data): Likewise.
25054         (exp10_test_data): Likewise.
25055         (exp2_test_data): Likewise.
25056         (expm1_test_data): Likewise.
25057         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25058
25059 2015-09-30  H.J. Lu  <hongjiu.lu@intel.com>
25060
25061         [BZ #19006]
25062         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved
25063         to ...
25064         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Here.
25065         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: Moved
25066         to ...
25067         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Here.
25068         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: Moved
25069         to ...
25070         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Here.
25071         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved to ...
25072         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Here.
25073         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved
25074         to ...
25075         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Here.
25076         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
25077         Moved to ...
25078         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Here.
25079         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
25080         Moved to ...
25081         * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S: Here.
25082         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Moved
25083         to ...
25084         * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S: Here.
25085         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
25086         Moved to ...
25087         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Here.
25088         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved
25089         to ...
25090         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Here.
25091         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S:
25092         Removed.
25093         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c:
25094         Likewise.
25095         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c:
25096         Likewise.
25097         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Likewise.
25098         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S:
25099         Likewise.
25100         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
25101         Likewise.
25102         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
25103         Likewise.
25104         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
25105         Likewise.
25106         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
25107         Likewise.
25108         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S:
25109         Likewise.
25110         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S:
25111         Likewise.
25112         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c:
25113         Likewise.
25114         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c:
25115         Likewise.
25116         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Likewise.
25117         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S:
25118         Likewise.
25119         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
25120         Likewise.
25121         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
25122         Likewise.
25123         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
25124         Likewise.
25125         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S:
25126         Likewise.
25127         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
25128         Replace ../i486/pthread_cond_timedwait.S with
25129         ../pthread_cond_timedwait.S.
25130
25131 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
25132
25133         * math/libm-test.inc (acos_test_data): Refine expectations for
25134         errno and "inexact" exceptions.
25135         (acosh_test_data): Likewise.
25136         (asin_test_data): Likewise.
25137         (asinh_test_data): Likewise.
25138         (atan_test_data): Likewise.
25139         (atanh_test_data): Likewise.
25140         (atan2_test_data): Likewise.
25141         (cbrt_test_data): Likewise.
25142         (ceil_test_data): Likewise.
25143         (copysign_test_data): Likewise.
25144         (cosh_test_data): Likewise.
25145         (erf_test_data): Likewise.
25146         (erfc_test_data): Likewise.
25147         (exp_test_data): Likewise.
25148         (exp10_test_data): Likewise.
25149         (exp2_test_data): Likewise.
25150         (expm1_test_data): Likewise.
25151         (fabs_test_data): Likewise.
25152         (floor_test_data): Likewise.
25153         (fma_test_data): Likewise.
25154         (fmax_test_data): Likewise.
25155         (fmin_test_data): Likewise.
25156         (fmod_test_data): Likewise.
25157         (fpclassify_test_data): Likewise.
25158         (frexp_test_data): Likewise.
25159         (hypot_test_data): Likewise.
25160         (ilogb_test_data): Likewise.
25161         (isgreater_test_data): Likewise.
25162         (isgreaterequal_test_data): Likewise.
25163         (isinf_test_data): Likewise.
25164         (isless_test_data): Likewise.
25165         (islessequal_test_data): Likewise.
25166         (islessgreater_test_data): Likewise.
25167         (isnan_test_data): Likewise.
25168         (isnormal_test_data): Likewise.
25169         (issignaling_test_data): Likewise.
25170         (isunordered_test_data): Likewise.
25171         (j0_test_data): Likewise.
25172         (j1_test_data): Likewise.
25173         (jn_test_data): Likewise.
25174         (lgamma_test_data): Likewise.
25175         (lrint_test_data): Likewise.
25176         (llrint_test_data): Likewise.
25177         (log_test_data): Likewise.
25178         (log10_test_data): Likewise.
25179         (log1p_test_data): Likewise.
25180         (log2_test_data): Likewise.
25181         (logb_test_data): Likewise.
25182         (lround_test_data): Likewise.
25183         (llround_test_data): Likewise.
25184         (modf_test_data): Likewise.
25185         (nearbyint_test_data): Likewise.
25186         (nextafter_test_data): Likewise.
25187         (nexttoward_test_data): Likewise.
25188         (pow_test_data): Likewise.
25189         (remainder_test_data): Likewise.
25190         (remquo_test_data): Likewise.
25191         (rint_test_data): Likewise.
25192         (round_test_data): Likewise.
25193         (signbit_test_data): Likewise.
25194         (sinh_test_data): Likewise.
25195         (sqrt_test_data): Likewise.
25196         (tanh_test_data): Likewise.
25197         (tgamma_test_data): Likewise.
25198         (trunc_test_data): Likewise.
25199         (y0_test_data): Likewise.
25200         (y1_test_data): Likewise.
25201         (yn_test_data): Likewise.
25202         (significand_test_data): Likewise.
25203
25204 2015-09-29  Carlos O'Donell  <carlos@redhat.com>
25205
25206         * manual/filesys.texi (Storage Allocation): Document that
25207         posix_fallocate emulation fails when fd is open with O_WRONLY.
25208
25209 2015-09-28  Joseph Myers  <joseph@codesourcery.com>
25210
25211         [BZ #19016]
25212         * sysdeps/generic/math_private.h (__x2y2m1f): Update comment to
25213         allow more cases with X^2 + Y^2 >= 0.5.
25214         * sysdeps/ieee754/dbl-64/x2y2m1.c (__x2y2m1): Likewise.  Add -1 as
25215         normal element in sum instead of special-casing based on values of
25216         arguments.
25217         * sysdeps/ieee754/dbl-64/x2y2m1f.c (__x2y2m1f): Update comment.
25218         * sysdeps/ieee754/ldbl-128/x2y2m1l.c (__x2y2m1l): Likewise.  Add
25219         -1 as normal element in sum instead of special-casing based on
25220         values of arguments.
25221         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c (__x2y2m1l): Likewise.
25222         * sysdeps/ieee754/ldbl-96/x2y2m1.c [FLT_EVAL_METHOD != 0]
25223         (__x2y2m1): Update comment.
25224         * sysdeps/ieee754/ldbl-96/x2y2m1l.c (__x2y2m1l): Likewise.  Add -1
25225         as normal element in sum instead of special-casing based on values
25226         of arguments.
25227         * math/s_clog.c (__clog): Handle more cases using log1p without
25228         hypot.
25229         * math/s_clog10.c (__clog10): Likewise.
25230         * math/s_clog10f.c (__clog10f): Likewise.
25231         * math/s_clog10l.c (__clog10l): Likewise.
25232         * math/s_clogf.c (__clogf): Likewise.
25233         * math/s_clogl.c (__clogl): Likewise.
25234         * math/auto-libm-test-in: Add more tests of clog and clog10.
25235         * math/auto-libm-test-out: Regenerated.
25236         * sysdeps/i386/fpu/libm-test-ulps: Update.
25237         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25238
25239 2015-09-28  Martin Sebor  <msebor@redhat.com>
25240
25241         [BZ #18969]
25242         * string/Makefile (LOCALES): Define.
25243         (gen-locales.mk): Include.
25244         (test-strcasecmp.out, test-strncasecmp.out, tst-strxfrm.out)
25245         (tst-strxfrm2.out): Add deppendency on $(gen-locales).
25246         * string/tst-strxfrm2.c (do_test): Print the name of the locale
25247         on setlocale failure.
25248
25249 2015-09-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
25250
25251         [BZ #18985]
25252         * time/strftime_l.c (a_wkday, f_wkday, a_month, f_month): Range check.
25253         (__strftime_internal): Likewise.
25254         * time/tst-strftime.c (do_bz18985): New test.
25255         (do_test): Call it.
25256
25257 2015-09-26  Joseph Myers  <joseph@codesourcery.com>
25258
25259         [BZ #18956]
25260         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Add 0x00400000
25261         not 0x0040000 for high bit of mantissa.  Mask with 0xfffff000 when
25262         extracting high part.
25263         * math/auto-libm-test-in: Add another test of pow.
25264         * math/auto-libm-test-out: Regenerated.
25265         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25266
25267 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
25268
25269         [BZ #18825]
25270         * sysdeps/i386/fpu/i386-math-asm.h (FLT_NARROW_EVAL_UFLOW_NONNAN):
25271         New macro.
25272         (DBL_NARROW_EVAL_UFLOW_NONNAN): Likewise.
25273         (LDBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
25274         * sysdeps/i386/fpu/e_pow.S: Use DEFINE_DBL_MIN.
25275         (__ieee754_pow): Use DBL_NARROW_EVAL_UFLOW_NONNAN instead of
25276         DBL_NARROW_EVAL, reloading the PIC register as needed.
25277         * sysdeps/i386/fpu/e_powf.S: Use DEFINE_FLT_MIN.
25278         (__ieee754_powf): Use FLT_NARROW_EVAL_UFLOW_NONNAN instead of
25279         FLT_NARROW_EVAL.  Use separate return path for case when first
25280         argument is NaN.
25281         * sysdeps/i386/fpu/e_powl.S: Include <i386-math-asm.h>.  Use
25282         DEFINE_LDBL_MIN.
25283         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN, reloading the
25284         PIC register.
25285         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use
25286         math_check_force_underflow_nonneg.
25287         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Force
25288         underflow for subnormal result.
25289         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
25290         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Use
25291         math_check_force_underflow_nonneg.
25292         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Use
25293         math_check_force_underflow.
25294         * sysdeps/x86_64/fpu/x86_64-math-asm.h
25295         (LDBL_CHECK_FORCE_UFLOW_NONNAN): New macro.
25296         * sysdeps/x86_64/fpu/e_powl.S: Include <x86_64-math-asm.h>.  Use
25297         DEFINE_LDBL_MIN.
25298         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN.
25299         * math/auto-libm-test-in: Add more tests of pow.
25300         * math/auto-libm-test-out: Regenerated.
25301
25302 2015-09-25  Florian Weimer  <fweimer@redhat.com>
25303
25304         * nss/bug17079.c (init_test_items): Add diagnostic for
25305         inconsistent entries.
25306         (test_buffer_size): Skip inconsistent entries.
25307
25308 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
25309
25310         [BZ #13304]
25311         * sysdeps/m68k/coldfire/nofpu/s_fma.c: New file.
25312         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
25313         * sysdeps/m68k/coldfire/nofpu/sfp-machine.h: Likewise.
25314
25315         [BZ #13304]
25316         * sysdeps/microblaze/s_fma.c: New file.
25317         * sysdeps/microblaze/s_fmaf.c: Likewise.
25318         * sysdeps/microblaze/sfp-machine.h: Likewise.
25319
25320 2015-09-25  Maciej W. Rozycki  <macro@imgtec.com>
25321
25322         [BZ #17250]
25323         * elf/dl-support.c (_dl_main_map): Don't initialize l_flags_1
25324         member.
25325
25326 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
25327
25328         [BZ #18803]
25329         * sysdeps/i386/fpu/e_hypot.S: Use DEFINE_DBL_MIN.
25330         (MO): New macro.
25331         (__ieee754_hypot) [PIC]: Load PIC register.
25332         (__ieee754_hypot): Use DBL_NARROW_EVAL_UFLOW_NONNEG instead of
25333         DBL_NARROW_EVAL.
25334         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Use
25335         math_check_force_underflow_nonneg in case where result might be
25336         tiny.
25337         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
25338         Likewise.
25339         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
25340         Likewise.
25341         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
25342         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
25343         * math/auto-libm-test-in: Add more tests of hypot.
25344         * math/auto-libm-test-out: Regenerated.
25345
25346 2015-09-24  Steve Ellcey  <sellcey@imgtec.com>
25347
25348         * sysdeps/mips/math_private.h (libc_fesetenv_mips): Mark cw as unused.
25349
25350 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
25351
25352         * sysdeps/x86_64/fpu/x86_64-math-asm.h: New file.
25353         * sysdeps/x86_64/fpu/e_exp2l.S: Include <x86_64-math-asm.h>.
25354         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
25355         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
25356         * sysdeps/x86_64/fpu/e_expl.S: Include <x86_64-math-asm.h>.
25357         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
25358         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
25359
25360         * sysdeps/i386/fpu/e_atanh.S (__ieee754_atanh) [PIC]: Use
25361         LOAD_PIC_REG.
25362
25363         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_LDBL_MIN): New macro.
25364         (FLT_CHECK_FORCE_UFLOW): Likewise.
25365         (DBL_CHECK_FORCE_UFLOW): Likewise.
25366         (FLT_CHECK_FORCE_UFLOW_NARROW): Likewise.
25367         (DBL_CHECK_FORCE_UFLOW_NARROW): Likewise.
25368         (LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN): Likewise.
25369         (FLT_CHECK_FORCE_UFLOW_NONNAN): Likewise.
25370         (DBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
25371         (FLT_CHECK_FORCE_UFLOW_NONNEG): Likewise.
25372         (DBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
25373         (LDBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
25374         * sysdeps/i386/fpu/e_asin.S: Include <i386-math-asm.h>.
25375         (dbl_min): Replace with use of DEFINE_DBL_MIN.
25376         (__ieee754_asin): Use DBL_CHECK_FORCE_UFLOW.
25377         * sysdeps/i386/fpu/e_asinf.S: Include <i386-math-asm.h>.
25378         (flt_min): Replace with use of DEFINE_FLT_MIN.
25379         (__ieee754_asinf): Use FLT_CHECK_FORCE_UFLOW.
25380         * sysdeps/i386/fpu/e_atan2.S: Include <i386-math-asm.h>.
25381         (dbl_min): Replace with use of DEFINE_DBL_MIN.
25382         (__ieee754_atan2): Use DBL_CHECK_FORCE_UFLOW_NARROW.
25383         * sysdeps/i386/fpu/e_atan2f.S: Include <i386-math-asm.h>.
25384         (flt_min): Replace with use of DEFINE_FLT_MIN.
25385         (__ieee754_atan2f): Use FLT_CHECK_FORCE_UFLOW_NARROW.
25386         * sysdeps/i386/fpu/e_atanh.S: Include <i386-math-asm.h>.
25387         (dbl_min): Replace with use of DEFINE_DBL_MIN.
25388         (__ieee754_atanh): Use DBL_CHECK_FORCE_UFLOW_NONNEG.
25389         * sysdeps/i386/fpu/e_atanhf.S: Include <i386-math-asm.h>.
25390         (flt_min): Replace with use of DEFINE_FLT_MIN.
25391         (__ieee754_atanhf): Use FLT_CHECK_FORCE_UFLOW_NONNEG.
25392         * sysdeps/i386/fpu/e_exp2l.S: Include <i386-math-asm.h>.
25393         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
25394         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
25395         * sysdeps/i386/fpu/e_expl.S: Include <i386-math-asm.h>.
25396         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
25397         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
25398         * sysdeps/i386/fpu/s_atan.S: Include <i386-math-asm.h>.
25399         (dbl_min): Replace with use of DEFINE_DBL_MIN.
25400         (__atan): Use DBL_CHECK_FORCE_UFLOW.
25401         * sysdeps/i386/fpu/s_atanf.S: Include <i386-math-asm.h>.
25402         (flt_min): Replace with use of DEFINE_FLT_MIN.
25403         (__atanf): Use FLT_CHECK_FORCE_UFLOW.
25404         * sysdeps/i386/fpu/s_expm1.S: Include <i386-math-asm.h>.
25405         (dbl_min): Replace with use of DEFINE_DBL_MIN.
25406         (__expm1): Use DBL_CHECK_FORCE_UFLOW.  Move underflow check after
25407         main computation.
25408         * sysdeps/i386/fpu/s_expm1f.S: Include <i386-math-asm.h>.
25409         (flt_min): Replace with use of DEFINE_FLT_MIN.
25410         (__expm1f): Use FLT_CHECK_FORCE_UFLOW.  Move underflow check after
25411         main computation.
25412         * sysdeps/i386/fpu/s_log1p.S: Include <i386-math-asm.h>.
25413         (dbl_min): Replace with use of DEFINE_DBL_MIN.
25414         (MO): New macro.
25415         (__log1p): Use MO.  Use DBL_CHECK_FORCE_UFLOW_NONNAN.
25416         * sysdeps/i386/fpu/s_log1pf.S: Include <i386-math-asm.h>.
25417         (flt_min): Replace with use of DEFINE_FLT_MIN.
25418         (MO): New macro.
25419         (__log1pf): Use MO.  Use FLT_CHECK_FORCE_UFLOW_NONNAN.
25420         * sysdeps/i386/fpu/s_log1pl.S (MO): New macro.
25421         (__log1pl): Use MO.
25422
25423         [BZ #19003]
25424         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma4.c): Add
25425         $(config-cflags-nofma).
25426
25427 2015-09-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25428
25429         * sysdeps/aarch64/libm-test-ulps: Regenerated.
25430
25431 2015-09-23  Joseph Myers  <joseph@codesourcery.com>
25432
25433         * sysdeps/ieee754/flt-32/e_exp2f.c (TWOM100): Remove volatile.
25434         (TWO127): Likewise.
25435
25436         * sysdeps/generic/math_private.h (fabs_tg): New macro.
25437         (min_of_type): Likewise.
25438         (math_check_force_underflow): Likewise.
25439         (math_check_force_underflow_nonneg): Likewise.
25440         (math_check_force_underflow_complex): Likewise.
25441         * math/e_exp2l.c (__ieee754_exp2l): Use
25442         math_check_force_underflow_nonneg.
25443         * math/k_casinh.c (__kernel_casinh): Likewise.
25444         * math/k_casinhf.c (__kernel_casinhf): Likewise.
25445         * math/k_casinhl.c (__kernel_casinhl): Likewise.
25446         * math/s_catan.c (__catan): Use
25447         math_check_force_underflow_complex.
25448         * math/s_catanf.c (__catanf): Likewise.
25449         * math/s_catanh.c (__catanh): Likewise.
25450         * math/s_catanhf.c (__catanhf): Likewise.
25451         * math/s_catanhl.c (__catanhl): Likewise.
25452         * math/s_catanl.c (__catanl): Likewise.
25453         * math/s_ccosh.c (__ccosh): Likewise.
25454         * math/s_ccoshf.c (__ccoshf): Likewise.
25455         * math/s_ccoshl.c (__ccoshl): Likewise.
25456         * math/s_cexp.c (__cexp): Likewise.
25457         * math/s_cexpf.c (__cexpf): Likewise.
25458         * math/s_cexpl.c (__cexpl): Likewise.
25459         * math/s_clog.c (__clog): Use math_check_force_underflow_nonneg.
25460         * math/s_clog10.c (__clog10): Likewise.
25461         * math/s_clog10f.c (__clog10f): Likewise.
25462         * math/s_clog10l.c (__clog10l): Likewise.
25463         * math/s_clogf.c (__clogf): Likewise.
25464         * math/s_clogl.c (__clogl): Likewise.
25465         * math/s_csin.c (__csin): Use math_check_force_underflow_complex.
25466         * math/s_csinf.c (__csinf): Likewise.
25467         * math/s_csinh.c (__csinh): Likewise.
25468         * math/s_csinhf.c (__csinhf): Likewise.
25469         * math/s_csinhl.c (__csinhl): Likewise.
25470         * math/s_csinl.c (__csinl): Likewise.
25471         * math/s_csqrt.c (__csqrt): Use math_check_force_underflow.
25472         * math/s_csqrtf.c (__csqrtf): Likewise.
25473         * math/s_csqrtl.c (__csqrtl): Likewise.
25474         * math/s_ctan.c (__ctan): Use math_check_force_underflow_complex.
25475         * math/s_ctanf.c (__ctanf): Likewise.
25476         * math/s_ctanh.c (__ctanh): Likewise.
25477         * math/s_ctanhf.c (__ctanhf): Likewise.
25478         * math/s_ctanhl.c (__ctanhl): Likewise.
25479         * math/s_ctanl.c (__ctanl): Likewise.
25480         * stdlib/strtod_l.c (round_and_return): Use math_force_eval
25481         instead of volatile.
25482         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use
25483         math_check_force_underflow.
25484         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
25485         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not use
25486         volatile when forcing underflow.
25487         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
25488         math_check_force_underflow_nonneg.
25489         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
25490         Likewise.
25491         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Use
25492         math_check_force_underflow.
25493         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
25494         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
25495         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
25496         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Use
25497         math_check_force_underflow_nonneg.
25498         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Use
25499         math_check_force_underflow.
25500         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
25501         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval
25502         instead of volatile.
25503         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Use
25504         math_check_force_underflow.
25505         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
25506         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
25507         math_check_force_underflow_nonneg.
25508         * sysdeps/ieee754/dbl-64/s_tanh.c (__tanh): Use
25509         math_check_force_underflow.
25510         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
25511         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
25512         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Use
25513         math_check_force_underflow_nonneg.
25514         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
25515         Likewise.
25516         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Use
25517         math_check_force_underflow.
25518         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
25519         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
25520         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
25521         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Likewise.
25522         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
25523         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Likewise.
25524         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
25525         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
25526         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
25527         * sysdeps/ieee754/flt-32/s_tanhf.c (__tanhf): Likewise.
25528         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
25529         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
25530         Likewise.
25531         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Use
25532         math_check_force_underflow_nonneg.
25533         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
25534         Likewise.
25535         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Use
25536         math_check_force_underflow.
25537         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
25538         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
25539         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
25540         Likewise.
25541         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
25542         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernel_tanl): Likewise.
25543         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__asinhl): Likewise.
25544         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Likewise.
25545         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Likewise.
25546         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
25547         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use math_force_eval
25548         instead of volatile.
25549         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Use
25550         math_check_force_underflow.
25551         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
25552         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Use
25553         math_check_force_underflow.
25554         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl):
25555         Likewise.
25556         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
25557         Use math_check_force_underflow_nonneg.
25558         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Use
25559         math_check_force_underflow.
25560         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
25561         Likewise.
25562         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
25563         Likewise.
25564         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
25565         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
25566         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
25567         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
25568         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Likewise.
25569         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
25570         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
25571         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
25572         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r): Use
25573         math_check_force_underflow_nonneg.
25574         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Use
25575         math_check_force_underflow.
25576         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
25577         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
25578         * sysdeps/ieee754/ldbl-96/k_sinl.c (__kernel_sinl): Likewise.
25579         * sysdeps/ieee754/ldbl-96/k_tanl.c (__kernel_tanl): Use
25580         math_check_force_underflow_nonneg.
25581         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Use
25582         math_check_force_underflow.
25583         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
25584         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Use math_force_eval
25585         instead of volatile.
25586         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Use
25587         math_check_force_underflow.
25588
25589         * math/s_nexttowardf.c (__nexttowardf): Use math_narrow_eval.
25590         * stdlib/strtod_l.c: Include <math_private.h>.
25591         (overflow_value): Use math_narrow_eval.
25592         (underflow_value): Likewise.
25593         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
25594         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
25595         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
25596         (__ieee754_gamma_r): Likewise.
25597         * sysdeps/ieee754/dbl-64/gamma_productf.c (__gamma_productf):
25598         Likewise.
25599         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
25600         Likewise.
25601         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
25602         * sysdeps/ieee754/dbl-64/s_erf.c (__erfc): Likewise.
25603         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
25604         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
25605         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
25606         (__ieee754_gammaf_r): Likewise.
25607         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
25608         Likewise.
25609         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
25610         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Likewise.
25611         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
25612         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
25613         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Do not use
25614         volatile.
25615         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
25616         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Use
25617         math_narrow_eval.
25618         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
25619         Likewise.
25620         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
25621         Likewise.
25622         * sysdeps/ieee754/ldbl-96/gamma_product.c (__gamma_product):
25623         Likewise.
25624         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Do not use
25625         volatile.
25626         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
25627         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Use
25628         math_narrow_eval.
25629         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
25630         Likewise.
25631         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
25632         Likewise.
25633
25634 2015-09-22  H.J. Lu  <hongjiu.lu@intel.com>
25635
25636         * nptl/Versions: Remove ignored symbols.
25637
25638 2015-09-22  Florian Weimer  <fweimer@redhat.com>
25639
25640         * nss/bug17079.c: Renamed from nss/bug18287.c.  Add description.
25641         * nss/Makefile (tests): Update.
25642
25643 2015-09-22  Florian Weimer  <fweimer@redhat.com>
25644
25645         * nss/bug18287.c: New file.
25646         * nss/Makefile (tests): Add bug18287.
25647
25648 2015-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25649
25650         * mach/Versions (__mach_host_self_): Add symbol.
25651
25652 2015-09-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25653
25654         * sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of
25655         vm_page_size.
25656
25657 2015-09-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25658
25659         Really fix sysdeps/i386/fpu/s_scalbn.S build
25660
25661         * math/Versions (libc: GLIBC_2_20): New (empty) version set.
25662         (libc: GLIBC_2_22): Remove unused version set.
25663
25664 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
25665
25666         * config.make.in (enable-timezone-tools): New variable.
25667         * configure.ac (AC_ARG_ENABLE(timezone-tools)): New configure flag.
25668         (enable_timezone_tools): Export to generated files.
25669         * configure: Regenerate.
25670         * INSTALL: Regenerate.
25671         * manual/install.texi (--disable-timezone-tools): Document new flag.
25672         * timezone/Makefile (install-sbin, install-bin-script): Wrap in a
25673         ifeq ($(enable-timezone-tools),yes) check.
25674
25675 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
25676
25677         * timezone/Makefile: Revert previous change.
25678
25679         [BZ #18980]
25680         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_FLT_MIN): New macro.
25681         (DEFINE_DBL_MIN): Likewise.
25682         (FLT_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
25683         (DBL_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
25684         (FLT_NARROW_EVAL_UFLOW_NONNEG): Likewise.
25685         (DBL_NARROW_EVAL_UFLOW_NONNEG): Likewise.
25686         * sysdeps/i386/fpu/e_exp.S: Include <i386-math-asm.h>.
25687         (dbl_min): Replace with use of DEFINE_DBL_MIN.
25688         (__ieee754_exp): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
25689         (__exp_finite): Use DBL_NARROW_EVAL_UFLOW_NONNEG.
25690         * sysdeps/i386/fpu/e_exp10.S: Include <i386-math-asm.h>.
25691         (dbl_min): Replace with use of DEFINE_DBL_MIN.
25692         (__ieee754_exp10): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
25693         * sysdeps/i386/fpu/e_exp10f.S: Include <i386-math-asm.h>.
25694         (flt_min): Replace with use of DEFINE_FLT_MIN.
25695         (__ieee754_exp10f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
25696         * sysdeps/i386/fpu/e_exp2.S: Include <i386-math-asm.h>.
25697         (dbl_min): Replace with use of DEFINE_DBL_MIN.
25698         (__ieee754_exp2): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
25699         * sysdeps/i386/fpu/e_exp2f.S: Include <i386-math-asm.h>.
25700         (flt_min): Replace with use of DEFINE_FLT_MIN.
25701         (__ieee754_exp2f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
25702         * sysdeps/i386/fpu/e_expf.S: Include <i386-math-asm.h>.
25703         (flt_min): Replace with use of DEFINE_FLT_MIN.
25704         (__ieee754_expf): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
25705         (__expf_finite): Use FLT_NARROW_EVAL_UFLOW_NONNEG.
25706         * sysdeps/i386/fpu/e_hypot.S: Include <i386-math-asm.h>.
25707         (__ieee754_hypot): Use DBL_NARROW_EVAL.
25708         * sysdeps/i386/fpu/e_hypotf.S: Include <i386-math-asm.h>.
25709         (__ieee754_hypotf): Use FLT_NARROW_EVAL.
25710         * sysdeps/i386/fpu/e_pow.S: Include <i386-math-asm.h>.
25711         (__ieee754_pow): Use DBL_NARROW_EVAL.
25712         * sysdeps/i386/fpu/e_powf.S: Include <i386-math-asm.h>.
25713         (__ieee754_powf): Use FLT_NARROW_EVAL.
25714         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S
25715         (__ieee754_expf_sse2): Convert double-precision result to single
25716         precision.
25717         * sysdeps/i386/fpu/libm-test-ulps: Update.
25718
25719 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
25720
25721         * timezone/Makefile: Ignore unused variable errors due to private.h
25722         (time_t_min) and (time_t_max).
25723         * timezone/private.h (time_t_min): Revert removal.  (time_t_max):
25724         Likewise.
25725
25726 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
25727
25728         [BZ #18981]
25729         * sysdeps/i386/fpu/i386-math-asm.h: New file.
25730         * sysdeps/i386/fpu/e_scalb.S: Include <i386-math-asm.h>.
25731         (__ieee754_scalb): Use DBL_NARROW_EVAL.
25732         * sysdeps/i386/fpu/e_scalbf.S: Include <i386-math-asm.h>.
25733         (__ieee754_scalbf): Use FLT_NARROW_EVAL.
25734         * sysdeps/i386/fpu/s_scalbn.S: Include <i386-math-asm.h>.
25735         (__scalbn): Use DBL_NARROW_EVAL.
25736         * sysdeps/i386/fpu/s_scalbnf.S: Include <i386-math-asm.h>.
25737         (__scalbnf): Use FLT_NARROW_EVAL.
25738
25739 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
25740
25741         * math/w_tgamma.c (__ieee754_gamma_r): Use explicit sign check.
25742         * math/w_tgammaf.c (__ieee754_gammaf_r): Likewise.
25743         * math/w_tgammal.c (__ieee754_gammal_r): Likewise.
25744         * stdio-common/printf_fp.c (___printf_fp):
25745         Use signbit to get the sign. Use isinf macro to allow inlining.
25746         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.
25747         * stdio-common/printf_size.c (__printf_size): Likewise.
25748
25749 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
25750
25751         * timezone/Makefile ($(testdata)/XT%): Call $(make-target-directory).
25752
25753 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
25754
25755         [BZ #18980]
25756         * sysdeps/generic/math_private.h: Include <float.h>.
25757         (math_narrow_eval): New macro.
25758         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
25759         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Use
25760         math_narrow_eval on overflowing return value.
25761         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r):
25762         Likewise.
25763         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
25764         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Likewise.
25765         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r):
25766         Likewise.
25767         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
25768
25769 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
25770
25771         * include/math.h: Remove __isinf_ns, __isinf_nsf, __isinf_nsl.
25772         * math/Makefile: Remove isinf_ns.c.
25773         * math/divtc3.c (__divtc3): Replace __isinf_nsl with isinf.
25774         * math/multc3.c (__multc3): Likewise.
25775         * math/s_casin.c (__casin): Likewise.
25776         * math/s_casinf.c (__casinf): Likewise.
25777         * math/s_casinl.c (__casinl): Likewise.
25778         * math/s_cproj.c (__cproj): Likewise.
25779         * math/s_cprojf.c (__cprojf): Likewise.
25780         * math/s_cprojl.c (__cprofl): Likewise.
25781         * math/s_ctan.c (__ctan): Likewise.
25782         * math/s_ctanf.c (__ctanf): Likewise.
25783         * math/s_ctanh.c (__ctanh): Likewise.
25784         * math/s_ctanhf.c (__ctanhf): Likewise.
25785         * math/s_ctanhl.c (__ctanhl): Likewise.
25786         * math/s_ctanl.c (__ctanl): Likewise.
25787         * math/w_fmod.c (__fmod): Likewise.
25788         * math/w_fmodf.c (__fmodf): Likewise.
25789         * math/w_fmodl.c (_fmodl): Likewise.
25790         * math/w_remainder.c (__remainder): Likewise.
25791         * math/w_remainderf.c (__remainderf): Likewise.
25792         * math/w_remainderl.c (__remainderl): Likewise.
25793         * math/w_scalb.c (__scalb): Likewise.
25794         * math/w_scalbf.c (__scalbf): Likewise.
25795         * math/w_scalbl.c (__scalbl): Likewise.
25796         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Deleted file.
25797         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Replace __isinf_ns
25798         with isinf.
25799         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Deleted file.
25800         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Deleted file.
25801         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Replace
25802         __isinf_nsf with isinf.
25803         * sysdeps/ieee754/flt-32/math_private.h: Deleted file.
25804         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Deleted file.
25805         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Deleted file.
25806         * sysdeps/ieee754/ldbl-128/s_sincosl.c (__sincosl): Replace __isinf_nsl
25807         with isinf.
25808         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c(__cprojll): Replace
25809         __isinf_nsl with isinf.
25810         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c(__ctanl): Replace __isinf_nsl
25811         with isinf.
25812         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Deleted file.
25813         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Replace
25814         __isinf_nsl with isinf.
25815         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Deleted file.
25816         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Replace __isinf_nsl
25817         with isinf.
25818
25819 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
25820
25821         * resolv/base64.c (rcsid): Remove unused static.
25822         * sysdeps/ieee754/dbl-64/atnat2.h (qpi1): Remove unused
25823         static.  (tqpi1): Likewise.
25824         * sysdeps/ieee754/dbl-64/uexp.h (one): Likewise.
25825         * sysdeps/ieee754/dbl-64/upow.h (sqrt_2): Likewise.
25826         * sysdeps/ieee754/flt-32/e_log10f.c (one): Likewise.
25827         * sysdeps/ieee754/flt-32/s_cosf.c (one): Likewise.
25828         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (zero): Likewise.
25829         * sysdeps/ieee754/ldbl-128/s_erfl.c (half): Likewise.
25830         * sysdeps/ieee754/ldbl-128/s_log1pl.c (maxlog): Likewise.
25831         * timezone/private.h (time_t_min): Likewise.  (time_t_max):
25832         Likewise.
25833
25834 2015-09-18  H.J. Lu  <hongjiu.lu@intel.com>
25835
25836         * sysdeps/nptl/jmp-unwind.c: Include <libc-lock.h> instead of
25837         <nptl/pthreadP.h>.
25838         (_longjmp_unwind): Use __libc_ptf_call.
25839         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
25840
25841 2015-09-18  David Lamparter  <equinox-gentoo@diac24.net>
25842
25843         * sysdeps/arm/setjmp.S: Change PIC to SHARED.
25844         * sysdeps/arm/__longjmp.S: Likewise.
25845
25846 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
25847
25848         * sysdeps/ieee754/dbl-64/s_signbit.c (__signbit):
25849         Use __builtin_signbit.
25850         * sysdeps/ieee754/flt-32/s_signbitf.c (__signbitf):
25851         Use __builtin_signbitf.
25852         * sysdeps/ieee754/ldbl-128/s_signbitl.c (__signbitl):
25853         Use __builtin_signbitl.
25854         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
25855         * sysdeps/ieee754/ldbl-96/s_signbitl.c (__signbitl): Likewise.
25856
25857 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
25858
25859         [BZ #15367]
25860         [BZ #17441]
25861
25862         * math/Makefile: Build test-snan.c with -fsignaling-nans.
25863         * math/math.h (fpclassify): Use __builtin_fpclassify when
25864         available.  (signbit): Use __builtin_signbit(f/l).
25865         (isfinite): Use__builtin_isfinite.  (isnormal): Use
25866         __builtin_isnormal.  (isnan): Use __builtin_isnan.
25867         (isinf): Use __builtin_isinf_sign.
25868
25869 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
25870
25871         * benchtests/Makefile: Add bench-math-inlines, link with libm.
25872         * benchtests/bench-math-inlines.c: New benchmark.
25873         * benchtests/bench-util.h: New file.
25874         * benchtests/bench-util.c: New file.
25875         * benchtests/bench-skeleton.c: Add include of bench-util.c/h.
25876
25877 2015-09-18  Carlos O'Donell  <carlos@redhat.com>
25878
25879         * elf/tst-dlmopen1.c: Define TEST_SO.
25880         (do_test): Use TEST_SO.
25881
25882         * elf/dl-load.c: Include libc-internal.h.
25883         (_dl_map_object_from_fd): Use ALIGN_UP and ALIGN_DOWN.
25884
25885 2015-09-18  Vincent Bernat  <vincent@bernat.im>
25886
25887         [BZ #17887]
25888         * time/strptime_l.c (__strptime_internal): Make %z accept
25889         [+-]HH:MM time zones.
25890
25891 2015-09-18  Vincent Bernat  <vincent@bernat.im>
25892
25893         [BZ #17886]
25894         * time/strptime_l.c (__strptime_internal): Make %z accept Z as a
25895         valid time zone.
25896
25897 2015-09-17  Mike Frysinger  <vapier@gentoo.org>
25898
25899         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-fdatasync.c): Delete.
25900         * sysdeps/unix/sysv/linux/alpha/fdatasync.c: Delete.
25901         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
25902         (__ASSUME_FDATASYNC): Delete.
25903
25904 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
25905
25906         * conform/linknamespace.pl: Require weak undefined symbols to be
25907         in the standard namespace.
25908         (%strong_syms): Rename to %seen_syms.
25909         (%strong_seen): Rename to %seen_where.
25910
25911 2015-09-17  H.J. Lu  <hongjiu.lu@intel.com>
25912
25913         [BZ #18970]
25914         * misc/error.c (error): Replace pthread_setcancelstate with
25915         __pthread_setcancelstate.
25916         (error_at_line): Likewise.
25917         * posix/wordexp.c (parse_comm): Likewise.
25918         * stdlib/fmtmsg.c (fmtmsg): Likewise.
25919         * nptl/forward.c (pthread_setcancelstate): Renamed to ...
25920         (__pthread_setcancelstate): This.
25921         (pthread_setcancelstate): Add an alias.
25922         * nptl/nptl-init.c (pthread_functions): Replace
25923         ptr_pthread_setcancelstate with ptr___pthread_setcancelstate.
25924         * sysdeps/nptl/pthread-functions.h (pthread_functions): Likewise.
25925         * nptl/pthreadP.h (__pthread_setcancelstate): Mark it with
25926         hidden_proto.
25927         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate): Mark
25928         it with hidden_def.
25929         * sysdeps/nptl/libc-lockP.h (__pthread_setcancelstate): New.
25930         (pthread_setcancelstate): Renamed to ...
25931         (__pthread_setcancelstate): This.
25932         * sysdeps/unix/sysv/linux/fatal-prepare.h (FATAL_PREPARE): Use
25933         __libc_ptf_call with __pthread_setcancelstate.
25934
25935 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
25936             Andreas Schwab  <schwab@suse.de>
25937
25938         [BZ #17118]
25939         * math/s_ctan.c (__ctan): Determine sign of zero real part of
25940         result when imaginary part of argument is infinite using sine and
25941         cosine.
25942         * math/s_ctanf.c (__ctanf): Likewise.
25943         * math/s_ctanl.c (__ctanl): Likewise.
25944         * math/s_ctanh.c (__ctanh): Determine sign of zero imaginary part
25945         of result when real part of argument is infinite using sine and
25946         cosine.
25947         * math/s_ctanhf.c (__ctanhf): Likewise.
25948         * math/s_ctanhl.c (__ctanhl): Likewise.
25949         * math/libm-test.inc (ctan_test_data): Add more tests of ctan.
25950         (ctanh_test_data): Add more tests of ctanh.
25951
25952 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
25953
25954         [BZ #15384]
25955         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Use same constant as
25956         bit-mask as in subtraction.
25957         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c (__finite):
25958         Likewise.
25959         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
25960         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
25961         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (__finitel): Likewise.
25962
25963         [BZ #18951]
25964         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Force
25965         underflow exception for small results.
25966         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
25967         Likewise.
25968         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
25969         Likewise.
25970         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
25971         Likewise.
25972         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
25973         Likewise.
25974         * math/auto-libm-test-in: Add more tests of tgamma.
25975         * math/auto-libm-test-out: Regenerated.
25976
25977 2015-09-17  Andreas Schwab  <schwab@suse.de>
25978
25979         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Readd.
25980
25981 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
25982
25983         [BZ #18977]
25984         * math/bits/mathcalls.h
25985         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j0): Do
25986         not declare.
25987         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j1):
25988         Likewise.
25989         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (jn):
25990         Likewise.
25991         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y0):
25992         Likewise.
25993         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y1):
25994         Likewise.
25995         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (yn):
25996         Likewise.
25997         * conform/data/math.h-data
25998         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0f): Do not expect
25999         function.
26000         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1f): Likewise.
26001         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnf): Likewise.
26002         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0f): Likewise.
26003         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1f): Likewise.
26004         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynf): Likewise.
26005         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0l): Likewise.
26006         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1l): Likewise.
26007         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnl): Likewise.
26008         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0l): Likewise.
26009         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1l): Likewise.
26010         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynl): Likewise.
26011
26012         [BZ #6803]
26013         * math/s_ldexp.c (scalbn): Define as weak alias of __ldexp.
26014         [NO_LONG_DOUBLE] (scalbnl): Define as weak alias of __ldexp.
26015         * math/s_ldexpf.c (scalbnf): Define as weak alias of __ldexpf.
26016         * math/s_ldexpl.c (scalbnl): Define as weak alias of __ldexpl.
26017         * sysdeps/i386/fpu/s_scalbn.S (scalbn): Remove alias.
26018         * sysdeps/i386/fpu/s_scalbnf.S (scalbnf): Likewise.
26019         * sysdeps/i386/fpu/s_scalbnl.S (scalbnl): Likewise.
26020         * sysdeps/ieee754/dbl-64/s_scalbn.c (scalbn): Likewise.
26021         [NO_LONG_DOUBLE] (scalbnl): Likewise.
26022         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (scalbn):
26023         Likewise.
26024         [NO_LONG_DOUBLE] (scalbnl): Likewise.
26025         * sysdeps/ieee754/flt-32/s_scalbnf.c (scalbnf): Likewise.
26026         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (scalbnl): Likewise.
26027         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (scalbnl): Remove
26028         long_double_symbol calls.
26029         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c (scalbnl): Likewise.
26030         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (__ldexpl_2): Define as
26031         strong alias of __ldexpl.
26032         (scalbnl): Define using long_double_symbol.
26033         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(scalbn,suffix)):
26034         Remove alias.
26035         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c (scalbnl): Likewise.
26036         * sysdeps/x86_64/fpu/s_scalbnl.S (scalbnl): Likewise.
26037         * math/libm-test.inc (scalbn_test_data): Add errno expectations.
26038         (scalbln_test_data): Add more errno expectations.
26039
26040 2015-09-16  Justus Winter  <4winter@informatik.uni-hamburg.de>
26041
26042         Cache the host port like we cache the task port.  This way we do not
26043         need to call the kernel just to get the port.  Furthermore, we no
26044         longer increase the reference count on every invocation of
26045         `mach_host_self'.
26046
26047         * mach/mach/mach_traps.h (__mach_host_self, mach_host_self):
26048         Protect declarations against the macro expansion.
26049         * mach/mach_init.c (__mach_host_self_): New variable.
26050         (mach_init): Initialize `__mach_host_self_'.
26051         * mach/mach_init.h (__mach_host_self_): New declaration.
26052         (__mach_host_self, mach_host_self): New macros.
26053         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup):
26054         Release reference.
26055
26056 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
26057
26058         [BZ #4404]
26059         * po/de.po: Update from Translation Project.
26060
26061         [BZ #16415]
26062         * sysdeps/ieee754/ldbl-128/s_expm1l.c (maxlog): Remove variable.
26063         (__expm1l): Remove code to handle positive infinity and overflow.
26064         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (maxlog): Remove
26065         variable.
26066         (__expm1l): Remove code to handle positive infinity and overflow.
26067
26068 2015-09-16  Paul Eggert  <eggert@cs.ucla.edu>
26069             Paul Pluzhnikov  <ppluzhnikov@google.com>
26070
26071         [BZ #18872]
26072         * stdio-common/Makefile (tst-printf-bz18872): New test.
26073         (tst-printf-bz18872-mem.out): Likewise.
26074         * stdio-common/tst-printf-bz18872.sh: Generate new test.
26075         * stdio-common/vfprintf.c: Fix memory leaks.
26076
26077 2015-09-16  Andreas Schwab  <schwab@suse.de>
26078
26079         [BZ #17244]
26080         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
26081         Remove extra va_start/va_end calls.
26082
26083         [BZ #17243]
26084         * posix/execl.c (execl): Add missing va_end.
26085         * posix/execle.c (execle): Likewise.
26086         * posix/execlp.c (execlp): Likewise.
26087
26088 2015-09-15  Roland McGrath  <roland@hack.frob.com>
26089
26090         * misc/sys/param.h [!MAXHOSTNAMELEN && HOST_NAME_MAX]
26091         (MAXHOSTNAMELEN): Define it to HOST_NAME_MAX.
26092
26093 2015-09-15  Joseph Myers  <joseph@codesourcery.com>
26094
26095         [BZ #18967]
26096         * math/math.h (__MATH_DECLARING_DOUBLE): New macro.  Define and
26097         undefine around includes of <bits/mathcalls.h>.
26098         * math/bits/mathcalls.h [!__USE_MISC && __USE_XOPEN2K] (isnan): Do
26099         not declare function.
26100         [!__USE_MISC && __USE_XOPEN2K] (gamma): Likewise.
26101         [!__USE_MISC && (!__MATH_DECLARING_DOUBLE || __USE_XOPEN2K8)]
26102         (scalb): Likewise.
26103         * math/tgmath.h [!__USE_MISC && __USE_XOPEN_EXTENDED] (scalb): Do
26104         not define macro.
26105         * conform/Makefile (test-xfail-XOPEN2K/math.h/conform): Remove
26106         variable.
26107         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
26108         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
26109         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
26110
26111         [BZ #18857]
26112         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Just
26113         return non-finite argument without doing ordered comparisons on
26114         it.
26115
26116         [BZ #16296]
26117         * math/fenv.h (fegetround): Use __attribute_pure__.
26118         * include/fenv.h (__fegetround): Likewise.
26119
26120         [BZ #18595]
26121         * math/s_ctan.c (__ctan): Force underflow exception for results
26122         whose real or imaginary part has small absolute value.
26123         * math/s_ctanf.c (__ctanf): Likewise.
26124         * math/s_ctanh.c (__ctanh): Likewise.
26125         * math/s_ctanhf.c (__ctanhf): Likewise.
26126         * math/s_ctanhl.c (__ctanhl): Likewise.
26127         * math/s_ctanl.c (__ctanl): Likewise.
26128         * math/auto-libm-test-in: Do not allow missing underflow for ctan
26129         and ctanh.  Add more tests of ctan and ctanh.
26130
26131         [BZ #15918]
26132         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Simplify
26133         handling of cases where one argument is an infinity.
26134
26135         [BZ #18875]
26136         [BZ #18966]
26137         * sysdeps/i386/fpu/e_exp10.S (dbl_min): New object.
26138         (MO): New macro.
26139         (__ieee754_exp10): For small results, force underflow exception
26140         and remove excess range and precision from return value.
26141         * sysdeps/i386/fpu/e_exp10f.S (flt_min): New object.
26142         (MO): New macro.
26143         (__ieee754_exp10f): For small results, force underflow exception
26144         and remove excess range and precision from return value.
26145         * math/auto-libm-test-in: Add more tests of exp10.
26146         * math/auto-libm-test-out: Regenerated.
26147
26148 2015-09-14  Joseph Myers  <joseph@codesourcery.com>
26149
26150         [BZ #18875]
26151         [BZ #18961]
26152         * sysdeps/i386/fpu/e_exp.S (dbl_min): New object.
26153         (MO): New macro.
26154         (__ieee754_exp): For small results, force underflow exception and
26155         remove excess range and precision from return value.
26156         (__exp_finite): Likewise.
26157         * sysdeps/i386/fpu/e_expf.S (flt_min): New object.
26158         (MO): New macro.
26159         (__ieee754_expf): For small results, force underflow exception and
26160         remove excess range and precision from return value.
26161         (__expf_finite): Likewise.
26162         * math/auto-libm-test-in: Add more tests of exp.
26163         * math/auto-libm-test-out: Regenerated.
26164
26165         [BZ #16521]
26166         [BZ #18875]
26167         * math/e_exp2l.c (__ieee754_exp2l): Force underflow exception for
26168         small results.
26169         * sysdeps/i386/fpu/e_exp2.S (dbl_min): New object.
26170         (MO): New macro.
26171         (__ieee754_exp2): For small results, force underflow exception and
26172         remove excess range and precision from return value.
26173         * sysdeps/i386/fpu/e_exp2f.S (flt_min): New object.
26174         (MO): New macro.
26175         (__ieee754_exp2f): For small results, force underflow exception
26176         and remove excess range and precision from return value.
26177         * sysdeps/i386/fpu/e_exp2l.S (ldbl_min): New object.
26178         (MO): New macro.
26179         (__ieee754_exp2l): Force underflow exception for small results.
26180         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
26181         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
26182         * sysdeps/x86_64/fpu/e_exp2l.S (ldbl_min): New object.
26183         (MO): New macro.
26184         (__ieee754_exp2l): Force underflow exception for small results.
26185         * math/auto-libm-test-in: Add more tests or exp2.
26186         * math/auto-libm-test-out: Regenerated.
26187
26188 2015-09-14  Carlos O'Donell  <carlos@redhat.com>
26189
26190         * malloc/malloc.c (systrim): Use ALIGN_DOWN.
26191
26192         * Makefile ($(objpfx)check-local-headers.out): Redirect stdin from
26193         /dev/null.
26194
26195 2015-09-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26196
26197         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
26198         io fs process)): Drop spurious backslash.
26199
26200 2015-09-12  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
26201
26202         * sysdeps/unix/sysv/linux/getsysstats.c (__get_phys_pages):
26203         Use sysinfo system call instead of parsing /proc/meminfo.
26204         * sysdeps/unix/sysv/linux/getsysstats.c (__get_avphys_pages):
26205         Likewise.
26206
26207 2015-09-11  Mike Frysinger  <vapier@gentoo.org>
26208
26209         [BZ #16985]
26210         * programs/localedef.c (main): Display argv[remaining] when
26211         output_path is NULL.
26212
26213 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
26214
26215         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
26216         asinh, atan, atan2, atanh, cabs, carg, cos, csqrt, erfc, exp,
26217         exp10, exp2, log, log1p, log2, pow, sin, sincos, sinh, tan and
26218         tanh.
26219         * math/auto-libm-test-out: Regenerated.
26220         * sysdeps/i386/fpu/libm-test-ulps: Update.
26221         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
26222         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
26223         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26224
26225 2015-09-11  Roland McGrath  <roland@hack.frob.com>
26226
26227         * sysdeps/nacl/Makefile [$(subdir) = misc] (sysdep_headers):
26228         Use 'override' keyword to freeze the value here, preventing
26229         the addition of sys/mtio.h by sysdeps/gnu/Makefile.
26230
26231 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
26232
26233         [BZ #14912]
26234         * sysdeps/aarch64/bits/atomic.h: Move to ...
26235         * sysdeps/aarch64/atomic-machine.h: ...here.
26236         (_AARCH64_BITS_ATOMIC_H): Rename macro to
26237         _AARCH64_ATOMIC_MACHINE_H.
26238         * sysdeps/alpha/bits/atomic.h: Move to ...
26239         * sysdeps/alpha/atomic-machine.h: ...here.
26240         * sysdeps/arm/bits/atomic.h: Move to ...
26241         * sysdeps/arm/atomic-machine.h: ...here.  Update comments.
26242         * bits/atomic.h: Move to ...
26243         * sysdeps/generic/atomic-machine.h: ...here.
26244         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
26245         * sysdeps/i386/bits/atomic.h: Move to ...
26246         * sysdeps/i386/atomic-machine.h: ...here.
26247         * sysdeps/ia64/bits/atomic.h: Move to ...
26248         * sysdeps/ia64/atomic-machine.h: ...here.
26249         * sysdeps/m68k/coldfire/bits/atomic.h: Move to ...
26250         * sysdeps/m68k/coldfire/atomic-machine.h: ...here.
26251         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
26252         * sysdeps/m68k/m680x0/m68020/bits/atomic.h: Move to ...
26253         * sysdeps/m68k/m680x0/m68020/atomic-machine.h: ...here.
26254         * sysdeps/microblaze/bits/atomic.h: Move to ...
26255         * sysdeps/microblaze/atomic-machine.h: ...here.
26256         * sysdeps/mips/bits/atomic.h: Move to ...
26257         * sysdeps/mips/atomic-machine.h: ...here.
26258         (_MIPS_BITS_ATOMIC_H): Rename macro to _MIPS_ATOMIC_MACHINE_H.
26259         * sysdeps/powerpc/bits/atomic.h: Move to ...
26260         * sysdeps/powerpc/atomic-machine.h: ...here.  Update comments.
26261         * sysdeps/powerpc/powerpc32/bits/atomic.h: Move to ...
26262         * sysdeps/powerpc/powerpc32/atomic-machine.h: ...here.  Update
26263         comments.  Include <atomic-machine.h> instead of <bits/atomic.h>.
26264         * sysdeps/powerpc/powerpc64/bits/atomic.h: Move to ...
26265         * sysdeps/powerpc/powerpc64/atomic-machine.h: ...here.  Include
26266         <atomic-machine.h> instead of <bits/atomic.h>.
26267         * sysdeps/s390/bits/atomic.h: Move to ...
26268         * sysdeps/s390/atomic-machine.h: ...here.
26269         * sysdeps/sparc/sparc32/bits/atomic.h: Move to ...
26270         * sysdeps/sparc/sparc32/atomic-machine.h: ...here.
26271         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
26272         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Move to ...
26273         * sysdeps/sparc/sparc32/sparcv9/atomic-machine.h: ...here.
26274         * sysdeps/sparc/sparc64/bits/atomic.h: Move to ...
26275         * sysdeps/sparc/sparc64/atomic-machine.h: ...here.
26276         * sysdeps/tile/bits/atomic.h: Move to ...
26277         * sysdeps/tile/atomic-machine.h: ...here.
26278         * sysdeps/tile/tilegx/bits/atomic.h: Move to ...
26279         * sysdeps/tile/tilegx/atomic-machine.h: ...here.  Include
26280         <sysdeps/tile/atomic-machine.h> instead of
26281         <sysdeps/tile/bits/atomic.h>.
26282         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
26283         * sysdeps/tile/tilepro/bits/atomic.h: Move to ...
26284         * sysdeps/tile/tilepro/atomic-machine.h: ...here.  Include
26285         <sysdeps/tile/atomic-machine.h> instead of
26286         <sysdeps/tile/bits/atomic.h>.
26287         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
26288         * sysdeps/unix/sysv/linux/arm/bits/atomic.h: Move to ...
26289         * sysdeps/unix/sysv/linux/arm/atomic-machine.h: ...here.  Include
26290         <sysdeps/arm/atomic-machine.h> instead of
26291         <sysdeps/arm/bits/atomic.h>.
26292         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Move to ...
26293         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: ...here.
26294         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
26295         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Move to ...
26296         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h: ...here.
26297         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
26298         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: Move to ...
26299         * sysdeps/unix/sysv/linux/nios2/atomic-machine.h: ...here.
26300         (_NIOS2_BITS_ATOMIC_H): Rename macro to _NIOS2_ATOMIC_MACHINE_H.
26301         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: Move to ...
26302         * sysdeps/unix/sysv/linux/sh/atomic-machine.h: ...here.
26303         * sysdeps/x86_64/bits/atomic.h: Move to ...
26304         * sysdeps/x86_64/atomic-machine.h: ...here.
26305         * include/atomic.h: Include <atomic-machine.h> instead of
26306         <bits/atomic.h>.
26307
26308         * sysdeps/mips/mips32/libm-test-ulps: Update.
26309         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
26310
26311         [BZ #18952]
26312         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Do
26313         not convert non-integer negative arguments to int to determine the
26314         value of signgam.
26315         * math/auto-libm-test-in: Add more tests of lgamma.
26316         * math/auto-libm-test-out: Regenerated.
26317
26318         * math/auto-libm-test-in: Add more tests of acosh, atanh, cbrt,
26319         cosh, csqrt, erfc, expm1 and lgamma.
26320         * math/auto-libm-test-out: Regenerated.
26321         * sysdeps/i386/fpu/libm-test-ulps: Update.
26322         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26323
26324 2015-09-10  Joseph Myers  <joseph@codesourcery.com>
26325
26326         [BZ #2542]
26327         [BZ #2543]
26328         [BZ #2558]
26329         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Call
26330         __lgamma_neg for arguments from -28.0 to -2.0.
26331         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Call
26332         __lgamma_negf for arguments from -15.0 to -2.0.
26333         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
26334         Call __lgamma_negl for arguments from -48.0 or -50.0 to -2.0.
26335         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
26336         Call __lgamma_negl for arguments from -33.0 to -2.0.
26337         * sysdeps/ieee754/dbl-64/lgamma_neg.c: New file.
26338         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
26339         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
26340         * sysdeps/ieee754/flt-32/lgamma_productf.c: Likewise.
26341         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
26342         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
26343         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
26344         * sysdeps/ieee754/ldbl-128ibm/lgamma_productl.c: Likewise.
26345         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
26346         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
26347         * sysdeps/ieee754/ldbl-96/lgamma_productl.c: Likewise.
26348         * sysdeps/generic/math_private.h (__lgamma_negf): New prototype.
26349         (__lgamma_neg): Likewise.
26350         (__lgamma_negl): Likewise.
26351         (__lgamma_product): Likewise.
26352         (__lgamma_productl): Likewise.
26353         * math/Makefile (libm-calls): Add lgamma_neg and lgamma_product.
26354         * math/auto-libm-test-in: Add more tests of lgamma.
26355         * math/auto-libm-test-out: Regenerated.
26356         * sysdeps/i386/fpu/libm-test-ulps: Update.
26357         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26358
26359 2015-09-09  Justin Maggard  <jmaggard@netgear.com>
26360
26361         [BZ #18675]
26362         * sysdeps/posix/fpathconf.c (__fpathconf): Use __fstatvfs64.
26363
26364 2015-09-08  Joseph Myers  <joseph@codesourcery.com>
26365
26366         [BZ #14912]
26367         * bits/libc-lock.h: Move to ...
26368         * sysdeps/generic/libc-lock.h: ...here.
26369         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
26370         * sysdeps/mach/hurd/bits/libc-lock.h: Move to ...
26371         * sysdeps/mach/hurd/libc-lock.h: ...here.
26372         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
26373         [_LIBC]: Include <libc-lockP.h> instead of <bits/libc-lockP.h>.
26374         * sysdeps/mach/bits/libc-lock.h: Move to ...
26375         * sysdeps/mach/libc-lock.h: ...here.
26376         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
26377         * sysdeps/nptl/bits/libc-lock.h: Move to ...
26378         * sysdeps/nptl/libc-lock.h: ...here.
26379         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
26380         * sysdeps/nptl/bits/libc-lockP.h: Move to ...
26381         * sysdeps/nptl/libc-lockP.h: ...here.
26382         (_BITS_LIBC_LOCKP_H): Rename macro to _LIBC_LOCKP_H.
26383         * crypt/crypt_util.c: Include <libc-lock.h> instead of
26384         <bits/libc-lock.h>.
26385         * dirent/scandir-tail.c: Likewise.
26386         * dlfcn/dlerror.c: Likewise.
26387         * elf/dl-close.c: Likewise.
26388         * elf/dl-iteratephdr.c: Likewise.
26389         * elf/dl-lookup.c: Likewise.
26390         * elf/dl-open.c: Likewise.
26391         * elf/dl-support.c: Likewise.
26392         * elf/dl-writev.h: Likewise.
26393         * elf/rtld.c: Likewise.
26394         * grp/fgetgrent.c: Likewise.
26395         * gshadow/fgetsgent.c: Likewise.
26396         * gshadow/sgetsgent.c: Likewise.
26397         * iconv/gconv_conf.c: Likewise.
26398         * iconv/gconv_db.c: Likewise.
26399         * iconv/gconv_dl.c: Likewise.
26400         * iconv/gconv_int.h: Likewise.
26401         * iconv/gconv_trans.c: Likewise.
26402         * include/link.h: Likewise.
26403         * inet/getnameinfo.c: Likewise.
26404         * inet/getnetgrent.c: Likewise.
26405         * inet/getnetgrent_r.c: Likewise.
26406         * intl/bindtextdom.c: Likewise.
26407         * intl/dcigettext.c: Likewise.
26408         * intl/finddomain.c: Likewise.
26409         * intl/gettextP.h: Likewise.
26410         * intl/loadmsgcat.c: Likewise.
26411         * intl/localealias.c: Likewise.
26412         * intl/textdomain.c: Likewise.
26413         * libidn/idn-stub.c: Likewise.
26414         * libio/libioP.h: Likewise.
26415         * locale/duplocale.c: Likewise.
26416         * locale/freelocale.c: Likewise.
26417         * locale/newlocale.c: Likewise.
26418         * locale/setlocale.c: Likewise.
26419         * login/getutent_r.c: Likewise.
26420         * login/getutid_r.c: Likewise.
26421         * login/getutline_r.c: Likewise.
26422         * login/utmp-private.h: Likewise.
26423         * login/utmpname.c: Likewise.
26424         * malloc/mtrace.c: Likewise.
26425         * misc/efgcvt.c: Likewise.
26426         * misc/error.c: Likewise.
26427         * misc/fstab.c: Likewise.
26428         * misc/getpass.c: Likewise.
26429         * misc/mntent.c: Likewise.
26430         * misc/syslog.c: Likewise.
26431         * nis/nis_call.c: Likewise.
26432         * nis/nis_callback.c: Likewise.
26433         * nis/nss-default.c: Likewise.
26434         * nis/nss_compat/compat-grp.c: Likewise.
26435         * nis/nss_compat/compat-initgroups.c: Likewise.
26436         * nis/nss_compat/compat-pwd.c: Likewise.
26437         * nis/nss_compat/compat-spwd.c: Likewise.
26438         * nis/nss_nis/nis-alias.c: Likewise.
26439         * nis/nss_nis/nis-ethers.c: Likewise.
26440         * nis/nss_nis/nis-grp.c: Likewise.
26441         * nis/nss_nis/nis-hosts.c: Likewise.
26442         * nis/nss_nis/nis-network.c: Likewise.
26443         * nis/nss_nis/nis-proto.c: Likewise.
26444         * nis/nss_nis/nis-pwd.c: Likewise.
26445         * nis/nss_nis/nis-rpc.c: Likewise.
26446         * nis/nss_nis/nis-service.c: Likewise.
26447         * nis/nss_nis/nis-spwd.c: Likewise.
26448         * nis/nss_nisplus/nisplus-alias.c: Likewise.
26449         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
26450         * nis/nss_nisplus/nisplus-grp.c: Likewise.
26451         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
26452         * nis/nss_nisplus/nisplus-initgroups.c: Likewise.
26453         * nis/nss_nisplus/nisplus-network.c: Likewise.
26454         * nis/nss_nisplus/nisplus-proto.c: Likewise.
26455         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
26456         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
26457         * nis/nss_nisplus/nisplus-service.c: Likewise.
26458         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
26459         * nis/ypclnt.c: Likewise.
26460         * nptl/libc_pthread_init.c: Likewise.
26461         * nss/getXXbyYY.c: Likewise.
26462         * nss/getXXent.c: Likewise.
26463         * nss/getXXent_r.c: Likewise.
26464         * nss/nss_db/db-XXX.c: Likewise.
26465         * nss/nss_db/db-netgrp.c: Likewise.
26466         * nss/nss_db/nss_db.h: Likewise.
26467         * nss/nss_files/files-XXX.c: Likewise.
26468         * nss/nss_files/files-alias.c: Likewise.
26469         * nss/nsswitch.c: Likewise.
26470         * posix/regex_internal.h: Likewise.
26471         * posix/wordexp.c: Likewise.
26472         * pwd/fgetpwent.c: Likewise.
26473         * resolv/res_hconf.c: Likewise.
26474         * resolv/res_libc.c: Likewise.
26475         * shadow/fgetspent.c: Likewise.
26476         * shadow/lckpwdf.c: Likewise.
26477         * shadow/sgetspent.c: Likewise.
26478         * socket/opensock.c: Likewise.
26479         * stdio-common/reg-modifier.c: Likewise.
26480         * stdio-common/reg-printf.c: Likewise.
26481         * stdio-common/reg-type.c: Likewise.
26482         * stdio-common/vfprintf.c: Likewise.
26483         * stdio-common/vfscanf.c: Likewise.
26484         * stdlib/abort.c: Likewise.
26485         * stdlib/cxa_atexit.c: Likewise.
26486         * stdlib/fmtmsg.c: Likewise.
26487         * stdlib/random.c: Likewise.
26488         * stdlib/setenv.c: Likewise.
26489         * string/strsignal.c: Likewise.
26490         * sunrpc/auth_none.c: Likewise.
26491         * sunrpc/bindrsvprt.c: Likewise.
26492         * sunrpc/create_xid.c: Likewise.
26493         * sunrpc/key_call.c: Likewise.
26494         * sunrpc/rpc_thread.c: Likewise.
26495         * sysdeps/arm/backtrace.c: Likewise.
26496         * sysdeps/generic/ldsodefs.h: Likewise.
26497         * sysdeps/generic/stdio-lock.h: Likewise.
26498         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
26499         * sysdeps/i386/backtrace.c: Likewise.
26500         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
26501         * sysdeps/m68k/backtrace.c: Likewise.
26502         * sysdeps/mach/hurd/cthreads.c: Likewise.
26503         * sysdeps/mach/hurd/dirstream.h: Likewise.
26504         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
26505         * sysdeps/nptl/malloc-machine.h: Likewise.
26506         * sysdeps/nptl/stdio-lock.h: Likewise.
26507         * sysdeps/posix/dirstream.h: Likewise.
26508         * sysdeps/posix/getaddrinfo.c: Likewise.
26509         * sysdeps/posix/system.c: Likewise.
26510         * sysdeps/pthread/aio_suspend.c: Likewise.
26511         * sysdeps/s390/s390-32/backtrace.c: Likewise.
26512         * sysdeps/s390/s390-64/backtrace.c: Likewise.
26513         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
26514         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
26515         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: Likewise.
26516         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: Likewise.
26517         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: Likewise.
26518         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
26519         * sysdeps/unix/sysv/linux/system.c: Likewise.
26520         * sysdeps/x86_64/backtrace.c: Likewise.
26521         * time/alt_digit.c: Likewise.
26522         * time/era.c: Likewise.
26523         * time/tzset.c: Likewise.
26524         * wcsmbs/wcsmbsload.c: Likewise.
26525         * nptl/tst-initializers1.c (do_test): Refer to <libc-lock.h>
26526         instead of <bits/libc-lock.h> in comment.
26527
26528 2015-09-08  Andrew Bennett  <andrew.bennett@imgtec.com>
26529
26530         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIO32] (MIPS_PUSH_MIPS2):
26531         Only use .set mips2 if the current ISA is below mips2.
26532         * sysdeps/mips/sys/tas.h [_MIPS_SIM == _ABIO32] (_test_and_set):
26533         Likewise.
26534         * sysdeps/mips/nptl/tls.h (READ_THREAD_POINTER): Only use .set
26535         mips32r2 if the current ISA is below mips32r2.
26536         * sysdeps/mips/tls-macros.h (TLS_RDHWR): New define.
26537         (TLS_IE): Updated to use the TLD_RDHWR macro.
26538         (TLS_LE): Likewise.
26539         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Moved out of #ifdef
26540         __ASSEMBLER__ condition.
26541
26542 2015-09-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26543
26544         Fix parallel build of before-compile targets.
26545
26546         * sysdeps/mach/Makefile ($(patsubst
26547         mach%,m\%h%,$(mach-before-compile))): Move rule to dedicated
26548         mach-before-compile target.
26549         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
26550         io fs process)): Move rule to dedicated hurd-before-compile target.
26551
26552 2015-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26553
26554         Fix rules generating headers in hurd/ and mach/ when initial make call
26555         has subdir= explicitly set.
26556
26557         * sysdeps/mach/Makefile ($(patsubst
26558         mach%,m\%h%,$(mach-before-compile))): Force subdir to mach when
26559         calling $(MAKE).
26560         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
26561         io fs process)): Force subdir to hurd when calling $(MAKE).
26562         ($(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c): Force
26563         subdir to mach when calling $(MAKE).
26564
26565 2015-09-06  Manolis Ragkousis  <manolis837@gmail.com>
26566
26567         Check sysheaders when looking for Mach and Hurd headers
26568
26569         * sysdeps/mach/configure.ac: Add sysheaders check.
26570         * sysdeps/mach/configure: Regenerate.
26571         * sysdeps/mach/hurd/configure.ac: Add sysheaders check.
26572         * sysdeps/mach/hurd/configure: Regenerate.
26573
26574 2015-09-04  Roland McGrath  <roland@hack.frob.com>
26575
26576         [BZ #18921]
26577         * sysdeps/posix/opendir.c (need_isdir_precheck) [O_DIRECTORY]:
26578         Fix inverted sense of test of 'o_directory_works' value.
26579         Reported by Pádraig Brady <P@draigBrady.com>, diagnosed by
26580         Bernhard Voelker <mail@bernhard-voelker.de>.
26581
26582 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
26583
26584         [BZ #14912]
26585         * bits/linkmap.h: Move to ...
26586         * sysdeps/generic/linkmap.h: ...here.
26587         * sysdeps/aarch64/bits/linkmap.h: Move to ...
26588         * sysdeps/aarch64/linkmap.h: ...here.
26589         * sysdeps/arm/bits/linkmap.h: Move to ...
26590         * sysdeps/arm/linkmap.h: ...here.
26591         * sysdeps/hppa/bits/linkmap.h: Move to ...
26592         * sysdeps/hppa/linkmap.h: ...here.
26593         * sysdeps/ia64/bits/linkmap.h: Move to ...
26594         * sysdeps/ia64/linkmap.h: ...here.
26595         * sysdeps/mips/bits/linkmap.h: Move to ...
26596         * sysdeps/mips/linkmap.h: ...here.
26597         * sysdeps/s390/bits/linkmap.h: Move to ...
26598         * sysdeps/s390/linkmap.h: ...here.
26599         * sysdeps/sh/bits/linkmap.h: Move to ...
26600         * sysdeps/sh/linkmap.h: ...here.
26601         * sysdeps/x86/bits/linkmap.h: Move to ...
26602         * sysdeps/x86/linkmap.h: ...here.
26603         * include/link.h: Include <linkmap.h> instead of <bits/linkmap.h>.
26604
26605 2015-09-04  Andreas Schwab  <schwab@suse.de>
26606
26607         [BZ #18635]
26608         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
26609         (__makecontext): Terminate FDE before return label.
26610         (__novec_makecontext): Likewise.
26611
26612 2015-09-04  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
26613
26614         * sysdeps/unix/sysv/linux/socketpair.c: Use the address of the
26615         first member of struct sv in syscall macro.
26616
26617 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
26618
26619         [BZ #14912]
26620         * bits/stdio-lock.h: Move to ...
26621         * sysdeps/generic/stdio-lock.h: ...here.
26622         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
26623         * sysdeps/nptl/bits/stdio-lock.h: Move to ...
26624         * sysdeps/nptl/stdio-lock.h: ...here.
26625         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
26626         * include/libio.h: Include <stdio-lock.h> instead of
26627         <bits/stdio-lock.h>.
26628         * sysdeps/nptl/fork.c: Likewise.
26629         * sysdeps/pthread/flockfile.c: Likewise.
26630         * sysdeps/pthread/ftrylockfile.c: Likewise.
26631         * sysdeps/pthread/funlockfile.c: Likewise.
26632
26633         [BZ #14912]
26634         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Move to ...
26635         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: ...here.
26636         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Include
26637         <m68k-vdso.h> instead of <bits/m68k-vdso.h>.
26638         * sysdeps/unix/sysv/linux/m68k/init-first.c: Likewise.
26639         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
26640         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
26641
26642 2015-09-03  Roland McGrath  <roland@hack.frob.com>
26643
26644         * elf/Makefile (test-xfail-tst-protected1a): New variable.
26645         (test-xfail-tst-protected1b): New variable.
26646
26647 2015-09-03  Joseph Myers  <joseph@codesourcery.com>
26648
26649         [BZ #14912]
26650         * bits/libc-tsd.h: Move to ...
26651         * sysdeps/generic/libc-tsd.h: ...here.
26652         (_GENERIC_BITS_LIBC_TSD_H): Rename macro to _GENERIC_LIBC_TSD_H.
26653         * sysdeps/mach/hurd/bits/libc-tsd.h: Move to ...
26654         * sysdeps/mach/hurd/libc-tsd.h: ...here.
26655         (_BITS_LIBC_TSD_H): Rename macro to _LIBC_TSD_H.
26656         * include/ctype.h: Include <libc-tsd.h> instead of
26657         <bits/libc-tsd.h>.
26658         * include/rpc/rpc.h: Likewise.
26659         * locale/localeinfo.h: Likewise.
26660         * sunrpc/rpc_thread.c: Likewise.
26661         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
26662         * sysdeps/nptl/malloc-machine.h: Likewise.
26663
26664         * Makefile (headers): Remove bits/libc-lock.h.
26665         * libio/Makefile (headers): Remove bits/stdio-lock.h.
26666
26667         * libio/libio.h [_IO_MTSAFE_IO]: Remove include of
26668         <bits/stdio-lock.h> and commented-out include of <comthread.h>.
26669         * include/libio.h [!_ISOMAC && _IO_MTSAFE_IO]: Include
26670         <bits/stdio-lock.h>.
26671         * stdio-common/scanf15.c (_IO_MTSAFE_IO): Undefine.
26672         * stdio-common/scanf17.c (_IO_MTSAFE_IO): Likewise.
26673
26674 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
26675
26676         [BZ #18757]
26677         * libio/iofopncook.c (_IO_fopencookie): Set errno on failure.
26678         * libio/test-fmemopen.c (do_bz18820): Extend the test to cover
26679         BZ #18757.
26680
26681 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
26682
26683         * malloc/mtrace.pl: Filter out NULL entries.
26684
26685 2015-09-01  Joseph Myers  <joseph@codesourcery.com>
26686
26687         * inet/netinet/in.h (IPPROTO_MPLS): New enum value and macro.
26688         * sysdeps/unix/sysv/linux/bits/in.h (IP_BIND_ADDRESS_NO_PORT): New
26689         macro.
26690
26691         * sysdeps/gnu/netinet/tcp.h (TCP_NOTSENT_LOWAT): New macro.
26692         (TCP_CC_INFO): Likewise.
26693         (TCP_SAVE_SYN): Likewise.
26694         (TCP_SAVED_SYN): Likewise.
26695
26696 2015-08-31  Brett Neumeier <brett@neumeier.us>
26697
26698         [BZ #18870]
26699         * sysdeps/sparc/sparc32/sem_open.c: Add missing #include
26700
26701 2015-08-31  Paul Eggert  <eggert@cs.ucla.edu>
26702
26703         [BZ #18873]
26704         Fix broken overflow check in posix_fallocate
26705         * sysdeps/posix/posix_fallocate.c (posix_fallocate):
26706         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
26707         Fix parenthesization typo.
26708
26709 2015-08-28  Mike Frysinger  <vapier@gentoo.org>
26710
26711         [BZ #18887]
26712         * misc/Makefile (tests): Add tst-mntent-blank-corrupt and
26713         tst-mntent-blank-passno.
26714         * misc/mntent_r.c (__getmntent_r): Do not read past buffer[0].
26715         * misc/tst-mntent-blank-corrupt.c: New test.
26716         * misc/tst-mntent-blank-passno.c: New test ripped from ...
26717         * misc/tst-mntent.c (do_test): ... here.
26718
26719 2015-08-29  Mike Frysinger  <vapier@gentoo.org>
26720
26721         [BZ #4404]
26722         * po/de.po: Fix SIGALRM typo.
26723
26724 2015-08-28  James Perkins  <james@loowit.net>
26725
26726         * time/tst-strptime2.c (tests): Replace short list of test
26727         strings for strptime %z specifier with code which exhaustively
26728         tests every combination of sign and 0 to 5 digits. Tests for
26729         rejection of invalid strings.
26730
26731 2015-08-28  James Perkins  <james@loowit.net>
26732
26733         [BZ #16141]
26734         * time/strptime_l.c (__strptime_internal): Fix %z minutes
26735         calculation, removing incorrect decimal time rounding, so that
26736         all minute values result in a valid seconds value.
26737         * time/strptime_l.c (__strptime_internal): Extend %z time zone
26738         offset range limits to UTC-99:59 through UTC+99:59 to parse
26739         current and historical use cases.
26740         * time/tst-strptime2.c (tests): Modify and add tests for the
26741         strptime %z input field descriptor, specifically conversion of
26742         minutes to seconds and validating an offset range of -9959 to
26743         +9959.
26744
26745 2015-08-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
26746             Dmitry V. Levin  <ldv@altlinux.org>
26747
26748         [BZ #18877]
26749         * posix/Makefile (tests): Add tst-mmap-offset.
26750         * posix/tst-mmap.c: New file.
26751         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c (__mmap): Fix
26752         offset calculation for negative values.
26753
26754 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26755
26756         * sysdeps/i386/init-arch.h: New file.
26757         * sysdeps/i386/i586/init-arch.h: Likewise.
26758         * sysdeps/i386/i686/init-arch.h: Likewise.
26759         * sysdeps/x86/cpu-features.c (init_cpu_features): Set bit_I586
26760         bit if CX8 is available.  Set bit_I686 bit if CMOV is available.
26761         * sysdeps/x86/cpu-features.h (bit_I586): New.
26762         (bit_I686): Likewise.
26763         (bit_CX8): Likewise.
26764         (bit_CMOV): Likewise.
26765         (index_CX8): Likewise.
26766         (index_CMOV): Likewise.
26767         (index_I586): Likewise.
26768         (index_I686): Likewise.
26769         (reg_CX8): Likewise.
26770         (reg_CMOV): Likewise.
26771         (HAS_I586): Defined as HAS_ARCH_FEATURE (I586) if i586 isn't
26772         available at compile-time.
26773         (HAS_I686): Defined as HAS_ARCH_FEATURE (I686) if i686 isn't
26774         available at compile-time.
26775         * sysdeps/x86/init-arch.h (USE_I586): New macro.
26776         (USE_I686): Likewise.
26777
26778 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26779
26780         * sysdeps/i386/bcopy.S: New file.
26781         * sysdeps/i386/bzero.S: Likewise.
26782         * sysdeps/i386/memcpy.S: Likewise.
26783         * sysdeps/i386/memmove.S: Likewise.
26784         * sysdeps/i386/mempcpy.S: Likewise.
26785         * sysdeps/i386/memset.S: Likewise.
26786         * sysdeps/i386/bzero.c: Removed.
26787         * sysdeps/i386/memset.c: Likewise.
26788         * sysdeps/i386/i586/memcpy_chk.S: Likewise.
26789         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
26790         * sysdeps/i386/i586/memset_chk.S: Likewise.
26791         * sysdeps/i386/i686/memcpy_chk.S: Moved to ...
26792         * sysdeps/i386/memcpy_chk.S: Here.
26793         * sysdeps/i386/i686/memmove_chk.S: Moved to ...
26794         * sysdeps/i386/memmove_chk.S: Here.
26795         * sysdeps/i386/i686/mempcpy_chk.S: Moved to ...
26796         * sysdeps/i386/mempcpy_chk.S: Likewise.
26797         * sysdeps/i386/i686/memset_chk.S: Moved to ...
26798         * sysdeps/i386/memset_chk.S: Likewise.
26799
26800 2015-08-27  Steve Ellcey  <sellcey@imgtec.com>
26801
26802         * soft-fp/fmasf4.c: Add include of sys/cdefs.h.
26803         Move DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT to front of
26804         file, move DIAG_POP_NEEDS_COMMENT to end of file.
26805         * soft-fp/fmadf4.c: Ditto.
26806         * soft-fp/fmatf4.c: Ditto.
26807
26808 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26809
26810         * sysdeps/i386/i586/Implies: Removed.
26811         * sysdeps/i386/i686/Implies: Likewise.
26812
26813 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26814
26815         * sysdeps/i386/i486/strlen.S: Moved to ...
26816         * sysdeps/i386/strlen.S: Here.
26817
26818 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26819
26820         * sysdeps/i386/i486/strcat.S: Moved to ...
26821         * sysdeps/i386/strcat.S: Here.
26822
26823 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26824
26825         * sysdeps/i386/i486/pthread_spin_trylock.S: Moved to ...
26826         * sysdeps/i386/pthread_spin_trylock.S: Here.
26827         * sysdeps/i386/i586/pthread_spin_trylock.S: Removed.
26828         * sysdeps/i386/i686/pthread_spin_trylock.S: Updated.
26829
26830 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26831
26832         * sysdeps/i386/i486/string-inlines.c: Moved to ...
26833         * sysdeps/i386/string-inlines.c: Here.
26834
26835 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26836
26837         * sysdeps/i386/i486/htonl.S: Moved ...
26838         * sysdeps/i386/htonl.S: here.
26839
26840 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26841
26842         * sysdeps/i386/i486/bits/atomic.h: Moved to ...
26843         * sysdeps/i386/bits/atomic.h: Here.
26844
26845 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26846
26847         * sysdeps/i386/i486/Versions: Removed.
26848
26849 2015-08-27  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
26850
26851         [BZ #2898]
26852         * misc/mktemp.c: Add mkdtemp to the link_warning message.
26853         Based on patch by Aurelien Jarno.
26854
26855 2015-08-26  Stan Shebs  <stanshebs@google.com>
26856
26857         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <libc-internal.h>.
26858         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
26859
26860 2015-08-26  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
26861
26862         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_HTM_NOSC.
26863         * sysdeps/powerpc/dl-procinfo.c:
26864         (_dl_powerpc_cap_flags): Added descriptor for this hwcap
26865         feature so it shows when LD_SHOW_AUXV=1.
26866
26867 2015-08-26  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
26868
26869         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
26870         (__arch_compare_and_exchange_val_32_acq): Remove and use common
26871         definition.  ISA 2.07B no longer requires full sync.
26872
26873 2015-08-26  Mike Frysinger  <vapier@gentoo.org>
26874
26875         [BZ #18863]
26876         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (siginfo_t): Add _sigsys.
26877         (si_call_addr): Define.
26878         (si_syscall): Define.
26879         (si_arch): Define.
26880
26881 2015-08-26  H.J. Lu  <hongjiu.lu@intel.com>
26882
26883         * sysdeps/i386/i586/bzero.S (USE_AS_BZERO): New.
26884         * sysdeps/i386/i686/bzero.S (USE_AS_BZERO): Likewise.
26885         * sysdeps/i386/i586/memset.S (BZERO_P): Removed.
26886         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
26887         (__memset_zero_constant_len_parameter): New.
26888         * sysdeps/i386/i686/memset.S (BZERO_P): Removed.
26889         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
26890         (__memset_zero_constant_len_parameter): Don't define if
26891         __memset_chk or USE_AS_BZERO are defined.
26892
26893         * sysdeps/i386/i586/memcpy.S (MEMPCPY_P): Removed.
26894         Check USE_AS_MEMPCPY/SHARED instead of MEMPCPY_P/PIC.
26895         * sysdeps/i386/i586/mempcpy.S (USE_AS_MEMPCPY): New.
26896
26897         * sysdeps/x86/Makefile [$(subdir) == elf] (CFLAGS-.os,
26898         tests-special, $(objpfx)tst-ld-sse-use.out): Moved to ...
26899         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os,
26900         tests-special, $(objpfx)tst-ld-sse-use.out): Here.  Update
26901         comments.
26902         * sysdeps/x86_64/Makefile [$(subdir) == elf] (CFLAGS-.os): Add
26903         -mno-mmx for $(all-rtld-routines).
26904         * sysdeps/x86/tst-ld-sse-use.sh: Moved to ...
26905         * sysdeps/i386/tst-ld-sse-use.sh: Here.  Replace x86-64 with
26906         i386.
26907
26908 2015-08-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
26909
26910         * sysdeps/generic/unwind.h
26911         (_Unwind_Word): Use __mode__(__unwind_word__)
26912         instead of __mode__(__word__).
26913         (_Unwind_Sword): Likewise.
26914
26915         * sysdeps/s390/s390-64/utf8-utf16-z9.c
26916         (MAX_NEEDED_INPUT): New define.
26917         (MAX_NEEDED_OUTPUT): New define.
26918
26919         * NEWS: New item for IBM z13 string optimizations.
26920
26921         * sysdeps/s390/multiarch/memrchr-c.c: New File.
26922         * sysdeps/s390/multiarch/memrchr-vx.S: Likewise.
26923         * sysdeps/s390/multiarch/memrchr.c: Likewise.
26924         * sysdeps/s390/multiarch/Makefile
26925         (sysdep_routines): Add memrchr functions.
26926         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
26927         (__libc_ifunc_impl_list_common): Add ifunc test for memrchr.
26928
26929         * sysdeps/s390/multiarch/wmemcmp-c.c: New File.
26930         * sysdeps/s390/multiarch/wmemcmp-vx.S: Likewise.
26931         * sysdeps/s390/multiarch/wmemcmp.c: Likewise.
26932         * sysdeps/s390/multiarch/Makefile
26933         (sysdep_routines): Add wmemcmp functions.
26934         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
26935         (__libc_ifunc_impl_list_common): Add ifunc test for wmemcmp.
26936         * benchtests/bench-wmemcmp.c: New File.
26937         * benchtests/Makefile (wcsmbs-bench): Add wmemcmp.
26938
26939         * sysdeps/s390/multiarch/wmemset-c.c: New File.
26940         * sysdeps/s390/multiarch/wmemset-vx.S: Likewise.
26941         * sysdeps/s390/multiarch/wmemset.c: Likewise.
26942         * sysdeps/s390/multiarch/Makefile
26943         (sysdep_routines): Add wmemset functions.
26944         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
26945         (__libc_ifunc_impl_list_common): Add ifunc test for wmemset.
26946         * wcsmbs/wmemset.c: Use WMEMSET if defined.
26947         * string/test-memset.c: Add wmemset support.
26948         * wcsmbs/test-wmemset.c: New File.
26949         * wcsmbs/Makefile (strop-tests): Add wmemset.
26950         * benchtests/bench-memset.c: Add wmemset support.
26951         * benchtests/bench-wmemset.c: New File.
26952         * benchtests/Makefile (wcsmbs-bench): Add wmemset.
26953
26954         * sysdeps/s390/multiarch/memccpy-c.c: New File.
26955         * sysdeps/s390/multiarch/memccpy-vx.S: Likewise.
26956         * sysdeps/s390/multiarch/memccpy.c: Likewise.
26957         * sysdeps/s390/multiarch/Makefile
26958         (sysdep_routines): Add memccpy functions.
26959         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
26960         (__libc_ifunc_impl_list_common): Add ifunc test for memccpy.
26961         * string/memccpy.c: Use MEMCCPY if defined.
26962
26963         * sysdeps/s390/multiarch/memchr-vx.S: New File.
26964         * sysdeps/s390/multiarch/memchr.c: Likewise.
26965         * sysdeps/s390/multiarch/rawmemchr-c.c: Likewise.
26966         * sysdeps/s390/multiarch/rawmemchr-vx.S: Likewise.
26967         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
26968         * sysdeps/s390/multiarch/wmemchr-c.c: Likewise.
26969         * sysdeps/s390/multiarch/wmemchr-vx.S: Likewise.
26970         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
26971         * sysdeps/s390/s390-32/multiarch/memchr.c: Likewise.
26972         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
26973         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memchr, wmemchr
26974         and rawmemchr functions.
26975         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
26976         (__libc_ifunc_impl_list_common): Add ifunc test for memchr, rawmemchr
26977         and wmemchr.
26978         * wcsmbs/wmemchr.c: Use WMEMCHR if defined.
26979         * string/test-memchr.c: Add wmemchr support.
26980         * wcsmbs/test-wmemchr.c: New File.
26981         * wcsmbs/Makefile (strop-tests): Add wmemchr.
26982         * benchtests/bench-memchr.c: Add wmemchr support.
26983         * benchtests/bench-wmemchr.c: New File.
26984         * benchtests/Makefile (wcsmbs-bench): wmemchr.
26985
26986         * sysdeps/s390/multiarch/strcspn-c.c: New File.
26987         * sysdeps/s390/multiarch/strcspn-vx.S: Likewise.
26988         * sysdeps/s390/multiarch/strcspn.c: Likewise.
26989         * sysdeps/s390/multiarch/wcscspn-c.c: Likewise.
26990         * sysdeps/s390/multiarch/wcscspn-vx.S: Likewise.
26991         * sysdeps/s390/multiarch/wcscspn.c: Likewise.
26992         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcspn and
26993         wcscspn functions.
26994         * sysdeps/s390/multiarch/ifunc-impl-list.c
26995         (__libc_ifunc_impl_list): Add ifunc test for strcspn, wcscspn.
26996         * wcsmbs/wcscspn.c: Use WCSCSPN if defined.
26997         * string/test-strcspn.c: Add wcscspn support.
26998         * wcsmbs/test-wcscspn.c: New File.
26999         * wcsmbs/Makefile (strop-tests): Add wcscspn.
27000         * benchtests/bench-strcspn.c: Add wcscspn support.
27001         * benchtests/bench-wcscspn.c: New File.
27002         * benchtests/Makefile (wcsmbs-bench): Add wcscspn.
27003
27004         * sysdeps/s390/multiarch/strpbrk-c.c: New File.
27005         * sysdeps/s390/multiarch/strpbrk-vx.S: Likewise.
27006         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
27007         * sysdeps/s390/multiarch/wcspbrk-c.c: Likewise.
27008         * sysdeps/s390/multiarch/wcspbrk-vx.S: Likewise.
27009         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
27010         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strpbrk and
27011         wcspbrk functions.
27012         * sysdeps/s390/multiarch/ifunc-impl-list.c
27013         (__libc_ifunc_impl_list): Add ifunc test for strpbrk, wcspbrk.
27014         * wcsmbs/wcspbrk.c: Use WCSPBRK if defined.
27015         * string/test-strpbrk.c: Add wcspbrk support.
27016         * wcsmbs/test-wcspbrk.c: New File.
27017         * wcsmbs/Makefile (strop-tests): Add wcspbrk.
27018         * benchtests/bench-strpbrk.c: Add wcspbrk support.
27019         * benchtests/bench-wcspbrk.c: New File.
27020         * benchtests/Makefile (wcsmbs-bench): Add wcspbrk.
27021
27022         * sysdeps/s390/multiarch/strspn-c.c: New File.
27023         * sysdeps/s390/multiarch/strspn-vx.S: Likewise.
27024         * sysdeps/s390/multiarch/strspn.c: Likewise.
27025         * sysdeps/s390/multiarch/wcsspn-c.c: Likewise.
27026         * sysdeps/s390/multiarch/wcsspn-vx.S: Likewise.
27027         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
27028         * wcsmbs/wcsspn.c: Use WCSSPN if defined.
27029         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strspn and
27030         wcsspn functions.
27031         * sysdeps/s390/multiarch/ifunc-impl-list.c
27032         (__libc_ifunc_impl_list): Add ifunc test for strspn, wcsspn.
27033         * string/test-strspn.c: Add wcsspn support.
27034         * wcsmbs/test-wcsspn.c: New File.
27035         * wcsmbs/Makefile (strop-tests): Add wcsspn.
27036         * benchtests/bench-strspn.c: Add wcsspn support.
27037         * benchtests/bench-wcsspn.c: New File.
27038         * benchtests/Makefile (wcsmbs-bench): Add wcsspn.
27039
27040         * sysdeps/s390/multiarch/strrchr-c.c: New File.
27041         * sysdeps/s390/multiarch/strrchr-vx.S: Likewise.
27042         * sysdeps/s390/multiarch/strrchr.c: Likewise.
27043         * sysdeps/s390/multiarch/wcsrchr-c.c: Likewise.
27044         * sysdeps/s390/multiarch/wcsrchr-vx.S: Likewise.
27045         * sysdeps/s390/multiarch/wcsrchr.c: Likewise.
27046         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strrchr and
27047         wcsrchr functions.
27048         * sysdeps/s390/multiarch/ifunc-impl-list.c
27049         (__libc_ifunc_impl_list): Add ifunc test for strrchr, wcsrchr.
27050         * benchtests/bench-wcsrchr.c: New File.
27051         * benchtests/Makefile (wcsmbs-bench): Add wcsrchr.
27052
27053         * sysdeps/s390/multiarch/strchrnul-c.c: New File.
27054         * sysdeps/s390/multiarch/strchrnul-vx.S: Likewise.
27055         * sysdeps/s390/multiarch/strchrnul.c: Likewise.
27056         * sysdeps/s390/multiarch/wcschrnul-c.c: Likewise.
27057         * sysdeps/s390/multiarch/wcschrnul-vx.S: Likewise.
27058         * sysdeps/s390/multiarch/wcschrnul.c: Likewise.
27059         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchrnul and
27060         wcschrnul functions.
27061         * sysdeps/s390/multiarch/ifunc-impl-list.c
27062         (__libc_ifunc_impl_list): Add ifunc test for strchrnul, wcschrnul.
27063         * wcsmbs/wcschrnul.c: Use WCSCHRNUL if defined.
27064         * string/test-strchr.c: Add wcschrnul support.
27065         * wcsmbs/test-wcschrnul.c: New File.
27066         * wcsmbs/Makefile (strop-tests): Add wcschrnul.
27067         * benchtests/bench-strchr.c: Add wcschrnul support.
27068         * benchtests/bench-wcschrnul.c: New File.
27069         * benchtests/Makefile (wcsmbs-bench): Add wcschrnul.
27070
27071         * sysdeps/s390/multiarch/strchr-c.c: New File.
27072         * sysdeps/s390/multiarch/strchr-vx.S: Likewise.
27073         * sysdeps/s390/multiarch/strchr.c: Likewise.
27074         * sysdeps/s390/multiarch/wcschr-c.c: Likewise.
27075         * sysdeps/s390/multiarch/wcschr-vx.S: Likewise.
27076         * sysdeps/s390/multiarch/wcschr.c: Likewise.
27077         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchr and
27078         wcschr functions.
27079         * sysdeps/s390/multiarch/ifunc-impl-list.c
27080         (__libc_ifunc_impl_list): Add ifunc test for strchr, wcschr.
27081         * string/strchr.c (STRCHR): Define and use macro.
27082         * benchtests/bench-wcschr.c: New File.
27083         * benchtests/Makefile (wcsmbs-bench): Add wcschr.
27084
27085         * sysdeps/s390/multiarch/strncmp-c.c: New File.
27086         * sysdeps/s390/multiarch/strncmp-vx.S: Likewise.
27087         * sysdeps/s390/multiarch/strncmp.c: Likewise.
27088         * sysdeps/s390/multiarch/wcsncmp-c.c: Likewise.
27089         * sysdeps/s390/multiarch/wcsncmp-vx.S: Likewise.
27090         * sysdeps/s390/multiarch/wcsncmp.c: Likewise.
27091         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncmp and
27092         wcsncmp functions.
27093         * sysdeps/s390/multiarch/ifunc-impl-list.c
27094         (__libc_ifunc_impl_list): Add ifunc test for strncmp, wcsncmp.
27095         * wcsmbs/wcsncmp.c (WCSNCMP): Define and use macro.
27096         * benchtests/bench-strncmp.c: Add wcsncmp support.
27097         * benchtests/bench-wcsncmp.c: New File.
27098         * benchtests/Makefile (wcsmbs-bench): Add wcsncmp.
27099
27100         * sysdeps/s390/multiarch/strcmp-vx.S: New File.
27101         * sysdeps/s390/multiarch/strcmp.c: Likewise.
27102         * sysdeps/s390/multiarch/wcscmp-c.c: Likewise.
27103         * sysdeps/s390/multiarch/wcscmp-vx.S: Likewise.
27104         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
27105         * sysdeps/s390/s390-32/multiarch/strcmp.c: Likewise.
27106         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
27107         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcmp and
27108         wcscmp functions.
27109         * sysdeps/s390/multiarch/ifunc-impl-list.c
27110         (__libc_ifunc_impl_list): Add ifunc test for strcmp, wcscmp.
27111         * string/strcmp.c (STRCMP): Define and use macro.
27112         * benchtests/bench-wcscmp.c: New File.
27113         * benchtests/Makefile (wcsmbs-bench): Add wcscmp.
27114         * sysdeps/s390/bits/string.h: Fix typo: _HAVE_STRING_ARCH_strcmp
27115         instead of _HAVE_STRING_ARCH_memchr.
27116
27117         * sysdeps/s390/multiarch/strncat-c.c: New File.
27118         * sysdeps/s390/multiarch/strncat-vx.S: Likewise.
27119         * sysdeps/s390/multiarch/strncat.c: Likewise.
27120         * sysdeps/s390/multiarch/wcsncat-c.c: Likewise.
27121         * sysdeps/s390/multiarch/wcsncat-vx.S: Likewise.
27122         * sysdeps/s390/multiarch/wcsncat.c: Likewise.
27123         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncat and
27124         wcsncat functions.
27125         * sysdeps/s390/multiarch/ifunc-impl-list.c
27126         (__libc_ifunc_impl_list): Add ifunc test for strncat, wcsncat.
27127         * wcsmbs/wcsncat.c (WCSNCAT): Define and use macro.
27128         * string/test-strncat.c: Add wcsncat support.
27129         * wcsmbs/test-wcsncat.c: New File.
27130         * wcsmbs/Makefile (strop-tests): Add wcsncat.
27131         * benchtests/bench-strncat.c: Add wcsncat support.
27132         * benchtests/bench-wcsncat.c: New File.
27133         * benchtests/Makefile (wcsmbs-bench): Add wcsncat.
27134
27135         * sysdeps/s390/multiarch/strcat-c.c: New File.
27136         * sysdeps/s390/multiarch/strcat-vx.S: Likewise.
27137         * sysdeps/s390/multiarch/strcat.c: Likewise.
27138         * sysdeps/s390/multiarch/wcscat-c.c: Likewise.
27139         * sysdeps/s390/multiarch/wcscat-vx.S: Likewise.
27140         * sysdeps/s390/multiarch/wcscat.c: Likewise.
27141         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcat and
27142         wcscat functions.
27143         * sysdeps/s390/multiarch/ifunc-impl-list.c
27144         (__libc_ifunc_impl_list): Add ifunc test for strcat, wcscat.
27145         * string/strcat.c (STRCAT): Define and use macro.
27146         * wcsmbs/wcscat.c: Use WCSCAT if defined.
27147         * string/test-strcat.c: Add wcscat support.
27148         * wcsmbs/test-wcscat.c: New File.
27149         * wcsmbs/Makefile (strop-tests): Add wcscat.
27150         * benchtests/bench-strcat.c: Add wcscat support.
27151         * benchtests/bench-wcscat.c: New File.
27152         * benchtests/Makefile (wcsmbs-bench): Add wcscat.
27153
27154         * sysdeps/s390/multiarch/stpncpy-c.c: New File.
27155         * sysdeps/s390/multiarch/stpncpy-vx.S: Likewise.
27156         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
27157         * sysdeps/s390/multiarch/wcpncpy-c.c: Likewise.
27158         * sysdeps/s390/multiarch/wcpncpy-vx.S: Likewise.
27159         * sysdeps/s390/multiarch/wcpncpy.c: Likewise.
27160         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpncpy and
27161         wcpncpy functions.
27162         * sysdeps/s390/multiarch/ifunc-impl-list.c
27163         (__libc_ifunc_impl_list): Add ifunc test for stpncpy, wcpncpy.
27164         * wcsmbs/wcpncpy.c: Use WCPNCPY if defined.
27165         * string/test-stpncpy.c: Add wcpncpy support.
27166         * wcsmbs/test-wcpncpy.c: New File.
27167         * wcsmbs/Makefile (strop-tests): Add wcpncpy.
27168         * benchtests/bench-stpncpy.c: Add wcpncpy support.
27169         * benchtests/bench-wcpncpy.c: New File.
27170         * benchtests/Makefile (wcsmbs-bench): Add wcpncpy.
27171
27172         * sysdeps/s390/multiarch/strncpy-vx.S: New File.
27173         * sysdeps/s390/multiarch/strncpy.c: Likewise.
27174         * sysdeps/s390/multiarch/wcsncpy-c.c: Likewise.
27175         * sysdeps/s390/multiarch/wcsncpy-vx.S: Likewise.
27176         * sysdeps/s390/multiarch/wcsncpy.c: Likewise.
27177         * sysdeps/s390/s390-32/multiarch/strncpy.c: Likewise.
27178         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
27179         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncpy and
27180         wcsncpy functions.
27181         * wcsmbs/wcsncpy.c: Use WCSNCPY if defined.
27182         * sysdeps/s390/multiarch/ifunc-impl-list.c
27183         (__libc_ifunc_impl_list): Add ifunc test for strncpy, wcsncpy.
27184         * string/test-strncpy.c: Add wcsncpy support.
27185         * wcsmbs/test-wcsncpy.c: New File.
27186         * wcsmbs/Makefile (strop-tests): Add wcsncpy.
27187         * benchtests/bench-strncpy.c: Add wcsncpy support.
27188         * benchtests/bench-wcsncpy.c: New File.
27189         * benchtests/Makefile (wcsmbs-bench): Add wcsncpy
27190
27191         * sysdeps/s390/multiarch/stpcpy-c.c: New File.
27192         * sysdeps/s390/multiarch/stpcpy-vx.S: Likewise.
27193         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
27194         * sysdeps/s390/multiarch/wcpcpy-c.c: Likewise.
27195         * sysdeps/s390/multiarch/wcpcpy-vx.S: Likewise.
27196         * sysdeps/s390/multiarch/wcpcpy.c: Likewise.
27197         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpcpy and
27198         wcpcpy functions.
27199         * string/stpcpy.c: Use STPCPY if defined.
27200         * wcsmbs/wcpcpy.c: Use WCPCPY if defined.
27201         * sysdeps/s390/multiarch/ifunc-impl-list.c
27202         (__libc_ifunc_impl_list): Add ifunc test for stpcpy, wcpcpy.
27203         * string/test-stpcpy.c: Add wcpcpy support.
27204         * wcsmbs/test-wcpcpy.c: New File.
27205         * wcsmbs/Makefile (strop-tests): Add wcpcpy.
27206         * benchtests/bench-stpcpy.c: Add wcpcpy support.
27207         * benchtests/bench-wcpcpy.c: New File.
27208         * benchtests/Makefile (wcsmbs-bench): Add wcpcpy.
27209
27210         * sysdeps/s390/multiarch/strcpy-vx.S: New File.
27211         * sysdeps/s390/multiarch/strcpy.c: Likewise.
27212         * sysdeps/s390/multiarch/wcscpy-c.c: Likewise.
27213         * sysdeps/s390/multiarch/wcscpy-vx.S: Likewise.
27214         * sysdeps/s390/multiarch/wcscpy.c: Likewise.
27215         * sysdeps/s390/s390-32/multiarch/strcpy.c: Likewise.
27216         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
27217         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcpy and
27218         wcscpy functions.
27219         * sysdeps/s390/multiarch/ifunc-impl-list.c
27220         (__libc_ifunc_impl_list): Add ifunc test for strcpy, wcscpy.
27221         * benchtests/bench-wcscpy.c: New File.
27222         * benchtests/Makefile (wcsmbs-bench): Add wcscpy.
27223
27224         * sysdeps/s390/multiarch/strnlen-c.c: New File.
27225         * sysdeps/s390/multiarch/strnlen-vx.S: Likewise.
27226         * sysdeps/s390/multiarch/strnlen.c: Likewise.
27227         * sysdeps/s390/multiarch/wcsnlen-c.c: Likewise.
27228         * sysdeps/s390/multiarch/wcsnlen-vx.S: Likewise.
27229         * sysdeps/s390/multiarch/wcsnlen.c: Likewise.
27230         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strnlen and
27231         wcsnlen functions.
27232         * sysdeps/s390/multiarch/ifunc-impl-list.c
27233         (__libc_ifunc_impl_list): Add ifunc test for strnlen, wcsnlen.
27234         * wcsmbs/wcsnlen.c: Use WCSNLEN if defined.
27235         * string/test-strnlen.c: Add wcsnlen support.
27236         * wcsmbs/test-wcsnlen.c: New File.
27237         * wcsmbs/Makefile (strop-tests): Add wcsnlen.
27238         * benchtests/bench-strnlen.c: Add wcsnlen support.
27239         * benchtests/bench-wcsnlen.c: New File.
27240         * benchtests/Makefile (wcsmbs-bench): Add wcsnlen.
27241
27242         * sysdeps/s390/multiarch/Makefile: New File.
27243         * sysdeps/s390/multiarch/strlen-c.c: Likewise.
27244         * sysdeps/s390/multiarch/strlen-vx.S: Likewise.
27245         * sysdeps/s390/multiarch/strlen.c: Likewise.
27246         * sysdeps/s390/multiarch/wcslen-c.c: Likewise.
27247         * sysdeps/s390/multiarch/wcslen-vx.S: Likewise.
27248         * sysdeps/s390/multiarch/wcslen.c: Likewise.
27249         * string/strlen.c (STRLEN): Define and use macro.
27250         * sysdeps/s390/multiarch/ifunc-impl-list.c
27251         (IFUNC_VX_IMPL): New macro function.
27252         (__libc_ifunc_impl_list): Add ifunc test for strlen, wcslen.
27253         * benchtests/Makefile (wcsmbs-bench): New variable.
27254         (string-bench-all): Added wcsmbs-bench.
27255         * benchtests/bench-wcslen.c: New File.
27256
27257         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_vx_libc_ifunc,
27258         s390_vx_libc_ifunc2): New macro function.
27259
27260         * config.h.in (HAVE_S390_VX_ASM_SUPPORT): New macro undefine.
27261         * sysdeps/s390/configure.ac: Add test for S390 vector instruction
27262         assembler support.
27263         * sysdeps/s390/configure: Regenerated.
27264
27265         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z13.
27266         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
27267
27268         * sysdeps/s390/dl-procinfo.c (_dl_s390_platforms): Add vector flag.
27269         * sysdeps/s390/dl-procinfo.h: Add vector capability.
27270         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h (HWCAP_S390_VX): Define.
27271
27272         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
27273         Remove ifunc-resolve, add memset-s390, memcpy-s390, memcmp-s390.
27274         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Delete File.
27275         * sysdeps/s390/s390-32/multiarch/memcmp.S: Move to ...
27276         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: ... here.
27277         (memcmp, bcmp): Use __memcmp_default as alias source.
27278         * sysdeps/s390/s390-32/multiarch/memcmp.c: New File.
27279         * sysdeps/s390/s390-32/memcmp.S (__memcmp_g5):
27280         Rename to __memcmp_default.
27281         * sysdeps/s390/s390-32/multiarch/memcpy.S: Move to ...
27282         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: ... here.
27283         (memcpy): Use __memcpy_default as alias source.
27284         * sysdeps/s390/s390-32/multiarch/memcpy.c: New File.
27285         * sysdeps/s390/s390-32/memcpy.S (__memcpy_g5):
27286         Rename to __memcpy_default.
27287         * sysdeps/s390/s390-32/multiarch/memset.S: Move to ...
27288         * sysdeps/s390/s390-32/multiarch/memset-s390.S: ... here.
27289         (memset): Use __memset_default as alias source.
27290         * sysdeps/s390/s390-32/multiarch/memset.c: New File.
27291         * sysdeps/s390/s390-32/memset.S (__memset_g5):
27292         Rename to __memset_default.
27293         * sysdeps/s390/s390-64/multiarch/Makefile (sysdep_routines):
27294         Remove ifunc-resolve, add memset-s390x, memcpy-s390x, memcmp-s390x.
27295         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Delete File.
27296         * sysdeps/s390/s390-64/multiarch/memcmp.S: Move to ...
27297         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: ... here.
27298         (memcmp, bcmp): Use __memcmp_default as alias source.
27299         * sysdeps/s390/s390-64/multiarch/memcmp.c: New File.
27300         * sysdeps/s390/s390-64/memcmp.S (__memcmp_z900):
27301         Rename to __memcmp_default.
27302         * sysdeps/s390/s390-64/multiarch/memcpy.S: Move to ...
27303         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: ... here.
27304         (memcpy): Use __memcpy_default as alias source.
27305         * sysdeps/s390/s390-64/multiarch/memcpy.c: New File.
27306         * sysdeps/s390/s390-64/memcpy.S (__memcpy_z900):
27307         Rename to __memcpy_default.
27308         * sysdeps/s390/s390-64/multiarch/memset.S: Move to ...
27309         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: ... here.
27310         (memset): Use __memset_default as alias source.
27311         * sysdeps/s390/s390-64/multiarch/memset.c: New File.
27312         * sysdeps/s390/s390-64/memset.S (__memset_z900):
27313         Rename to __memset_default.
27314         * sysdeps/s390/multiarch/ifunc-resolve.h: New File.
27315         * sysdeps/s390/multiarch/ifunc-impl-list.c: New File.
27316
27317         [BZ #18610]
27318         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Rename
27319         __ieee_instruction_pointer to __unused.
27320         * sysdeps/s390/fpu/fesetenv.c (__fesetenv): Remove usage of
27321         __ieee_instruction_pointer.
27322         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Fix dxc-field handling.
27323         * sysdeps/s390/fpu/fgetexcptflg.c (fegetexceptflag): Likewise.
27324         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
27325         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
27326         * sysdeps/s390/fpu/fpu_control.h (_FPU_RESERVED):
27327         Mark dxc-field as reserved.
27328
27329 2015-08-25  Roland McGrath  <roland@hack.frob.com>
27330
27331         * sysdeps/nacl/start.c (_start): Call __nacl_main instead of main
27332         if the weak reference is not null.
27333
27334 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
27335
27336         * sysdeps/x86_64/strcmp.S: Remove "#if !IS_IN (libc)".
27337
27338         [BZ #11214]
27339         * sysdeps/unix/sysv/linux/Makefile (tst-getpid2-ENV): Removed.
27340
27341 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
27342
27343         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: Define new macros.
27344         * sysdeps/unix/sysv/linux/accept.c: Call direct system call.
27345         * sysdeps/unix/sysv/linux/bind.c: Call direct system call.
27346         * sysdeps/unix/sysv/linux/connect.c: Call direct system call.
27347         * sysdeps/unix/sysv/linux/getpeername.c: Call direct system call.
27348         * sysdeps/unix/sysv/linux/getsockname.c: Call direct system call.
27349         * sysdeps/unix/sysv/linux/getsockopt.c: Call direct system call.
27350         * sysdeps/unix/sysv/linux/listen.c: Call direct system call.
27351         * sysdeps/unix/sysv/linux/recv.c: Call direct system call.
27352         * sysdeps/unix/sysv/linux/recvfrom.c: Call direct system call.
27353         * sysdeps/unix/sysv/linux/recvmsg.c: Call direct system call.
27354         * sysdeps/unix/sysv/linux/send.c: Call direct system call.
27355         * sysdeps/unix/sysv/linux/sendmsg.c: Call direct system call.
27356         * sysdeps/unix/sysv/linux/sendto.c: Call direct system call.
27357         * sysdeps/unix/sysv/linux/setsockopt.c: Call direct system call.
27358         * sysdeps/unix/sysv/linux/shutdown.c: Call direct system call.
27359         * sysdeps/unix/sysv/linux/socket.c: Call direct system call.
27360         * sysdeps/unix/sysv/linux/socketpair.c: Call direct system call.
27361
27362 2015-08-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
27363
27364         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION): Use
27365         register other than r0 for tabort, it has special meaning.
27366         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION): Likewise.
27367         * sysdeps/unix.sysv/linux/powerpc/syscall.S (syscall): Abort
27368         transaction before starting syscall.
27369
27370 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
27371
27372         * sysdeps/powerpc/powerpc64/power7/strstr.S: Handle worst case.
27373
27374 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
27375
27376         * sysdeps/x86_64/strlen.S: Replace %xmm[8-12] with %xmm[0-4].
27377
27378         * sysdeps/x86_64/rtld-memcmp.c: Removed.
27379         * sysdeps/x86_64/rtld-memset.S: Likewise.
27380         * sysdeps/x86_64/rtld-strchr.S: Likewise.
27381         * sysdeps/x86_64/rtld-strlen.S: Likewise.
27382         * sysdeps/x86_64/multiarch/rtld-memcmp.c: Likewise.
27383         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
27384
27385         * sysdeps/x86_64/memset.S: Replace %xmm8 with %xmm0.
27386
27387 2015-08-25  Ondřej Bílka  <neleai@seznam.cz>
27388
27389         * debug/strcpy_chk.c: Improve performance.
27390         * debug/stpcpy_chk.c: Likewise.
27391         * sysdeps/x86_64/strcpy_chk.S: Remove.
27392         * sysdeps/x86_64/stpcpy_chk.S: Remove.
27393
27394         [BZ #18240]
27395         * misc/hsearch_r.c (__hcreate_r): Handle overflow.
27396
27397 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
27398
27399         [BZ #15128]
27400         * sysdeps/x86_64/Makefile [$(subdir) == elf] (tests): Add
27401         ifuncmain8.
27402         (modules-names): Add ifuncmod8.
27403         ($(objpfx)ifuncmain8): New rule.
27404         * sysdeps/x86_64/dl-machine.h: Include <dl-procinfo.h> and
27405         <cpuid.h>.
27406         (elf_machine_runtime_setup): Use _dl_runtime_resolve_sse,
27407         _dl_runtime_resolve_avx, or _dl_runtime_resolve_avx512,
27408         _dl_runtime_profile_sse, _dl_runtime_profile_avx, or
27409         _dl_runtime_profile_avx512, based on HAS_ARCH_FEATURE.
27410         * sysdeps/x86_64/dl-trampoline.S: Rewrite.
27411         * sysdeps/x86_64/dl-trampoline.h: Likewise.
27412         * sysdeps/x86_64/ifuncmain8.c: New file.
27413         * sysdeps/x86_64/ifuncmod8.c: Likewise.
27414         * sysdeps/x86_64/nptl/tcb-offsets.sym (RTLD_SAVESPACE_SSE):
27415         Removed.
27416         * sysdeps/x86_64/nptl/tls.h (__128bits): Removed.
27417         (tcbhead_t): Change rtld_must_xmm_save to __glibc_unused1.
27418         Change rtld_savespace_sse to __glibc_unused2.
27419         (RTLD_CHECK_FOREIGN_CALL): Removed.
27420         (RTLD_ENABLE_FOREIGN_CALL): Likewise.
27421         (RTLD_PREPARE_FOREIGN_CALL): Likewise.
27422         (RTLD_FINALIZE_FOREIGN_CALL): Likewise.
27423
27424 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
27425
27426         * sysdeps/aarch64/bzero.S (__bzero): Remove.
27427
27428 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
27429
27430         * sysdeps/aarch64/fpu/math_private.h (libc_feholdsetround_aarch64_ctx):
27431         Unconditionally set __fpcr to avoid uninialized warning.
27432         (libc_feholdsetround_noex_aarch64_ctx): Likewise.
27433
27434 2015-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
27435
27436         * malloc/arena.c (arena_get_retry): Don't use main_arena if it
27437         is corrupt.
27438
27439         * malloc/arena.c (arena_get2): Drop unused argument.
27440         (arena_lock): Adjust.
27441         (arena_get_retry): Likewise.
27442
27443 2015-08-24  Andreas Schwab  <schwab@suse.de>
27444
27445         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_IPC64):
27446         Don't define.
27447         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
27448         (__ASSUME_IPC64): Don't undef.
27449         * sysdeps/unix/sysv/linux/msgctl.c: Don't check for __ASSUME_IPC64.
27450         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
27451         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
27452         * sysdeps/unix/sysv/linux/i386/msgctl.c: Remove.
27453         * sysdeps/unix/sysv/linux/i386/semctl.c: Remove.
27454         * sysdeps/unix/sysv/linux/i386/shmctl.c: Remove.
27455         * sysdeps/unix/sysv/linux/m68k/msgctl.c: Remove.
27456         * sysdeps/unix/sysv/linux/m68k/semctl.c: Remove.
27457         * sysdeps/unix/sysv/linux/m68k/shmctl.c: Remove.
27458         * sysdeps/unix/sysv/linux/s390/s390-32/msgctl.c: Remove.
27459         * sysdeps/unix/sysv/linux/s390/s390-32/semctl.c: Remove.
27460         * sysdeps/unix/sysv/linux/s390/s390-32/shmctl.c: Remove.
27461         * sysdeps/unix/sysv/linux/sh/msgctl.c: Remove.
27462         * sysdeps/unix/sysv/linux/sh/semctl.c: Remove.
27463         * sysdeps/unix/sysv/linux/sh/shmctl.c: Remove.
27464         * sysdeps/unix/sysv/linux/sparc/sparc32/msgctl.c: Remove.
27465         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Remove.
27466         * sysdeps/unix/sysv/linux/sparc/sparc32/shmctl.c: Remove.
27467         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Remove.
27468         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Remove.
27469         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Remove.
27470
27471 2015-08-21  Mike Frysinger  <vapier@gentoo.org>
27472
27473         * manual/Makefile (install): Only build manual when perl is available.
27474
27475 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
27476
27477         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Replace
27478         '#undef memcpy' by '#undef memchr'.
27479
27480 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
27481
27482         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: Make
27483         memchr not point to the internal __GI_memchr implementation.
27484
27485 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
27486
27487         * timezone/Makefile (CFLAGS-zdump.c): Remove
27488         -Wno-strict-prototypes.
27489         (CFLAGS-zic.c): Likewise.
27490         (CFLAGS-ialloc.c): Likewise.
27491         (CFLAGS-scheck.c): Likewise.
27492
27493         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add
27494         -Wno-error=undef.
27495
27496 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
27497
27498         * i386/i686/multiarch/strcasestr-c.c: Removed.
27499         * x86_64/multiarch/strcasestr.c: Likewise.
27500         * x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
27501         Remove strcasestr.
27502
27503 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
27504
27505         * math/Makefile (CFLAGS): Don't add -Wno-uninitialized.
27506
27507         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Always initialize
27508         variables for high and low parts before possibly modifying them.
27509
27510 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
27511
27512         * sysdeps/i386/i686/multiarch/init-arch.h: Removed.
27513         * sysdeps/unix/sysv/linux/x86/init-arch.h: Likewise.
27514         * sysdeps/x86_64/cacheinfo.c: Include <init-arch.h> instead
27515         of "multiarch/init-arch.h".
27516         * sysdeps/x86_64/multiarch/init-arch.h: Renamed to ...
27517         * sysdeps/x86/init-arch.h: This.
27518
27519 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
27520
27521         * sysdeps/i386/i686/multiarch/init-arch.c: Removed.
27522         * sysdeps/unix/sysv/linux/x86/init-arch.c: Likewise.
27523
27524 2015-08-20  Ondřej Bílka  <neleai@seznam.cz>
27525
27526         [BZ #17787]
27527         * manual/macros.texi: Add twoexp macro.
27528         * manual/filesys.texi: Fix exponents.
27529         * manual/llio.texi: Likewise.
27530         * manual/stdio.texi: Likewise.
27531
27532 2015-08-20  Florian Weimer  <fweimer@redhat.com>
27533
27534         * sysdeps/x86/elide.h (ELIDE_UNLOCK): Document crash due to
27535         incorrect use.
27536
27537 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
27538
27539         [BZ #18370]
27540         * math/s_csqrt.c (__csqrt): Force underflow exception for results
27541         whose real or imaginary part has small absolute value.
27542         * math/s_csqrtf.c (__csqrtf): Likewise.
27543         * math/s_csqrtl.c (__csqrtl): Likewise.
27544         * math/auto-libm-test-in: Add more tests of csqrt.
27545         * math/auto-libm-test-out: Regenerated.
27546         * sysdeps/i386/fpu/libm-test-ulps: Update.
27547
27548 2015-08-19  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
27549
27550         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_set_ppr_med_high,
27551         __ppc_set_ppr_very_low): New functions.
27552         * manual/platform.texi: Add documentation about
27553         __ppc_set_ppr_med_high and __ppc_set_ppr_very_low.
27554
27555 2015-08-19  Wilco Dijkstra  <wdijkstr@arm.com>
27556
27557         * string/stpncpy.c (stpncpy): Improve performance using
27558         __strnlen/memcpy/memset.
27559
27560 2015-08-19  Andrew Senkevich  <andrew.senkevich@intel.com>
27561
27562         [BZ #18796]
27563         * scripts/test-installation.pl: Don't add -lmvec to build options if
27564         libmvec wasn't built.
27565
27566 2015-08-19   Petar Jovanovic  <petar.jovanovic@rt-rk.com>
27567
27568         [BZ #14341]
27569         * elf/dynamic-link.h (elf_machine_lazy_rel): Properly handle the
27570         case when there is a gap between DT_REL and DT_JMPREL sections.
27571         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc.
27572         (LDFLAGS-tst-split-dynreloc): New.
27573         (tst-split-dynreloc-ENV): Likewise.
27574         * sysdeps/x86_64/tst-split-dynreloc.c: New file.
27575         * sysdeps/x86_64/tst-split-dynreloc.lds: Likewise.
27576
27577 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
27578
27579         [BZ #18822]
27580         * sysdeps/unix/sysv/linux/xstatconv.h (__xstat_conv): Add
27581         attribute_hidden.
27582         (__xstat64_conv): Likewise.
27583         (__xstat32_conv): Likewise.
27584
27585 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
27586
27587         [BZ #18822]
27588         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
27589         Don't load %ebx when calling __setcontext.  Call __setcontext
27590         with HIDDEN_JUMPTARGET.
27591         * sysdeps/unix/sysv/linux/i386/setcontext.S (__setcontext): Add
27592         libc_hidden_def.
27593
27594 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
27595
27596         * sysdeps/i386/i686/Makefile
27597         [$(subdir) == string] (sysdep_routines): Moved to ...
27598         * sysdeps/i386/Makefile: Here.
27599         * sysdeps/i386/i686/cacheinfo.c: Moved to ...
27600         * sysdeps/i386/cacheinfo.c: Here.
27601         * sysdeps/unix/sysv/linux/i386/sysconf.c: Removed.
27602         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: Likewise.
27603         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Moved to ...
27604         * sysdeps/unix/sysv/linux/x86/sysconf.c: Here.
27605
27606 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
27607
27608         * sysdeps/x86/cpu-features.h (HAS_I586): Defined to 1 if
27609         __i586__ is defined.
27610         (HAS_I686): Defined to 1 if __i686__ is defined.
27611
27612 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
27613
27614         * elf/Makefile [$(have-z-execstack) = yes]
27615         (CPPFLAGS-tst-execstack.c): New variable.
27616
27617         * login/tst-utmp.c [_HAVE_UT_TYPE || defined UTMPX]: Change
27618         conditional to [defined UTMPX || _HAVE_UT_TYPE].
27619         [_HAVE_UT_TV || defined UTMPX]: Change conditional to [defined
27620         UTMPX || _HAVE_UT_TV].
27621         [_HAVE_UT_TV - 0 || defined UTMPX]: Change conditional to [defined
27622         UTMPX || _HAVE_UT_TV - 0].
27623
27624 2015-08-18  Joseph Myers  <joseph@codesourcery.com>
27625
27626         * sysdeps/mips/dl-machine.h [__mips_isa_rev < 6]: Change
27627         conditionals to [!defined __mips_isa_rev || __mips_isa_rev < 6].
27628         * sysdeps/mips/machine-gmon.h [__mips_isa_rev < 6]: Likewise.
27629
27630 2015-08-18  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
27631
27632         * sysdeps/powerpc/dl-procinfo.c:
27633         (_dl_powerpc_cap_flags): Added missing strings for some
27634         hwcap features.
27635         * sysdeps/powerpc/dl-procinfo.h: Updated hwcap bit count.
27636
27637 2015-08-18  Paul Eggert  <eggert@cs.ucla.edu>
27638
27639         Port the 0x7efe...feff pattern to GCC 6.
27640         See Steve Ellcey's bug report in:
27641         https://sourceware.org/ml/libc-alpha/2015-07/msg00673.html
27642         * string/memrchr.c (MEMRCHR):
27643         * string/rawmemchr.c (RAWMEMCHR):
27644         * string/strchr.c (strchr):
27645         * string/strchrnul.c (STRCHRNUL):
27646         Rewrite code to avoid issues with signed shift overflow.
27647
27648 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
27649
27650         * sysdeps/x86/cpu-features.c (init_cpu_features): Check
27651         whether cpuid is available only if HAS_CPUID is 0.
27652         * sysdeps/x86/cpu-features.h (HAS_CPUID): New.
27653         (HAS_I586): Likewise.
27654         (HAS_I686): Likewise.
27655
27656 2015-08-18  Zack Weinberg  <zackw@panix.com>
27657
27658         * misc/Versions (libc): Add GLIBC_2.23.
27659
27660 2015-08-18  Alan Modra  <amodra@gmail.com>
27661
27662         [BZ #18421]
27663         * sysdeps/hppa/start.S [SHARED]: Use .section .data.rel.ro and define
27664         .Lp__global.
27665         (_start): Load %dp via .Lp__global.
27666         [!SHARED]: Use .section .rodata.
27667
27668 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27669
27670         * sysdeps/unix/sysv/linux/hppa/bits/timerfd.h: New file.
27671         * sysdeps/unix/sysv/linux/hppa/sys/timerfd.h: Delete.
27672
27673 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27674
27675         * sysdeps/unix/sysv/linux/hppa/bits/signalfd.h: New file.
27676         * sysdeps/unix/sysv/linux/hppa/sys/signalfd.h: Delete.
27677
27678 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27679
27680         * sysdeps/unix/sysv/linux/hppa/bits/inotify.h: New file.
27681         * sysdeps/unix/sysv/linux/hppa/sys/inotify.h: Delete.
27682
27683 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27684
27685         * sysdeps/unix/sysv/linux/hppa/bits/eventfd.h: New file.
27686         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Delete.
27687
27688 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27689
27690         * sysdeps/unix/sysv/linux/hppa/bits/epoll.h: New file.
27691         * sysdeps/unix/sysv/linux/hppa/sys/epoll.h: Delete.
27692
27693 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27694
27695         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h (SA_RESETHAND,
27696         SA_NODEFER, SA_RESTART): Define when __USE_XOPEN2K8 is defined.
27697
27698 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27699
27700         * sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHM_EXEC): Define.
27701
27702 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27703
27704         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Delete
27705         kernel-features.h include.  Delete __ASSUME_LWS_CAS checks.
27706         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
27707         (__ASSUME_LWS_CAS): Delete.
27708
27709 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27710
27711         * sysdeps/hppa/configure.ac: Delete binutils tls checks.
27712         * sysdeps/hppa/configure: Regenerated.
27713         * sysdeps/hppa/dl-machine.h: Delete USE_TLS and USE___THREAD checks.
27714         * sysdeps/hppa/libc-tls.c: Delete USE_TLS checks.
27715         * sysdeps/hppa/nptl/tls.h: Likewise.
27716
27717 2015-08-17  Joseph Myers  <joseph@codesourcery.com>
27718
27719         [BZ #18823]
27720         * math/s_csqrt.c (__csqrt): Increase threshold and scale factor
27721         for scaling up small arguments.
27722         * math/s_csqrtf.c (__csqrtf): Likewise.
27723         * math/s_csqrtl.c (__csqrtl): Likewise.
27724         * math/auto-libm-test-in: Add more tests of csqrt.
27725         * math/auto-libm-test-out: Regenerated.
27726
27727 2015-08-17  Andreas Schwab  <schwab@suse.de>
27728
27729         * sysdeps/unix/sysv/linux/powerpc/Versions (libm): Add empty
27730         version set GLIBC_2.19.
27731
27732 2015-08-16  Zack Weinberg  <zackw@panix.com>
27733
27734         [BZ #18681]
27735         * misc/regexp.h: This interface is no longer supported.
27736         Remove all contents, leaving only an #error directive.
27737         * misc/regexp.c (loc1, loc2, locs, step, advance):
27738         Demote to compatibility symbols.
27739
27740 2015-08-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
27741
27742         [BZ #18084]
27743         * debug/tst-backtrace2.c (do_test): Add test for BZ #18084.
27744         * sysdeps/arm/backtrace.c (__backtrace): Handle size <= 0.
27745         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
27746         * sysdeps/m68k/backtrace.c (__backtrace): Likewise.
27747         * sysdeps/microblaze/backtrace.c (__backtrace): Likewise.
27748         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Likewise.
27749         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Likewise.
27750         * sysdeps/sparc/backtrace.c (__backtrace): Likewise.
27751         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
27752
27753 2015-08-15  Zack Weinberg  <zackw@panix.com>
27754
27755         [BZ #18795]
27756         * string/bits/string3.h (stpncpy): Call __stpncpy_chk if the
27757         buffer length is known to be too large, not if it's known to be
27758         small enough.
27759         * debug/tst-chk1.c (do_test): Do all tests for catching a buffer
27760         overflow at runtime, involving a length parameter, twice: once
27761         with a compile-time constant length parameter, once without.
27762
27763 2015-08-14  Joseph Myers  <joseph@codesourcery.com>
27764
27765         [BZ #18824]
27766         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Increase threshold for
27767         scaling x * y up instead of down.
27768         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
27769         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27770         * math/auto-libm-test-in: Add more tests of fma.
27771         * math/auto-libm-test-out: Regenerated.
27772
27773 2015-08-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
27774
27775         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
27776
27777 2015-08-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
27778
27779         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf): Remove
27780         unnecessary movq.
27781         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S (__nearbyint):
27782         Likewise.
27783
27784 2015-08-13  Joseph Myers  <joseph@codesourcery.com>
27785
27786         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
27787         asinh, atan, atan2, atanh, cabs, cbrt, cosh, csqrt, erf, erfc,
27788         exp, exp2, lgamma, log, log1p, log2, pow, sin, sincos, tan, tanh
27789         and tgamma.
27790         * math/auto-libm-test-out: Regenerated.
27791         * sysdeps/i386/fpu/libm-test-ulps: Update.
27792         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27793
27794         [BZ #16520]
27795         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <float.h>.
27796         (__tanh): Force underflow exception for arguments with small
27797         absolute value.
27798         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <float.h>.
27799         (__tanhf): Force underflow exception for arguments with small
27800         absolute value.
27801         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include <float.h>.
27802         (__tanhl): Force underflow exception for arguments with small
27803         absolute value.
27804         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Include <float.h>.
27805         (__tanhl): Force underflow exception for arguments with small
27806         absolute value.
27807         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include <float.h>.
27808         (__tanhl): Force underflow exception for arguments with small
27809         absolute value.
27810         * math/auto-libm-test-in: Add more tests of tanh.
27811         * math/auto-libm-test-out: Regenerated.
27812         * sysdeps/i386/fpu/libm-test-ulps: Update.
27813
27814 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
27815
27816         * sysdeps/x86/cpu-features.c (init_cpu_features): Call
27817         __get_cpuid_max if not compiling for i586, i686 nor x86-64.
27818
27819 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
27820
27821         * sysdeps/unix/sysv/linux/x86/elision-conf.h: Don't include
27822         <cpuid.h>.
27823
27824 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
27825
27826         * sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init):
27827         Replace HAS_RTM with HAS_CPU_FEATURE (RTM).
27828
27829 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
27830
27831         * math/Makefile ($(addprefix $(objpfx), $(libm-vec-tests))):
27832         Remove $(objpfx)init-arch.o.
27833         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Remove
27834         init-arch.
27835         * sysdeps/x86_64/fpu/math-tests-arch.h (avx_usable): Removed.
27836         (INIT_ARCH_EXT): Defined as empty.
27837         (CHECK_ARCH_EXT): Replace HAS_XXX with HAS_ARCH_FEATURE (XXX).
27838         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Remove
27839         __init_cpu_features call.  Replace HAS_XXX with
27840         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
27841         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Likewise.
27842         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Likewise.
27843         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Likewise.
27844         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Likewise.
27845         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
27846         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Likewise.
27847         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Likewise.
27848         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
27849         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Likewise.
27850         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Likewise.
27851         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
27852         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Likewise.
27853         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Likewise.
27854         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
27855         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Likewise.
27856         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Likewise.
27857         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
27858         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
27859         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: Likewise.
27860         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: Likewise.
27861         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
27862         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: Likewise.
27863         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: Likewise.
27864         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
27865         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: Likewise.
27866         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: Likewise.
27867         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
27868         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: Likewise.
27869         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: Likewise.
27870         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
27871         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S: Likewise.
27872         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S: Likewise.
27873         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
27874         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: Likewise.
27875         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: Likewise.
27876
27877 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
27878
27879         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Replace HAS_XXX
27880         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
27881         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
27882         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
27883         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Likewise.
27884         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Likewise.
27885         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Likewise.
27886         * sysdeps/i386/i686/multiarch/s_fma.c: Likewise.
27887         * sysdeps/i386/i686/multiarch/s_fmaf.c: Likewise.
27888         * sysdeps/i386/i686/multiarch/bcopy.S: Remove __init_cpu_features
27889         call.  Merge SHARED and !SHARED.  Add LOAD_GOT_AND_RTLD_GLOBAL_RO.
27890         Use LOAD_FUNC_GOT_EAX to load function address.  Replace HAS_XXX
27891         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
27892         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
27893         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
27894         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
27895         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
27896         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
27897         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
27898         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
27899         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
27900         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
27901         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
27902         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
27903         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
27904         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
27905         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
27906         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
27907         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
27908         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
27909         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
27910         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
27911         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
27912         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
27913         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
27914         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
27915         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
27916         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
27917         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
27918         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
27919         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
27920         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
27921         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
27922
27923 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
27924
27925         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Replace HAS_XXX with
27926         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
27927         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
27928         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
27929         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
27930         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
27931         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
27932         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Likewise.
27933         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
27934         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
27935         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
27936         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Use
27937         LOAD_RTLD_GLOBAL_RO_RDX and HAS_CPU_FEATURE (SSE4_1).
27938         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Likewise.
27939         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Likewise.
27940         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Likewise.
27941         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S : Likewise.
27942         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Likewise.
27943         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Likewise.
27944         * sysdeps/x86_64/fpu/multiarch/s_rintf.S : Likewise.
27945         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
27946         * sysdeps/x86_64/multiarch/sched_cpucount.c: Likewise.
27947         * sysdeps/x86_64/multiarch/strstr.c: Likewise.
27948         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
27949         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
27950         * sysdeps/x86_64/multiarch/test-multiarch.c: Likewise.
27951         * sysdeps/x86_64/multiarch/memcmp.S: Remove __init_cpu_features
27952         call.  Add LOAD_RTLD_GLOBAL_RO_RDX.  Replace HAS_XXX with
27953         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
27954         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
27955         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
27956         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
27957         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
27958         * sysdeps/x86_64/multiarch/memset.S: Likewise.
27959         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
27960         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
27961         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
27962         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
27963         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
27964         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
27965         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
27966         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
27967         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
27968
27969 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
27970
27971         * sysdeps/i386/dl-machine.h: Include <cpu-features.c>.
27972         (dl_platform_init): Call init_cpu_features.
27973         * sysdeps/i386/dl-procinfo.c (_dl_x86_cpu_features): New.
27974         * sysdeps/i386/i686/cacheinfo.c
27975         (DISABLE_PREFERRED_MEMORY_INSTRUCTION): Removed.
27976         * sysdeps/i386/i686/multiarch/Makefile (aux): Remove init-arch.
27977         * sysdeps/i386/i686/multiarch/Versions: Removed.
27978         * sysdeps/i386/i686/multiarch/ifunc-defines.sym (KIND_OFFSET):
27979         Removed.
27980         * sysdeps/i386/ldsodefs.h: Include <cpu-features.h>.
27981         * sysdeps/unix/sysv/linux/x86/Makefile
27982         (libpthread-sysdep_routines): Remove init-arch.
27983         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
27984         <sysdeps/x86_64/dl-procinfo.c> instead of
27985         sysdeps/generic/dl-procinfo.c>.
27986         * sysdeps/x86/Makefile [$(subdir) == csu] (gen-as-const-headers):
27987         Add cpu-features-offsets.sym and rtld-global-offsets.sym.
27988         [$(subdir) == elf] (sysdep-dl-routines): Add dl-get-cpu-features.
27989         [$(subdir) == elf] (tests): Add tst-get-cpu-features.
27990         [$(subdir) == elf] (tests-static): Add
27991         tst-get-cpu-features-static.
27992         * sysdeps/x86/Versions: New file.
27993         * sysdeps/x86/cpu-features-offsets.sym: Likewise.
27994         * sysdeps/x86/cpu-features.c: Likewise.
27995         * sysdeps/x86/cpu-features.h: Likewise.
27996         * sysdeps/x86/dl-get-cpu-features.c: Likewise.
27997         * sysdeps/x86/libc-start.c: Likewise.
27998         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
27999         * sysdeps/x86/tst-get-cpu-features-static.c: Likewise.
28000         * sysdeps/x86/tst-get-cpu-features.c: Likewise.
28001         * sysdeps/x86_64/dl-procinfo.c: Likewise.
28002         * sysdeps/x86_64/cacheinfo.c (__cpuid_count): Removed.
28003         Assume USE_MULTIARCH is defined and don't check it.
28004         (is_intel): Replace __cpu_features with GLRO(dl_x86_cpu_features).
28005         (is_amd): Likewise.
28006         (max_cpuid): Likewise.
28007         (intel_check_word): Likewise.
28008         (__cache_sysconf): Don't call __init_cpu_features.
28009         (__x86_preferred_memory_instruction): Removed.
28010         (init_cacheinfo): Don't call __init_cpu_features. Replace
28011         __cpu_features with GLRO(dl_x86_cpu_features).
28012         * sysdeps/x86_64/dl-machine.h: <cpu-features.c>.
28013         (dl_platform_init): Call init_cpu_features.
28014         * sysdeps/x86_64/ldsodefs.h: Include <cpu-features.h>.
28015         * sysdeps/x86_64/multiarch/Makefile (aux): Remove init-arch.
28016         * sysdeps/x86_64/multiarch/Versions: Removed.
28017         * sysdeps/x86_64/multiarch/cacheinfo.c: Likewise.
28018         * sysdeps/x86_64/multiarch/init-arch.c: Likewise.
28019         * sysdeps/x86_64/multiarch/ifunc-defines.sym (KIND_OFFSET):
28020         Removed.
28021         * sysdeps/x86_64/multiarch/init-arch.h: Rewrite.
28022
28023 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
28024
28025         [BZ #18820]
28026         * libio/Makefile (test-fmemopen-mem): New test.
28027         * libio/test-fmemopen.c (do_bz18820): New test.
28028         * libio/fmemopen.c (__fmemopen): Fix memory leak.
28029         * libio/oldfmemopen.c (__old_fmemopen): Likewise.
28030
28031 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
28032
28033         [BZ #16734]
28034         * libio/libioP.h (ROUND_TO_PAGE, ALLOC_BUF, ALLOC_WBUF): Delete.
28035         (FREE_BUF): Delete.
28036         * libio/libio.h (_IO_FILE_complete): Delete unused _freeres_size.
28037         * libio/genops.c (_IO_setb): Use malloc and free directly.
28038         (_IO_default_doallocate, _IO_default_finish): Likewise.
28039         ( _IO_unbuffer_all): Likewise.
28040         ( libc_freeres_fn): Likewise.
28041         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
28042         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
28043         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Likewise.
28044         (_IO_wdefault_doallocate): Likewise.
28045
28046 2015-08-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
28047
28048         [BZ #18086]
28049         * sysdeps/posix/nice.c (nice): Restore old errno.
28050         * posix/tst-nice.c (do_test): Add test for BZ #18086.
28051
28052 2015-08-10  Ondrej Bilka  <neleai@seznam.cz>
28053
28054         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Fix ifunc.
28055
28056 2015-08-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28057
28058         * sysdeps/powerpc/powerpc64/power7/memmove.S (bcopy): Changing to
28059         __bcopy and add a weak_alias to bcopy.
28060         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Use __strnlen
28061         for static build.
28062
28063         * string/stpcpy.c (__stpcpy): Use STPCPY to redefine symbol name and
28064         cleanup macro usage.
28065         * string/strcpy.c (strcpt): Use STRCPY to redefine symbol name.
28066         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.S: Remove file.
28067         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
28068         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.S: Likewise.
28069         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
28070         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: Likewise.
28071         * sysdeps/powerpc/powerpc64/power7/strcpy.S: Likewise.
28072         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
28073         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
28074         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
28075         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
28076         [SHARED && IS_IN (libc)]: Include <string/strcpy.c>.
28077         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
28078         [SHARED && IS_IN (libc)]: Include <string/stpcpy.c>.
28079         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
28080         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: Likewise.
28081         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: Likewise.
28082         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: Likewise.
28083         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
28084
28085         * sysdeps/powerpc/powerpc64/power7/strnlen.S (__strnlen): Add
28086         libc_hidden_def.
28087         (strnlen): Remove libc_hidden_builtin_def and add libc_hidden_def.
28088
28089         * sysdeps/powerpc/powerpc64/power7/Makefile [$(subdir) = string]
28090         (sysdep_routines): Add strstr-ppc64.
28091         * sysdeps/powerpc/powerpc64/power7/strstr-ppc64.c: New file.
28092
28093 2015-08-10  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
28094
28095         [BZ #18778]
28096         * elf/Makefile (tests): Add Add tst-nodelete2.
28097         (modules-names): Add tst-nodelete2mod.
28098         (tst-nodelete2mod.so-no-z-defs): New.
28099         ($(objpfx)tst-nodelete2): Likewise.
28100         ($(objpfx)tst-nodelete2.out): Likewise.
28101         (LDFLAGS-tst-nodelete2): Likewise.
28102         * elf/dl-close.c (_dl_close_worker): Move DF_1_NODELETE clearing
28103         out of loop through all loaded libraries.
28104         * elf/tst-nodelete2.c: New file.
28105         * elf/tst-nodelete2mod.c: Likewise.
28106         * elf/tst-znodelete-zlib.cc: Delete.
28107
28108 2015-08-11  Andreas Schwab  <schwab@suse.de>
28109
28110         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Don't define.
28111         * sysdeps/unix/sysv/linux/wordsize-64/openat.c
28112         (__openat64_nocancel): Likewise.
28113
28114 2015-08-11  Joseph Myers  <joseph@codesourcery.com>
28115
28116         * math/auto-libm-test-in: Add more tests of acosh, asin, asinh,
28117         atanh, cabs, carg, cbrt, cosh, csqrt, erf, erfc, exp, exp10,
28118         expm1, hypot, log, log10, log1p, log2, pow, sinh, tan and tgamma.
28119         * math/auto-libm-test-out: Regenerated.
28120         * sysdeps/i386/fpu/libm-test-ulps: Update.
28121         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28122
28123 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
28124
28125         [BZ #18790]
28126         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Increase
28127         threshold for returning +/- 1.
28128         * math/auto-libm-test-in: Add more tests of tanh.
28129         * math/auto-libm-test-out: Regenerated.
28130         * sysdeps/i386/fpu/libm-test-ulps: Update.
28131
28132 2015-08-10  Andreas Schwab  <schwab@suse.de>
28133
28134         [BZ #18781]
28135         * sysdeps/unix/sysv/linux/openat.c (__OPENAT) [MORE_OFLAGS]: Add
28136         MORE_OFLAGS to oflag.
28137         * io/test-lfs.c (do_test): Test openat64.
28138
28139 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
28140
28141         [BZ #18789]
28142         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Use
28143         smaller threshold for returning the argument.
28144         * math/auto-libm-test-in: Add more tests of sinh.
28145         * math/auto-libm-test-out: Regenerated.
28146         * sysdeps/i386/fpu/libm-test-ulps: Update.
28147
28148 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
28149
28150         [BZ #18674]
28151         * sysdeps/i386/tst-auditmod3b.c (la_objsearch): Add a missing
28152         break.
28153
28154 2015-08-09  Andreas Schwab  <schwab@linux-m68k.org>
28155
28156         * timezone/Makefile (tzbases, tzlinks, tzfiles): Don't define.
28157         (generated): Don't add $(addprefix z.,$(tzfiles)).
28158
28159 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
28160
28161         * nptl/tst-cancel-wrappers.sh: Change 3rd arg to gensub to 1.
28162         * scripts/sysd-rules.awk: Likewise.
28163
28164 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
28165
28166         * iconvdata/tst-tables.sh: Change echo -n to printf.
28167         * nss/db-Makefile: Likewise.
28168         * posix/tst-getconf.sh: Likewise.
28169         * stdio-common/tst-unbputc.sh: Likewise.
28170
28171 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
28172
28173         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]: Move all
28174         MADV_*_PAGES defines behind this feature check.
28175
28176 2015-08-09  John David Anglin  <danglin@gcc.gnu.org>
28177
28178         [BZ #18480]
28179         * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
28180         LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
28181         Define.
28182         (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4,
28183         LOAD_REGS_5, LOAD_REGS_6): Update.
28184         (INTERNAL_SYSCALL): Update using new LOAD defines.
28185         (INTERNAL_SYSCALL_NCS): Likewise.
28186         * sysdeps/unix/sysv/linux/hppa/syscall.c (syscall): Likewise.
28187
28188 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
28189
28190         [BZ #16734]
28191         * libio/genops.c (_IO_unbuffer_all): Free wide buffer as well.
28192
28193 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
28194
28195         [BZ #17905]
28196         * catgets/Makefile (tst-catgets-mem): New test.
28197         * catgets/catgets.c (catopen): Don't use unbounded alloca.
28198         * catgets/open_catalog.c (__open_catalog): Likewise.
28199         * catgets/tst-catgets.c (do_bz17905): Test unbounded alloca.
28200
28201 2015-08-08  John David Anglin  <danglin@gcc.gnu.org>
28202
28203         [BZ #18787]
28204         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (_LWS_CLOBBER): Revise
28205         clobber registers.
28206         (atomic_compare_and_exchange_val_acq): Use register asms to assign
28207         operand registers.  Use register %r20 for EAGAIN and EDEADLOCK checks.
28208         Cast return to __typeof (oldval).
28209
28210 2015-08-08  Mike Frysinger  <vapier@gentoo.org>
28211
28212         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Wrap the whole file
28213         in _LINUX_MICROBLAZE_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h
28214         and delete sys/syscall.h include.
28215
28216 2015-08-07  Joseph Myers  <joseph@codesourcery.com>
28217
28218         [BZ #16517]
28219         * sysdeps/ieee754/dbl-64/s_tan.c: Include <float.h>.
28220         (tan): Force underflow exception for arguments with small absolute
28221         value.
28222         * sysdeps/ieee754/flt-32/k_tanf.c: Include <float.h>.
28223         (__kernel_tanf): Force underflow exception for arguments with
28224         small absolute value.
28225         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <float.h>.
28226         (__kernel_tanl): Force underflow exception for arguments with
28227         small absolute value.
28228         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <float.h>.
28229         (__kernel_tanl): Force underflow exception for arguments with
28230         small absolute value.
28231         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <float.h>.
28232         (__kernel_tanl): Force underflow exception for arguments with
28233         small absolute value.
28234         * math/auto-libm-test-in: Add more tests of tan.
28235         * math/auto-libm-test-out: Regenerated.
28236
28237 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28238
28239         Fix sysdeps/i386/fpu/s_scalbn.S build
28240
28241         * math/Versions (libc: GLIBC_2_22): New (empty) version set.
28242
28243 2015-08-07  Mike Frysinger  <vapier@gentoo.org>
28244
28245         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
28246
28247 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28248
28249         Fix gcrt0.o compilation
28250
28251         When static-start-installed-name is different from
28252         start-installed-name, we must not use the shared objects.
28253
28254         * csu/Makefile
28255         (extra-objs): Add gmon-start.o when building shared library and
28256         $(static-start-installed-name) is different from
28257         $(start-installed-name).
28258         $(objpfx)g$(static-start-installed-name): When building shared
28259         library and $(static-start-installed-name) is different from
28260         $(static-start-installed-name), revert to non-shared rule,
28261         i.e. using $(objpfx)% and gmon-start.o.
28262
28263 2015-08-06  Joseph Myers  <joseph@codesourcery.com>
28264
28265         [BZ #16519]
28266         * sysdeps/ieee754/dbl-64/e_sinh.c: Include <float.h>.
28267         (__ieee754_sinh): Force underflow exception for arguments with
28268         small absolute value.
28269         * sysdeps/ieee754/flt-32/e_sinhf.c: Include <float.h>.
28270         (__ieee754_sinhf): Force underflow exception for arguments with
28271         small absolute value.
28272         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Include <float.h>.
28273         (__ieee754_sinhl): Force underflow exception for arguments with
28274         small absolute value.
28275         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Include <float.h>.
28276         (__ieee754_sinhl): Force underflow exception for arguments with
28277         small absolute value.
28278         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Include <float.h>.
28279         (__ieee754_sinhl): Force underflow exception for arguments with
28280         small absolute value.
28281         * math/auto-libm-test-in: Add more tests of sinh.
28282         * math/auto-libm-test-out: Regenerated.
28283         * sysdeps/i386/fpu/libm-test-ulps: Update.
28284
28285 2015-08-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
28286
28287         * libio/oldfileops.c: Include unistd.h.
28288
28289 2015-08-06  Mike Frysinger  <vapier@gentoo.org>
28290
28291         * stdlib/isomac.c: Include ctype.h.
28292
28293 2015-08-06  Arjun Shankar  <arjun.is@lostca.se>
28294
28295         * dirent/tst-seekdir.c (main): Converted to ...
28296         (do_test): ... this.
28297         (TEST_FUNCTION): New macro.
28298         Include test-skeleton.c.
28299         * elf/tst-dlmodcount.c (main): Converted to ...
28300         (do_test): ... this.
28301         (TEST_FUNCTION): New macro.
28302         Include test-skeleton.c.
28303         * elf/tst-order-main.c (main): Converted to ...
28304         (do_test): ... this.
28305         (TEST_FUNCTION): New macro.
28306         Include test-skeleton.c.
28307         * elf/tst-pie2.c (main): Converted to ...
28308         (do_test): ... this.
28309         (TEST_FUNCTION): New macro.
28310         Include test-skeleton.c.
28311         * inet/tst-ether_aton.c (main): Converted to ...
28312         (do_test): ... this.
28313         (TEST_FUNCTION): New macro.
28314         Include test-skeleton.c.
28315         * misc/tst-mntent.c (main): Converted to ...
28316         (do_test): ... this.
28317         (TEST_FUNCTION): New macro.
28318         Include test-skeleton.c.
28319         * misc/tst-tsearch.c (main): Converted to ...
28320         (do_test): ... this.
28321         (TEST_FUNCTION): New macro.
28322         Include test-skeleton.c.
28323         * posix/tst-regexloc.c (main): Converted to ...
28324         (do_test): ... this.
28325         (TEST_FUNCTION): New macro.
28326         Include test-skeleton.c.
28327         * resolv/tst-aton.c (main): Converted to ...
28328         (do_test): ... this.
28329         (TEST_FUNCTION): New macro.
28330         Include test-skeleton.c.
28331         * stdio-common/test-fwrite.c (main): Converted to ...
28332         (do_test): ... this.
28333         (TEST_FUNCTION): New macro.
28334         Include test-skeleton.c.
28335         * stdio-common/tst-ferror.c (main): Converted to ...
28336         (do_test): ... this.
28337         (TEST_FUNCTION): New macro.
28338         Include test-skeleton.c.
28339         * stdio-common/tst-printf.c (main): Converted to ...
28340         (do_test): ... this.
28341         (TEST_FUNCTION): New macro.
28342         Include test-skeleton.c.
28343         * stdio-common/tst-printfsz.c (main): Converted to ...
28344         (do_test): ... this.
28345         (TEST_FUNCTION): New macro.
28346         Include test-skeleton.c.
28347         * stdlib/tst-strtod.c (main): Converted to ...
28348         (do_test): ... this.
28349         (TEST_FUNCTION): New macro.
28350         Include test-skeleton.c.
28351         * string/tst-strlen.c (main): Converted to ...
28352         (do_test): ... this.
28353         (TEST_FUNCTION): New macro.
28354         Include test-skeleton.c.
28355         * string/tst-svc.c (main): Converted to ...
28356         (do_test): ... this.
28357         (TEST_FUNCTION): New macro.
28358         Include test-skeleton.c.
28359         * time/tst-strptime.c (main): Converted to ...
28360         (do_test): ... this.
28361         (TEST_FUNCTION): New macro.
28362         Include test-skeleton.c.
28363         * timezone/tst-timezone.c (main): Converted to ...
28364         (do_test): ... this.
28365         (TEST_FUNCTION): New macro.
28366         Include test-skeleton.c.
28367
28368 2015-08-05  Zack Weinberg  <zackw@panix.com>
28369
28370         * misc/regexp.h: Update comments.
28371
28372 2015-08-05  Andreas Schwab  <schwab@linux-m68k.org>
28373
28374         [BZ #18635]
28375         * sysdeps/unix/sysv/linux/m68k/m680x0/makecontext.S: Add nop
28376         before return label.
28377
28378 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
28379
28380         [BZ #18661]
28381         * sysdeps/x86_64/fpu/s_cosf.S (__cosf): Align stack to 16 bytes
28382         when calling __errno_location.
28383         * sysdeps/x86_64/fpu/s_sincosf.S (__sincosf): Likewise.
28384         * sysdeps/x86_64/fpu/s_sinf.S (__sinf): Likewise.
28385
28386 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
28387
28388         [BZ #18661]
28389         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
28390         (__lll_timedwait_tid): Align stack to 16 bytes when calling
28391         __gettimeofday.
28392
28393 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
28394
28395         [BZ #18661]
28396         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
28397         (__start_context): Don't use pop to restore %rdi so that stack
28398         is aligned to 16 bytes when calling __setcontext.
28399
28400 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
28401
28402         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Compile
28403         only for libc.
28404         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
28405
28406 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
28407
28408         * string/string.h: (mempcpy): Redirect to __mempcpy_inline.
28409         (__mempcpy): Likewise.  (__mempcpy_inline): New inline function.
28410         * sysdeps/sparc/bits/string.h: (_HAVE_STRING_ARCH_mempcpy): Define.
28411
28412 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
28413
28414         * string/memccpy.c (memccpy):
28415         Improve performance by using memchr/memcpy/__mempcpy.
28416
28417 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
28418
28419         * string/strncpy.c (strncpy):
28420         Improve performance by using __strnlen/memcpy.
28421
28422 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
28423
28424         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
28425         Optimize to avoid an unnecessary FPCR read.
28426
28427 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
28428
28429         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
28430         Optimize to reduce FPCR/FPSR accesses.
28431
28432 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
28433
28434         * locale/loadarchive.c (_nl_archive_subfreeres): Also check
28435         dead->data[category] != NULL.
28436
28437 2015-08-05  Joseph Myers  <joseph@codesourcery.com>
28438
28439         [BZ #18647]
28440         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): For large y
28441         and |x| close to 1, use absolute value of x when computing log.
28442         * math/auto-libm-test-in: Add more tests of pow.
28443         * math/auto-libm-test-out: Regenerated.
28444
28445 2015-08-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28446
28447         * sysdeps/unix/sysv/linux/arm/mmap.c: Add file.
28448         * sysdeps/unix/sysv/linux/arm/mmap.S: Remove file.
28449         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise.
28450
28451 2015-08-05  Marko Myllynen  <myllynen@redhat.com>
28452
28453         [BZ #18525]
28454         * locales/km_KH: Remove timezone definition.
28455         * locales/lo_LA: Likewise.
28456         * locales/my_MM: Likewise.
28457         * locales/nan_TW@latin: Likewise.
28458         * locales/th_TH: Likewise.
28459         * locales/uk_UA: Likewise.
28460
28461 2015-08-05  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
28462
28463         [BZ #18265]
28464         * wcsmbs/wchar.h (wcscat): Add __nonnull attribute.
28465         (wcsncat): Likewise.
28466         (wcscmp): Likewise.
28467         (wcsncmp): Likewise.
28468
28469 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
28470
28471         * test-skeleton.c (usage): New function.
28472         (main): Call usage when opt is '?'.
28473
28474 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
28475
28476         * sysdeps/unix/sysv/linux/mmap64.c: Move MMAP2_PAGE_SHIFT define
28477         before first use.
28478
28479 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
28480
28481         * nptl/allocatestack.c (allocate_stack): Move stacktop decl down to
28482         bottom and under _STACK_GROWS_DOWN.  Move the stacktop assignment
28483         in there too.
28484
28485 2015-08-05  Carlos O'Donell  <carlos@systemhalted.org>
28486
28487         * version.h (RELEASE): Set to "development".
28488         (VERSION): Set to "2.22.90"
28489
28490         * version.h (RELEASE): Set to "stable".
28491         (VERSION): Set to "2.22"
28492         * include/features.h (__GLIBC_MINOR__): Set to 22.
28493
28494 2015-08-04  Chris Metcalf  <cmetcalf@ezchip.com>
28495
28496         * sysdeps/tile/tilepro/bits/atomic.h (__atomic_update):
28497         Restructure macro to avoid "value computed is not used" warning.
28498         (atomic_compare_and_exchange_val_acq): Likewise.
28499
28500 2015-08-04  Andreas Schwab  <schwab@suse.de>
28501
28502         [BZ #18635]
28503         * sysdeps/unix/sysv/linux/i386/makecontext.S: Terminate FDE before
28504         ret.
28505         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext): Remove.
28506
28507 2015-08-01  Carlos O'Donell  <carlos@redhat.com>
28508
28509         * po/pl.po: Updated translation.
28510         * po/uk.po: Likewise.
28511         * po/fi.po: Likewise.
28512         * po/ko.po: Likewise.
28513         * po/ru.po: Likewise.
28514         * po/vi.po: Likewise.
28515
28516 2015-07-31  Zack Weinberg  <zackw@panix.com>
28517
28518         [BZ #18681]
28519         * regexp.h: Add unconditional #warning stating that this header
28520         will be removed soon.  Revise banner comment to match.
28521         (compile): Consistently use ERROR instead of RETURN to report
28522         errors (partial fix for BZ #18681).
28523         * regexp.c: Don't include regexp.h. Remove some unnecessary
28524         declarations.
28525
28526 2015-07-31  Carlos O'Donell  <carlos@redhat.com>
28527
28528         * po/libc.pot: Regenerated.
28529
28530 2015-07-30  Andrew Senkevich  <andrew.senkevich@intel.com>
28531
28532         [BZ #18740]
28533         * sysdeps/x86_64/fpu/Makefile (double-vlen2-arch-ext-cflags,
28534         float-vlen4-arch-ext-cflags): Removed.
28535         * math/Makefile (CFLAGS-test-double-vlen2-wrappers.c,
28536         CFLAGS-test-float-vlen4-wrappers.c): Likewise.
28537
28538 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
28539
28540         [BZ #14113]
28541         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_mutex_t): Change
28542         aligned to __aligned__.
28543         (pthread_cond_t, pthread_rwlock_t): Likewise.
28544
28545 2015-07-30  Torvald Riegel  <triegel@redhat.com>
28546
28547         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: Remove file.
28548
28549 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
28550
28551         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Include bits/wordsize.h.
28552         (struct sigaction): Change sa_flags from a long to an int, and add
28553         __glibc_reserved0 before it for padding when __WORDSIZE is 64.
28554
28555 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
28556
28557         * hppa/sysdep.h: Delete sys/syscall.h and config.h includes.
28558         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Delete
28559         sysdeps/generic/sysdep.h include.
28560         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Wrap the whole file in
28561         _LINUX_HPPA_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h and
28562         sysdeps/hppa/sysdep.h.
28563         (ENTRY, PSEUDO): Undefine before defining.
28564
28565 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
28566
28567         * sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL): Rewrite
28568         from scratch to use INTERNAL_SYSCALL.
28569
28570 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
28571
28572         [BZ #18078]
28573         * scripts/check-localplt.awk: Support alternate relocations.
28574         * scripts/localplt.awk: Also check relocations in DT_RELA/DT_REL
28575         sections.
28576         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark free and
28577         malloc entries with + REL R_386_GLOB_DAT.
28578         * sysdeps/x86_64/localplt.data: New file.
28579
28580 2015-07-29  Andrew Senkevich  <andrew.senkevich@intel.com>
28581
28582         [BZ #18731]
28583         * sysdeps/x86_64/fpu/math-tests-arch.h: Added AVX runtime check.
28584         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
28585         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
28586
28587 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
28588
28589         * sysdeps/unix/sysv/linux/ia64/localplt.data: Delete __tls_get_addr.
28590
28591 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
28592
28593         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Define
28594         directly in terms of __sync_fetch_and_add and delete (int) cast.
28595
28596 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
28597
28598         * sysdeps/unix/sysv/linux/ia64/Makefile (CPPFLAGS): Delete
28599         the -D_ASM_IA64_CURRENT_H flag.
28600
28601 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
28602
28603         [BZ #18641]
28604         * pwd/pwd.h (putpwent): Delete __nonnull markings.
28605
28606 2015-07-27  Andreas Schwab  <schwab@suse.de>
28607
28608         * conform/conformtest.pl (checknamespace): Filter out string
28609         literals while tokenizing.
28610
28611 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
28612
28613         * sysdeps/nios2/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
28614         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Handle
28615         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
28616
28617 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
28618
28619         * nptl/tst-join7mod.c: Add #include <string.h>.
28620
28621 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
28622
28623         * sysdeps/nios2/libm-test-ulps: Update.
28624
28625 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
28626
28627         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__setcontext):
28628         Fix order of arguments to the rt_sigprocmask syscall.
28629         * sysdeps/unix/sysv/linux/nios2/swapcontext.S (__swapcontext):
28630         Likewise.
28631
28632 2015-07-24  Roland McGrath  <roland@hack.frob.com>
28633
28634         * sysdeps/nacl/bits/fcntl.h (O_SHLOCK, O_EXLOCK): Macros removed.
28635
28636 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
28637
28638         [BZ #18457]
28639         * nptl/Makefile (tests): New test case tst-join7.
28640         (modules-names): New test case module tst-join7mod.
28641         * nptl/tst-join7.c: New file.
28642         * nptl/tst-join7mod.c: New file.
28643         * Makeconfig (tls-model): Pass -ftls-model=initial-exec for
28644         all translation units in libc.so, libpthread.so and rtld.
28645
28646 2015-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28647
28648         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28649
28650 2015-07-24  Andrew Senkevich  <andrew.senkevich@intel.com>
28651
28652         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Fixed AVX512 IFUNC.
28653         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
28654         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
28655         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
28656         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
28657         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
28658         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
28659         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
28660         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
28661         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
28662         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
28663         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
28664         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Fixed wrappers to AVX2.
28665         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
28666         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Fixed KNL
28667         implementation.
28668
28669 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28670
28671         [BZ #17711]
28672         * sysdeps/aarch64/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
28673         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Handle
28674         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
28675         * sysdeps/arm/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
28676         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Handle
28677         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
28678
28679 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
28680
28681         * stdlib/cxa_thread_atexit_impl.c: Use the lock name dl_load_lock
28682         instead of just saying load lock in the comments.
28683
28684 2015-07-23  Roland McGrath  <roland@hack.frob.com>
28685
28686         * sysdeps/unix/Subdirs: Moved ...
28687         * sysdeps/posix/Subdirs: ... here.
28688         * login/pty.h (struct termios, struct winsize): Add forward decls.
28689         * login/openpty.c (openpty): Put ioctl call under [TIOCSWINSZ].
28690         * sysdeps/nacl/glob.c: Just #include <sysdeps/wordsize-64/glob.c>.
28691         * sysdeps/arm/nacl/libc.abilist: Updated.
28692         * sysdeps/nacl/libutil.abilist: New file.
28693
28694         * bits/signum.h: Update comments to mention 1003.1-2013 too.
28695         (SIGWINCH): New macro.
28696
28697         * sysdeps/nacl/getdtsz.c (getdtablesize): Add missing weak_alias.
28698         * sysdeps/arm/nacl/libc.abilist: Add it.
28699
28700 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
28701
28702         * conform/linknamespace.pl (@whitelist): Add matherrf and matherrl.
28703
28704 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
28705
28706         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
28707         Swap __glibc_reserved0 and sa_flags order.
28708
28709 2015-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
28710
28711         [BZ #18657]
28712         * elf/dl-close.c (_dl_close_worker): Don't unload DSO if there
28713         are pending TLS destructor calls.
28714         * include/link.h (struct link_map): Add concurrency note for
28715         L_TLS_DTOR_COUNT.
28716         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
28717         Don't touch the link map flag.  Atomically increment
28718         l_tls_dtor_count.
28719         (__call_tls_dtors): Atomically decrement l_tls_dtor_count.
28720         Avoid taking the load lock and don't touch the link map flag.
28721         * stdlib/tst-tls-atexit-nodelete.c: New test case.
28722         * stdlib/Makefile (tests): Use it.
28723         * stdlib/tst-tls-atexit.c (do_test): dlopen
28724         tst-tls-atexit-lib.so again before dlclose.  Add conditionals
28725         to allow tst-tls-atexit-nodelete test case to use it.
28726
28727 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
28728
28729         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Change sys/types.h include
28730         to bits/types.h.
28731         (msgqnum_t): New typedef.
28732         (msglen_t): Likewise.
28733         (struct msqid_ds): Update comment.  Change msg_qnum type to msgqnum_t
28734         and msg_qbytes type to msglen_t.
28735
28736 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
28737
28738         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat): Rename
28739         pad0 to __glibc_reserved0.
28740         (struct stat64): Likewise.
28741
28742 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
28743
28744         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
28745         Change sa_flags from a long to an int and add __glibc_reserved0 before
28746         it for padding.
28747
28748 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
28749
28750         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (siginfo_t): Make struct
28751         anonymous by deleting "siginfo" name.
28752
28753 2015-07-21  Roland McGrath  <roland@hack.frob.com>
28754
28755         * sysdeps/nacl/nacl-interface-list.h: Remove nacl_irt_filename.
28756         * sysdeps/nacl/open.c (__libc_open): Use __nacl_irt_dev_filename
28757         rather than __nacl_irt_filename.
28758         * sysdeps/nacl/xstat.c (__xstat): Likewise.
28759
28760         * NEWS: New item for arm-nacl port.
28761         * sysdeps/arm/nacl/libc.abilist: New file.
28762         * sysdeps/nacl/ld.abilist: New file.
28763         * sysdeps/nacl/libBrokenLocale.abilist: New file.
28764         * sysdeps/nacl/libanl.abilist: New file.
28765         * sysdeps/nacl/libcrypt.abilist: New file.
28766         * sysdeps/nacl/libdl.abilist: New file.
28767         * sysdeps/nacl/libm.abilist: New file.
28768         * sysdeps/nacl/libpthread.abilist: New file.
28769         * sysdeps/nacl/libresolv.abilist: New file.
28770         * sysdeps/nacl/librt.abilist: New file.
28771
28772 2015-07-21  Chris Metcalf  <cmetcalf@ezchip.com>
28773
28774         * sysdeps/unix/sysv/linux/tile/makecontext.c (__makecontext): Call
28775         __startcontext to initialize the new context.
28776         * sysdeps/unix/sysv/linux/tile/setcontext.S (__startcontext): Set
28777         up CFI directive to forbid further backtracing.
28778
28779 2015-07-21  Marko Myllynen  <myllynen@redhat.com>
28780
28781         * charmaps/ANSI_X3.110-1983: Remove obsolete repertoire map
28782         reference.
28783         * charmaps/ANSI_X3.4-1968: Likewise.
28784         * charmaps/BS_4730: Likewise.
28785         * charmaps/BS_VIEWDATA: Likewise.
28786         * charmaps/CP1250: Likewise.
28787         * charmaps/CP1251: Likewise.
28788         * charmaps/CP1252: Likewise.
28789         * charmaps/CP1253: Likewise.
28790         * charmaps/CP1254: Likewise.
28791         * charmaps/CP1255: Likewise.
28792         * charmaps/CP1256: Likewise.
28793         * charmaps/CSN_369103: Likewise.
28794         * charmaps/EBCDIC-DK-NO: Likewise.
28795         * charmaps/GB_1988-80: Likewise.
28796         * charmaps/GREEK-CCITT: Likewise.
28797         * charmaps/GREEK7: Likewise.
28798         * charmaps/INIS-8: Likewise.
28799         * charmaps/ISIRI-3342: Likewise.
28800         * charmaps/ISO_2033-1983: Likewise.
28801         * charmaps/ISO_5427-EXT: Likewise.
28802         * locales/POSIX: Likewise.
28803         * locales/ar_SA: Likewise.
28804         * locales/be_BY: Likewise.
28805         * locales/be_BY@latin: Likewise.
28806         * locales/ca_ES: Likewise.
28807         * locales/cs_CZ: Likewise.
28808         * locales/da_DK: Likewise.
28809         * locales/de_BE: Likewise.
28810         * locales/de_CH: Likewise.
28811         * locales/de_LU: Likewise.
28812         * locales/en_AU: Likewise.
28813         * locales/en_BW: Likewise.
28814         * locales/en_CA: Likewise.
28815         * locales/en_DK: Likewise.
28816         * locales/en_GB: Likewise.
28817         * locales/en_IE: Likewise.
28818         * locales/en_NZ: Likewise.
28819         * locales/en_ZA: Likewise.
28820         * locales/en_ZW: Likewise.
28821         * locales/es_AR: Likewise.
28822         * locales/es_BO: Likewise.
28823         * locales/es_CL: Likewise.
28824         * locales/es_CO: Likewise.
28825         * locales/es_DO: Likewise.
28826         * locales/es_EC: Likewise.
28827         * locales/es_ES: Likewise.
28828         * locales/es_HN: Likewise.
28829         * locales/es_MX: Likewise.
28830         * locales/es_PA: Likewise.
28831         * locales/es_PE: Likewise.
28832         * locales/es_PY: Likewise.
28833         * locales/es_SV: Likewise.
28834         * locales/es_US: Likewise.
28835         * locales/es_UY: Likewise.
28836         * locales/es_VE: Likewise.
28837         * locales/et_EE: Likewise.
28838         * locales/fa_IR: Likewise.
28839         * locales/fo_FO: Likewise.
28840         * locales/fr_CA: Likewise.
28841         * locales/fr_CH: Likewise.
28842         * locales/gv_GB: Likewise.
28843         * locales/he_IL: Likewise.
28844         * locales/hr_HR: Likewise.
28845         * locales/id_ID: Likewise.
28846         * locales/is_IS: Likewise.
28847         * locales/it_CH: Likewise.
28848         * locales/iw_IL: Likewise.
28849         * locales/kl_GL: Likewise.
28850         * locales/ko_KR: Likewise.
28851         * locales/kw_GB: Likewise.
28852         * locales/lg_UG: Likewise.
28853         * locales/lt_LT: Likewise.
28854         * locales/lv_LV: Likewise.
28855         * locales/mi_NZ: Likewise.
28856         * locales/nhn_MX: Likewise.
28857         * locales/nl_BE: Likewise.
28858         * locales/pl_PL: Likewise.
28859         * locales/sk_SK: Likewise.
28860         * locales/sl_SI: Likewise.
28861         * locales/sv_FI: Likewise.
28862         * locales/tl_PH: Likewise.
28863         * locales/tr_TR: Likewise.
28864         * locales/vi_VN: Likewise.
28865
28866 2015-07-21  Khem Raj  <raj.khem@gmail.com>
28867
28868         [BZ #17475]
28869         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Adjust for rename
28870         of tu_IN and bh_IN.
28871
28872 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
28873
28874         [BZ #18694]
28875         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Include
28876         bits/wordsize.h.
28877         (sigaction): Declare __glibc_reserved0 only when __WORDSIZE is 64.
28878
28879 2015-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
28880
28881         * stdlib/tst-tls-atexit-lib.c (do_foo): Rename to reg_dtor.
28882         * stdlib/tst-tls-atexit.c: (is_loaded): New function.
28883         (spawn_thread): New function.
28884         (load): Rename to reg_dtor_and_close.  Move dlopen to...
28885         (do_test): ... here.  Use IS_LOADED to test for its
28886         availability.
28887
28888 2015-07-21  Andreas Schwab  <schwab@linux-m68k.org>
28889
28890         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
28891
28892 2015-07-20  H.J. Lu  <hongjiu.lu@intel.com>
28893
28894         [BZ #18696]
28895         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (_sigfault): Add
28896         si_addr_bnd.
28897         (si_lower): New.
28898         (si_upper): Likewise.
28899
28900 2015-07-16  David S. Miller  <davem@davemloft.net>
28901
28902         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
28903
28904 2015-07-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28905
28906         * libio/fmemopen.c (__fmemopen): Fix 'w' openmode with provided
28907         buffer.
28908         * stdio-common/tst-fmemopen2.c (do_test_with_buffer): Fix typo and
28909         fail output information.
28910
28911 2015-07-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
28912
28913         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strstr-power7
28914         and strstr-ppc64..
28915         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
28916         * sysdeps/powerpc/powerpc64/power7/strstr.S: New File.
28917         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: New File.
28918         * sysdeps/powerpc/powerpc64/multiarch/strstr-ppc64.c: New File.
28919         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: New File.
28920
28921 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
28922
28923         * sysdeps/hppa/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
28924         * sysdeps/hppa/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
28925         * sysdeps/ia64/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
28926         * sysdeps/ia64/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
28927
28928 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
28929
28930         * elf/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
28931         * sysdeps/hppa/dl-lookupcfg.h (_dl_symbol_address): Add
28932         rtld_hidden_proto.
28933         * sysdeps/ia64/dl-lookupcfg.h (_dl_symbol_address): Likewise.
28934
28935 2015-07-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
28936
28937         * tst-nodelete-opened.c (do_test): Add comment to clarify how
28938         the test can fail.
28939
28940         * stdlib/cxa_thread_atexit_impl.c: Whitespace fixup.
28941
28942         [BZ #18676]
28943         * elf/tst-nodelete-opened.c: New test case.
28944         * elf/tst-nodelete-opened-lib.c: New test case module.
28945         * elf/Makefile (tests, modules-names): Use them.
28946         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag
28947         early.
28948
28949 2015-07-15  David S. Miller  <davem@davemloft.net>
28950
28951         * sysdeps/sparc/nptl/pthread_barrier_init.c: Include
28952         futex-intenal.h
28953         * sysdeps/sparc/sparc32/sparcv9/Makefile (nscd): Add cpu_relax.
28954         * sysdeps/sparc/sparc64/Makefile: Likewise.
28955         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
28956         Remove space from macro define.
28957         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_spin_nop): Likewise.
28958
28959 2015-07-15  Pravin Satpute  <psatpute@redhat.com>
28960
28961         [BZ #17475]
28962         * locale/iso-639.def: Update Bhili and Tulu language codes as
28963         per iso639-3.
28964
28965 2015-07-15  Arjun Shankar  <arjun.is@lostca.se>
28966
28967         * elf/tst-leaks1.c (main): Converted to ...
28968         (do_test): ... this.
28969         (TEST_FUNCTION): New macro.
28970         Include test-skeleton.c.
28971         * localedata/tst-langinfo.c (main): Converted to ...
28972         (do_test): ... this.
28973         (TEST_FUNCTION): New macro.
28974         Include test-skeleton.c.
28975         * math/test-fpucw.c (main): Converted to ...
28976         (do_test): ... this.
28977         (TEST_FUNCTION): New macro.
28978         Include test-skeleton.c.
28979         * math/test-tgmath.c (main): Converted to ...
28980         (do_test): ... this.
28981         (TEST_FUNCTION): New macro.
28982         Include test-skeleton.c.
28983         * math/test-tgmath2.c (main): Converted to ...
28984         (do_test): ... this.
28985         (TEST_FUNCTION): New macro.
28986         Include test-skeleton.c.
28987         * setjmp/tst-setjmp.c (main): Converted to ...
28988         (do_test): ... this.
28989         (TEST_FUNCTION): New macro.
28990         Include test-skeleton.c.
28991         * stdio-common/tst-sscanf.c (main): Converted to ...
28992         (do_test): ... this.
28993         (TEST_FUNCTION): New macro.
28994         Include test-skeleton.c.
28995         * sysdeps/x86_64/tst-audit6.c (main): Converted to ...
28996         (do_test): ... this.
28997         (TEST_FUNCTION): New macro.
28998         Include test-skeleton.c.
28999
29000         * elf/tst-audit9.c (main): Converted to ...
29001         (do_test): ... this.
29002         (TEST_FUNCTION): New macro.
29003         Include test-skeleton.c.
29004
29005 2015-07-15  Mike Frysinger  <vapier@gentoo.org>
29006
29007         * timezone/tst-tzset.c (TIMEOUT): Define to 5.
29008
29009 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
29010
29011         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext):
29012         New variable.
29013
29014 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
29015
29016         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
29017
29018 2015-07-14  Roland McGrath  <roland@hack.frob.com>
29019
29020         * sysdeps/generic/dl-fileid.h: New file.
29021         * sysdeps/posix/dl-fileid.h: New file.
29022         * sysdeps/nacl/dl-fileid.h: New file.
29023         * include/link.h: Include <dl-fileid.h>.
29024         (struct link_map): Replace l_dev and l_ino with l_file_id.
29025         * elf/dl-load.c (_dl_map_object_from_fd): Use _dl_get_file_id rather
29026         than __fxstat64.  Use _dl_file_id_match_p rather than comparing l_dev
29027         and l_ino directly.  Initialize l_file_id rather than l_dev and l_ino.
29028
29029 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
29030
29031         * stdlib/tst-tls-atexit.c (do_test): Fix typo.
29032
29033 2015-07-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
29034
29035         * elf/Makefile [ifeq (yes,$(build-shared)) (tests)] (tst-nodelete):
29036         Add iff $CXX is set.
29037         [ifeq (yes,$(build-shared)) (modules-names)] (tst-nodelete-rtldmod):
29038         Likewise.
29039         (tst-nodelete-zmodiff): Likewise.
29040         * nptl/Makefile [[ifeq (,$(CXX))] (tests-unsupported)]: Add tst-once5.
29041
29042 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
29043
29044         * stdlib/tst-tls-atexit.c (load): Fix up whitespace.
29045
29046 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
29047
29048         * sysdeps/aarch64/fpu/math_private.h
29049         (define math_opt_barrier): Add AArch64 version.
29050         (math_force_eval): Likewise.
29051
29052 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
29053
29054         * sysdeps/aarch64/strlen.S (strlen): Optimize strlen.
29055
29056 2015-07-11  H.J. Lu  <hongjiu.lu@intel.com>
29057
29058         * stdio-common/tst-fmemopen2.c (do_test_without_buffer): Replace
29059         %ld with %jd and cast to intmax_t.
29060         (do_test_length_zero): Likewise.
29061
29062 2015-07-10  Roland McGrath  <roland@hack.frob.com>
29063
29064         * sysdeps/nacl/pthread_condattr_setclock.c: New file.
29065
29066 2015-07-10  Chris Metcalf  <cmetcalf@ezchip.com>
29067
29068         * sysdeps/tile/libm-test-ulps: Regenerated.
29069
29070         * math/test-fenvinline.c (feenable_test) [FE_ALL_EXCEPT == 0]:
29071         Comment out the whole function, not just its body.
29072
29073 2015-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
29074
29075         * stdlib/tst-tls-atexit.c (load): Remove unnecessary mutex
29076         locks.
29077
29078         * stdlib/tst-tls-atexit.c (load): Avoid boolean coercion.
29079
29080 2015-07-10  Torvald Riegel  <triegel@redhat.com>
29081
29082         * nptl/sem_waitcommon.c (__new_sem_wait_slow): Update comments.
29083         (sem_assume_only_signals_cause_futex_EINTR): Remove.
29084
29085 2015-07-10  Torvald Riegel  <triegel@redhat.com>
29086
29087         * sysdeps/nptl/futex-internal.h: New file.
29088         * sysdeps/nacl/futex-internal.h: New file.
29089         * sysdeps/unix/sysv/linux/futex-internal.h: New file.
29090         * nptl/allocatestack.c (setxid_mark_thread): Use futex wrappers with
29091         error checking.
29092         (setxid_unmark_thread): Likewise.
29093         (__nptl_setxid): Likewise.
29094         (__wait_lookup_done): Likewise.
29095         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
29096         * nptl/nptl-init.c (sighandler_setxid): Likewise.
29097         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
29098         * nptl/pthread_once.c (clear_once_control): Likewise.
29099         (__pthread_once_slow): Likewise.
29100         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
29101         * sysdeps/nacl/exit-thread.h (__exit_thread): Likewise.
29102         * sysdeps/nptl/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT): Likewise.
29103         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
29104         * sysdeps/nptl/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT): Likewise.
29105         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow):
29106         Likewise.
29107         (__pthread_rwlock_rdlock): Likewise.
29108         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
29109         Likewise.
29110         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
29111         Likewise.
29112         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
29113         Likewise.
29114         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
29115         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow:
29116         Likewise.
29117         * nptl/pthread_rwlock_init (__pthread_rwlock_init): Remove
29118         __ASSUME_PRIVATE_FUTEX check.
29119         * nptl/pthread_rwlockattr_setpshared (pthread_rwlockattr_setpshared):
29120         Check that shared futexes are supported.
29121         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Use futex
29122         wrappers with error checking.
29123         * nptl/pthread_barrier_init.c (pthread_barrier_init): Add comments,
29124         remove attribute sanity check and __ASSUME_PRIVATE_FUTEX check.
29125         * nptl/pthread_barrierattr_setpshared.c
29126         (pthread_barrierattr_setpshared): Check that shared futexes are
29127         supported.
29128         * nptl/pthread_condattr_setpshared.c (pthread_condattr_setpshared):
29129         Likewise.
29130         * nptl/pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
29131         Likewise.
29132         * nptl/sem_init.c (futex_private_if_supported): Remove.
29133         (__new_sem_init): Adapt and check that shared futexes are supported.
29134         * nptl/sem_open.c (sem_open): Likewise.
29135         * nptl/sem_post.c (futex_wake): Remove.
29136         * nptl/sem_waitcommon.c (futex_abstimed_wait, futex_wake): Remove.
29137         (do_futex_wait): Use futex wrappers with error checking.
29138         * nptl/sem_wait.c: Include lowlevellock.h.
29139         * sysdeps/sparc/nptl/pthread_barrier_init.c (__pthread_barrier_init):
29140         Use futex_supports_pshared.
29141         * sysdeps/sparc/nptl/pthread_barrier_wait.c (pthread_barrier_wait):
29142         Use futex wrappers with error checking.
29143         * sysdeps/sparc/sparc32/pthread_barrier_wait.c (pthread_barrier_wait):
29144         Likewise.
29145         * sysdeps/sparc/sparc32/sem_init.c (futex_private_if_supported): Remove.
29146         * sysdeps/sparc/sparc32/sem_post.c (futex_wake): Likewise.
29147         * sysdeps/sparc/sparc32/sem_open.c (sem_open): Use FUTEX_SHARED.
29148         * sysdeps/sparc/sparc32/sem_waitcommon.c (futex_abstimed_wait): Remove.
29149         (futex_wake): Likewise.
29150         (sem_assume_only_signals_cause_futex_EINTR): Likewise.
29151         (do_futex_wait): Use futex wrappers with error checking.
29152         (__new_sem_wait_slow): Update EINTR handling.
29153         * sysdeps/sparc/sparc32/sem_wait.c: Include lowlevellock.h.
29154
29155 2015-07-09  Martin Sebor  <msebor@redhat.com>
29156
29157         [BZ #18435]
29158         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
29159         Revert commit ed225df3ad9cbac3c22ec3f0fbbed1f9c61d1c54.
29160         * nptl/Makefile (test-xfail-tst-once5): Define.
29161
29162 2015-07-09  Roland McGrath  <roland@hack.frob.com>
29163
29164         * include/stdio.h: Add rtld_hidden_proto (__libc_fatal).
29165         * elf/dl-minimal.c: For readability, reorder some definitions and
29166         introduce more page breaks.  Include <stdio.h>.
29167         (__libc_fatal): New function.
29168
29169         * include/unistd.h: Add rtld_hidden_proto for _exit.
29170         * posix/_exit.c: Add rtld_hidden_def.
29171         * sysdeps/mach/hurd/_exit.c: Likewise.
29172         * sysdeps/nacl/_exit.c: Likewise.
29173         * sysdeps/unix/sysv/linux/_exit.c: Likewise.
29174         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
29175
29176 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
29177
29178         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Improve
29179         bndmov encoding with zero displacement.
29180
29181 2015-07-09  Igor Zamyatin  <igor.zamyatin@intel.com>
29182             H.J. Lu  <hongjiu.lu@intel.com>
29183
29184         [BZ #18134]
29185         * sysdeps/i386/configure.ac: Set HAVE_MPX_SUPPORT.
29186         * sysdeps/i386/configure: Regenerated.
29187         * sysdeps/i386/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
29188         (_dl_runtime_profile): Save and restore Intel MPX return bound
29189         registers when calling _dl_call_pltexit.  Add
29190         PRESERVE_BND_REGS_PREFIX before return.
29191         * sysdeps/i386/link-defines.sym (LRV_BND0_OFFSET): New.
29192         (LRV_BND1_OFFSET): Likewise.
29193         * sysdeps/x86/bits/link.h (La_i86_retval): Add lrv_bnd0 and
29194         lrv_bnd1.
29195         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
29196         typo in bndmov encoding.
29197         * sysdeps/x86_64/dl-trampoline.h: Properly save and restore
29198         Intel MPX bound registers.  Add PRESERVE_BND_REGS_PREFIX before
29199         branch instructions to preserve bounds.
29200
29201 2015-07-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
29202
29203         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
29204         [GLIBC_2.22]: Add fmemopen.
29205
29206 2015-07-09  Samuel Thibault  <samuel.thibault@ens-lyon.org>
29207
29208         * sysdeps/mach/hurd/mlock.c (mlock): When __get_privileged_ports
29209         returns an error, also try to use host port from __mach_host_self for
29210         the __vm_wire call.
29211         * sysdeps/mach/hurd/munlock.c (munlock): Likewise.
29212
29213 2015-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29214
29215         [BZ #18400]
29216         [BZ #18648]
29217         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (struct elf_prpsinfo):
29218         Fix pr_uid and pr_gid members.
29219         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (greg_t): Change the
29220         definition to elf_greg_t.
29221
29222 2015-07-08  Roland McGrath  <roland@hack.frob.com>
29223
29224         [BZ #18383]
29225         * sysdeps/arm/configure.ac (libc_cv_arm_tpoff_addend): New check.
29226         Emit test-xfail-tst-tlsalign{,-static}=yes if it fails.
29227         * sysdeps/arm/configure: Regenerated.
29228         * elf/Makefile (test-xfail-tst-tlsalign): Variable removed.
29229         (test-xfail-tst-tlsalign-static): Variable removed.
29230
29231         * Makerules (do-install-so): Use $(LN_S) rather than explicit 'ln -s'.
29232         * elf/Makefile ($(objpfx)$(rtld-installed-name)): Use $(make-link)
29233         rather than explicit 'ln -s'.
29234
29235         * resolv/rpc/netdb.h: New file.
29236         * resolv/Makefile [sunrpc not in $(subdirs)] (headers): Add it.
29237
29238 2015-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
29239
29240         * stdio-common/tst-fmemopen2.c (do_test): Add test for NULL and zero
29241         length buffers.
29242         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
29243         test-skeleton.c.
29244
29245         [BZ #6544]
29246         [BZ #11216]
29247         [BZ #12836]
29248         [BZ #13151]
29249         [BZ #13152]
29250         [BZ #14292]
29251         * include/stdio.h (fmemopen): Remove hidden prototype.
29252         (__fmemopen): Add new hidden prototype.
29253         * libio/Makefile: Add oldfmemopen object.
29254         * libio/Versions [GLIBC_2.22]: Add new fmemopen symbol.
29255         * libio/fmemopen.c (__fmemopen): Function rewrite to be POSIX
29256         compliance.
29257         * libio/oldfmemopen.c: New file: old fmemopen implementation for
29258         symbol compatibility.
29259         * stdio-common/Makefile [tests]: Add new tst-fmemopen3.
29260         * stdio-common/psiginfo.c [psiginfo]: Call __fmemopen instead of
29261         fmemopen.
29262         * stdio-common/tst-fmemopen3.c: New file: more fmemopen tests, focus
29263         on append and read mode.
29264         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.22]: Add
29265         fmemopen.
29266         * sysdeps/unix/sysv/linux/alpha/libc.abilist [GLIBC_2.22]: Likewise.
29267         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.22]: Likewise.
29268         * sysdeps/unix/sysv/linux/i386/libc.abilist [GLIBC_2.22]: Likewise.
29269         * sysdeps/unix/sysv/linux/ia64/libc.abilist [GLIBC_2.22]:
29270         Likewise.
29271         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
29272         [GLIBC_2.22]: Likewise.
29273         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist [GLIBC_2.22]:
29274         Likewise.
29275         * sysdeps/unix/sysv/linux/microblaze/libc.abilist [GLIBC_2.22]:
29276         Likewise.
29277         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
29278         [GLIBC_2.22]: Likewise.
29279         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
29280         [GLIBC_2.22]: Likewise.
29281         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
29282         [GLIBC_2.22]: Likewise.
29283         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
29284         [GLIBC_2.22]: Likewise.
29285         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
29286         [GLIBC_2.22]: Likewise.
29287         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
29288         [GLIBC_2.22]: Likewise.
29289         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
29290         [GLIBC_2.22]: Likewise.
29291         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist [GLIBC_2.22]:
29292         Likewise.
29293         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist [GLIBC_2.22]:
29294         Likewise.
29295         * sysdeps/unix/sysv/linux/sh/libc.abilist [GLIBC_2.22]: Likewise.
29296         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
29297         [GLIBC_2.22]: Likewise.
29298         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
29299         [GLIBC_2.22]: Likewise.
29300         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
29301         [GLIBC_2.22]: Likewise.
29302         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
29303         [GLIBC_2.22]: Likewise.
29304         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist [GLIBC_2.22]:
29305         Likewise.
29306         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist [GLIBC_2.22]:
29307         Likewise.
29308         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist [GLIBC_2.22]:
29309         Likewise.
29310         * sysdeps/unix/sysv/linux/hppa/libc.abilist [GLIBC_2.22]: Likewise.
29311         * sysdeps/unix/sysv/linux/nios2/libc.abilist [GLIBC_2.22]: Likewise.
29312
29313 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
29314
29315         [BZ #18643]
29316         * sysdeps/unix/sysv/linux/bits/in.h: Define IPV6_RECVPATHMTU,
29317         IPV6_PATHMTU, and IPV6_DONTFRAG.
29318
29319 2015-07-08  Feng Gao  <gfree.wind@gmail.com>
29320
29321         * libio/fileops.c: Use "|" instead of "+" when combine _IO_LINE_BUF
29322         and _IO_UNBUFFERED.
29323         * libio/oldfileops.c: Likewise.
29324         * libio/wfileops.c: Likewise.
29325
29326 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
29327
29328         * nscd/selinux.c: Delete selinux/flask.h include.
29329
29330 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
29331
29332         [BZ #18641]
29333         * pwd/pwd.h (fgetpwent): Add __nonnull markings.
29334         (putpwent): Likewise.
29335         (getpwnam): Likewise.
29336         (getpwent_r): Likewise.
29337         (getpwuid_r): Likewise.
29338         (getpwnam_r): Likewise.
29339         (fgetpwent_r): Likewise.
29340
29341 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
29342
29343         [BZ #18557]
29344         * inet/rcmd.c (__validuser2_sa): Check user first to
29345         short-circuit host check.
29346
29347 2015-07-07  Pavel Kopyl  <p.kopyl@samsung.com>
29348             Mikhail Ilin  <m.ilin@samsung.com>
29349
29350         [BZ #17833]
29351         * elf/Makefile (tests): Add tst-nodelete.
29352         (modules-names): Add tst-nodelete-uniquemod.
29353         (tst-nodelete-uniquemod.so-no-z-defs): New.
29354         (tst-nodelete-rtldmod.so-no-z-defs): Likewise.
29355         (tst-nodelete-zmod.so-no-z-defs): Likewise.
29356         ($(objpfx)tst-nodelete): Likewise.
29357         ($(objpfx)tst-nodelete.out): Likewise.
29358         (LDFLAGS-tst-nodelete): Likewise.
29359         (LDFLAGS-tst-nodelete-zmod.so): Likewise.
29360         * elf/dl-close.c (_dl_close_worker): Add a parameter to
29361         implement forced object deletion.
29362         (_dl_close): Pass false to _dl_close_worker.
29363         * elf/dl-open.c (_dl_open): Pass true to _dl_close_worker.
29364         * elf/tst-nodelete.cc: New file.
29365         * elf/tst-nodeletelib.cc: Likewise.
29366         * elf/tst-znodeletelib.cc: Likewise.
29367         * include/dlfcn.h (_dl_close_worker): Add a new parameter.
29368
29369 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
29370
29371         [BZ #18508]
29372         * stdlib/Makefile ($(objpfx)tst-makecontext3):
29373         Depend on $(libdl).
29374         * stdlib/tst-makecontext.c (cf): Test if _Unwind_Backtrace
29375         is not called infinitely times.
29376         (backtrace_helper): New function.
29377         (trace_arg): New struct.
29378         (st1): Enlarge stack size.
29379         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
29380         (__makecontext_ret): Omit cfi_startproc and cfi_endproc.
29381         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
29382         Likewise.
29383
29384 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
29385
29386         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
29387
29388 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
29389
29390         * sysdeps/unix/sysv/linux/s390/bits/sem.h:
29391         Include sys/types.h instead of bits/types.h.
29392         Remove inclusion of bits/wordsize.h.
29393
29394 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
29395
29396         * sysdeps/x86_64/tst-auditmod10b.c (la_symbind32): New.
29397         * sysdeps/x86_64/tst-auditmod4b.c (la_symbind32): Likewise.
29398         * sysdeps/x86_64/tst-auditmod5b.c (la_symbind32): Likewise.
29399         * sysdeps/x86_64/tst-auditmod6b.c (la_symbind32): Likewise.
29400         * sysdeps/x86_64/tst-auditmod6c.c (la_symbind32): Likewise.
29401         * sysdeps/x86_64/tst-auditmod7b.c (la_symbind32): Likewise.
29402
29403 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
29404
29405         * sysdeps/i386/Makefile (gen-as-const-headers)[elf]: Add
29406         link-defines.sym.
29407         * sysdeps/i386/dl-trampoline.S: Include <link-defines.h>.
29408         (_dl_runtime_profile): Use LONG_DOUBLE_SIZE, LRV_SIZE,
29409         LRV_EAX_OFFSET, LRV_EDX_OFFSET, LRV_ST0_OFFSET, LRV_ST1_OFFSET
29410         and LR_SIZE.
29411         * sysdeps/i386/link-defines.sym: New file.
29412
29413 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
29414
29415         * sysdeps/i386/Makefile (tests)[elf]: Add tst-audit3.
29416         (modules-names): Add tst-auditmod3a tst-auditmod3b.
29417         ($(objpfx)tst-audit3): New rule.
29418         ($(objpfx)tst-audit3.out): Likewise.
29419         * sysdeps/i386/tst-audit3.c: New file.
29420         * sysdeps/i386/tst-audit3.h: Likewise.
29421         * sysdeps/i386/tst-auditmod3a.c: Likewise.
29422         * sysdeps/i386/tst-auditmod3b.c: Likewise.
29423
29424 2015-07-07  Torvald Riegel  <triegel@redhat.com>
29425
29426         [BZ #18633]
29427         * sysdeps/x86/bits/string.h (__memmove_g): Do not create invalid
29428         pointer in C code.
29429         (__strcat_c): Likewise.
29430         (__strcat_g): Likewise.
29431
29432 2015-07-07  Cyril Hrubis <chrubis@suse.cz>
29433
29434         [BZ #18592]
29435         * misc/sbrk.c: Set errno to ENOMEM on overflow.
29436
29437 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
29438
29439         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt):
29440         New function.  (__ieee754_sqrtf): New function.
29441         * sysdeps/aarch64/fpu/e_sqrt.c (__ieee754_sqrt):
29442         New function.
29443         * sysdeps/aarch64/fpu/e_sqrtf.c (__ieee754_sqrtf):
29444         New function.
29445
29446 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
29447
29448         * sysdeps/ieee754/support.c: Remove unused file.
29449
29450 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29451
29452         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Use q
29453         registers instead of d ones so the layout is kernel abi compatible.
29454         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Likewise.
29455         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext):
29456         Likewise.
29457
29458 2015-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29459
29460         * sysdeps/aarch64/libm-test-ulps: Regenerated.
29461
29462 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
29463
29464         [BZ #18619]
29465         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Force underflow
29466         and return argument in case of subnormal argument.
29467
29468 2015-07-01  Martin Sebor  <msebor@redhat.com>
29469
29470         [BZ #18435]
29471         * nptl/Makefile: Add tst-once5.cc.
29472         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
29473         Remove macro redefinitions.
29474         * nptl/tst-once5.cc: New test.
29475
29476 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
29477
29478         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
29479
29480         * sysdeps/arm/libm-test-ulps: Regenerated.
29481
29482         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
29483         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
29484
29485 2015-06-30  Torvald Riegel  <triegel@redhat.com>
29486
29487         * nptl/DESIGN-systemtap-probes.txt: Remove lll_lock_wait,
29488         lll_lock_wait_private and lll_futex_wake probes.
29489
29490         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (BUSY_WAIT_NOP): Remove.
29491         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (BUSY_WAIT_NOP):
29492         Likewise.
29493         * sysdeps/i386/i486/bits/atomic.h (atomic_delay): Rename to
29494         atomic_spin_nop.
29495         * sysdeps/x86_64/bits/atomic.h: Likewise.
29496         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Rename
29497         to atomic_spin_nop and move ...
29498         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
29499         ... here and ...
29500         * sysdeps/sparc/sparc64/bits/atomic.h: ... here.
29501         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
29502         atomic_spin_nop instead of BUSY_WAIT_NOP.
29503         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
29504         Likewise.
29505         * sysdeps/nacl/lll_timedwait_tid.c (__lll_timedwait_tid): Likewise.
29506         * sysdeps/nacl/lowlevellock.h (BUSY_WAIT_NOP): Remove.
29507         (lll_wait_tid): Use atomic_spin_nop instead of BUSY_WAIT_NOP.
29508         * nscd/nscd-client.h (__nscd_acquire_maplock): Use atomic_spin_nop
29509         instead of atomic_delay.
29510
29511 2015-06-29  Joseph Myers  <joseph@codesourcery.com>
29512
29513         [BZ #18613]
29514         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Take log of
29515         X_ADJ not X when adjusting exponent.
29516         (__ieee754_gamma_r): Do intermediate computations in
29517         round-to-nearest then adjust overflowing and underflowing results
29518         as needed.
29519         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Take log
29520         of X_ADJ not X when adjusting exponent.
29521         (__ieee754_gammaf_r): Do intermediate computations in
29522         round-to-nearest then adjust overflowing and underflowing results
29523         as needed.
29524         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Take
29525         log of X_ADJ not X when adjusting exponent.
29526         (__ieee754_gammal_r): Do intermediate computations in
29527         round-to-nearest then adjust overflowing and underflowing results
29528         as needed.  Use 1.0L not 1.0f as numerator of division.
29529         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Take
29530         log of X_ADJ not X when adjusting exponent.
29531         (__ieee754_gammal_r): Do intermediate computations in
29532         round-to-nearest then adjust overflowing and underflowing results
29533         as needed.  Use 1.0L not 1.0f as numerator of division.
29534         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Take log
29535         of X_ADJ not X when adjusting exponent.
29536         (__ieee754_gammal_r): Do intermediate computations in
29537         round-to-nearest then adjust overflowing and underflowing results
29538         as needed.  Use 1.0L not 1.0f as numerator of division.
29539         * math/libm-test.inc (tgamma_test_data): Remove one test.  Moved
29540         to auto-libm-test-in.
29541         (tgamma_test): Use ALL_RM_TEST.
29542         * math/auto-libm-test-in: Add one test of tgamma.  Mark some other
29543         tests of tgamma with spurious-overflow.
29544         * math/auto-libm-test-out: Regenerated.
29545         * math/gen-libm-have-vector-test.sh: Do not check for START.
29546         * sysdeps/i386/fpu/libm-test-ulps: Update.
29547         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29548
29549         [BZ #18612]
29550         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): For small
29551         arguments, just return 0.5 times the argument, with underflow
29552         forced as needed.
29553         * math/auto-libm-test-in: Add more tests of j1.
29554         * math/auto-libm-test-out: Regenerated.
29555
29556         [BZ #16559]
29557         * sysdeps/ieee754/dbl-64/e_j1.c: Include <float.h>.
29558         (__ieee754_j1): Force underflow exception for small results.
29559         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
29560         * sysdeps/ieee754/flt-32/e_j1f.c: Include <float.h>.
29561         (__ieee754_j1f): Force underflow exception for small results.
29562         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
29563         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
29564         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
29565         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <float.h>.
29566         (__ieee754_j1l): Force underflow exception for small results.
29567         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
29568         * math/auto-libm-test-in: Add more tests of j1 and jn.
29569         * math/auto-libm-test-out: Regenerated.
29570
29571         * sysdeps/unix/sysv/linux/bits/in.h (IP_CHECKSUM): New macro.
29572         * sysdeps/unix/sysv/linux/bits/socket.h (PF_IB): Likewise.
29573         (PF_MPLS): Likewise.
29574         (AF_IB): Likewise.
29575         (AF_MPLS): Likewise.
29576         * sysdeps/unix/sysv/linux/sys/mount.h (MS_LAZYTIME): New enum
29577         value and macro.
29578         (MS_RMT_MASK): Include MS_LAZYTIME.
29579
29580 2015-06-26  Mel Gorman  <mgorman@suse.de>
29581
29582         [BZ #18502]
29583         * malloc/arena.c (heap_trim): Don't try to shrink a heap that is
29584         already minimal.
29585
29586 2015-06-26  Matthew Fortune  <matthew.fortune@imgtec.com>
29587
29588         * elf/elf.h (DT_MIPS_RLD_MAP_REL): New macro.
29589         (DT_MIPS_NUM): Update.
29590         * sysdeps/mips/dl-machine.h (ELF_MACHINE_DEBUG_SETUP): Handle
29591         DT_MIPS_RLD_MAP_REL.
29592
29593 2015-06-25  Joseph Myers  <joseph@codesourcery.com>
29594
29595         [BZ #16559]
29596         [BZ #18602]
29597         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Set
29598         round-to-nearest internally then recompute results that
29599         underflowed to zero in the original rounding mode.
29600         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
29601         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
29602         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
29603         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
29604         * math/libm-test.inc (jn_test): Use ALL_RM_TEST.
29605         * sysdeps/i386/fpu/libm-test-ulps: Update.
29606         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29607
29608 2015-06-25  Andrew Senkevich  <andrew.senkevich@intel.com>
29609
29610         * NEWS: Fixed description of link with vector math library.
29611
29612 2015-06-25  Andreas Schwab  <schwab@suse.de>
29613
29614         [BZ #18549]
29615         * libio/fmemopen.c (fmemopen_write): Fix bounds check for ENOSPC.
29616         * libio/test-fmemopen.c (do_test): Add test for it.
29617
29618 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
29619
29620         [BZ #17841]
29621         * Makeconfig (no-pie-ldflag): New.
29622         (+link): Set to $(+link-pie) if default to PIE.
29623         (+link-tests): Set to $(+link-pie-tests) if default to PIE.
29624         * config.make.in (build-pie-default): New.
29625         * configure.ac (libc_cv_pie_default): New.  Set to yes if -fPIE
29626         is default.  AC_SUBST.
29627         * configure: Regenerated.
29628         * elf/Makefile (LDFLAGS-tst-dlopen-aout): New.
29629
29630 2015-06-24  Roland McGrath  <roland@hack.frob.com>
29631
29632         * nptl/descr.h (struct pthread): Change type of field setxid_futex
29633         to 'unsigned int'.
29634
29635         * resolv/gai_misc.h (struct waitlist): Change type of field
29636         counterp to 'volatile unsigned int *'.
29637         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Use unsigned types for
29638         FUTEXADDR and OLDVAL.
29639         * resolv/getaddrinfo_a.c (getaddrinfo_a):
29640         Give local variable TOTAL type 'volatile unsigned int'.
29641         (struct async_waitlist): Change type of field counter to 'unsigned int'.
29642         * resolv/gai_suspend.c (gai_suspend):
29643         Give local variable CNTR type 'unsigned int'.
29644
29645         * sysdeps/pthread/aio_misc.h (struct waitlist): Change type of field
29646         counterp to 'volatile unsigned int *'.
29647         * sysdeps/pthread/aio_suspend.c [DONT_NEED_AIO_MISC_COND]
29648         (do_aio_misc_wait): Give argument CNTR type 'unsigned int *'.
29649         (aio_suspend): Give local variable CNTR type 'unsigned int'.
29650         * sysdeps/pthread/lio_listio.c (lio_listio_internal):
29651         Give local variable TOTAL type 'volatile unsigned int'.
29652         (struct async_waitlist): Change type of field counter to 'unsigned int'.
29653
29654 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
29655
29656         [BZ #18383]
29657         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Align
29658         TCB_OFFSET to MAX_ALIGN, not just TCBALIGN.  Add comment.
29659         * elf/Makefile (test-xfail-tst-tlsalign{,-static}): Remove
29660         comment for i386/x86-64.
29661         (test-xfail-tst-tlsalign-extern-static): Removed.
29662
29663 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
29664
29665         * math/test-double.h: New file.
29666         * math/test-float.h: Likewise.
29667         * math/test-ldouble.h: Likewise.
29668         * math/test-math-inline.h: Likewise.
29669         * math/test-math-no-inline.h: Likewise.
29670         * math/test-math-scalar.h: Likewise.
29671         * math/test-math-vector.h: Likewise.
29672         * math/test-vec-loop.h: Remove file.  Contents moved into
29673         test-math-vector.h.
29674         * math/libm-test.inc (MATHCONST): Do not document macro.
29675         * math/test-double.c: Include test-double.h, test-math-no-inline.h
29676         and test-math-scalar.h.
29677         (FUNC): Remove macro.
29678         (FUNC_TEST): Likewise.
29679         (FLOAT): Likewise.
29680         (MATHCONST): Likewise.
29681         (PRINTF_EXPR): Likewise.
29682         (PRINTF_XEXPR): Likewise.
29683         (PRINTF_NEXPR): Likewise.
29684         (TEST_DOUBLE): Likewise.
29685         (TEST_MATHVEC): Likewise.
29686         (__NO_MATH_INLINES): Likewise.
29687         * math/test-float.c: Include test-float.h, test-math-no-inline.h
29688         and test-math-scalar.h.
29689         (FUNC): Remove macro.
29690         (FUNC_TEST): Likewise.
29691         (FLOAT): Likewise.
29692         (MATHCONST): Likewise.
29693         (PRINTF_EXPR): Likewise.
29694         (PRINTF_XEXPR): Likewise.
29695         (PRINTF_NEXPR): Likewise.
29696         (TEST_FLOAT): Likewise.
29697         (TEST_MATHVEC): Likewise.
29698         (__NO_MATH_INLINES): Likewise.
29699         * math/test-idouble.c: Include test-double.h, test-math-inline.h
29700         and test-math-scalar.h.
29701         (FUNC): Remove macro.
29702         (FUNC_TEST): Likewise.
29703         (FLOAT): Likewise.
29704         (MATHCONST): Likewise.
29705         (PRINTF_EXPR): Likewise.
29706         (PRINTF_XEXPR): Likewise.
29707         (PRINTF_NEXPR): Likewise.
29708         (TEST_DOUBLE): Likewise.
29709         (TEST_MATHVEC): Likewise.
29710         (TEST_INLINE): Likewise.
29711         (__NO_MATH_INLINES): Likewise.
29712         * math/test-ifloat.c: Include test-float.h, test-math-inline.h and
29713         test-math-scalar.h.
29714         (FUNC): Remove macro.
29715         (FUNC_TEST): Likewise.
29716         (FLOAT): Likewise.
29717         (MATHCONST): Likewise.
29718         (PRINTF_EXPR): Likewise.
29719         (PRINTF_XEXPR): Likewise.
29720         (PRINTF_NEXPR): Likewise.
29721         (TEST_FLOAT): Likewise.
29722         (TEST_MATHVEC): Likewise.
29723         (TEST_INLINE): Likewise.
29724         (__NO_MATH_INLINES): Likewise.
29725         * math/test-ildoubl.c: Include test-ldouble.h, test-math-inline.h
29726         and test-math-scalar.h.
29727         (FUNC): Remove macro.
29728         (FUNC_TEST): Likewise.
29729         (FLOAT): Likewise.
29730         (MATHCONST): Likewise.
29731         (PRINTF_EXPR): Likewise.
29732         (PRINTF_XEXPR): Likewise.
29733         (PRINTF_NEXPR): Likewise.
29734         (TEST_LDOUBLE): Likewise.
29735         (TEST_MATHVEC): Likewise.
29736         (TEST_INLINE): Likewise.
29737         (__NO_MATH_INLINES): Likewise.
29738         * math/test-ldouble.c: Include test-ldouble.h,
29739         test-math-no-inline.h and test-math-scalar.h.
29740         (FUNC): Remove macro.
29741         (FUNC_TEST): Likewise.
29742         (FLOAT): Likewise.
29743         (MATHCONST): Likewise.
29744         (PRINTF_EXPR): Likewise.
29745         (PRINTF_XEXPR): Likewise.
29746         (PRINTF_NEXPR): Likewise.
29747         (TEST_LDOUBLE): Likewise.
29748         (TEST_MATHVEC): Likewise.
29749         (__NO_MATH_INLINES): Likewise.
29750         * math/test-double-vlen2.h: Include test-double.h,
29751         test-math-no-inline.h and test-math-vector.h.
29752         (FLOAT): Remove macro.
29753         (FUNC): Likewise.
29754         (MATHCONST): Likewise.
29755         (PRINTF_EXPR): Likewise.
29756         (PRINTF_XEXPR): Likewise.
29757         (PRINTF_NEXPR): Likewise.
29758         (TEST_DOUBLE): Likewise.
29759         (TEST_MATHVEC): Likewise.
29760         (__NO_MATH_INLINES): Likewise.
29761         (CNCT): Likewise.
29762         (CONCAT): Likewise.
29763         (WRAPPER_NAME): Likewise.
29764         (WRAPPER_DECL): Likewise.
29765         (WRAPPER_DECL_ff): Likewise.
29766         (WRAPPER_DECL_fFF): Likewise.
29767         (VECTOR_WRAPPER): Likewise.
29768         (VECTOR_WRAPPER_ff): Likewise.
29769         (VECTOR_WRAPPER_fFF): Likewise.
29770         (VEC_LEN): New macro.
29771         * math/test-double-vlen4.h: Include test-double.h,
29772         test-math-no-inline.h and test-math-vector.h.
29773         (FLOAT): Remove macro.
29774         (FUNC): Likewise.
29775         (MATHCONST): Likewise.
29776         (PRINTF_EXPR): Likewise.
29777         (PRINTF_XEXPR): Likewise.
29778         (PRINTF_NEXPR): Likewise.
29779         (TEST_DOUBLE): Likewise.
29780         (TEST_MATHVEC): Likewise.
29781         (__NO_MATH_INLINES): Likewise.
29782         (CNCT): Likewise.
29783         (CONCAT): Likewise.
29784         (WRAPPER_NAME): Likewise.
29785         (WRAPPER_DECL): Likewise.
29786         (WRAPPER_DECL_ff): Likewise.
29787         (WRAPPER_DECL_fFF): Likewise.
29788         (VECTOR_WRAPPER): Likewise.
29789         (VECTOR_WRAPPER_ff): Likewise.
29790         (VECTOR_WRAPPER_fFF): Likewise.
29791         (VEC_LEN): New macro.
29792         * math/test-double-vlen8.h: Include test-double.h,
29793         test-math-no-inline.h and test-math-vector.h.
29794         (FLOAT): Remove macro.
29795         (FUNC): Likewise.
29796         (MATHCONST): Likewise.
29797         (PRINTF_EXPR): Likewise.
29798         (PRINTF_XEXPR): Likewise.
29799         (PRINTF_NEXPR): Likewise.
29800         (TEST_DOUBLE): Likewise.
29801         (TEST_MATHVEC): Likewise.
29802         (__NO_MATH_INLINES): Likewise.
29803         (CNCT): Likewise.
29804         (CONCAT): Likewise.
29805         (WRAPPER_NAME): Likewise.
29806         (WRAPPER_DECL): Likewise.
29807         (WRAPPER_DECL_ff): Likewise.
29808         (WRAPPER_DECL_fFF): Likewise.
29809         (VECTOR_WRAPPER): Likewise.
29810         (VECTOR_WRAPPER_ff): Likewise.
29811         (VECTOR_WRAPPER_fFF): Likewise.
29812         (VEC_LEN): New macro.
29813         * math/test-float-vlen4.h: Include test-float.h,
29814         test-math-no-inline.h and test-math-vector.h.
29815         (FLOAT): Remove macro.
29816         (FUNC): Likewise.
29817         (MATHCONST): Likewise.
29818         (PRINTF_EXPR): Likewise.
29819         (PRINTF_XEXPR): Likewise.
29820         (PRINTF_NEXPR): Likewise.
29821         (TEST_FLOAT): Likewise.
29822         (TEST_MATHVEC): Likewise.
29823         (__NO_MATH_INLINES): Likewise.
29824         (CNCT): Likewise.
29825         (CONCAT): Likewise.
29826         (WRAPPER_NAME): Likewise.
29827         (WRAPPER_DECL): Likewise.
29828         (WRAPPER_DECL_ff): Likewise.
29829         (WRAPPER_DECL_fFF): Likewise.
29830         (VECTOR_WRAPPER): Likewise.
29831         (VECTOR_WRAPPER_ff): Likewise.
29832         (VECTOR_WRAPPER_fFF): Likewise.
29833         (VEC_LEN): New macro.
29834         * math/test-float-vlen8.h: Include test-float.h,
29835         test-math-no-inline.h and test-math-vector.h.
29836         (FLOAT): Remove macro.
29837         (FUNC): Likewise.
29838         (MATHCONST): Likewise.
29839         (PRINTF_EXPR): Likewise.
29840         (PRINTF_XEXPR): Likewise.
29841         (PRINTF_NEXPR): Likewise.
29842         (TEST_FLOAT): Likewise.
29843         (TEST_MATHVEC): Likewise.
29844         (__NO_MATH_INLINES): Likewise.
29845         (CNCT): Likewise.
29846         (CONCAT): Likewise.
29847         (WRAPPER_NAME): Likewise.
29848         (WRAPPER_DECL): Likewise.
29849         (WRAPPER_DECL_ff): Likewise.
29850         (WRAPPER_DECL_fFF): Likewise.
29851         (VECTOR_WRAPPER): Likewise.
29852         (VECTOR_WRAPPER_ff): Likewise.
29853         (VECTOR_WRAPPER_fFF): Likewise.
29854         (VEC_LEN): New macro.
29855         * math/test-float-vlen16.h: Include test-float.h,
29856         test-math-no-inline.h and test-math-vector.h.
29857         (FLOAT): Remove macro.
29858         (FUNC): Likewise.
29859         (MATHCONST): Likewise.
29860         (PRINTF_EXPR): Likewise.
29861         (PRINTF_XEXPR): Likewise.
29862         (PRINTF_NEXPR): Likewise.
29863         (TEST_FLOAT): Likewise.
29864         (TEST_MATHVEC): Likewise.
29865         (__NO_MATH_INLINES): Likewise.
29866         (CNCT): Likewise.
29867         (CONCAT): Likewise.
29868         (WRAPPER_NAME): Likewise.
29869         (WRAPPER_DECL): Likewise.
29870         (WRAPPER_DECL_ff): Likewise.
29871         (WRAPPER_DECL_fFF): Likewise.
29872         (VECTOR_WRAPPER): Likewise.
29873         (VECTOR_WRAPPER_ff): Likewise.
29874         (VECTOR_WRAPPER_fFF): Likewise.
29875         (VEC_LEN): New macro.
29876         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Do not include
29877         test-vec-loop.h.
29878         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
29879         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
29880         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
29881         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
29882         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
29883         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
29884         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
29885
29886 2015-06-24  Roland McGrath  <roland@hack.frob.com>
29887
29888         * sysdeps/nacl/glob.c (getlogin_r): Macro renamed to ...
29889         (__getlogin_r): ... this.
29890
29891 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
29892
29893         [BZ #18594]
29894         * math/s_ccosh.c (__ccosh): Compare with least normal value
29895         instead of comparing class with FP_SUBNORMAL.
29896         * math/s_ccoshf.c (__ccoshf): Likewise.
29897         * math/s_ccoshl.c (__ccoshl): Likewise.
29898         * math/s_cexp.c (__cexp): Likewise.
29899         * math/s_cexpf.c (__cexpf): Likewise.
29900         * math/s_cexpl.c (__cexpl): Likewise.
29901         * math/s_csin.c (__csin): Likewise.
29902         * math/s_csinf.c (__csinf): Likewise.
29903         * math/s_csinh.c (__csinh): Likewise.
29904         * math/s_csinhf.c (__csinhf): Likewise.
29905         * math/s_csinhl.c (__csinhl): Likewise.
29906         * math/s_csinl.c (__csinl): Likewise.
29907         * math/s_ctan.c (__ctan): Likewise.
29908         * math/s_ctanf.c (__ctanf): Likewise.
29909         * math/s_ctanh.c (__ctanh): Likewise.
29910         * math/s_ctanhf.c (__ctanhf): Likewise.
29911         * math/s_ctanhl.c (__ctanhl): Likewise.
29912         * math/s_ctanl.c (__ctanl): Likewise.
29913         * math/auto-libm-test-in: Add more tests of ccos, ccosh, cexp,
29914         csin, csinh, ctan and ctanh.
29915         * math/auto-libm-test-out: Regenerated.
29916         * math/libm-test.inc (cexp_test): Use ALL_RM_TEST.
29917         * sysdeps/i386/fpu/libm-test-ulps: Update.
29918         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29919
29920 2015-06-24  Roland McGrath  <roland@hack.frob.com>
29921
29922         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): When sched_getcpu
29923         return value is wrong, print the expected value too.
29924
29925 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
29926
29927         [BZ #18585]
29928         * elf/readlib.c (is_gdb_python_file): New.
29929         (process_file): Don't issue errors on filenames with -gdb.py
29930         suffix.
29931
29932 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
29933
29934         * math/auto-libm-test-in: Add more tests of csin and csinh.
29935         * math/auto-libm-test-out: Regenerated.
29936         * math/libm-test.inc (csin_test_data): Remove tests moved to
29937         auto-libm-test-in.
29938         (csinh_test_data): Likewise.
29939
29940         [BZ #18593]
29941         * math/s_csin.c (__csin): Negate before rather than after possibly
29942         overflowing multiplication.
29943         * math/s_csinf.c (__csinf): Likewise.
29944         * math/s_csinh.c (__csinh): Likewise.
29945         * math/s_csinhf.c (__csinhf): Likewise.
29946         * math/s_csinhl.c (__csinhl): Likewise.
29947         * math/s_csinl.c (__csinl): Likewise.
29948         * math/auto-libm-test-in: Add some tests of csin and csinh.
29949         * math/auto-libm-test-out: Regenerated.
29950         * math/libm-test.inc (csin_test_data): Use AUTO_TESTS_c_c.
29951         (csinh_test_data): Likewise.
29952         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29953
29954         [BZ #18586]
29955         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Force
29956         underflow exception for small results.
29957
29958 2015-06-24  Andrew Senkevich  <andrew.senkevich@intel.com>
29959
29960         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
29961         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: Renamed
29962         variable and included header.
29963         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: Likewise.
29964         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: Likewise.
29965         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: Likewise.
29966         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: Likewise.
29967         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: Likewise.
29968         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
29969         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
29970         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S: Likewise.
29971         * sysdeps/x86_64/fpu/svml_s_trig_data.S: New file.
29972         * sysdeps/x86_64/fpu/svml_s_trig_data.h: Likewise.
29973         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: Removed file.
29974         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: Likewise.
29975         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: Likewise.
29976         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: Likewise.
29977         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: Likewise.
29978         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: Likewise.
29979
29980 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
29981
29982         [BZ #16526]
29983         [BZ #16538]
29984         * sysdeps/ieee754/dbl-64/s_sin.c: Include <float.h>.
29985         (__sin): Force underflow exception for arguments with small
29986         absolute value.
29987         * sysdeps/ieee754/flt-32/k_sinf.c: Include <float.h>.
29988         (__kernel_sinf): Force underflow exception for arguments with
29989         small absolute value.
29990         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Include <float.h>.
29991         (__kernel_sincosl): Force underflow exception for arguments with
29992         small absolute value.
29993         * sysdeps/ieee754/ldbl-128/k_sinl.c: Include <float.h>.
29994         (__kernel_sinl): Force underflow exception for arguments with
29995         small absolute value.
29996         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Include <float.h>.
29997         (__kernel_sincosl): Force underflow exception for arguments with
29998         small absolute value.
29999         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Include <float.h>.
30000         (__kernel_sinl): Force underflow exception for arguments with
30001         small absolute value.
30002         * sysdeps/ieee754/ldbl-96/k_sinl.c: Include <float.h>.
30003         (__kernel_sinl): Force underflow exception for arguments with
30004         small absolute value.
30005         * sysdeps/powerpc/fpu/k_sinf.c: Include <float.h>.
30006         (__kernel_sinf): Force underflow exception for arguments with
30007         small absolute value.
30008         * math/auto-libm-test-in: Add more tests of sin and sincos.
30009         * math/auto-libm-test-out: Regenerated.
30010
30011         [BZ #18245]
30012         [BZ #18583]
30013         * sysdeps/ieee754/k_standardl.c: Include <fenv.h>.
30014         (__kernel_standard_l): Use feholdexcept and fesetenv around
30015         conversion to double instead of special-casing overflow and
30016         underflow.
30017         * math/libm-test.inc (fmod_test_data): Add more tests.
30018         (remainder_test_data): Likewise.
30019         (sqrt_test_data): Likewise.
30020
30021 2015-06-23  Torvald Riegel  <triegel@redhat.com>
30022
30023         [BZ #17403]
30024         * sysdeps/x86_64/bits/atomic.h: (atomic_full_barrier,
30025         atomic_read_barrier, atomic_write_barrier): Define.
30026         * sysdeps/i386/i486/bits/atomic.h (atomic_full_barrier,
30027         atomic_read_barrier, atomic_write_barrier): Define.
30028
30029 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
30030
30031         * math/Makefile [$(PERL) != no]
30032         ($(addprefix $(objpfx), $(addsuffix .o, $(libm-vec-tests)))): Move
30033         dependency on libm-test.stmp below the inclusion of Rules.
30034
30035 2015-06-23  Andrew Senkevich  <andrew.senkevich@intel.com>
30036
30037         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
30038         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: Renamed variable
30039         and included header.
30040         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: Likewise.
30041         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Likewise.
30042         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: Likewise.
30043         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: Likewise.
30044         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: Likewise.
30045         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Likewise.
30046         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
30047         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
30048         * sysdeps/x86_64/fpu/svml_d_trig_data.S: New file.
30049         * sysdeps/x86_64/fpu/svml_d_trig_data.h: Likewise.
30050         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: Removed unneeded include.
30051         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: Likewise.
30052         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: Likewise.
30053         * sysdeps/x86_64/fpu/svml_d_cos_data.S: Removed file.
30054         * sysdeps/x86_64/fpu/svml_d_cos_data.h: Likewise.
30055         * sysdeps/x86_64/fpu/svml_d_sin_data.S: Likewise.
30056         * sysdeps/x86_64/fpu/svml_d_sin_data.h: Likewise.
30057         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: Likewise.
30058         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: Likewise.
30059
30060 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
30061
30062         [BZ #18371]
30063         * math/s_csqrt.c (__csqrt): Avoid multiplication by 0.5 where
30064         intermediate but not final result might underflow.
30065         * math/s_csqrtf.c (__csqrtf): Likewise.
30066         * math/s_csqrtl.c (__csqrtl): Likewise.
30067         * math/auto-libm-test-in: Add more tests of csqrt.
30068         * math/auto-libm-test-out: Regenerated.
30069         * sysdeps/i386/fpu/libm-test-ulps: Update.
30070
30071         [BZ #18219]
30072         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Reduce
30073         threshold on absolute value of exponent for which scaling is used.
30074         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
30075         * math/auto-libm-test-in: Add more tests of exp2.
30076         * math/auto-libm-test-out: Regenerated.
30077
30078 2015-06-23  Dmitry V. Levin  <ldv@altlinux.org>
30079
30080         [BZ #17977]
30081         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix unlocking
30082         when initializing interface list, based on the bug analysis
30083         and the patch proposed by Eric Newton.
30084         * resolv/tst-res_hconf_reorder.c: New test.
30085         * resolv/Makefile [$(have-thread-library) = yes] (tests): Add
30086         tst-res_hconf_reorder.
30087         ($(objpfx)tst-res_hconf_reorder): Depend on $(libdl)
30088         and $(shared-thread-library).
30089         (tst-res_hconf_reorder-ENV): New variable.
30090
30091         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix typo
30092         in comment.
30093
30094 2015-06-22  Joseph Myers  <joseph@codesourcery.com>
30095
30096         [BZ #16353]
30097         * sysdeps/i386/fpu/s_expm1.S (dbl_min): New object.
30098         (__expm1): Force underflow exception for arguments with small
30099         absolute value.
30100         * sysdeps/i386/fpu/s_expm1f.S (flt_min): New object.
30101         (__expm1f): Force underflow exception for arguments with small
30102         absolute value.
30103         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <float.h>.
30104         (__expm1): Force underflow exception for arguments with small
30105         absolute value.
30106         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <float.h>.
30107         (__expm1f): Force underflow exception for arguments with small
30108         absolute value.
30109         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
30110         Check for small arguments before calling __expm1.
30111         * math/auto-libm-test-in: Do not mark underflow exceptions as
30112         possibly missing for bug 16353.
30113         * math/auto-libm-test-out: Regenerated.
30114
30115 2015-06-22  Andreas Schwab  <schwab@suse.de>
30116
30117         [BZ #18513]
30118         * resolv/nss_dns/dns-host.c (getanswer_r): Record TTL also for
30119         PTR queries.
30120
30121 2015-06-22  Leonhard Holz  <leonhard.holz@web.de>
30122
30123         * string/strcoll_l.c (STRCOLL): Remove unnecessary memset.
30124
30125         * string/strcoll_l.c: Remove unused struct element idxnow.
30126
30127 2015-06-21  Joseph Myers  <joseph@codesourcery.com>
30128
30129         [BZ #18569]
30130         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Force
30131         underflow and return argument in case of subnormal argument.
30132         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
30133         Likewise.
30134         * math/auto-libm-test-in: Add more tests of expm1.
30135         * math/auto-libm-test-out: Regenerated.
30136
30137         [BZ #16361]
30138         * sysdeps/i386/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
30139         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
30140         tiny results.
30141         * sysdeps/x86_64/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
30142         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
30143         tiny results.
30144         * math/auto-libm-test-in: Add more tests of exp and exp10.  Do not
30145         mark underflow exceptions as possibly missing for bug 16361.
30146         * math/auto-libm-test-out: Regenerated.
30147
30148 2015-06-19  Joseph Myers  <joseph@codesourcery.com>
30149
30150         * conform/data/sys/select.h-data [XOPEN2K8] (pselect): Expect.
30151         * conform/Makefile (test-xfail-XOPEN2K8/sys/select.h/conform):
30152         Remove variable.
30153         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
30154         (test-xfail-XOPEN2K8/utmpx.h/conform).
30155
30156         * conform/conformtest.pl ($xerrors): New variable.
30157         (note_error): New function.
30158         (compiletest): New argument $xfail.  Use not_error.
30159         (runtest): Likewise.
30160         (top level): Handle xfail- lines.  Update calls to compiletest and
30161         runtest.  Handle xfail- and optional- in headers listed with
30162         allow-header.
30163         * conform/data/fcntl.h-data (O_TTY_INIT): Use xfail-.
30164         (O_EXEC): Likewise.
30165         (O_SEARCH): Likewise.
30166         * conform/data/stropts.h-data (ioctl): Likewise.
30167         * conform/data/sys/ipc.h-data (ipc_perm.mode): Likewise.
30168         * conform/data/sys/sem.h-data (semid_ds.sem_nsems): Likewise.
30169         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Likewise.
30170         (msghdr.msg_controllen): Likewise.
30171         (cmsghdr.cmsg_len): Likewise.
30172         * conform/data/utmpx.h-data (utmpx.ut_tv): Likewise.
30173         * conform/Makefile (test-xfail-XPG3/sys/ipc.h/conform): Remove
30174         variable.
30175         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
30176         (test-xfail-XPG4/stropts.h/conform): Likewise.
30177         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
30178         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
30179         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
30180         (test-xfail-UNIX98/stropts.h/conform): Likewise.
30181         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
30182         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
30183         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
30184         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
30185         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
30186         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
30187         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
30188         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
30189         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
30190         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
30191         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
30192         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
30193         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
30194         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
30195         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
30196
30197 2015-06-19  Andrew Senkevich  <andrew.senkevich@intel.com>
30198
30199         * sysdeps/ieee754/ldbl-opt/s_sin.c (__DECL_SIMD_sincos_disable,
30200         __DECL_SIMD_sincos_disablef, __DECL_SIMD_sincos_disablel): Added empty
30201         definitions for proper unfolding of __MATHDECL_VEC.
30202
30203 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
30204
30205         * benchtests/bench-strcoll.c:
30206         Include string.h.
30207         (main): Remove unused variable res.
30208
30209 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
30210
30211         * timezone/Makefile (%/UTC %/Universal):
30212         Generate test-result files for UTC and Universal.
30213
30214 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
30215
30216         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
30217
30218 2015-06-18  Joseph Myers  <joseph@codesourcery.com>
30219
30220         [BZ #16350]
30221         * sysdeps/i386/fpu/s_asinh.S (__asinh): Force underflow exception
30222         for arguments with small absolute value.
30223         * sysdeps/i386/fpu/s_asinhf.S (__asinhf): Likewise.
30224         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Likewise.
30225         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <float.h>.
30226         (__asinh): Force underflow exception for arguments with small
30227         absolute value.
30228         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <float.h>.
30229         (__asinhf): Force underflow exception for arguments with small
30230         absolute value.
30231         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include <float.h>.
30232         (__asinhl): Force underflow exception for arguments with small
30233         absolute value.
30234         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Include <float.h>.
30235         (__asinhl): Force underflow exception for arguments with small
30236         absolute value.
30237         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include <float.h>.
30238         (__asinhl): Force underflow exception for arguments with small
30239         absolute value.
30240         * math/auto-libm-test-in: Do not mark underflow exceptions as
30241         possibly missing for bug 16350.
30242         * math/auto-libm-test-out: Regenerated.
30243
30244         * include/bits/ipc.h: Remove file.
30245         * conform/Makefile (test-xfail-XPG3/sys/msg.h/conform): Remove
30246         variable.
30247         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
30248         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
30249         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
30250         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
30251         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
30252         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
30253         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
30254         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
30255         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
30256
30257         * math/auto-libm-test-in: Remove spurious underflow allowance for
30258         tests of cexp.
30259         * math/auto-libm-test-out: Regenerated.
30260
30261         [BZ #18558]
30262         * sysdeps/unix/sysv/linux/bits/in.h (MCAST_JOIN_GROUP): Remove
30263         unconditional definition.
30264         (MCAST_BLOCK_SOURCE): Likewise.
30265         (MCAST_UNBLOCK_SOURCE): Likewise.
30266         (MCAST_LEAVE_GROUP): Likewise.
30267         (MCAST_JOIN_SOURCE_GROUP): Likewise.
30268         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
30269         (MCAST_MSFILTER): Likewise.
30270         * conform/Makefile (test-xfail-XOPEN2K/arpa/inet.h/conform):
30271         Remove variable.
30272         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
30273         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
30274         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
30275         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
30276         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
30277
30278 2015-06-18  Andrew Senkevich  <andrew.senkevich@intel.com>
30279
30280         * NEWS: Mention addition of x86_64 vector sincosf.
30281         * math/test-float-vlen16.h: Added wrapper for sincosf tests.
30282         * math/test-float-vlen4.h: Likewise.
30283         * math/test-float-vlen8.h: Likewise.
30284         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
30285         * sysdeps/x86/fpu/bits/math-vector.h: Added sincosf SIMD declaration.
30286         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30287         * sysdeps/x86_64/fpu/Versions: New versions added.
30288         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30289         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
30290         Added build of SSE, AVX2 and AVX512 IFUNC versions.
30291         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S
30292         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
30293         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S
30294         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
30295         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S
30296         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
30297         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S
30298         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S
30299         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S
30300         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S
30301         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: New file.
30302         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: New file.
30303         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 3 argument wrappers.
30304         * sysdeps/x86_64/fpu/test-float-vlen16.c: : Vector sincosf tests.
30305         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
30306         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
30307         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
30308         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
30309         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
30310         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
30311         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
30312
30313         * NEWS: Mention addition of x86_64 vector sincos.
30314         * bits/libm-simd-decl-stubs.h: Added stubs for sincos.
30315         * math/math.h (__MATHDECL_VEC): New macro.
30316         * math/bits/mathcalls.h: Added sincos declaration with __MATHDECL_VEC.
30317         * math/gen-libm-have-vector-test.sh: Added generation of sincos wrapper
30318         declaration under condition.
30319         * math/test-vec-loop.h (TEST_VEC_LOOP): Refactored.
30320         * math/test-double-vlen2.h: Added wrapper for sincos tests, reflected
30321         TEST_VEC_LOOP change.
30322         * math/test-double-vlen4.h: Likewise.
30323         * math/test-double-vlen8.h: Likewise.
30324         * math/test-float-vlen16.h: Reflected TEST_VEC_LOOP change.
30325         * math/test-float-vlen4.h: Likewise.
30326         * math/test-float-vlen8.h: Likewise.
30327         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
30328         * sysdeps/x86/fpu/bits/math-vector.h: Added sincos SIMD declaration.
30329         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30330         * sysdeps/x86_64/fpu/Versions: New versions added.
30331         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30332         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
30333         Added build of SSE, AVX2 and AVX512 IFUNC versions.
30334         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: New file.
30335         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: New file.
30336         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: New file.
30337         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: New file.
30338         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: New file.
30339         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: New file.
30340         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: New file.
30341         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: New file.
30342         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: New file.
30343         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: New file.
30344         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: New file.
30345         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: New file.
30346         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added wrappers for sincos.
30347         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Vector sincos tests.
30348         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
30349         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
30350         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
30351         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
30352         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
30353         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
30354         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
30355
30356         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
30357         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
30358         redirections for powf.
30359         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30360         * sysdeps/x86_64/fpu/Versions: New versions added.
30361         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30362         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
30363         Added build of SSE, AVX2 and AVX512 IFUNC versions.
30364         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 2 argument wrappers.
30365         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: New file.
30366         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: New file.
30367         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: New file.
30368         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: New file.
30369         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: New file.
30370         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: New file.
30371         * sysdeps/x86_64/fpu/svml_s_powf16_core.S: New file.
30372         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: New file.
30373         * sysdeps/x86_64/fpu/svml_s_powf8_core.S: New file.
30374         * sysdeps/x86_64/fpu/svml_s_powf8_core_avx.S: New file.
30375         * sysdeps/x86_64/fpu/svml_s_powf_data.S: New file.
30376         * sysdeps/x86_64/fpu/svml_s_powf_data.h: New file.
30377         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector powf tests.
30378         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
30379         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
30380         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
30381         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
30382         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
30383         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
30384         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
30385         * math/test-float-vlen16.h: Fixed 2 argument macro.
30386         * math/test-float-vlen4.h: Likewise.
30387         * math/test-float-vlen8.h: Likewise.
30388         * NEWS: Mention addition of x86_64 vector powf.
30389
30390 2015-06-17  Joseph Myers  <joseph@codesourcery.com>
30391
30392         * math/s_ctanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
30393         and redefine.
30394         * math/s_ctanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
30395         and redefine.
30396         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c: Remove file.
30397         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
30398         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
30399
30400         [BZ #18553]
30401         * resource/getpriority.c (getpriority): Rename to __getpriority
30402         and define as weak alias of __getpriority.
30403         * resource/setpriority.c (setpriority): Rename to __setpriority
30404         and define as weak alias of __setpriority.
30405         * sysdeps/mach/hurd/getpriority.c (getpriority): Rename to
30406         __getpriority and define as weak alias of __getpriority.
30407         * sysdeps/mach/hurd/setpriority.c (setpriority): Rename to
30408         __setpriority and define as weak alias of __setpriority.
30409         * sysdeps/unix/syscalls.list (getpriority): Use __getpriority as
30410         strong name.
30411         (setpriority): Use __setpriority as strong name.
30412         * sysdeps/unix/sysv/linux/getpriority.c (getpriority): Rename to
30413         __getpriority and define as weak alias of __getpriority.
30414         * include/sys/resource.h (__getpriority): Declare.  Use
30415         libc_hidden_proto.
30416         (__setpriority): Likewise.
30417         (getpriority): Don't use libc_hidden_proto.
30418         (setpriority): Likewise.
30419         * sysdeps/posix/nice.c (nice): Call __getpriority instead of
30420         getpriority.  Call __setpriority instead of setpriority.
30421         * conform/Makefile (test-xfail-XPG3/unistd.h/linknamespace):
30422         Remove variable.
30423
30424         [BZ #18547]
30425         * misc/getttyent.c (getttynam): Rename to __getttynam and define
30426         as weak alias of __getttynam.  Use prototype function definition.
30427         Call __setttyent, __getttyent and __endttyent instead of
30428         setttyent, getttyent and endttyent.
30429         (getttyent): Rename to __getttyent and define as weak alias of
30430         __getttyent.  Call __setttyent instead of setttyent.  Call
30431         __fgets_unlocked instead of fgets_unlocked.
30432         (setttyent): Rename to __setttyent and define as weak alias of
30433         __setttyent.
30434         (endttyent): Rename to __endttyent and define as weak alias of
30435         __endttyent.
30436         * include/ttyent.h (__getttyent): Declare.  Use libc_hidden_proto.
30437         (__setttyent): Likewise.
30438         (__endttyent): Likewise.
30439         (getttyent): Don't use libc_hidden_proto.
30440         (setttyent): Likewise.
30441         (endttyent): Likewise.
30442         * misc/ttyslot.c (ttyslot): Call __setttyent, __getttyent and
30443         __endttyent instead of setttyent, getttyent and endttyent.
30444         * conform/Makefile (test-xfail-XPG4/unistd.h/linknamespace):
30445         Remove variable.
30446
30447         [BZ #18546]
30448         * socket/recv.c (__recv): Use libc_hidden_def.
30449         * socket/socket.c (__socket): Likewise.
30450         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
30451         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
30452         * sysdeps/unix/sysv/linux/generic/recv.c (__recv): Likewise.
30453         * sysdeps/unix/sysv/linux/recv.c (__recv): Use libc_hidden_weak.
30454         * sysdeps/unix/sysv/linux/socket.c (__socket): Use
30455         libc_hidden_def.
30456         * sysdeps/unix/sysv/linux/x86_64/recv.c (__recv): Use
30457         libc_hidden_weak.
30458         * include/sys/socket.h (__socket): Do not use attribute_hidden.
30459         Use libc_hidden_proto.
30460         (__recv): Likewise.
30461         * socket/Versions (libc): Export __recv and __socket at version
30462         GLIBC_PRIVATE.
30463         * sysdeps/unix/sysv/linux/mq_notify.c (helper_thread): Call __recv
30464         instead of recv.
30465         (init_mq_netlink): Call __socket instead of socket.
30466         * conform/Makefile (test-xfail-POSIX/mqueue.h/linknamespace):
30467         Remove variable.
30468
30469         [BZ #18545]
30470         * rt/mq_timedreceive.c (mq_timedreceive): Rename to
30471         __mq_timedreceive and define as alias of __mq_timedreceive.  Use
30472         hidden_weak.
30473         * rt/mq_timedsend.c (mq_timedsend): Rename to __mq_timedsend and
30474         define as alias of __mq_timedsend.  Use hidden_weak.
30475         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Use
30476         __mq_timedsend as strong name.
30477         (mq_timedreceive): Use __mq_timedreceive as strong name.
30478         * include/mqueue.h (__mq_timedsend): Declare.  Use hidden_proto.
30479         (__mq_timedreceive): Likewise.
30480         * sysdeps/unix/sysv/linux/mq_receive.c (mq_receive): Call
30481         __mq_timedreceive instead of mq_timedreceive.
30482         * sysdeps/unix/sysv/linux/mq_send.c (mq_send): Call __mq_timedsend
30483         instead of mq_timedsend.
30484         * conform/Makefile (test-xfail-UNIX98/mqueue.h/linknamespace):
30485         Remove variable.
30486
30487         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use
30488         hidden_def and hidden_weak instead of libc_hidden_def and
30489         libc_hidden_weak.
30490         (top level): Refer to hidden_def in comment.
30491         * sysdeps/unix/syscall-template.S (syscall_hidden_def): New
30492         macro.  Use it instead of libc_hidden_def.
30493         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Do not
30494         specify __GI_* name explicitly.
30495         (mq_timedreceive): Likewise.
30496         (mq_setattr): Likewise.
30497
30498         [BZ #18544]
30499         * nptl/pthread_barrier_init.c (pthread_barrier_init): Rename to
30500         __pthread_barrier_init and define as weak alias of
30501         __pthread_barrier_init.
30502         * sysdeps/sparc/nptl/pthread_barrier_init.c
30503         (pthread_barrier_init): Likewise.
30504         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Rename to
30505         __pthread_barrier_wait and define as weak alias of
30506         __pthread_barrier_wait.
30507         * sysdeps/sparc/nptl/pthread_barrier_wait.c
30508         (pthread_barrier_wait): Likewise.
30509         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
30510         (pthread_barrier_wait): Likewise.
30511         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
30512         (pthread_barrier_wait): Likewise.
30513         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
30514         (pthread_barrier_wait): Likewise.
30515         * nptl/Versions (libpthread): Export __pthread_barrier_init and
30516         __pthread_barrier_wait at version GLIBC_PRIVATE.
30517         * include/pthread.h (__pthread_barrier_init): Declare.
30518         (__pthread_barrier_wait): Likewise.
30519         * sysdeps/unix/sysv/linux/mq_notify.c (notification_function):
30520         Call __pthread_barrier_wait instead of pthread_barrier_wait.
30521         (helper_thread): Likewise.
30522         (init_mq_netlink): Call __pthread_barrier_init instead of
30523         pthread_barrier_init.
30524
30525         [BZ #18542]
30526         * libio/iovswscanf.c (__vswscanf): Use libc_hidden_def.
30527         (vswscanf): Use ldbl_weak_alias instead of ldbl_strong_alias
30528         * include/wchar.h (__vswscanf): Declare.  Use libc_hidden_proto.
30529         * libio/swscanf.c (__swscanf): Call __vswscanf instead of
30530         vswscanf.
30531         * conform/Makefile (test-xfail-UNIX98/wchar.h/linknamespace):
30532         Remove variable.
30533
30534         [BZ #18540]
30535         * libio/iofflush.c [!_IO_MTSAFE_IO] (__fflush_unlocked): Define as
30536         strong alias of _IO_fflush.  Use libc_hidden_def.
30537         * libio/iofflush_u.c (fflush_unlocked): Rename to
30538         __fflush_unlocked and define as weak alias of __fflush_unlocked.
30539         Use libc_hidden_weak.
30540         * include/stdio.h (__fflush_unlocked): Declare.  Use
30541         libc_hidden_proto.
30542         * misc/getpass.c (getpass): Call __fflush_unlocked instead of
30543         fflush_unlocked.
30544         * conform/Makefile (test-xfail-UNIX98/unistd.h/linknamespace):
30545         Remove variable.
30546
30547         [BZ #18539]
30548         * stdlib/fmtmsg.c (addseverity): Rename to __addseverity and
30549         define as weak alias of __addseverity.
30550         * conform/Makefile (test-xfail-XPG4/fmtmsg.h/linknamespace):
30551         Remove variable.
30552         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
30553         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
30554         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
30555
30556         [BZ #18536]
30557         * misc/tsearch.c (__tsearch): Use libc_hidden_def.
30558         (__tfind): Likewise.
30559         (__tdelete): Likewise.
30560         (__twalk): Likewise.
30561         * misc/Versions (libc): Add __tdelete, __tfind, __tsearch and
30562         __twalk to GLIBC_PRIVATE.
30563         * include/search.h (__tsearch): Use libc_hidden_proto.
30564         (__tfind): Likewise.
30565         (__tdelete): Likewise.
30566         (__twalk): Likewise.
30567         * nptl/sem_close.c (sem_close): Call __twalk instead of twalk.
30568         Call __tdelete instead of tdelete.
30569         * nptl/sem_open.c (check_add_mapping): Call __tfind instead of
30570         tfind.  Call __tsearch instead of tsearch.
30571         * sysdeps/sparc/sparc32/sem_open.c (check_add_mapping): Likewise.
30572         * conform/Makefile (test-xfail-POSIX/semaphore.h/linknamespace):
30573         Remove variable.
30574         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
30575
30576         [BZ #18534]
30577         * stdio-common/dprintf.c (__dprintf): Use libc_hidden_def.
30578         (dprintf): Define as a weak alias of __dprintf, not a strong
30579         alias.
30580         * include/stdio.h (__dprintf): Declare.  Use libc_hidden_proto.
30581         * misc/syslog.c (__vsyslog_chk): Call __dprintf instead of
30582         dprintf.
30583         * conform/Makefile (test-xfail-XPG4/syslog.h/linknamespace):
30584         Remove variable.
30585         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
30586         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
30587
30588         [BZ #18533]
30589         * misc/syslog.c (vsyslog): Define as a weak alias of __vsyslog,
30590         not a strong alias.
30591         * conform/Makefile (test-xfail-XOPEN2K8/syslog.h/linknamespace):
30592         Remove variable.
30593
30594         [BZ #18532]
30595         * inet/in6_addr.c (in6addr_any): Rename to __in6addr_any and
30596         define as weak alias of __in6addr_any.  Use libc_hidden_data_weak.
30597         (in6addr_loopback): Rename to __in6addr_loopback and define as
30598         weak alias of __in6addr_loopback.  Use libc_hidden_data_weak.
30599         * include/netinet/in.h (__in6addr_loopback): Declare.  Use
30600         libc_hidden_proto.
30601         (__in6addr_any): Likewise.
30602         * inet/gethstbyad_r.c (PREPROCESS): Use __in6addr_any instead of
30603         in6addr_any.
30604         * conform/Makefile (test-xfail-XPG4/netdb.h/linknamespace): Remove
30605         variable.
30606         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
30607
30608 2015-06-17  Andrew Senkevich  <andrew.senkevich@intel.com>
30609
30610         * bits/libm-simd-decl-stubs.h: Added stubs for pow.
30611         * math/bits/mathcalls.h: Added pow declaration with __MATHCALL_VEC.
30612         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
30613         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
30614         redirections for pow.
30615         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30616         * sysdeps/x86_64/fpu/Versions: New versions added.
30617         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30618         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
30619         build of SSE, AVX2 and AVX512 IFUNC versions.
30620         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added 2 argument wrappers.
30621         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: New file.
30622         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: New file.
30623         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: New file.
30624         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: New file.
30625         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: New file.
30626         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: New file.
30627         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: New file.
30628         * sysdeps/x86_64/fpu/svml_d_pow4_core.S: New file.
30629         * sysdeps/x86_64/fpu/svml_d_pow4_core_avx.S: New file.
30630         * sysdeps/x86_64/fpu/svml_d_pow8_core.S: New file.
30631         * sysdeps/x86_64/fpu/svml_d_pow_data.S: New file.
30632         * sysdeps/x86_64/fpu/svml_d_pow_data.h: New file.
30633         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector pow test.
30634         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
30635         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
30636         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
30637         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
30638         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
30639         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
30640         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
30641         * NEWS: Mention addition of x86_64 vector pow.
30642
30643         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
30644         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
30645         redirections for expf.
30646         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30647         * sysdeps/x86_64/fpu/Versions: New versions added.
30648         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30649         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
30650         build of SSE, AVX2 and AVX512 IFUNC versions.
30651         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: New file.
30652         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: New file.
30653         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: New file.
30654         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: New file.
30655         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: New file.
30656         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: New file.
30657         * sysdeps/x86_64/fpu/svml_s_expf16_core.S: New file.
30658         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: New file.
30659         * sysdeps/x86_64/fpu/svml_s_expf8_core.S: New file.
30660         * sysdeps/x86_64/fpu/svml_s_expf8_core_avx.S: New file.
30661         * sysdeps/x86_64/fpu/svml_s_expf_data.S: New file.
30662         * sysdeps/x86_64/fpu/svml_s_expf_data.h: New file.
30663         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector expf tests.
30664         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
30665         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
30666         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
30667         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
30668         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
30669         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
30670         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
30671         * NEWS: Mention addition of x86_64 vector expf.
30672
30673         * bits/libm-simd-decl-stubs.h: Added stubs for exp.
30674         * math/bits/mathcalls.h: Added exp declaration with __MATHCALL_VEC.
30675         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
30676         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
30677         redirections for exp.
30678         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30679         * sysdeps/x86_64/fpu/Versions: New versions added.
30680         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30681         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
30682         build of SSE, AVX2 and AVX512 IFUNC versions.
30683         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: New file.
30684         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: New file.
30685         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: New file.
30686         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: New file.
30687         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: New file.
30688         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: New file.
30689         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: New file.
30690         * sysdeps/x86_64/fpu/svml_d_exp4_core.S: New file.
30691         * sysdeps/x86_64/fpu/svml_d_exp4_core_avx.S: New file.
30692         * sysdeps/x86_64/fpu/svml_d_exp8_core.S: New file.
30693         * sysdeps/x86_64/fpu/svml_d_exp_data.S: New file.
30694         * sysdeps/x86_64/fpu/svml_d_exp_data.h: New file.
30695         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector exp test.
30696         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
30697         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
30698         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
30699         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
30700         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
30701         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
30702         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
30703         * NEWS: Mention addition of x86_64 vector exp.
30704
30705         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
30706         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
30707         redirections for logf.
30708         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30709         * sysdeps/x86_64/fpu/Versions: New versions added.
30710         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30711         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
30712         build of SSE, AVX2 and AVX512 IFUNC versions.
30713         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: New file.
30714         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: New file.
30715         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: New file.
30716         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: New file.
30717         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: New file.
30718         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: New file.
30719         * sysdeps/x86_64/fpu/svml_s_logf16_core.S: New file.
30720         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: New file.
30721         * sysdeps/x86_64/fpu/svml_s_logf8_core.S: New file.
30722         * sysdeps/x86_64/fpu/svml_s_logf8_core_avx.S: New file.
30723         * sysdeps/x86_64/fpu/svml_s_logf_data.S: New file.
30724         * sysdeps/x86_64/fpu/svml_s_logf_data.h: New file.
30725         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector logf tests.
30726         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
30727         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
30728         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
30729         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
30730         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
30731         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
30732         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
30733         * NEWS: Mention addition of x86_64 vector logf.
30734
30735         * bits/libm-simd-decl-stubs.h: Added stubs for log.
30736         * math/bits/mathcalls.h: Added log declaration with __MATHCALL_VEC.
30737         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
30738         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
30739         redirections for log.
30740         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30741         * sysdeps/x86_64/fpu/Versions: New versions added.
30742         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30743         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
30744         build of SSE, AVX2 and AVX512 IFUNC versions.
30745         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: New file.
30746         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: New file.
30747         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: New file.
30748         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: New file.
30749         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: New file.
30750         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: New file.
30751         * sysdeps/x86_64/fpu/svml_d_log2_core.S: New file.
30752         * sysdeps/x86_64/fpu/svml_d_log4_core.S: New file.
30753         * sysdeps/x86_64/fpu/svml_d_log4_core_avx.S: New file.
30754         * sysdeps/x86_64/fpu/svml_d_log8_core.S: New file.
30755         * sysdeps/x86_64/fpu/svml_d_log_data.S: New file.
30756         * sysdeps/x86_64/fpu/svml_d_log_data.h: New file.
30757         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector log
30758         test.
30759         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
30760         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
30761         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
30762         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
30763         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
30764         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
30765         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
30766         * NEWS: Mention addition of x86_64 vector log.
30767
30768 2015-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
30769
30770         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Fix
30771         cfi_adjust_cfa_offset argument.
30772         (_dl_tlsdesc_undefweak, _dl_tlsdesc_dynamic): Likewise.
30773         (_dl_tlsdesc_resolve_rela, _dl_tlsdesc_resolve_hold): Likewise.
30774
30775         [BZ #18034]
30776         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Declare.
30777         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Define.
30778         (_dl_tlsdesc_undefweak): Guarantee TLSDESC entry and argument load-load
30779         ordering using ldar.
30780         (_dl_tlsdesc_dynamic): Likewise.
30781         (_dl_tlsdesc_return_lazy): Likewise.
30782         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Use
30783         relaxed atomics instead of volatile and synchronize with release store.
30784         (_dl_tlsdesc_resolve_hold_fixup): Use relaxed atomics instead of
30785         volatile.
30786         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
30787
30788 2015-06-15  Andrew Senkevich  <andrew.senkevich@intel.com>
30789
30790         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
30791         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for sinf.
30792         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30793         * sysdeps/x86_64/fpu/Versions: New versions added.
30794         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30795         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
30796         build of SSE, AVX2 and AVX512 IFUNC versions.
30797         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: New file.
30798         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: New file.
30799         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: New file.
30800         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: New file.
30801         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: New file.
30802         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: New file.
30803         * sysdeps/x86_64/fpu/svml_s_sinf16_core.S: New file.
30804         * sysdeps/x86_64/fpu/svml_s_sinf4_core.S: New file.
30805         * sysdeps/x86_64/fpu/svml_s_sinf8_core.S: New file.
30806         * sysdeps/x86_64/fpu/svml_s_sinf8_core_avx.S: New file.
30807         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: New file.
30808         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: New file.
30809         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector sinf tests.
30810         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
30811         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
30812         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
30813         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
30814         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
30815         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
30816         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
30817         * NEWS: Mention addition of x86_64 vector sinf.
30818
30819 2015-06-14  Joseph Myers  <joseph@codesourcery.com>
30820
30821         * conform/list-header-symbols.pl (%extra_syms): Add in6addr_any
30822         and in6addr_loopback for XOPEN2K, XOPEN2K8 and POSIX2008.
30823         * conform/Makefile (test-xfail-XOPEN2K/netdb.h/linknamespace):
30824         Remove variable.
30825         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
30826         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
30827
30828 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
30829
30830         [BZ #18530]
30831         * libio/iofputs.c [!_IO_MTSAFE_IO] (__fputs_unlocked): Define as
30832         strong alias of _IO_fputs.  Use libc_hidden_def.
30833         * libio/iofputs_u.c (fputs_unlocked): Rename to __fputs_unlocked
30834         and define as weak alias of __fputs_unlocked.  Use
30835         libc_hidden_weak.
30836         * include/stdio.h (__fputs_unlocked): Declare.  Use
30837         libc_hidden_proto.
30838         * misc/syslog.c (__vsyslog_chk): Call __fputs_unlocked instead of
30839         fputs_unlocked.
30840
30841         [BZ #18529]
30842         * resolv/netdb.h [__USE_POSIX]: Change condition to
30843         [__USE_XOPEN2K].
30844         * conform/data/netdb.h-data [XPG4 || UNIX98] (struct addrinfo): Do
30845         not expect.
30846         [XPG4 || UNIX98] (AI_PASSIVE): Likewise.
30847         [XPG4 || UNIX98] (AI_CANONNAME): Likewise.
30848         [XPG4 || UNIX98] (AI_NUMERICHOST): Likewise.
30849         [XPG4 || UNIX98] (AI_V4MAPPED): Likewise.
30850         [XPG4 || UNIX98] (AI_ALL): Likewise.
30851         [XPG4 || UNIX98] (AI_ADDRCONFIG): Likewise.
30852         [XPG4 || UNIX98] (AI_NUMERICSERV): Likewise.
30853         [XPG4 || UNIX98] (NI_NOFQDN): Likewise.
30854         [XPG4 || UNIX98] (NI_NUMERICHOST): Likewise.
30855         [XPG4 || UNIX98] (NI_NAMEREQD): Likewise.
30856         [XPG4 || UNIX98] (NI_NUMERICSERV): Likewise.
30857         [XPG4 || UNIX98] (NI_DGRAM): Likewise.
30858         [XPG4 || UNIX98] (EAI_AGAIN): Likewise.
30859         [XPG4 || UNIX98] (EAI_BADFLAGS): Likewise.
30860         [XPG4 || UNIX98] (EAI_FAIL): Likewise.
30861         [XPG4 || UNIX98] (EAI_FAMILY): Likewise.
30862         [XPG4 || UNIX98] (EAI_MEMORY): Likewise.
30863         [XPG4 || UNIX98] (EAI_NONAME): Likewise.
30864         [XPG4 || UNIX98] (EAI_SERVICE): Likewise.
30865         [XPG4 || UNIX98] (EAI_SOCKTYPE): Likewise.
30866         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
30867         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
30868         [XPG4 || UNIX98] (freeaddrinfo): Likewise.
30869         [XPG4 || UNIX98] (gai_strerror): Likewise.
30870         [XPG4 || UNIX98] (getaddrinfo): Likewise.
30871         [XPG4 || UNIX98] (getnameinfo): Likewise.
30872
30873         [BZ #18528]
30874         * grp/grp.h (endgrent): Condition on [__USE_MISC ||
30875         __USE_XOPEN_EXTENDED], not [__USE_XOPEN_EXTENDED ||
30876         __USE_XOPEN2K8].
30877         (getgrent): Likewise.
30878         * conform/data/grp.h-data [XPG3 || POSIX2008] (getgrent): Do not
30879         expect.
30880         [XPG3 || POSIX2008] (endgrent): Likewise.
30881         [XPG3] (setgrent): Likewise.
30882         * conform/Makefile (test-xfail-XPG3/grp.h/conform): Remove
30883         variable.
30884         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
30885
30886         [BZ #18527]
30887         * login/getlogin_r.c (getlogin_r): Rename to __getlogin_r and
30888         define as weak alias of __getlogin_r.  Use libc_hidden_weak.
30889         * sysdeps/mach/hurd/getlogin_r.c (getlogin_r): Likewise.
30890         * sysdeps/unix/getlogin_r.c (getlogin_r): Likewise.
30891         * sysdeps/unix/sysv/linux/getlogin_r.c (getlogin_r): Likewise.
30892         * include/unistd.h (__getlogin_r): Declare.  Use
30893         libc_hidden_proto.
30894         * posix/glob.c (glob): Call __getlogin_r instead of getlogin_r.
30895         * conform/Makefile (test-xfail-XPG3/glob.h/linknamespace): Remove
30896         variable.
30897         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
30898         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
30899         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
30900
30901 2015-06-12  Martin Sebor  <msebor@redhat.com>
30902
30903         [BZ #18512]
30904         * Makerules (check-install-supported): New target.
30905         (install): Add check-install-supported as a dependency.
30906         * manual/install.texi (Installing the C Library): Document
30907         that overriding prefix and exec_prefix is not supported.
30908         Mention DESTDIR.
30909         * INSTALL: Regenerate from the above.
30910
30911 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
30912
30913         [BZ #18519]
30914         * posix/Versions (libc): Export __libc_pread at version
30915         GLIBC_PRIVATE.
30916         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Call __libc_pread
30917         instead of pread.
30918         * conform/Makefile (test-xfail-POSIX/aio.h/linknamespace): Remove
30919         variable.
30920
30921         [BZ #18522]
30922         * misc/efgcvt_r.c
30923         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) && !LONG_DOUBLE_CVT]
30924         (cvt_symbol): Use weak_alias instead of strong_alias.
30925         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)] (cvt_symbol): Likewise.
30926         * conform/Makefile (test-xfail-XPG4/stdlib.h/linknamespace):
30927         Remove variable.
30928         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
30929         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
30930
30931         [BZ #18520]
30932         * inet/herrno.c (h_errno): Rename to __h_errno.
30933         (__libc_h_errno): Define as alias of __h_errno not h_errno.
30934         * include/netdb.h [IS_IN_LIB && !IS_IN (libc)] (h_errno): Define
30935         to __h_errno instead of h_errno.
30936         * nptl/herrno.c (h_errno): Rename to __h_errno.
30937         (__h_errno_location): Refer to __h_errno not h_errno.
30938         * resolv/Versions (h_errno): Rename to __h_errno.
30939         * conform/Makefile (test-xfail-XOPEN2K8/grp.h/linknamespace):
30940         Remove variable.
30941         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
30942
30943 2015-06-11  Andrew Senkevich  <andrew.senkevich@intel.com>
30944
30945         * configure.ac: More strict check for AVX512 assembler support.
30946         * configure: Regenerated.
30947
30948         * bits/libm-simd-decl-stubs.h: Added stubs for sin.
30949         * math/bits/mathcalls.h: Added sin declaration with __MATHCALL_VEC.
30950         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
30951         * sysdeps/x86/fpu/bits/math-vector.h: SIMD declaration for sin.
30952         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30953         * sysdeps/x86_64/fpu/Versions: New versions added.
30954         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30955         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
30956         Added build of SSE, AVX2 and AVX512 IFUNC versions.
30957         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: New file.
30958         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: New file.
30959         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: New file.
30960         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: New file.
30961         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: New file.
30962         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: New file.
30963         * sysdeps/x86_64/fpu/svml_d_sin2_core.S: New file.
30964         * sysdeps/x86_64/fpu/svml_d_sin4_core.S: New file.
30965         * sysdeps/x86_64/fpu/svml_d_sin4_core_avx.S: New file.
30966         * sysdeps/x86_64/fpu/svml_d_sin8_core.S: New file.
30967         * sysdeps/x86_64/fpu/svml_d_sin_data.S: New file.
30968         * sysdeps/x86_64/fpu/svml_d_sin_data.h: New file.
30969         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector sin
30970         test.
30971         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
30972         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
30973         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
30974         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
30975         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
30976         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
30977         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
30978         * NEWS: Mention addition of x86_64 vector sin.
30979
30980 2015-06-11  Florian Weimer  <fweimer@redhat.com>
30981
30982         * nptl/pthread_key_create.c (__pthread_key_create): Fix typo in
30983         comment.
30984
30985 2015-06-10  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
30986
30987         [BZ #18479]
30988         * nptl/pt-interp.c: New file.
30989         * nptl/Makefile (libpthread-routines, libpthread-shared-only-routines):
30990         Add pt-interp.
30991         [[$(build-shared) = yes] ($(objpfx)pt-interp.os): Depend on
30992         $(common-objpfx)runtime-linker.h.
30993
30994 2015-06-10  Dmitry V. Levin  <ldv@altlinux.org>
30995
30996         * Makeconfig (+interp): Remove unused variable.
30997         * elf/Makefile ($(objpfx)interp.os): Define for [$(build-shared) = yes]
30998         only.  Depend on $(common-objpfx)runtime-linker.h instead of
30999         $(elf-objpfx)runtime-linker.h.
31000         ($(elf-objpfx)runtime-linker.h): Rename to
31001         $(common-objpfx)runtime-linker.h and move ...
31002         * Makerules [$(build-shared) = yes]: ... here.
31003         * elf/interp.c: Include <runtime-linker.h> instead of
31004         <elf/runtime-linker.h>.
31005
31006 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31007
31008         * sysdeps/unix/sysv/linux/i386/gettimeofday.c
31009         (__gettimeofday_syscall): Remove vsyscall fallback.
31010         * sysdeps/unix/sysv/linux/i386/time.c (__time_syscall): Likewise.
31011         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday_syscall):
31012         Add syscall fallback function.
31013         (gettimeofday_ifunc): Use __gettimeofday_syscall as fallback mechanism
31014         if vDSO is not present.
31015         * sysdeps/unix/sysv/linux/x86/time.c (__time_syscall): Add syscall
31016         fallback function.
31017         (time_ifunc): Use __time_syscall as fallback mechanism if vDSO is not
31018         present.
31019         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Remove file.
31020         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
31021
31022 2015-06-09  Joseph Myers  <joseph@codesourcery.com>
31023
31024         [BZ #18497]
31025         * wcsmbs/wcscmp.c [!WCSCMP] (WCSCMP): Define as __wcscmp instead
31026         of wcscmp.
31027         (wcscmp): Define as weak alias of WCSCMP.
31028         * wcsmbs/wcscoll.c (STRCOLL): Define as __wcscoll instead of
31029         wcscoll.
31030         (USE_HIDDEN_DEF): Define.
31031         [!USE_IN_EXTENDED_LOCALE_MODEL] (wcscoll): Define as weak alias of
31032         __wcscoll.  Don't use libc_hidden_weak.
31033         * wcsmbs/wcscoll_l.c (STRCMP): Define as __wcscmp instead of
31034         wcscmp.
31035         * sysdeps/i386/i686/multiarch/wcscmp-c.c
31036         [SHARED] (libc_hidden_def): Define __GI___wcscmp instead of
31037         __GI_wcscmp.
31038         (weak_alias): Undefine and redefine.
31039         * sysdeps/i386/i686/multiarch/wcscmp.S (wcscmp): Rename to
31040         __wcscmp and define as weak alias of __wcscmp.
31041         * sysdeps/x86_64/wcscmp.S (wcscmp): Likewise.
31042         * include/wchar.h (__wcscmp): Declare.  Use libc_hidden_proto.
31043         (__wcscoll): Likewise.
31044         (wcscmp): Don't use libc_hidden_proto.
31045         (wcscoll): Likewise.
31046         * posix/regcomp.c (build_range_exp): Call __wcscoll instead of
31047         wcscoll.
31048         * posix/regexec.c (check_node_accept_bytes): Likewise.
31049         * conform/Makefile (test-xfail-XPG3/regex.h/linknamespace): Remove
31050         variable.
31051         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
31052         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
31053
31054         [BZ #18507]
31055         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Rename to
31056         __fstatvfs and define as weak alias of __fstatvfs.  Use
31057         libc_hidden_weak.
31058         * sysdeps/unix/sysv/linux/statvfs.c (statvs): Rename to __statvfs
31059         and define as weak alias of __statvfs.  Use libc_hidden_weak.
31060         * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c (__fstatvfs64):
31061         Define as alias of __fstatvfs, not fstatvfs.
31062         (fstatvfs64): Likewise.
31063         * sysdeps/unix/sysv/linux/wordsize-64/statvfs.c (__statvfs64):
31064         Define as alias of __statvfs, not statvfs.
31065         (statvfs64): Likewise.
31066         * conform/Makefile (test-xfail-POSIX/unistd.h/linknamespace):
31067         Remove variable.
31068
31069 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31070
31071         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
31072         (HAVE_GETCPU_VSYSCALL): Define.
31073         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
31074         (HAVE_GETCPU_VSYSCALL): Likewise.
31075         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Remove file.
31076         * sysdeps/unix/sysv/linux/sched_getcpu.c
31077         (HAVE_VSYSCALL) [HAVE_GETCPU_VSYSCALL]: Define.
31078         (sched_getcpu): Use INLINE_VSYSCALL instead of INLINE_SYSCALL.
31079         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (getcpu): Add vDSO
31080         prototype.
31081         * sysdeps/unix/sysv/linux/x86_64/init-first.c
31082         (__vdso_platform_setup): Remove vsyscall getcpu fallback.
31083         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Remove file.
31084         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (HAVE_GETCPU_VSYSCALL):
31085         Define.
31086         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: Remove file.
31087         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
31088         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c: Likewise.
31089         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
31090
31091 2015-06-09  Andrew Senkevich  <andrew.senkevich@intel.com>
31092
31093         * sysdeps/x86_64/fpu/Makefile: New file.
31094         * sysdeps/x86_64/fpu/Versions: New file.
31095         * sysdeps/x86_64/fpu/svml_d_cos_data.S: New file.
31096         * sysdeps/x86_64/fpu/svml_d_cos_data.h: New file.
31097         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: New file.
31098         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: New file.
31099         * sysdeps/x86_64/fpu/svml_d_cos4_core_avx.S: New file.
31100         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: New file.
31101         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: New file.
31102         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: New file.
31103         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: New file.
31104         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: New file.
31105         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: New file.
31106         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: New file.
31107         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: New file.
31108         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
31109         Added build of SSE, AVX2 and AVX512 IFUNC versions.
31110         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cos.
31111         * math/bits/mathcalls.h: Added cos declaration with __MATHCALL_VEC.
31112         * sysdeps/x86_64/configure.ac: Options for libmvec build.
31113         * sysdeps/x86_64/configure: Regenerated.
31114         * sysdeps/x86_64/sysdep.h (cfi_offset_rel_rsp): New macro.
31115         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New file.
31116         * manual/install.texi (Configuring and compiling): Document
31117         --disable-mathvec.
31118         * INSTALL: Regenerated.
31119         * NEWS: Mention addition of libmvec and x86_64 vector cos.
31120
31121         * math/Makefile: Added rules for vector tests.
31122         * math/gen-libm-have-vector-test.sh: Added generation of wrapper
31123         declaration under condition.
31124         * math/test-double-vlen2.h: New file.
31125         * math/test-double-vlen4.h: New file.
31126         * math/test-double-vlen8.h: New file.
31127         * math/test-vec-loop.h: Added initialization macro.
31128         * sysdeps/x86_64/fpu/Makefile: Added variables for vector tests.
31129         * sysdeps/x86_64/fpu/libm-test-ulps: Regenarated.
31130         * sysdeps/x86_64/fpu/math-tests-arch.h: New file.
31131         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: New file.
31132         * sysdeps/x86_64/fpu/test-double-vlen2.c: New file.
31133         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: New file.
31134         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: New file.
31135         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: New file.
31136         * sysdeps/x86_64/fpu/test-double-vlen4.c: New file.
31137         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: New file.
31138         * sysdeps/x86_64/fpu/test-double-vlen8.c: New file.
31139
31140         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
31141         * sysdeps/x86_64/fpu/Versions: New versions added.
31142         * sysdeps/x86_64/fpu/svml_s_cosf4_core.S: New file.
31143         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: New file.
31144         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: New file.
31145         * sysdeps/x86_64/fpu/svml_s_cosf8_core_avx.S: New file.
31146         * sysdeps/x86_64/fpu/svml_s_cosf8_core.S: New file.
31147         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: New file.
31148         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: New file.
31149         * sysdeps/x86_64/fpu/svml_s_cosf16_core.S: New file.
31150         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: New file.
31151         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: New file.
31152         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: New file.
31153         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: New file.
31154         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: New file.
31155         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
31156         Added build of SSE, AVX2 and AVX512 IFUNC versions.
31157         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
31158         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cosf.
31159         * NEWS: Mention addition of x86_64 vector cosf.
31160
31161         * math/Makefile: Added CFLAGS for new tests.
31162         * math/test-float-vlen16.h: New file.
31163         * math/test-float-vlen4.h: New file.
31164         * math/test-float-vlen8.h: New file.
31165         * math/test-double-vlen2.h: Fixed 2 argument macro and comment.
31166         * sysdeps/x86_64/fpu/Makefile: Added new tests and variables.
31167         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
31168         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: New file.
31169         * sysdeps/x86_64/fpu/test-float-vlen16.c: New file.
31170         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: New file.
31171         * sysdeps/x86_64/fpu/test-float-vlen4.c: New file.
31172         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: New file.
31173         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: New file.
31174         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: New file.
31175         * sysdeps/x86_64/fpu/test-float-vlen8.c: New file.
31176
31177 2015-06-09 Marko Myllynen  <myllynen@redhat.com>
31178
31179         * locale/C-ctype.c (PREDEFINED_CLASSES): Remove.
31180         * locale/programs/ld-ctype.c: Likewise.
31181
31182 2015-06-08  Andrew Senkevich  <andrew.senkevich@intel.com>
31183
31184         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX512F_Usable,
31185         bit_AVX512DQ_Usable, bit_Opmask_state, bit_ZMM0_15_state,
31186         bit_ZMM16_31_state): New macro.
31187         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
31188         Check and set bit_AVX512F_Usable, bit_AVX512DQ_Usable.
31189
31190 2015-06-08  Joseph Myers  <joseph@codesourcery.com>
31191
31192         * include/stdio.h (__open_memstream): Say "C++ tests" in comment.
31193
31194 2015-06-06  Justus Winter  <4winter@informatik.uni-hamburg.de>
31195
31196         * mach/mach/mach_traps.h (thread_switch): Fix typo in comment.
31197
31198 2015-06-05  Joseph Myers  <joseph@codesourcery.com>
31199
31200         [BZ #18498]
31201         * libio/memstream.c (open_memstream): Rename to __open_memstream
31202         and define as weak alias of __open_memstream.
31203         * include/stdio.h (__open_memstream): Declare.  Use
31204         libc_hidden_proto.
31205         (open_memstream): Don't use libc_hidden_proto.
31206         * misc/syslog.c (__vsyslog_chk): Call __open_memstream instead of
31207         open_memstream.
31208         * posix/getopt.c (_getopt_internal_r): Likewise.
31209         * conform/Makefile (test-xfail-XPG3/stdio.h/linknamespace): Remove
31210         variable.
31211         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
31212         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
31213         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
31214
31215         [BZ #18496]
31216         * posix/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
31217         instead of wcrtomb.
31218
31219         [BZ #18483]
31220         * signal/signal.h [__USE_XOPEN2K] (psignal): Change condition to
31221         [__USE_XOPEN2K8].  Remove redundant #endif.
31222         [__USE_XOPEN2K] (psiginfo): Change condition to [__USE_XOPEN2K8].
31223         Remove redundant #if.
31224         * conform/Makefile (test-xfail-XOPEN2K/signal.h/linknamespace):
31225         Remove variable.
31226         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
31227         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
31228
31229         [BZ #18495]
31230         * wctype/wcfuncs.c (__iswalnum): Use libc_hidden_def.
31231         (__iswlower): Likewise.
31232         * include/wctype.h (__iswalnum): Declare.  Use libc_hidden_proto.
31233         (__iswlower): Likewise.
31234         * posix/regcomp.c (re_compile_fastmap_iter): Call __towlower
31235         instead of towlower.
31236         * posix/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
31237         instead of iswlower.  Call __towupper instead of towupper.
31238         * posix/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
31239         instead of iswalnum.
31240
31241 2015-06-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
31242
31243         * malloc/tst-malloc-backtrace.c (do_test): Redirect libc fatal
31244         errors to stderr.
31245
31246 2015-06-05  Florian Weimer  <fweimer@redhat.com>
31247
31248         [BZ #15661]
31249         [BZ #17322]
31250         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
31251         Check for overflow properly.  Check for O_APPEND.  Ignore large
31252         file system block sizes.  Add comments about problems.
31253         * sysdeps/posix/posix_fallocate.c (posix_fallocate): Likewise.
31254         * manual/filesys.texi (Storage Allocation): New node.
31255
31256 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31257
31258         * sysdeps/unix/sysdep.h [SYSCALL_CANCEL]: New macro: define
31259         cancellable syscalls.
31260         (SYS_ify): Add guard to no redefine it.
31261         (INLINE_SYSCALL): Likewise.
31262         * sysdeps/unix/sysv/linux/accept4.c (accept4): Remove
31263         LIBC_CANCEL_ASYNC/INLINE_SYSCALL/LIBC_CANCEL_RESET and use
31264         SYSCALL_CANCEL instead.
31265         * sysdeps/unix/sysv/linux/alpha/fdatasync.c (__fdatasync): Likewise.
31266         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
31267         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
31268         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
31269         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
31270         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Likewise.
31271         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Likewise.
31272         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Likewise.
31273         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
31274         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
31275         * sysdeps/unix/sysv/linux/generic/pause.c (__libc_pause): Likewise.
31276         * sysdeps/unix/sysv/linux/generic/poll.c (__poll): Likewise.
31277         * sysdeps/unix/sysv/linux/generic/recv.c (__libc_recv): Likewise.
31278         * sysdeps/unix/sysv/linux/generic/select.c (__select): Likewise.
31279         * sysdeps/unix/sysv/linux/generic/send.c (__libc_send): Likewise.
31280         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
31281         Likewise.
31282         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
31283         (__libc_pread64): Likewise.
31284         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c
31285         (__libc_preadv): Likewise.
31286         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c
31287         (__libc_readv64): Likewise.
31288         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
31289         (__libc_pwrite): Likewise.
31290         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
31291         (__libc_pwrite64): Likewise.
31292         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c
31293         (__libc_pwritev): Likewise.
31294         * sysdeps/sysv/linux/generic/wordsize-32/pwritev64.c
31295         (__libc_pwritev64): Likewise.
31296         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Likewise.
31297         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
31298         (sync_file_range): Likewise.
31299         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c (fallocate):
31300         Likewise.
31301         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c (fallocate64):
31302         Likewise.
31303         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
31304         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
31305         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
31306         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
31307         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
31308         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
31309         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
31310         * sysdeps/unix/sysv/linux/openat.c (__libc_openat): Likewise.
31311         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
31312         Likewise.
31313         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
31314         (__libc_read64): Likewise.
31315         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_write):
31316         Likewise.
31317         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c (__libc_write64):
31318         Likewise.
31319         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__libc_fcntl):
31320         Likewise.
31321         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c (__libc_pread):
31322         Likewise.
31323         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
31324         (__libc_pread64): Likewise.
31325         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c (__libc_pwrite):
31326         Likewise.
31327         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
31328         (__libc_pwrite64): Likewise.
31329         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c
31330         (sync_file_range): Likewise.
31331         * sysdeps/unix/sysv/linux/ppoll.c (ppoll): Likewise.
31332         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
31333         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
31334         * sysdeps/unix/sysv/linux/preadv.c (__libc_preadv): Likewise.
31335         * sysdeps/unix/sysv/linux/pselect.c (__pselect): Likewise.
31336         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
31337         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
31338         * sysdeps/unix/sysv/linux/pwritev.c (PWRITEV): Likewise.
31339         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Likewise.
31340         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
31341         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
31342         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
31343         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
31344         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
31345         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_pwrite64): Likewise.
31346         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
31347         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
31348         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
31349         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
31350         Likewise.
31351         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
31352         Likewise.
31353         * sysdeps/unix/sysv/linux/tcdrain.c (__libc_tcdrain): Likewise.
31354         * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
31355         Likewise.
31356         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Likewise.
31357         * sysdeps/unix/sysv/linux/waitid.c (__waitid): Likewise.
31358         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Likewise.
31359         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c (fallocate):
31360         Likewise.
31361         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c (preadv): Likewise.
31362         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c (pwritev): Likewise.
31363         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
31364         * sysdeps/unix/sysv/linux/x86_64/recv.c (__libc_recv): Likewise.
31365         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Likewise.
31366
31367 2015-06-04  Nathan Lynch  <nathan_lynch@codesourcery.com>
31368
31369         * sysdeps/unix/sysv/linux/arm/Makefile: (sysdep_routines):
31370         Include dl-vdso.
31371         * sysdeps/unix/sysv/linux/arm/init-first.c: New file:
31372         Use VDSO routines for gettimeofday, clock_gettime if
31373         available.
31374         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: New file:
31375         Declare VDSO symbols.
31376         * sysdeps/unix/sysv/linux/arm/sysdep.h:
31377         [HAVE_GETTIMEOFDAY_VSYSCALL]: Define.
31378         [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
31379         * sysdeps/unix/sysv/linux/arm/Versions: Add
31380         __vdso_clock_gettime.
31381
31382 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31383
31384         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Rewrite to
31385         be an inline implementation regardless of library is built within.
31386         (open_not_cancel_2): Likewise.
31387         (__read_nocancel): Likewise.
31388         (__write_nocancel): Likewise.
31389         (openat_not_cancel): Likewise.
31390         (openat_not_cancel_3): Likewise.
31391         (openat64_not_cancel): Likewise.
31392         (openat64_not_cancel_3): Likewise.
31393         (__close_nocancel): Likewise.
31394         (pause_not_cancel): Likewise.
31395         (nanosleep_not_cancel): Likewise.
31396         (sigsuspend_not_cancel): Likewise.
31397
31398 2015-06-04  Torvald Riegel  <triegel@redhat.com>
31399
31400         [BZ #14958]
31401         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add missing
31402         wake-up.
31403         (__pthread_rwlock_rdlock_slow): Likewise.
31404         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
31405         Likewise.
31406         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
31407         Likewise.
31408         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Add comments.
31409         * nptl/tst-rwlock16.c: New file.
31410         * nptl/Makefile (tests): Add new test.
31411
31412 2015-06-04  Torvald Riegel  <triegel@redhat.com>
31413
31414         [BZ #18324]
31415         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Add
31416         missing wake-up of readers.
31417         * nptl/tst-rwlock15.c: New file.
31418         * nptl/Makefile (tests): Add new test.
31419
31420 2015-06-03  Roland McGrath  <roland@hack.frob.com>
31421
31422         * sysdeps/nacl/nacl-interfaces.c (try_supply): New static function.
31423         (PASTE_NAME (__nacl_supply_interface_, MODULE_NAME)): New function.
31424         * sysdeps/nacl/nacl-interfaces.h: Declare __nacl_supply_interface_libc
31425         and __nacl_supply_interface_rtld.
31426         * sysdeps/nacl/nacl_interface_ext_supply.c: New file.
31427         * sysdeps/nacl/Makefile [$(subdir) = csu] (sysdep_routines): Add it.
31428         * sysdeps/nacl/Versions (ld: GLIBC_PRIVATE):
31429         Add __nacl_supply_interface_rtld.
31430         (libc: GLIBC_2.22): Add nacl_interface_ext_supply.
31431
31432 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
31433
31434         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Replace finite with
31435         isfinite.
31436         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
31437         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c (__finitel): Likewise.
31438
31439 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
31440
31441         * math/e_exp10.c: Replace __isinf*, __isnan*, __finite* and
31442         __signbit* with standard C99 macros.
31443         * math/e_exp10l.c: Likewise.
31444         * math/e_exp2l.c: Likewise.
31445         * math/e_scalb.c: Likewise.
31446         * math/e_scalbf.c: Likewise.
31447         * math/e_scalbl.c: Likewise.
31448         * math/s_ldexp.c: Likewise.
31449         * math/s_ldexpf.c: Likewise.
31450         * math/s_ldexpl.c: Likewise.
31451         * math/w_atan2.c: Likewise.
31452         * math/w_atan2f.c: Likewise.
31453         * math/w_atan2l.c: Likewise.
31454         * math/w_cosh.c: Likewise.
31455         * math/w_coshf.c: Likewise.
31456         * math/w_coshl.c: Likewise.
31457         * math/w_exp10.c: Likewise.
31458         * math/w_exp10f.c: Likewise.
31459         * math/w_exp10l.c: Likewise.
31460         * math/w_exp2.c: Likewise.
31461         * math/w_exp2f.c: Likewise.
31462         * math/w_exp2l.c: Likewise.
31463         * math/w_fmod.c: Likewise.
31464         * math/w_fmodf.c: Likewise.
31465         * math/w_fmodl.c: Likewise.
31466         * math/w_hypot.c: Likewise.
31467         * math/w_hypotf.c: Likewise.
31468         * math/w_hypotl.c: Likewise.
31469         * math/w_jnl.c: Likewise.
31470         * math/w_lgamma.c: Likewise.
31471         * math/w_lgamma_r.c: Likewise.
31472         * math/w_lgammaf.c: Likewise.
31473         * math/w_lgammaf_r.c: Likewise.
31474         * math/w_lgammal.c: Likewise.
31475         * math/w_lgammal_r.c: Likewise.
31476         * math/w_pow.c: Likewise.
31477         * math/w_powf.c: Likewise.
31478         * math/w_powl.c: Likewise.
31479         * math/w_remainder.c: Likewise.
31480         * math/w_remainderf.c: Likewise.
31481         * math/w_remainderl.c: Likewise.
31482         * math/w_scalb.c: Likewise.
31483         * math/w_scalbf.c: Likewise.
31484         * math/w_scalbl.c: Likewise.
31485         * math/w_scalbln.c: Likewise.
31486         * math/w_scalblnf.c: Likewise.
31487         * math/w_scalblnl.c: Likewise.
31488         * math/w_sinh.c: Likewise.
31489         * math/w_sinhf.c: Likewise.
31490         * math/w_sinhl.c: Likewise.
31491         * math/w_tgamma.c: Likewise.
31492         * math/w_tgammaf.c: Likewise.
31493         * math/w_tgammal.c: Likewise.
31494         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
31495         * sysdeps/ieee754/dbl-64/e_exp10.c: Likewise.
31496         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
31497         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
31498         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
31499         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
31500         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
31501         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
31502         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
31503         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
31504         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
31505         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
31506         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
31507         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
31508         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
31509         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
31510         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
31511         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
31512         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
31513         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
31514         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
31515         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
31516         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
31517         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
31518         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
31519         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
31520         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
31521         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
31522         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
31523         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
31524         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c: Likewise.
31525         * sysdeps/ieee754/ldbl-opt/nldbl-isinf.c: Likewise.
31526         * sysdeps/ieee754/ldbl-opt/nldbl-isnan.c: Likewise.
31527         * sysdeps/ieee754/ldbl-opt/nldbl-signbit.c: Likewise.
31528         * stdio-common/printf_fp.c: Likewise.
31529         * stdio-common/printf_fphex.c: Likewise.
31530         * stdio-common/printf_size.c: Likewise.
31531
31532 2015-06-03  Joseph Myers  <joseph@codesourcery.com>
31533
31534         [BZ #18470]
31535         * posix/fnmatch.c (fnmatch) [_LIBC]: Call __strnlen instead of
31536         strnlen.
31537         * conform/Makefile (test-xfail-XPG3/fnmatch.h/linknamespace):
31538         Remove variable.
31539         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
31540         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
31541         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
31542         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
31543         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
31544         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
31545         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
31546         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
31547         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
31548         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
31549
31550         [BZ #18468]
31551         * wcsmbs/wmemchr.c (wmemchr): Rename to __wmemchr and define as
31552         weak alias of __wmemchr.  Use libc_hidden_weak.
31553         * include/wchar.h (__wmemchr): Declare.  Use libc_hidden_proto.
31554         * posix/fnmatch.c [HANDLE_MULTIBYTE] (MEMCHR): Use __wmemchr
31555         instead of wmemchr.
31556
31557 2015-06-02  Roland McGrath  <roland@hack.frob.com>
31558
31559         [BZ #18383]
31560         * elf/tst-tlsalign-extern.c: New file.
31561         * elf/tst-tlsalign-extern-static.c: New file.
31562         * elf/tst-tlsalign-vars.c: New file.
31563         * elf/Makefile (tests-static): Add tst-tlsalign-extern-static.
31564         [$(build-shared) = yes] (tests): Add tst-tlsalign-extern.
31565         ($(objpfx)tst-tlsalign-extern): Depend on tst-tlsalign-vars.o.
31566         ($(objpfx)tst-tlsalign-extern-static): Likewise.
31567         (test-xfail-tst-tlsalign-extern-static): New variable.
31568
31569 2015-06-02  Joseph Myers  <joseph@codesourcery.com>
31570
31571         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (INLINE_SYSCALL):
31572         Use variable name _sc_err instead of err.
31573         [__mips16] (INTERNAL_SYSCALL_NCS): Use variable name _sc_ret
31574         instead of ret.
31575         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
31576         (INLINE_SYSCALL): Use variable name _sc_err instead of err.
31577         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
31578         (INLINE_SYSCALL): Likewise.
31579
31580         * string/strnlen.c [!STRNLEN] (__strnlen): Use libc_hidden_def.
31581         * include/string.h (__strnlen): Use libc_hidden_proto.
31582         * sysdeps/aarch64/strnlen.S (__strnlen): Use libc_hidden_def.
31583         * sysdeps/i386/i686/multiarch/strnlen-c.c [SHARED]
31584         (libc_hidden_def): Define __GI___strnlen as well as __GI_strnlen.
31585         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-power7.S
31586         (libc_hidden_def): Undefine and redefine.
31587         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c
31588         [SHARED] (libc_hidden_def): Define __GI___strnlen as well as
31589         __GI_strnlen.
31590         * sysdeps/powerpc/powerpc32/power7/strnlen.S (__strnlen): Use
31591         libc_hidden_def.
31592         * sysdeps/tile/tilegx/strnlen.c (__strnlen): Likewise.
31593
31594         [BZ #18469]
31595         * wctype/wcfuncs.c (towlower): Rename to __towlower and define as
31596         weak alias of __towlower.  Use libc_hidden_weak.
31597         (towupper): Rename to __towupper and define as weak alias of
31598         __towupper.  Use libc_hidden_weak.
31599         * include/wctype.h (__towlower): Declare.  Use libc_hidden_proto.
31600         (__towupper): Likewise.
31601         * posix/fnmatch.c [HANDLE_MULTIBYTE && _LIBC] (FOLD): Use
31602         __towlower instead of towlower.
31603
31604 2015-06-02  Roland McGrath  <roland@hack.frob.com>
31605
31606         * stdlib/setenv.c [__GNUC__,__GNUC_MINOR__ < 4,7]: Use
31607         "-Wuninitialized" rather than "-Wmaybe-uninitialized" in pragma.
31608
31609 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
31610
31611         * sysdeps/aarch64/libm-test-ulps: Update.
31612
31613 2015-06-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31614
31615         * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL):
31616         Define.
31617         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
31618         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
31619         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
31620         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
31621         * sysdeps/unix/sysv/linux/timespec_get.c: Include errno.h.
31622         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: Remove file.
31623         * sysdeps/unix/sysv/linux/x86/timespec_get.c: Likewise.
31624
31625 2015-06-01  Martin Sebor  <msebor@redhat.com>
31626
31627         [BZ #18116]
31628         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
31629         (__setcontext): Use extended four-operand version of mtsf whenever
31630         possible.
31631         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
31632         (__novec_swapcontext): Likewise.
31633
31634 2015-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
31635
31636         * benchtests/scripts/compare_bench.py: New file.
31637         * benchtests/scripts/import_bench.py (mean): New function.
31638         (split_list): Likewise.
31639         (do_for_all_timings): Likewise.
31640         (compress_timings): Likewise.
31641
31642         * benchtests/scripts/import_bench.py: New file.
31643         * benchtests/scripts/validate_benchout.py: Import import_bench
31644         instead of jsonschema.
31645         (validate_bench): Remove function.
31646         (main): Use import_bench.
31647
31648 2015-06-01  Steve Ellcey  <sellcey@imgtec.com>
31649
31650         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use a union to
31651         copy data from cur_ifr->ifr_addr and cur_ifr->ifr_netmask.
31652
31653 2015-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31654
31655         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31656
31657 2015-05-28  Roland McGrath  <roland@hack.frob.com>
31658
31659         * sysdeps/nacl/exit-thread.h (__exit_thread): If not detached,
31660         set THREAD_SELF->tid to a magic value and futex-wake it.
31661         Pass its address to the thread_exit system call.
31662         * sysdeps/nacl/pthread-pids.h (__nacl_get_tid): Assert that TID's low
31663         bit is clear.
31664         * sysdeps/nacl/lowlevellock.h: New file.
31665         * sysdeps/nacl/lll_timedwait_tid.c: New file.
31666
31667         * sysdeps/nacl/lowlevellock-futex.h (lll_futex_timed_wait):
31668         Add TIMEOUT to current time, don't subtract it.
31669
31670 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
31671
31672         [BZ #2981]
31673         [BZ #18422]
31674         * Makefile ($(objpfx)tst-audit2): Depend on $(libdl).
31675         ($(objpfx)tst-audit2.out): Also depend on
31676         $(objpfx)tst-auditmod9b.so.
31677         * elf/tst-audit2.c: Include <dlfcn.h>.
31678         (calloc_called): New.
31679         (calloc): Allow to be called more than once.
31680         (do_test): dllopen/dlclose $ORIGIN/tst-auditmod9b.so.
31681
31682 2015-05-28  Wilco Dijkstra  <wdijkstr@arm.com>
31683
31684         * sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs.
31685         * sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise.
31686
31687 2015-05-27  Marko Myllynen  <myllynen@redhat.com>
31688
31689         * stdlib/monetary.h: Fix comment.
31690
31691 2015-05-26  Chris Metcalf  <cmetcalf@ezchip.com>
31692
31693         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_SYSCALL):
31694         Avoid using variables in #defines that might cause shadowing.
31695         (INTERNAL_VSYSCALL_CALL): Likewise.
31696
31697 2015-05-26  Roland McGrath  <roland@hack.frob.com>
31698
31699         * sysdeps/nacl/lll_timedlock_wait.c: New file.
31700
31701         * nptl/lowlevellock.c (__lll_timedlock_wait): Moved ...
31702         * nptl/lll_timedlock_wait.c: ... to this new file.
31703         * nptl/Makefile (libpthread-routines): Add it.
31704         * nptl/lowlevellock.c (__lll_timedwait_tid): Moved ...
31705         * nptl/lll_timedwait_tid.c: ... to this new file.
31706         * nptl/Makefile (libpthread-routines): Add it.
31707         * sysdeps/sparc/sparc32/lll_timedlock_wait.c: New file.
31708         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: New file.
31709         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: New file.
31710         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c: New file.
31711         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c: New file.
31712         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: New file.
31713         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c: New file.
31714         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c: New file.
31715         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: New file.
31716         * sysdeps/unix/sysv/linux/x86_64/lll_timedwait_tid.c: New file.
31717
31718 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31719
31720         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: Remove file.
31721         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
31722         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
31723         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
31724         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
31725         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
31726         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
31727         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
31728         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
31729         * sysdeps/unix/sysv/linux/tile/sysdep.h
31730         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
31731         * sysdeps/unix/sysv/linux/gettimeofday.c: New file: gettimeofday
31732         using vDSO syscall macro.
31733
31734 2015-05-26  Andriy Rysin  <arysin@gmail.com>
31735
31736         [BZ #17293]
31737         * uk_UA: Fix sorting order for Ukrainian locale
31738
31739 2015-05-26  Marko Myllynen  <myllynen@redhat.com>
31740
31741         * stdlib/monetary.h: Fix comment.
31742
31743 2015-05-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
31744
31745         [BZ #18234]
31746         * conform/data/sys/stat.h-data (struct stat): Add tests for st_atim,
31747         st_mtim and st_ctim members.
31748         * sysdeps/nacl/bits/stat.h (struct stat, struct stat64): Make
31749         st_atim, st_ctim, st_mtim visible under __USE_XOPEN2K8 only.
31750         * sysdeps/unix/sysv/linux/generic/bits/stat.h (struct stat,):
31751         (struct stat64): Likewise.
31752         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat,):
31753         (struct stat64): Likewise.
31754         * sysdeps/unix/sysv/linux/microblaze/bits/stat.h (struct stat,):
31755         (struct stat64): Likewise.
31756
31757 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31758
31759         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (HAVE_VSYSCALL):
31760         Define and include sysdep-vdso.h.
31761         * sysdeps/unix/sysv/linux/s390/gettimeofday.c (HAVE_VSYSCALL):
31762         Likewise.
31763         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (HAVE_VSYSCALL):
31764         Likewise.
31765         * sysdeps/unix/sysv/linux/aarch64/init-first.c (__vdso_gettimeofday):
31766         Define with VDSO_SYMBOL and use PTR_MANGLE.
31767         (__vdso_clock_gettime): Likewise.
31768         (__vdso_clock_getres): Likewise.
31769         (_libc_vdso_platform_setup): Likewise.
31770         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
31771         Likewise.
31772         (_libc_vdso_platform_setup): Likewise.
31773         * sysdeps/unix/sysv/linux/powerpc/init-first.c (__vdso_gettimeofday):
31774         Likewise.
31775         (__vdso_clock_gettime): Likewise.
31776         (__vdso_clock_getres): Likewise.
31777         (__vdso_get_tbfreq): Likewise.
31778         (__vdso_getcpu): Likewise.
31779         (__vdso_time): Likewise.
31780         (__vdso_sigtramp_rt64): Likewise.
31781         (__vdso_signtramp32): Likewise.
31782         (__vdso_sigtramp_rt32): Likewise.
31783         (_libc_vdso_platform_setup): Likewise.
31784         * sysdeps/unix/sysv/linux/s390/init-first.c (__vdso_gettimeofay):
31785         Likewise.
31786         (__vdso_clock_gettime): Likewise.
31787         (__vdso_clock_getres): Likewise.
31788         (_libc_vdso_platform_setup): Likewise.
31789         * sysdeps/unix/sysv/linux/tile/init-first.c (__vdso_gettimeofday):
31790         Likewise.
31791         (__vdso_clock_gettime): Likewise.
31792         (_libc_vdso_platform_setup): Likewise.
31793         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
31794         Likewise.
31795         (__vdso_getcpu): Likewise.
31796         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h (__vdso_gettimeoday):
31797         Use VDSO_SYMBOL macro to define.
31798         (__vdso_clock_gettime): Likewise.
31799         (__vdso_clock_getres): Likewise.
31800         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h (__vdso_gettimeofday):
31801         Likewise.
31802         (__vdso_clock_gettime): Likewise.
31803         (__vdso_clock_getres): Likewise.
31804         (__vdso_get_tbfreq): Likewise.
31805         (__vdso_getcpu): Likewise.
31806         (__vdso_time): Likewise.
31807         (__vdso_sigtramp_rt64): Likewise.
31808         (__vdso_signtramp32): Likewise.
31809         (__vdso_sigtramp_rt32): Likewise.
31810         * sysdeps/unix/sysv/linux/s390/libc-vdso.h (__vdso_gettimeofday):
31811         Likewise.
31812         (__vdso_clock_gettime): Likewise.
31813         (__vdso_clock_getres): Likewise.
31814         * sysdeps/unix/sysv/linux/tile/libc-vdso.h (__vdso_gettimeofday):
31815         Likewise.
31816         (__vdso_clock_gettime): Likewise.
31817         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
31818         Likewise.
31819         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INLINE_VSYSCALL):  Remove
31820         macro.
31821         (INTERNAL_VSYSCALL): Likewise.
31822         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL):
31823         Remove macro.
31824         (INTERNAL_VSYSCALL): Likewise.
31825         (INTERNAL_VSYSCALL_NCS): Likewise.
31826         (INTERNAL_VSYSCALL_CALL): New macro.
31827         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
31828         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INLINE_VSYSCALL):
31829         Likewise.
31830         (INTERNAL_VSYSCALL): Likewise.
31831         (INTERNAL_VSYSCALL_NCS): Likewise.
31832         (INTERNAL_VSYSCALL_CALL): New macro.
31833         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
31834         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
31835         (INLINE_VSYSCALL): Remove macro.
31836         (INTERNAL_VSYSCALL): Remove macro.
31837         (INTERNAL_VSYSCALL_NCS): Remove macro.
31838         (INTERNAL_VSYSCALL_CALL): New macro.
31839         (INTERNAL_VSYSCALL_CALL_TYPE): New macro.
31840         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL.
31841         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
31842         (HAVE_CLOCK_GETRES_VSYSCALL): New define.
31843         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
31844         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
31845         (INLINE_VSYSCALL): Remove macro.
31846         (INTERNAL_VSYSCALL): Likewise.
31847         (INTERNAL_VSYSCALL_NCS): Likewise.
31848         (INTERNAL_VSYSCALL_CALL): New macro.
31849         (INTERNAL_VSYSCALL_CALL_TYPE): Likewise.
31850         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL and
31851         PTR_DEMANGLE on vDSO pointer.
31852         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
31853         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Remove
31854         macro.
31855         (INTERNAL_SYSCALL): Likewise.
31856         (INTERNAL_VSYSCALL_NCS): Remove macro.
31857         (INTERNAL_VSYSCALL_CALL): New macro.
31858         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
31859         Remove macro.
31860         (INTERNAL_VSYSCALL): Likewise.
31861         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Include
31862         sysdep-vdso.h instead of libc-vdso.h.
31863         * sysdeps/unix/sysv/linux/clock_getres.c (INTERNAL_VSYSCALL): Remove
31864         definition.
31865         (INLINE_VSYSCALL): Likewise.
31866         (HAVE_VSYSCALL) [HAVE_CLOCK_GETRES_VSYSCALL]: Define.
31867         * sysdeps/unix/sysv/linux/clock_gettime.c (INTERNAL_VSYSCALL): Remove
31868         definition.
31869         (INLINE_VSYSCALL): Likewise.
31870         (INTERNAL_VSYSCALL): Likewise.
31871         (HAVE_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
31872         * sysdeps/unix/sysv/linux/timespec_get.c
31873         (INTERNAL_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
31874         (timespec_get): Use ANSI prototype.
31875         * sysdeps/unix/sysv/linux/sysdep-vdso.h: New file: default vDSO macros
31876         and definition for Linux.
31877
31878 2015-05-25  Andrew Senkevich  <andrew.senkevich@intel.com>
31879
31880         * elf/Makefile (localplt-built-dso): libmvec added to localplt test.
31881         * include/libc-symbols.h: libmvec_hidden_* macro series added.
31882
31883 2015-05-22  H.J. Lu  <hongjiu.lu@intel.com>
31884
31885         [BZ #2981]
31886         [BZ #18410]
31887         * elf/dl-reloc.c (_dl_relocate_object): Don't issue an error
31888         for missing DT_PLTRELSZ.
31889
31890 2015-05-22  Paul Eggert  <eggert@cs.ucla.edu>
31891
31892         Remove obsolete aliases that broke 'locale -a'
31893         [BZ #18412]
31894         * intl/locale.alias: Remove obsolete aliases "bokmål" and "français"
31895         which caused 'locale -a' to output Latin-1 data in UTF-8 locales,
31896         breaking some applications that use 'locale -a' output.
31897         Change the encoding of this file from Latin-1 to ASCII to avoid
31898         other potential problems with people grepping this file.
31899
31900 2015-05-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31901
31902         * nptl/Makefile (CFLAGS-accept.c): Add -fexceptions and
31903         -fasynchronous-unwind-tables.
31904         (CFLAGS-sendto.c): Likewise.
31905         (CFLAGS-sendmsg.c): Likewise.
31906         (CFLAGS-connect.c): Likewise.
31907         (CFLAGS-recvmsg.c): Likewise.
31908         (CFLAGS-recvfrom.c): Likewise.
31909         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_invalid): Define.
31910         (SOCKETCALL): New macro: non-cancellable socketcall.
31911         (SOCKETCALL_CANCEL): New macro: cancellable socketcall.
31912         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = socket]: Remove
31913         internal_accept4, internal_recvmmsg, and internal_sendmmsg rules.
31914         * sysdeps/unix/sysv/linux/accept.c: New file.
31915         * sysdeps/unix/sysv/linux/bind.c: Likewise.
31916         * sysdeps/unix/sysv/linux/connect.c: Likewise.
31917         * sysdeps/unix/sysv/linux/getpeername.c: Likewise.
31918         * sysdeps/unix/sysv/linux/getsockname.c: Likewise.
31919         * sysdeps/unix/sysv/linux/getsockopt.c: Likewise.
31920         * sysdeps/unix/sysv/linux/listen.c: Likewise.
31921         * sysdeps/unix/sysv/linux/recv.c: Likewise.
31922         * sysdeps/unix/sysv/linux/recvfrom.c: Likewise.
31923         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
31924         * sysdeps/unix/sysv/linux/send.c: Likewise.
31925         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
31926         * sysdeps/unix/sysv/linux/sendto.c: Likewise.
31927         * sysdeps/unix/sysv/linux/setsockopt.c: Likewise.
31928         * sysdeps/unix/sysv/linux/shutdown.c: Likewise.
31929         * sysdeps/unix/sysv/linux/socket.c: Likewise.
31930         * sysdeps/unix/sysv/linux/socketpair.c: Likewise.
31931         * sysdeps/unix/sysv/linux/recvmmsg.c (__internal_recvmmsg): Remove
31932         prototype.
31933         (recvmmsg) [__ASSUME_RECVMMSG_SOCKETCALL]: Add C based implementation.
31934         (recvmmsg) [!__ASSUME_RECVMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
31935         instead of __internal_xxx function.
31936         * sysdeps/unix/sysv/linux/accept4.c (__internal_accept4): Remove
31937         prototype.
31938         (accept4) [__ASSUME_ACCEPT4_SOCKETCALL]: Add C based implementation.
31939         (accept4) [!__ASSUME_ACCEPT4_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
31940         instead of __internal_xxx function.
31941         * sysdeps/unix/sysv/linux/sendmmsg.c (__internal_sendmmsg): Remove
31942         prototype.
31943         (sendmmsg) [__ASSUME_SENDMMSG_SOCKETCALL]: Add C based implementation.
31944         (sendmmsg) [!__ASSUME_SENDMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
31945         instead of __internal_xxx function.
31946         * sysdeps/unix/sysv/linux/accept.S: Remove file.
31947         * sysdeps/unix/sysv/linux/bind.S: Likewise.
31948         * sysdeps/unix/sysv/linux/connect.S: Likewise.
31949         * sysdeps/unix/sysv/linux/getpeername.S: Likewise.
31950         * sysdeps/unix/sysv/linux/getsockname.S: Likewise.
31951         * sysdeps/unix/sysv/linux/getsockopt.S: Likewise.
31952         * sysdeps/unix/sysv/linux/arm/internal_accept4.S: Likewise.
31953         * sysdeps/unix/sysv/linux/arm/internal_recvmmsg.S: Likewise.
31954         * sysdeps/unix/sysv/linux/arm/internal_sendmmsg.S: Likewise.
31955         * sysdeps/unix/sysv/linux/i386/accept4.S: Likewise.
31956         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: Likewise.
31957         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
31958         * sysdeps/unix/sysv/linux/internal_accept4.S: Likewise.
31959         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: Likewise.
31960         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: Likewise.
31961         * sysdeps/unix/sysv/linux/listen.S: Likewise.
31962         * sysdeps/unix/sysv/linux/microblaze/socket.S: Likewise.
31963         * sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S: Likewise.
31964         * sysdeps/unix/sysv/linux/mips/mips32/internal_recvmmsg.S: Likewise.
31965         * sysdeps/unix/sysv/linux/mips/mips32/internal_sendmmsg.S: Likewise.
31966         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Likewise.
31967         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
31968         * sysdeps/unix/sysv/linux/recv.S: Likewise.
31969         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
31970         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
31971         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Likewise.
31972         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
31973         * sysdeps/unix/sysv/linux/send.S: Likewise.
31974         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
31975         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
31976         * sysdeps/unix/sysv/linux/setsockopt.S: Likewise.
31977         * sysdeps/unix/sysv/linux/sh/socket.S: Likewise.
31978         * sysdeps/unix/sysv/linux/shutdown.S: Likewise.
31979         * sysdeps/unix/sysv/linux/socketpair.S: Likewise.
31980         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Likewise.
31981         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise.
31982         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
31983         * sysdeps/unix/sysv/linux/hppa/socket.S: Likewise.
31984         * sysdeps/unix/sysv/linux/kernel-features.h: Adjust comment on how
31985         socketcall is implemented in GLIBC.
31986
31987 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
31988
31989         * soft-fp/fmadf4.c: Include <libc-internal.h>.
31990         (__fma): Ignore uninitialized warnings around packing.
31991         * soft-fp/fmasf4.c: Include <libc-internal.h>.
31992         (__fmaf): Ignore uninitialized warnings around packing.
31993         * soft-fp/fmatf4.c: Include <libc-internal.h>.
31994         (__fmal): Ignore uninitialized warnings around packing.
31995
31996         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <libc-internal.h>.
31997         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
31998         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <libc-internal.h>.
31999         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
32000
32001         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Make case 9 in
32002         switch statement into default case.
32003         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Likewise.
32004
32005         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Don't use
32006         a conditional in forcing "inexact".
32007         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
32008         Likewise.
32009
32010 2015-05-22  Roland McGrath  <roland@hack.frob.com>
32011
32012         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
32013         Use a separate INTERNAL_SYSCALL_DECL (err); in a local scope
32014         for each INTERNAL_SYSCALL use.
32015
32016 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
32017
32018         [BZ #438]
32019         * posix/unistd.h (_POSIX2_C_VERSION): New macro.
32020         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): Remove
32021         variable.
32022
32023         [BZ #18444]
32024         * string/basename.c (basename): Rename to __basename and define as
32025         weak alias of __basename.  Use libc_hidden_weak.
32026         * include/string.h (__basename): Declare.  Use libc_hidden_proto.
32027         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Call
32028         __basename instead of basename.
32029         * conform/Makefile (test-xfail-POSIX2008/unistd.h/linknamespace):
32030         Remove variable.
32031         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
32032
32033 2015-05-18  Florian Weimer  <fweimer@redhat.com>
32034
32035         * libio/libioP.h (_IO_MEMBER_TYPE, _IO_CAST_FIELD_ACCESS)
32036         (_IO_JUMPS_FILE_plus): New.
32037         (_IO_WIDE_JUMPS, _IO_CHECK_WIDE, _IO_JUMPS_FUNC): Use
32038         _IO_CAST_FIELD_ACCESS.
32039         * libio/fileops.c (libc_hidden_def, _IO_file_setbuf_mmap,
32040         mmap_remap_check, decide_maybe_mmap): Use _IO_JUMPS_FILE_plus.
32041         * libio/freopen.c (freopen): Likewise.
32042         * libio/freopen64.c (freopen64): Likewise.
32043         * libio/iofopen.c (__fopen_maybe_mmap): Likewise.
32044         * libio/iofopncook.c (_IO_old_fopencookie): Likewise.
32045         * libio/iofwide.c (_IO_fwide): Likewise.
32046         * libio/memstream.c (open_memstream): Likewise.
32047         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
32048         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
32049         * libio/oldiopopen.c (_IO_old_popen): Likewise.
32050
32051 2015-05-21  Joseph Myers  <joseph@codesourcery.com>
32052
32053         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Include <libc-internal.h>.
32054         (__ieee754_lgamma_r): Ignore uninitialized warnings around use of
32055         NADJ.
32056         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Include <libc-internal.h>.
32057         (__ieee754_lgammaf_r): Ignore uninitialized warnings around use of
32058         NADJ.
32059         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Include <libc-internal.h>.
32060         (__ieee754_lgammal_r): Ignore uninitialized warnings around use of
32061         NADJ.
32062
32063         * sysdeps/ieee754/dbl-64/mpa.c (norm): Remove if condition on
32064         (p == 4) case.
32065
32066         * conform/linknamespace.pl (@whitelist): Add re_syntax_options.
32067         * conform/Makefile (test-xfail-UNIX98/regex.h/linknamespace):
32068         Remove variable.
32069         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
32070         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
32071         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
32072
32073 2015-05-21  Florian Weimer  <fweimer@redhat.com>
32074
32075         * stdio-common/vfprintf.c (LABEL, JUMP_TABLE_BASE_LABEL, REF):
32076         Adjust jump table label generation macros.
32077
32078 2015-05-21  Florian Weimer  <fweimer@redhat.com>
32079
32080         * stdio-common/vfprintf.c (vfprintf): Move local variables
32081         args_malloced, specs, specs_malloced, and the code after
32082         do_positional to the printf_positional function.
32083         (printf_positional): New function.
32084
32085 2015-05-21  Florian Weimer  <fweimer@redhat.com>
32086
32087         * stdio-common/vfprintf.c (jump_table): Move out of the vfprintf
32088         function.
32089         (NOT_IN_JUMP_RANGE, CHAR_CLASS, LABEL, REF, JUMP, STEP0_3_TABLE,
32090         STEP4_TABLE, process_arg): Move macro definitions
32091         out of the vfprintf function.  (Cosmetic change only.)
32092
32093 2015-05-21  Carlos O'Donell  <carlos@redhat.com>
32094
32095         * benchtests/Makefile (stdio-common-bench): Define.
32096         (benchset): Add stdio-common-bench.
32097         * sprintf-inputs: New file.
32098         * sprintf-source.c: New file.
32099
32100 2015-05-21  Andreas Schwab  <schwab@suse.de>
32101
32102         [BZ #13028]
32103         [BZ #17053]
32104         * resolv/res_init.c (__res_vinit): Remove use of ext.nsmap member
32105         of struct __res_state.
32106         * resolv/res_send.c (__libc_res_nsend): Likewise.
32107         (get_nsaddr): New function.
32108         (res_ourserver_p, send_vc, reopen): Use it instead of accessing
32109         statp directly.
32110
32111 2015-05-20  Joseph Myers  <joseph@codesourcery.com>
32112
32113         * conform/GlibcConform.pm ($CFLAGS{"POSIX"}): Use
32114         -D_POSIX_C_SOURCE=199506L.
32115
32116         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Require.
32117
32118         * conform/data/unistd.h-data (_POSIX_VERSION): Require.
32119         (_POSIX2_C_VERSION): Require if [POSIX || XPG3 || XPG4 || UNIX98].
32120         Do not mention otherwise.
32121         [POSIX] (_XOPEN_VERSION): Do not expect.
32122         [POSIX] (_XOPEN_XCU_VERSION): Likewise.
32123         [POSIX] (_POSIX2_C_BIND): Likewise.
32124         [POSIX] (_POSIX2_VERSION): Likewise.
32125         [POSIX] (_XOPEN_XPG2): Likewise.
32126         [POSIX] (_XOPEN_XPG3): Likewise.
32127         [POSIX] (_XOPEN_XPG4): Likewise.
32128         [POSIX] (_XOPEN_UNIX): Likewise.
32129         [POSIX] (_POSIX_ADVISORY_INFO): Likewise.
32130         [POSIX] (_POSIX_BARRIERS): Likewise.
32131         [POSIX] (_POSIX_CLOCK_SELECTION): Likewise.
32132         [POSIX] (_POSIX_CPUTIME): Likewise.
32133         [POSIX] (_POSIX_MONOTONIC_CLOCK): Likewise.
32134         [POSIX] (_POSIX_READER_WRITER_LOCKS): Likewise.
32135         [POSIX] (_POSIX_SHELL): Likewise.
32136         [POSIX] (_POSIX_SPAWN): Likewise.
32137         [POSIX] (_POSIX_SPIN_LOCKS): Likewise.
32138         [POSIX] (_POSIX_SPORADIC_SERVER): Likewise.
32139         [POSIX] (_POSIX_THREAD_CPUTIME): Likewise.
32140         [POSIX] (_POSIX_TYPED_MEMORY_OBJECTS): Likewise.
32141         [POSIX] (_POSIX_THREAD_SPORADIC_SERVER): Likewise.
32142         [POSIX] (_XBS5_ILP32_OFF32): Likewise.
32143         [POSIX] (_XBS5_ILP32_OFBIG): Likewise.
32144         [POSIX] (_XBS5_LP64_OFF64): Likewise.
32145         [POSIX] (_XBS5_LPBIG_OFFBIG): Likewise.
32146         [POSIX] (_POSIX_TIMEOUTS): Likewise.
32147         [POSIX] (_POSIX2_PBS): Likewise.
32148         [POSIX] (_POSIX2_PBS_ACCOUNTING): Likewise.
32149         [POSIX] (_POSIX2_PBS_CHECKPOINT): Likewise.
32150         [POSIX] (_POSIX2_PBS_LOCATE): Likewise.
32151         [POSIX] (_POSIX2_PBS_MESSAGE): Likewise.
32152         [POSIX] (_POSIX2_PBS_TRACK): Likewise.
32153         [POSIX] (_POSIX_TIMESTAMP_RESOLUTION): Likewise.
32154         [POSIX] (_CS_XBS5_ILP32_OFF32_CFLAGS): Likewise.
32155         [POSIX] (_CS_XBS5_ILP32_OFF32_LDFLAGS): Likewise.
32156         [POSIX] (_CS_XBS5_ILP32_OFF32_LIBS): Likewise.
32157         [POSIX] (_CS_XBS5_ILP32_OFF32_LINTFLAGS): Likewise.
32158         [POSIX] (_CS_XBS5_ILP32_OFFBIG_CFLAGS): Likewise.
32159         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LDFLAGS): Likewise.
32160         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LIBS): Likewise.
32161         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LINTFLAGS): Likewise.
32162         [POSIX] (_CS_XBS5_LP64_OFF64_CFLAGS): Likewise.
32163         [POSIX] (_CS_XBS5_LP64_OFF64_LDFLAGS): Likewise.
32164         [POSIX] (_CS_XBS5_LP64_OFF64_LIBS): Likewise.
32165         [POSIX] (_CS_XBS5_LP64_OFF64_LINTFLAGS): Likewise.
32166         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_CFLAGS): Likewise.
32167         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LDFLAGS): Likewise.
32168         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LIBS): Likewise.
32169         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS): Likewise.
32170         [POSIX] (_SC_2_C_BIND): Likewise.
32171         [POSIX] (_SC_2_C_VERSION): Likewise.
32172         [POSIX] (_SC_2_PBS): Likewise.
32173         [POSIX] (_SC_2_PBS_ACCOUNTING): Likewise.
32174         [POSIX] (_SC_2_PBS_CHECKPOINT): Likewise.
32175         [POSIX] (_SC_2_PBS_LOCATE): Likewise.
32176         [POSIX] (_SC_2_PBS_MESSAGE): Likewise.
32177         [POSIX] (_SC_2_PBS_TRACK): Likewise.
32178         [POSIX] (_SC_ATEXIT_MAX): Likewise.
32179         [POSIX] (_SC_BARRIERS): Likewise.
32180         [POSIX] (_SC_BASE): Likewise.
32181         [POSIX] (_SC_CLOCK_SELECTION): Likewise.
32182         [POSIX] (_SC_DEVICE_IO): Likewise.
32183         [POSIX] (_SC_DEVICE_SPECIFIC): Likewise.
32184         [POSIX] (_SC_DEVICE_SPECIFIC_R): Likewise.
32185         [POSIX] (_SC_FD_MGMT): Likewise.
32186         [POSIX] (_SC_FIFO): Likewise.
32187         [POSIX] (_SC_FILE_ATTRIBUTES): Likewise.
32188         [POSIX] (_SC_FILE_LOCKING): Likewise.
32189         [POSIX] (_SC_FILE_SYSTEM): Likewise.
32190         [POSIX] (_SC_IOV_MAX): Likewise.
32191         [POSIX] (_SC_MONOTONIC_CLOCK): Likewise.
32192         [POSIX] (_SC_NETWORKING): Likewise.
32193         [POSIX] (_SC_PAGE_SIZE): Likewise.
32194         [POSIX] (_SC_PASS_MAX): Likewise.
32195         [POSIX] (_SC_PIPE): Likewise.
32196         [POSIX] (_SC_READER_WRITER_LOCKS): Likewise.
32197         [POSIX] (_SC_REGEXP): Likewise.
32198         [POSIX] (_SC_SHELL): Likewise.
32199         [POSIX] (_SC_SIGNALS): Likewise.
32200         [POSIX] (_SC_SINGLE_PROCESS): Likewise.
32201         [POSIX] (_SC_SPIN_LOCKS): Likewise.
32202         [POSIX] (_SC_TYPED_MEMORY_OBJECTS): Likewise.
32203         [POSIX] (_SC_USER_GROUPS): Likewise.
32204         [POSIX] (_SC_USER_GROUPS_R): Likewise.
32205         [POSIX] (_SC_STREAMS): Likewise.
32206         [POSIX] (_SC_XBS5_ILP32_OFF32): Likewise.
32207         [POSIX] (_SC_XBS5_ILP32_OFFBIG): Likewise.
32208         [POSIX] (_SC_XBS5_LP64_OFF64): Likewise.
32209         [POSIX] (_SC_XBS5_LPBIG_OFFBIG): Likewise.
32210         [POSIX] (_SC_THREAD_ROBUST_PRIO_INHERIT): Likewise.
32211         [POSIX] (_SC_THREAD_ROBUST_PRIO_PROTECT): Likewise.
32212         [POSIX] (_PC_FILESIZEBITS): Likewise.
32213         [POSIX] (_PC_REC_INCR_XFER_SIZE): Likewise.
32214         [POSIX] (_PC_REC_MAX_XFER_SIZE): Likewise.
32215         [POSIX] (_PC_REC_MIN_XFER_SIZE): Likewise.
32216         [POSIX] (_PC_REC_XFER_ALIGN): Likewise.
32217         [POSIX] (uid_t): Likewise.
32218         [POSIX] (gid_t): Likewise.
32219         [POSIX] (off_t): Likewise.
32220         [POSIX] (pid_t): Likewise.
32221         [POSIX] (cuserid): Allow.
32222         (_SC_2_CHAR_TERM): Require constant.
32223         (_POSIX_ASYNCHRONOUS_IO): Remove duplicate optional-constant.
32224         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): New
32225         variable.
32226
32227 2015-05-20  Roland McGrath  <roland@hack.frob.com>
32228
32229         * sysdeps/nacl/pthread-pids.h: New file.
32230         * sysdeps/nacl/createthread.c: Include <pthread-pids.h>.
32231         (create_thread): Use __nacl_get_tid to initialize PD->tid.
32232
32233         * nptl/pthread-pids.h: New file.
32234         * sysdeps/unix/sysv/linux/pthread-pids.h: New file.
32235         * nptl/nptl-init.c: Include <pthread-pids.h>.
32236         (__pthread_initialize_minimal_internal):
32237         Call __pthread_initialize_pids instead of set_tid_address syscall.
32238
32239         * sysdeps/unix/sysv/linux/usleep.c: Moved to ...
32240         * sysdeps/posix/usleep.c: ... here.
32241
32242 2015-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32243
32244         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = misc)]: Remove
32245         call_pselect6 object.
32246         [$(subdir) = io]: Remove call_sync_file_range object.
32247         * sysdeps/unix/sysv/linux/i386/call_pselect6.S: Remove file.
32248         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Remove file.
32249         * sysdeps/unix/sysv/linux/i386/pselect.c: Remove file.
32250         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: Remove file.
32251
32252 2015-05-20  Wilco Dijkstra  <wdijkstr@arm.com>
32253
32254         * math/s_cproj.c: Add include "math_private.h".
32255         * math/s_cprojf.c: Likewise.
32256         * math/s_cprojl.c: Likewise.
32257
32258 2015-05-19  Joseph Myers  <joseph@codesourcery.com>
32259
32260         [BZ #18244]
32261         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Ignore explicit
32262         high mantissa bit when testing whether P is a NaN.
32263         * math/libm-test.inc (remainder_test_data): Add more tests.
32264         (remquo_test_data): Likewise.
32265
32266         [BZ #18049]
32267         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): For exponents
32268         below -32, return the argument, with underflow if subnormal.
32269         * math/auto-libm-test-in: Add more tests of atanh.
32270         * math/auto-libm-test-out: Regenerated.
32271
32272 2015-05-19  Roland McGrath  <roland@hack.frob.com>
32273
32274         [BZ #18434]
32275         * nptl/tst-sem15.c: New file.
32276         * nptl/Makefile (tests): Add it.
32277         * nptl/sem_post.c (__new_sem_post) [!__HAVE_64B_ATOMICS]:
32278         s/<</>>/ to fix typo in EOVERFLOW check.
32279         * sysdeps/sparc/sparc32/sem_post.c (__new_sem_post): Likewise.
32280
32281 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
32282
32283         * manual/strings.texi (envz_remove): Fix typo in safety
32284         annotations.
32285
32286 2015-05-19  Paul Eggert  <eggert@cs.ucla.edu>
32287             Steve Ellcey  <sellcey@imgtec.com>
32288
32289         * inet/rcmd.c (rresvport_af): Change ss to anonymous union
32290         in order to avoid strict alias warnings.
32291         (iruserok_af): Ditto for ra.
32292
32293 2015-05-19  James Lemke  <jwlemke@codesourcery.com>
32294
32295         [BZ #17581]
32296         * malloc/hooks.c
32297         (magicbyte): Convert to a function and avoid returning 0x01.
32298         (mem2mem_check): Avoid using a length byte equal to the magic byte.
32299         (mem2chunk_check): Fix unsigned comparisons to zero.
32300         Hoist defs of sz and magic.
32301
32302 2015-05-19  Richard Henderson  <rth@redhat.com>
32303
32304         * soft-fp/op-common.h (_FP_FROM_INT): Don't write to R.
32305
32306         * sysdeps/alpha/fpu/libm-test-ulps: Update.
32307
32308 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
32309
32310         [BZ #16159]
32311         * malloc/Makefile (tests): New test case tst-malloc-backtrace.
32312         * malloc/arena.c (arena_lock): Check if arena is corrupt.
32313         (reused_arena): Find a non-corrupt arena.
32314         (heap_trim): Pass arena to unlink.
32315         * malloc/hooks.c (malloc_check_get_size): Pass arena to
32316         malloc_printerr.
32317         (top_check): Likewise.
32318         (free_check): Likewise.
32319         (realloc_check): Likewise.
32320         * malloc/malloc.c (malloc_printerr): Add arena argument.
32321         (unlink): Likewise.
32322         (munmap_chunk): Adjust.
32323         (ARENA_CORRUPTION_BIT): New macro.
32324         (arena_is_corrupt): Likewise.
32325         (set_arena_corrupt): Likewise.
32326         (sysmalloc): Use mmap if there are no usable arenas.
32327         (_int_malloc): Likewise.
32328         (__libc_malloc): Don't fail if arena_get returns NULL.
32329         (_mid_memalign): Likewise.
32330         (__libc_calloc): Likewise.
32331         (__libc_realloc): Adjust for additional argument to
32332         malloc_printerr.
32333         (_int_free): Likewise.
32334         (malloc_consolidate): Likewise.
32335         (_int_realloc): Likewise.
32336         (_int_memalign): Don't touch corrupt arenas.
32337         * malloc/tst-malloc-backtrace.c: New test case.
32338
32339         * Makefile (summarize-tests): Fix return value on success.
32340
32341         * manual/string.texi (Envz Functions): Add envz_remove.
32342
32343 2015-05-18  Roland McGrath  <roland@hack.frob.com>
32344
32345         * sysdeps/posix/opendir.c: Include <stdbool.h>.
32346         (invalid_name): New function, broken out of ...
32347         (__opendirat): ... here.  Call it.
32348         (need_isdir_precheck): New function, broken out of ...
32349         (__opendirat): ... here.  Call it.
32350         Use __fxstatat64, not __xstatat64.
32351         (opendir_oflags): New function, broken out of ...
32352         (__opendirat): ... here.  Call it.
32353         (opendir_tail): New function, broken out of ...
32354         (__opendirat): ... here.  Call it.
32355         (__opendir): Call invalid_name, need_isdir_precheck, __xstat64, and
32356         opendir_tail, rather than punting to __opendirat.
32357         (__opendirat): Conditionalize function definition on [IS_IN (libc)].
32358
32359 2015-05-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
32360
32361         * .gitignore: Ignore generated *.pyc.
32362
32363 2015-05-18  Arjun Shankar  <arjun.is@lostca.se>
32364
32365         * include/stdio.h: Define __need_wint_t.
32366         * test-skeleton.c: Avoid `for' loop initial declaration.
32367         * nptl/tst-initializers1.c: Use test-skeleton.c.
32368
32369 2015-05-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32370
32371         [BZ #18418]
32372         * stdlib/tst-setcontext3.sh: Remove non-portable array use.
32373
32374 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
32375
32376         [BZ #16352]
32377         * sysdeps/i386/fpu/e_atanh.S (dbl_min): New object.
32378         (__ieee754_atanh): Force underflow exception for results with
32379         small absolute value.
32380         * sysdeps/i386/fpu/e_atanhf.S (flt_min): New object.
32381         (__ieee754_atanhf): Force underflow exception for results with
32382         small absolute value.
32383         * sysdeps/ieee754/dbl-64/e_atanh.c: Include <float.h>.
32384         (__ieee754_atanh): Force underflow exception for results with
32385         small absolute value.
32386         * sysdeps/ieee754/flt-32/e_atanhf.c: Include <float.h>.
32387         (__ieee754_atanhf): Force underflow exception for results with
32388         small absolute value.
32389         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Include <float.h>.
32390         (__ieee754_atanhl): Force underflow exception for results with
32391         small absolute value.
32392         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Include <float.h>.
32393         (__ieee754_atanhl): Force underflow exception for results with
32394         small absolute value.
32395         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Include <float.h>.
32396         (__ieee754_atanhl): Force underflow exception for results with
32397         small absolute value.
32398         * math/auto-libm-test-in: Do not allow missing underflow
32399         exceptions from atanh.
32400         * math/auto-libm-test-out: Regenerated.
32401
32402         [BZ #18221]
32403         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use 2**-13 not
32404         2**-28 as threshold for returning x or +/- 1/x.
32405         * math/auto-libm-test-in: Add more tests of tan.
32406         * math/auto-libm-test-out: Regenerated.
32407
32408         [BZ #18220]
32409         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
32410         2**26 not 2**58 as threshold for returning x * (log (x) - 1).
32411         * math/auto-libm-test-in: Add another test of lgamma.
32412         * math/auto-libm-test-out: Regenerated.
32413
32414 2015-05-15  Wilco Dijkstra  <wdijkstr@arm.com>
32415
32416         * stdio-common/printf_fp.c (___printf_fp): Use abs.
32417         * stdlib/gmp-impl.h (ABS): Remove define.  (ABSIZ): Remove.
32418         * sysdeps/ieee754/dbl-64/branred.c (__branred): Use fabs.
32419         * sysdeps/ieee754/dbl-64/dla.h (EADD): Use fabs.
32420         (ESUB): Use fabs.  (ADD2): Use fabs.  (SUB2): Use fabs.
32421         (ADD2A): Use fabs.  (SUB2A): Use fabs.
32422         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use fabs.
32423         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Use fabs.
32424         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use fabs.
32425         (log1): Use fabs.  (my_log2): Use fabs.
32426         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Use fabs.
32427         * sysdeps/ieee754/dbl-64/mpa.h (ABS): Remove define.
32428         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use fabs.
32429         * sysdeps/ieee754/dbl-64/mydefs.h (ABS): Remove define.
32430         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use fabs.
32431         (__cos): Use fabs.  (slow): Use fabs.  (slow2): Use fabs.
32432         (sloww): Use fabs.  (sloww1): Use fabs.  (sloww2): Use fabs.
32433         (bslow1): Use fabs.  (bslow2): Use fabs.  (cslow2): Use fabs.
32434         (csloww): Use fabs.  (csloww1): Use fabs.  (csloww2): Use fabs.
32435         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Use fabs.
32436         * sysdeps/x86_64/fpu/multiarch/e_log.c: add math.h include.
32437
32438 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
32439
32440         [BZ #18217]
32441         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Use 2**-26 not 2**-56
32442         as threshold for returning 1 - x.
32443         * math/auto-libm-test-in: Add more tests of erfc.
32444         * math/auto-libm-test-out: Regenerated.
32445
32446 2015-05-14  Joseph Myers  <joseph@codesourcery.com>
32447
32448         [BZ #18196]
32449         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Use 2^25 not 2^34 as
32450         threshold for large arguments.
32451         * math/auto-libm-test-in: Add another test of atan.
32452         * math/auto-libm-test-out: Regenerated.
32453
32454         [BZ #16339]
32455         * sysdeps/i386/fpu/s_log1p.S (dbl_min): New object.
32456         (__log1p): Force underflow exception for results with small
32457         absolute value.
32458         * sysdeps/i386/fpu/s_log1pf.S (flt_min): New object.
32459         (__log1pf): Force underflow exception for results with small
32460         absolute value.
32461         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <float.h>.
32462         (__log1p): Force underflow exception for results with small
32463         absolute value.
32464         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <float.h>.
32465         (__log1pf): Force underflow exception for results with small
32466         absolute value.
32467         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Include <float.h>.
32468         (__log1pl): Force underflow exception for results with small
32469         absolute value.
32470         * math/auto-libm-test-in: Do not allow missing underflow
32471         exceptions from log1p.
32472         * math/auto-libm-test-out: Regenerated.
32473
32474 2015-05-14  Jakub Bogusz  <qboosh@pld-linux.org>
32475             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32476
32477         [BZ #16704]
32478         * sysdeps/unix/make-syscalls.sh: Remove non-portable echo usage.
32479
32480 2015-05-14  Andrew Senkevich  <andrew.senkevich@intel.com>
32481
32482         * Makeconfig (rpath-dirs, all-subdirs): Added mathvec folder.
32483         (libmvec): New variable.
32484         * configure.ac: Added option for mathvec build.
32485         * configure: Regenerated.
32486         * mathvec/Depend: New file.
32487         * mathvec/Makefile: New file.
32488         * shlib-versions: Added libmvec.
32489         * math/Makefile: Added rule for libm.so installation.
32490
32491         * bits/math-vector.h: New file.
32492         * bits/libm-simd-decl-stubs.h: New header.
32493         * math/Makefile (headers): Added new header
32494         libm-simd-decl-stubs.h.
32495         * math/math.h (__MATHCALL_VEC): New macro.
32496
32497         * math/gen-libm-have-vector-test.sh: Script generates series of macros
32498         for conditions in testing functions.
32499         * math/Makefile: Added call of libm-have-vector-test.sh.
32500         * math/libm-test.inc (HAVE_VECTOR): New macros.
32501
32502         * math/libm-test.inc: START refactored.
32503         * math/test-double.c (TEST_MATHVEC): Add define.
32504         * math/test-float.c: Likewise.
32505         * math/test-idouble.c: Likewise.
32506         * math/test-ifloat.c: Likewise.
32507         * math/test-ildoubl.c: Likewise.
32508         * math/test-ldouble.c: Likewise.
32509         * sysdeps/generic/math-tests-arch.h
32510         (INIT_ARCH_EXT, CHECK_ARCH_EXT): New helper macros for runtime
32511         architecture check.
32512
32513         * math/test-double.c (FUNC_TEST): New macro.
32514         * math/test-float.c: Likewise.
32515         * math/test-idouble.c: Likewise.
32516         * math/test-ifloat.c: Likewise.
32517         * math/test-ildoubl.c: Likewise.
32518         * math/test-ldouble.c: Likewise.
32519         * math/libm-test.inc: Use FUNC_TEST for name of tested functions.
32520
32521 2015-05-13  Roland McGrath  <roland@hack.frob.com>
32522
32523         * sysdeps/nacl/fdopendir.c: New file.
32524
32525         * dirent/scandir-tail.c: New file.
32526         * dirent/scandir64-tail.c: New file.
32527         * dirent/Makefile (routines): Add them.
32528         (CFLAGS-scandir-tail.c, CFLAGS-scandir64-tail.c): New variables.
32529         * include/dirent.h (__scandir_tail, __scandir64_tail): Declare them.
32530         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Macro removed.
32531         [!SCANDIR] (SCANDIR_TAIL): New macro.
32532         (SCANDIR): Call __opendir and __scandir_tail, not __scandirat.
32533         * dirent/scandir64.c [!_DIRENT_MATCHES_DIRENT64]
32534         (SCANDIRAT): Macro removed.
32535         (SCANDIR_TAIL): New macro.
32536         * dirent/scandirat.c [!SCANDIRAT] (READDIR): Macro removed.
32537         [!SCANDIRAT] (SCANDIR_TAIL): New macro.
32538         (SCANDIRAT): Just call __opendirat and __scandir_tail.
32539         * dirent/scandirat64.c [!_DIRENT_MATCHES_DIRENT64]
32540         (READDIR): Macro removed.
32541         (SCANDIR_TAIL): New macro.
32542         * sysdeps/unix/sysv/linux/i386/scandir64.c (READDIR): Macro removed.
32543         (SCANDIR_TAIL): New macro.
32544
32545         * dirent/scandirat.c (__scandir_cancel_handler): Function moved ...
32546         * dirent/scandir-cancel.c: ... to this new file.
32547         * dirent/Makefile (routines): Add it.
32548         * dirent/scandirat64.c (SKIP_SCANDIR_CANCEL): Macro removed.
32549         * sysdeps/unix/sysv/linux/i386/scandir64.c
32550         (SKIP_SCANDIR_CANCEL): Macro removed.
32551         * include/dirent.h (__scandir_cancel_handler): Add attribute_hidden.
32552
32553         * dirent/tst-scandir.c: New file.
32554         * dirent/tst-scandir64.c: New file.
32555         * dirent/Makefile (tests): Add them.
32556
32557 2015-05-13  H.J. Lu  <hongjiu.lu@intel.com>
32558
32559         [BZ #18409]
32560         * sysdeps/unix/make-syscalls.sh: Remove a trailing `\'.
32561
32562 2015-05-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32563
32564         * sysdeps/aarch64/tls-macros.h (TLS_GD): Add "cc" to the clobber
32565         list.
32566
32567 2015-05-13  Leonhard Holz  <leonhard.holz@web.de>
32568
32569         * benchtests/bench-strcoll.c: New benchmark.
32570         * benchtests/Makefile: Generate locales and run benchmark.
32571         * benchtests/strcoll-inputs/filelist#C: New benchmark input file.
32572         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
32573         * benchtests/strcoll-inputs/lorem_ipsum#ar_SA.UTF-8: Likewise.
32574         * benchtests/strcoll-inputs/lorem_ipsum#cs_CZ.UTF-8: Likewise.
32575         * benchtests/strcoll-inputs/lorem_ipsum#da_DK.UTF-8: Likewise.
32576         * benchtests/strcoll-inputs/lorem_ipsum#el_GR.UTF-8: Likewise.
32577         * benchtests/strcoll-inputs/lorem_ipsum#en_GB.UTF-8: Likewise.
32578         * benchtests/strcoll-inputs/lorem_ipsum#en_US.UTF-8: Likewise.
32579         * benchtests/strcoll-inputs/lorem_ipsum#es_ES.UTF-8: Likewise.
32580         * benchtests/strcoll-inputs/lorem_ipsum#fr_FR.UTF-8: Likewise.
32581         * benchtests/strcoll-inputs/lorem_ipsum#hi_IN.UTF-8: Likewise.
32582         * benchtests/strcoll-inputs/lorem_ipsum#hu_HU.UTF-8: Likewise.
32583         * benchtests/strcoll-inputs/lorem_ipsum#is_IS.UTF-8: Likewise.
32584         * benchtests/strcoll-inputs/lorem_ipsum#it_IT.UTF-8: Likewise.
32585         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Likewise.
32586         * benchtests/strcoll-inputs/lorem_ipsum#ja_JP.UTF-8: Likewise.
32587         * benchtests/strcoll-inputs/lorem_ipsum#pl_PL.UTF-8: Likewise.
32588         * benchtests/strcoll-inputs/lorem_ipsum#pt_PT.UTF-8: Likewise.
32589         * benchtests/strcoll-inputs/lorem_ipsum#ru_RU.UTF-8: Likewise.
32590         * benchtests/strcoll-inputs/lorem_ipsum#sr_RS.UTF-8: Likewise.
32591         * benchtests/strcoll-inputs/lorem_ipsum#sv_SE.UTF-8: Likewise.
32592         * benchtests/strcoll-inputs/lorem_ipsum#tr_TR.UTF-8: Likewise.
32593         * benchtests/strcoll-inputs/lorem_ipsum#vi_VN.UTF-8: Likewise.
32594         * benchtests/strcoll-inputs/lorem_ipsum#zh_CN.UTF-8: Likewise.
32595
32596 2015-05-12  Ondřej Bílka  <neleai@seznam.cz>
32597
32598         * sysdeps/x86_64/multiarch/strcspn.S: Remove plt indirection.
32599         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
32600
32601 2015-05-12  Roland McGrath  <roland@hack.frob.com>
32602
32603         * posix/uname-values.h: New file.
32604         * posix/uname.c: Include that instead of <config-name.h>.
32605         * sysdeps/nacl/uname-values.h: New file.
32606         * sysdeps/arm/nacl/uname-values.h: New file.
32607
32608 2015-05-12  Joseph Myers  <joseph@codesourcery.com>
32609
32610         * conform/linknamespace.pl (list_syms): Remove \[.*?\] before
32611         splitting into fields.
32612
32613 2015-05-12  Leonhard Holz  <leonhard.holz@web.de>
32614
32615         * locale/categories.def: Define _NL_COLLATE_ENCODING_TYPE.
32616         * locale/langinfo.h: Add _NL_COLLATE_ENCODING_TYPE to attribute list.
32617         * locale/localeinfo.h: Add enum collation_encoding_type.
32618         * locale/C-collate.c: Set _NL_COLLATE_ENCODING_TYPE to 8bit.
32619         * programs/ld-collate.c (collate_output): Add encoding type info.
32620         * string/strcoll_l.c (STRDIFF): New function.
32621         * (STRCOLL): Use STRDIFF to skip over equal prefix.
32622         * wcsmbs/wcscoll_l.c: Define STRDIFF.
32623
32624 2015-05-11  Joseph Myers  <joseph@codesourcery.com>
32625
32626         [BZ #18397]
32627         * sysdeps/mips/mips32/fpu/fpu_control.c: Move to ....
32628         * sysdeps/mips/mips32/fpu/fpucw-helpers.c: ... here.  Include
32629         <fpu_control.h> instead of <math/fpu_control.c>.
32630         * sysdeps/mips/mips32/fpu/Makefile: New file.
32631
32632 2015-05-11  Andreas Schwab  <schwab@suse.de>
32633
32634         [BZ #18007]
32635         * nis/nss_compat/compat-grp.c (internal_endgrent): Don't call
32636         nss_endgrent.
32637         (_nss_compat_endgrent): Call nss_endgrent.
32638         * nis/nss_compat/compat-pwd.c (internal_endpwent): Don't call
32639         nss_endpwent.
32640         (_nss_compat_endpwent): Call nss_endpwent.
32641         * nis/nss_compat/compat-spwd.c (internal_setspent): Add parameter
32642         needent, call nss_setspent only if non-zero.
32643         (_nss_compat_setspent, _nss_compat_getspent_r): Pass non-zero.
32644         (internal_endspent): Don't call nss_endspent.
32645         (_nss_compat_endspent): Call nss_endspent.
32646         * nss/nss_files/files-XXX.c (position, last_use, keep_stream):
32647         Remove.  All uses removed.
32648         (internal_setent): Remove parameter stayopen, add parameter
32649         stream.  Use it instead of global variable.
32650         (CONCAT(_nss_files_set,ENTNAME)): Pass global stream.
32651         (internal_endent, internal_getent): Add parameter stream.  Use it
32652         instead of global variable.
32653         (CONCAT(_nss_files_end,ENTNAME))
32654         (CONCAT(_nss_files_get,ENTNAME_r)): Pass global stream.
32655         (_nss_files_get##name##_r): Pass local stream.  Remove locking.
32656         * nss/nss_files/files-alias.c (position, last_use): Remove.  All
32657         uses removed.
32658         (internal_setent, internal_endent): Add parameter stream.  Use it
32659         instead of global variable.
32660         (_nss_files_setaliasent, _nss_files_endaliasent): Pass global
32661         stream.
32662         (get_next_alias): Add parameter stream.
32663         (_nss_files_getaliasent_r): Pass global stream.
32664         (_nss_files_getaliasbyname_r): Pass local stream.  Remove locking.
32665         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r)
32666         (_nss_files_gethostbyname4_r): Pass local stream to
32667         internal_setent, internal_getent and internal_endent.  Remove
32668         locking.
32669
32670 2015-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
32671
32672         * tst-strfmon1.c (tests): Update expected currency symbol.
32673
32674 2015-05-08  Roland McGrath  <roland@hack.frob.com>
32675
32676         * sysdeps/nacl/gethostname.c: New file.
32677
32678 2015-05-08  Joseph Myers  <joseph@codesourcery.com>
32679
32680         * math/auto-libm-test-in: Add more tests of csqrt, lgamma, log10
32681         and sinh.
32682         * math/auto-libm-test-out: Regenerated.
32683         * sysdeps/i386/fpu/libm-test-ulps: Update.
32684         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32685
32686 2015-05-08  Carlos O'Donell  <carlos@redhat.com>
32687
32688         [BZ #18125]
32689         * stdlib/tst-setcontext3.c: New file.
32690         * stdlib/tst-setcontext3.sh: New file.
32691         * stdlib/Makefile (tests): Add tst-setcontext3.
32692         (tst-setcontext3.out): Custom rule to run tst-setcontext3.sh
32693         to verify test program created output file.
32694         * sysdeps/unix/sysv/linux/aarch64/setcontext.S: Call exit.
32695         * sysdeps/unix/sysv/linux/arm/setcontext.S: Likewise.
32696         * sysdeps/unix/sysv/linux/hppa/setcontext.S: Likewise.
32697         * sysdeps/unix/sysv/linux/nios2/setcontext.S: Likewise.
32698
32699 2015-05-06  Roland McGrath  <roland@hack.frob.com>
32700
32701         [BZ #18383]
32702         * elf/tst-tlsalign.c: New file.
32703         * elf/tst-tlsalign-static.c: New file.
32704         * elf/tst-tlsalign-lib.c: New file.
32705         * elf/Makefile [$(build-shared) = yes] (tests): Add tst-tlsalign.
32706         (tests-static): Add tst-tlsalign-static.
32707         (modules-names): Add tst-tlsalign-lib.
32708         (test-xfail-tst-tlsalign): New variable.
32709         (test-xfail-tst-tlsalign-static): New variable.
32710
32711         * sysdeps/nacl/nacl-test-wrapper.sh (NACL_LOADER):
32712         Use elf_loader_${arch}.nexe rather than loader_${arch}.nexe.
32713
32714 2015-05-06  Joseph Myers  <joseph@codesourcery.com>
32715
32716         * math/auto-libm-test-in: Add more tests of acosh, atanh, cos,
32717         csqrt, erfc, sin and sincos.
32718         * math/auto-libm-test-out: Regenerated.
32719         * sysdeps/i386/fpu/libm-test-ulps: Update.
32720         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32721
32722 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32723
32724         * sysdeps/aarch64/libm-test-ulps: Update.
32725
32726 2015-05-05  Joseph Myers  <joseph@codesourcery.com>
32727
32728         * math/auto-libm-test-in: Add more tests of acosh, atanh, clog,
32729         clog10, csqrt, erfc, exp2, expm1, log10, log2 and sinh.
32730         * math/auto-libm-test-out: Regenerated.
32731         * sysdeps/i386/fpu/libm-test-ulps: Update.
32732         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32733
32734 2015-04-30  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
32735
32736         [BZ #18265]
32737         * wcsmbs/wchar.h (wcscpy): Add __nonnull attribute.
32738         (wcsncpy): Likewise.
32739
32740 2015-05-05  Florian Weimer  <fweimer@redhat.com>
32741
32742         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
32743         Assume __ASSUME_FALLOCATE is always true.
32744         * sysdeps/unix/sysv/linux/posix_fallocate64.c
32745         (__posix_fallocate64_l64): Likewise.
32746         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c
32747         (posix_fallocate): Likewise.
32748         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c
32749         (__posix_fallocate64_l64): Likewise.
32750         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
32751         [!__ASSUME_FALLOCATE]: Add comment.
32752
32753 2015-05-05  Florian Weimer  <fweimer@redhat.com>
32754
32755         * sysdeps/unix/sysv/linux/i386/Makefile
32756         (sysdep_routines) [$(subdir) = misc]: Remove call_fallocate.
32757         (sysdep_routines) [$(subdir) = io]: Add libc-do-syscall.
32758         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: Remove.
32759         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
32760         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
32761         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Likewise.
32762         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
32763
32764 2015-05-02  Joseph Myers  <joseph@codesourcery.com>
32765
32766         * math/auto-libm-test-in: Add more tests of atan, clog, clog10,
32767         cos, csqrt, erf, erfc, exp2, lgamma, log1p, sin, sincos, tanh and
32768         tgamma.
32769         * math/auto-libm-test-out: Regenerated.
32770         * sysdeps/i386/fpu/libm-test-ulps: Update.
32771         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32772
32773 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
32774
32775         * math/auto-libm-test-in: Add more tests of tgamma.
32776         * math/auto-libm-test-out: Regenerated.
32777         * sysdeps/i386/fpu/libm-test-ulps: Update.
32778         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32779
32780         * math/auto-libm-test-in: Add more tests of tanh.
32781         * math/auto-libm-test-out: Regenerated.
32782         * sysdeps/i386/fpu/libm-test-ulps: Update.
32783         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32784
32785         * math/auto-libm-test-in: Add more tests of tan.
32786         * math/auto-libm-test-out: Regenerated.
32787         * sysdeps/i386/fpu/libm-test-ulps: Update.
32788         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32789
32790         * math/auto-libm-test-in: Add more tests of cos, sin and sincos.
32791         * math/auto-libm-test-out: Regenerated.
32792         * sysdeps/i386/fpu/libm-test-ulps: Update.
32793         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32794
32795         * math/auto-libm-test-in: Add another test of pow.
32796         * math/auto-libm-test-out: Regenerated.
32797         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
32798
32799         * math/auto-libm-test-in: Add more tests of lgamma.
32800         * math/auto-libm-test-out: Regenerated.
32801         * sysdeps/i386/fpu/libm-test-ulps: Update.
32802         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32803
32804         * math/auto-libm-test-in: Add more tests of log, log10, log2 and
32805         log1p.
32806         * math/auto-libm-test-out: Regenerated.
32807         * sysdeps/i386/fpu/libm-test-ulps: Update.
32808         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32809
32810 2015-05-01  Mark Wielaard  <mjw@redhat.com>
32811
32812         * elf/elf.h: Add SHF_COMPRESSED section flag, Elf32_Chdr and
32813         Elf64_Chdr structs and ELFCOMPRESS constants.
32814
32815 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
32816
32817         * math/auto-libm-test-in: Add more tests of exp, exp10, exp2 and
32818         expm1.
32819         * math/auto-libm-test-out: Regenerated.
32820         * sysdeps/i386/fpu/libm-test-ulps: Update.
32821         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32822
32823         * math/auto-libm-test-in: Add more tests of erf and erfc.
32824         * math/auto-libm-test-out: Regenerated.
32825         * sysdeps/i386/fpu/libm-test-ulps: Update.
32826         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32827
32828 2015-05-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32829
32830         * config.h.in (HAVE_AARCH64_BE): Add.
32831
32832 2015-04-30  Joseph Myers  <joseph@codesourcery.com>
32833
32834         * math/auto-libm-test-in: Add more tests of csqrt.
32835         * math/auto-libm-test-out: Regenerated.
32836         * sysdeps/i386/fpu/libm-test-ulps: Update.
32837         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32838
32839         * math/auto-libm-test-in: Add more tests of cosh and sinh.
32840         * math/auto-libm-test-out: Regenerated.
32841         * sysdeps/i386/fpu/libm-test-ulps: Update.
32842         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32843
32844         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: Remove file.
32845
32846 2015-04-29  Roland McGrath  <roland@hack.frob.com>
32847
32848         * sysdeps/nacl/bits/typesizes.h (__CLOCK_T_TYPE): Use __SLONGWORD_TYPE.
32849         * sysdeps/nacl/nacl-interfaces.h (nacl_abi_clock_t): Use clock_t.
32850
32851         * sysdeps/nacl/euidaccess.c (euidaccess): Renamed to __euidaccess.
32852         (euidaccess, eaccess): Define as weak aliases.
32853
32854         * sysdeps/nacl/bits/typesizes.h (__SUSECONDS_T_TYPE): Use
32855         __SLONGWORD_TYPE rather than __S32_TYPE.  They are the same size,
32856         but __suseconds_t is often 'long int' so some sources assume that
32857         type is being used (e.g. they use %ld to print tv_usec).
32858
32859 2015-04-29  Florian Weimer  <fweimer@redhat.com>
32860
32861         [BZ #18007]
32862         * nss/nss_files/files-XXX.c (CONCAT): Always enable stayopen.
32863         (CVE-2014-8121)
32864         * nss/tst-nss-getpwent.c: New file.
32865         * nss/Makefile (tests): Add new test.
32866
32867 2015-04-28  Joseph Myers  <joseph@codesourcery.com>
32868
32869         [BZ #18346]
32870         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Handle all
32871         exponents less than 48 as cases where high part of mantissa needs
32872         examining to determine whether argument is integral.
32873         * math/libm-test.inc (round_test_data): Add more tests.
32874
32875 2015-04-28  Mark Wielaard  <mjw@redhat.com>
32876
32877         * elf/elf.h (SHF_EXCLUDE): Use unsigned 1 for shift.
32878
32879 2015-04-27  David S. Miller  <davem@davemloft.net>
32880
32881         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Remove
32882         __tls_get_addr.
32883         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
32884
32885 2015-04-27  H.J. Lu  <hongjiu.lu@intel.com>
32886
32887         [BZ #18333]
32888         * time/tzset.c (__tzfile_read): Check tzspec_len == 0.
32889
32890 2015-04-27  Florian Weimer  <fweimer@redhat.com>
32891
32892         [BZ #18333]
32893         * time/tzset.c (parse_tzname): Return error on memory allocation
32894         failure.
32895         * test-skeleton.c (struct temp_name_list): Change type of name
32896         member to non-const.
32897         (add_temp_file): Create a copy of the file name.
32898         (delete_temp_files): Deallocate memory.
32899         (create_temp_file): Add comment.
32900
32901 2015-04-24  Florian Weimer  <fweimer@redhat.com>
32902
32903         * io/posix_fallocate.c (posix_fallocate): Do not set errno.
32904         * io/posix_fallocate64.c (posix_fallocate64): Likewise.
32905
32906 2015-04-24  Roland McGrath  <roland@hack.frob.com>
32907
32908         * sysdeps/arm/configure.ac (PI_STATIC_AND_HIDDEN): Define it.
32909         * sysdeps/arm/configure: Regenerated.
32910
32911 2015-04-24  Florian Weimer  <fweimer@redhat.com>
32912
32913         [BZ #17715]
32914         * time/tzfile.c (__tzfile_read): Check for large values of
32915         tzh_ttisstdcnt and tzh_ttisgmtcnt.  Use malloc instead of alloca.
32916         * time/tzset.c (__tzstring_len): New function, based on the old
32917         __tzstring function.
32918         (__tzstring): Call __tzstring_len.
32919         (parse_tzname): New helper function extracted from
32920         __tzset_parse_tz.  Call __tzstring_len, without making a copy of
32921         the input string.
32922         (parse_offset): New helper function extracted from
32923         __tzset_parse_tz.  Replace switch with fallthrough with
32924         initialization before sscanf.
32925         (parse_rule): Likewise.
32926         (__tzset_parse_tz): Rewrite using the new helper functions.  Use
32927         new-style function definition.
32928         * timezone/Makefile (tests): Add tst-tzset.
32929         (tst-tzset.out): Dependencies on time zone files.
32930         (tst-tzset-ENV): Set TZDIR.
32931         (testdata/XT%): Copy crafted time zone files.
32932         * timezone/README: Mention crafted time zone files.
32933         * timezone/testdata/XT1, timezone/testdata/XT2,
32934         timezone/testdata/XT3, timezone/testdata/XT4: New time zone test
32935         files.
32936         * timezone/tst-tzset.c: New test.
32937
32938 2015-04-24  Florian Weimer  <fweimer@redhat.com>
32939
32940         * Makeconfig (+gccwarn): Remove -Winline.
32941
32942 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
32943
32944         * sysdeps/s390/fpu/libm-test-upls: Regenerate.
32945
32946 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
32947
32948         * NEWS: Mention sysconf() cache information support for s390.
32949         * sysdeps/unix/sysv/linux/s390/sysconf.c: New File.
32950
32951 2015-04-22  Wilco Dijkstra  <wdijkstr@arm.com>
32952
32953         * math/k_casinh.c (__kernel_casinh): Use __copysign.
32954         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c
32955         (__nearbyint): Likewise.
32956         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c
32957         (copysignl): Likewise.
32958
32959 2015-04-21  Arjun Shankar  <arjun.is@lostca.se>
32960
32961         [BZ #18287]
32962         * resolv/nss_dns/dns-host.c (getanswer_r): Adjust buffer length
32963         based on padding.  (CVE-2015-1781)
32964
32965 2015-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32966
32967         * nptl/pthread_cond_timedwait.c: Change include bits/libc-vdso.h to just
32968         libc-vdso.h.
32969         * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
32970         * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
32971         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
32972         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
32973         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
32974         * sysdeps/unix/sysv/linux/gettimeofday.c: Likewise.
32975         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Likewise.
32976         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
32977         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
32978         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Likewise.
32979         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
32980         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
32981         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
32982         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise.
32983         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
32984         * sysdeps/unix/sysv/linux/aarch64/bits/libc-vdso.h: Move to ...
32985         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: ... here.
32986         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Move to ...
32987         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: ... here.
32988         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: Move to ...
32989         * sysdeps/unix/sysv/linux/s390/libc-vdso.h: ... here.
32990         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Move to ...
32991         * sysdeps/unix/sysv/linux/tile/libc-vdso.h: ... here.
32992
32993 2015-04-19  Paul Eggert  <eggert@cs.ucla.edu>
32994
32995         * stdlib/setenv.c (__add_to_environ):
32996         Dump core quickly if setenv (..., NULL, ...) is called.
32997         This time, do it the right way, and pacify GCC with a pragma.
32998
32999 2015-04-17  Roland McGrath  <roland@hack.frob.com>
33000
33001         * elf/dl-close.c (_dl_close_worker) [DL_NNS == 1]: Just assert that
33002         IMAP->l_prev cannot be null, and #if out the code for the contrary
33003         case, avoiding 'assert (nsid != LM_ID_BASE)' making the compiler
33004         believe that NS (&_dl_ns[NSID]) could point outside the array.
33005
33006         * elf/dl-open.c (_dl_open): Use __glibc_unlikely in invalid namespace
33007         check.  Reject NSID < 0 and NSID >= dl_nns, and check for DL_NNS==1,
33008         before using NSID as an index.
33009
33010 2015-04-17  Il'ya Malakhov <ilmalakhov@yandex.ru>
33011
33012         [BZ #17825]
33013         * sysdeps/sparc/sparc64/memchr.S: Fix signedness handling of length.
33014         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
33015         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
33016
33017 2015-04-17  Roland McGrath  <roland@hack.frob.com>
33018
33019         Add preliminary port to Google Native Client on ARM.
33020         * abi-tags (.*-.*-nacl.*): New entry.
33021         * sysdeps/arm/nacl: New directory.
33022         * sysdeps/nacl: New directory.
33023
33024 2015-04-16  David S. Miller  <davem@davemloft.net>
33025
33026         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Make use of
33027         lowlevellock-futex.h
33028
33029 2015-04-16  Chris Metcalf  <cmetcalf@ezchip.com>
33030
33031         * sysdeps/tile/configure.ac: New file.
33032         * sysdeps/tile/configure: Regenerated.
33033
33034 2015-04-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
33035
33036         * wcsmbs/wcschr.c [WCSCHR] (wcschr): Define as __wcschr.  Remove
33037         conditionals for weak_alias and libc_hidden_weak.
33038         * sysdeps/i386/i686/multiarch/wcschr-c.c [libc]: Undefine
33039         libc_hidden_weak and weak_alias.
33040         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c [libc]:
33041         Undefine libc_hidden_weak. Define libc_hidden_def for SHARED builds
33042         and weak_alias for static one.
33043
33044 2015-04-15  David S. Miller  <davem@davemloft.net>
33045
33046         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
33047
33048 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
33049
33050         [BZ #18206]
33051         * wcsmbs/wcsncmp.c (wcsncmp): Compare as wchar_t, not wint_t.
33052           Use signed comparision instead of substraction to avoid
33053           overflow bug.
33054         * localedata/tests-mbwc/tst_wcsncmp.c (tst_wcsncmp):
33055           Take the sign of ret.
33056         * localedata/tests-mbwc/dat_wcsncmp.c (tst_wcsncmp_loc):
33057           Do not expect precise return values. Only the sign matters.
33058         * wcsmbs/Makefile (strop-tests): Add wcsncmp.
33059         * wcsmbs/test-wcsncmp.c: New File.
33060         * string/test-strncmp.c: Add wcsncmp support.
33061
33062 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
33063
33064         [BZ #6792]
33065         * math/w_log1p.c: New file.
33066         * math/w_log1pf.c: Likewise.
33067         * math/w_log1pl.c: Likewise.
33068         * math/Makefile (libm-calls): Add w_log1p.
33069         * math/s_log1pl.c (log1pl): Remove weak_alias.
33070         * sysdeps/i386/fpu/s_log1p.S (log1p): Likewise.
33071         * sysdeps/i386/fpu/s_log1pf.S (log1pf): Likewise.
33072         * sysdeps/i386/fpu/s_log1pl.S (log1pl): Likewise.
33073         * sysdeps/x86_64/fpu/s_log1pl.S (log1pl): Likewise.
33074         * sysdeps/ieee754/dbl-64/s_log1p.c (log1p): Likewise.
33075         [NO_LONG_DOUBLE] (log1pl): Likewise.
33076         * sysdeps/ieee754/flt-32/s_log1pf.c (log1pf): Likewise.
33077         * sysdeps/ieee754/ldbl-128/s_log1pl.c (log1pl): Likewise.
33078         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c
33079         (log1p): Remove long_double_symbol.
33080         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (log1pl): Likewise.
33081         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: New file.
33082         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Likewise.
33083         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Define empty weak_alias to
33084         remove weak_alias for corresponding log1p function.
33085         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Likewise.
33086         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
33087         * sysdeps/ia64/fpu/w_log1p.c: New file.
33088         * sysdeps/ia64/fpu/w_log1pf.c: Likewise.
33089         * sysdeps/ia64/fpu/w_log1pl.c: Likewise.
33090         * math/libm-test.inc (log1p_test_data): Add errno expectations.
33091
33092 2015-04-10  Joseph Myers  <joseph@codesourcery.com>
33093
33094         [BZ #18247]
33095         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Decrease minimum
33096         decimal exponent by 1.
33097         * stdlib/tst-strtod-round-data: Add more tests.
33098         * stdlib/tst-strtod-round.c (tests): Regenerated.
33099
33100 2015-04-09  Joseph Myers  <joseph@codesourcery.com>
33101
33102         * math/auto-libm-test-in: Add more tests of clog and clog10.
33103         * math/auto-libm-test-out: Regenerated.
33104         * sysdeps/i386/fpu/libm-test-ulps: Update.
33105         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33106
33107 2015-04-09  Roland McGrath  <roland@hack.frob.com>
33108
33109         * Makeconfig (module-cppflags): Exclude all .v.i files.
33110         (skip-module-cppflags): Variable removed.
33111
33112         * configure.ac (libc_config_ok): Initialize before reading
33113         preconfigure scripts, not after.
33114         * configure: Regenerated.
33115
33116         * test-skeleton.c (TIMEOUT): Move #define to top level.
33117         (main): Grok environment variable TEST_DIRECT.  If set, print
33118         test expectation details into that file and then behave as if
33119         given --direct.
33120
33121 2015-04-09  Florian Weimer  <fweimer@redhat.com>
33122
33123         * malloc/tst-scratch_buffer.c (do_test): Suppress truncation
33124         warning on 32-bit.
33125
33126 2015-04-08  David S. Miller  <davem@davemloft.net>
33127
33128         * sysdeps/sparc/fpu/libm-test-ulps: Update.
33129
33130 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
33131
33132         * math/auto-libm-test-in: Add more tests of atanh.
33133         * math/auto-libm-test-out: Regenerated.
33134         * sysdeps/i386/fpu/libm-test-ulps: Update.
33135         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33136
33137         * math/auto-libm-test-in: Add more tests of atan.
33138         * math/auto-libm-test-out: Regenerated.
33139         * sysdeps/i386/fpu/libm-test-ulps: Update.
33140         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33141
33142 2015-04-08  Florian Weimer  <fweimer@redhat.com>
33143
33144         * elf/pldd.c (main): Rewrite to use struct
33145         scratch_buffer instead of extend_alloca.
33146         * elf/pldd-xx.c (find_maps): Likewise.
33147         * grp/initgroups.c: Include <scratch_buffer.h> instead of
33148         <alloca.h>.
33149         * grp/compat-initgroups.c (compat_call): Rewrite to use struct
33150         scratch_buffer instead of extend_alloca.
33151         * nscd/initgrcache.c: Include <scratch_buffer.h>, now needed by
33152         grp/compat-initgroups.c.
33153         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
33154         Rewrite to use struct scratch_buffer instead of extend_alloca.
33155         * inet/getnameinfo.c (nrl_domainname, getnameinfo): Likewise.
33156         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
33157
33158 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
33159
33160         * math/auto-libm-test-in: Add more tests of cbrt.
33161         * math/auto-libm-test-out: Regenerated.
33162         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
33163
33164         * math/auto-libm-test-in: Add more tests of cabs.
33165         * math/auto-libm-test-out: Regenerated.
33166         * sysdeps/i386/fpu/libm-test-ulps: Update.
33167         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33168
33169         [BZ #18210]
33170         [BZ #18211]
33171         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <fenv.h>.
33172         (__ieee754_atan2): Set FE_TONEAREST mode for internal
33173         computations.
33174         * math/auto-libm-test-in: Add more tests of atan2, carg, clog and
33175         clog10.
33176         * math/auto-libm-test-out: Regenerated.
33177         * sysdeps/i386/fpu/libm-test-ulps: Update.
33178         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33179
33180         [BZ #18197]
33181         * sysdeps/ieee754/dbl-64/s_atan.c: Include <fenv.h>.
33182         (atan): Set FE_TONEAREST mode for internal computations.
33183         * math/auto-libm-test-in: Add more tests of atan.
33184         * math/auto-libm-test-out: Regenerated.
33185
33186 2015-04-07  James Cowgill  <james410@cowgill.org.uk>
33187
33188         [BZ #17930]
33189         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHM_NORESERVE): Define.
33190
33191 2015-04-07  Florian Weimer  <fweimer@redhat.com>
33192
33193         * malloc/scratch_buffer_grow_preserve.c: Include <string.h>
33194
33195 2015-04-07  Florian Weimer  <fweimer@redhat.com>
33196
33197         * include/scratch_buffer.h: New file.
33198         * malloc/scratch_buffer_grow.c: Likewise.
33199         * malloc/scratch_buffer_grow_preserve.c: Likewise.
33200         * malloc/scratch_buffer_set_array_size.c: Likewise.
33201         * malloc/tst-scratch_buffer.c: Likewise.
33202         * malloc/Makefile (routines): Add scratch_buffer_grow.
33203         (tests): Add test case.
33204         * malloc/Versions (GLIBC_PRIVATE): Export
33205         __libc_scratch_buffer_grow, __libc_scratch_buffer_grow_preserve,
33206         __libc_scratch_buffer_set_array_size.
33207
33208 2015-04-06  Richard Henderson  <rth@redhat.com>
33209
33210         * sysdeps/unix/alpha/sysdep.h: Unconditionally include dl-sysdep.h.
33211         * sysdeps/alpha/fpu/libm-test-ulps: Update.
33212
33213         * math/test-fenvinline.c (feenable_test): Cast fe_exc to
33214         unsigned int before printing.
33215
33216 2015-04-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
33217
33218         [BZ #17596]
33219         * wcsmbs/mbrtowc.c (__mbrtowc): Add check for n=0.
33220         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
33221
33222 2015-04-02  Florian Weimer  <fweimer@redhat.com>
33223
33224         * include/libc-internal.h (libc_max_align_t): Define.
33225
33226 2015-04-02  Andreas Schwab  <schwab@suse.de>
33227
33228         [BZ #16850]
33229         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h: New file.
33230
33231 2015-04-02  Mel Gorman  <mgorman@suse.de>
33232
33233         [BZ #17195]
33234         * malloc/arena.c (free): Apply trim threshold to per-thread heaps
33235         as well as the main arena.
33236
33237 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
33238
33239         [BZ #18185]
33240         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Limit threads
33241         sharing L2 cache to 2 for Silvermont/Knights Landing.
33242
33243 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
33244
33245         [BZ #17711]
33246         * config.make.in (have-protected-data): New.
33247         * configure.ac: Check linker support for protected data symbol.
33248         * configure: Regenerated.
33249         * elf/Makefile (modules-names): Add tst-protected1moda and
33250         tst-protected1modb if $(have-protected-data) is yes.
33251         (tests): Add tst-protected1a and tst-protected1b if
33252         $(have-protected-data) is yes.
33253         ($(objpfx)tst-protected1a): New.
33254         ($(objpfx)tst-protected1b): Likewise.
33255         (tst-protected1modb.so-no-z-defs): Likewise.
33256         * elf/tst-protected1a.c: New file.
33257         * elf/tst-protected1b.c: Likewise.
33258         * elf/tst-protected1mod.h: Likewise.
33259         * elf/tst-protected1moda.c: Likewise.
33260         * elf/tst-protected1modb.c: Likewise.
33261
33262 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
33263
33264         [BZ #17711]
33265         * elf/dl-lookup.c (do_lookup_x): When UNDEF_MAP is NULL, which
33266         indicates it is called from do_lookup_x on relocation against
33267         protected data, skip the data definion in the executable from
33268         copy reloc.
33269         (_dl_lookup_symbol_x): Pass ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA,
33270         instead of ELF_RTYPE_CLASS_PLT, to do_lookup_x for
33271         EXTERN_PROTECTED_DATA relocation against STT_OBJECT symbol.
33272         * sysdeps/generic/ldsodefs.h * (ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA):
33273         New.  Defined to 4 if DL_EXTERN_PROTECTED_DATA is defined,
33274         otherwise to 0.
33275         * sysdeps/i386/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
33276         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Set class
33277         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_386_GLOB_DAT.
33278         * sysdeps/x86_64/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
33279         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Set class
33280         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_X86_64_GLOB_DAT.
33281
33282 2015-03-28  Martin Galvan  <martin.galvan@tallertechnologies.com>
33283
33284         * sysdeps/nptl/pthread.h: Remove duplicate definition of
33285         PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.
33286
33287 2015-03-27  Martin Galvan  <martin.galvan@tallertechnologies.com>
33288
33289         * sysdeps/i386/nptl/tls.h: Swap comments between THREAD_SETMEM and
33290         THREAD_SETMEM_NC.
33291         * sysdeps/x86_64/nptl/tls.h: Ditto.
33292
33293 2015-03-27  Roland McGrath  <roland@hack.frob.com>
33294
33295         * dlfcn/tststatic.c (main): Converted to ...
33296         (do_test): ... this.
33297         (TEST_FUNCTION): New macro.
33298         Include test-skeleton.c.
33299
33300 2015-03-26  Alan Modra  <amodra@gmail.com>
33301
33302         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
33303         Don't segfault if ifunc resolver returns a NULL.  Do set plt to
33304         zero for undefined weak.
33305         (elf_machine_plt_conflict): Similarly.
33306
33307 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
33308
33309         * math/auto-libm-test-in: Add more tests of acosh, asinh and
33310         atanh.
33311         * math/auto-libm-test-out: Regenerated.
33312         * sysdeps/i386/fpu/libm-test-ulps: Update.
33313         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33314
33315         * math/auto-libm-test-in: Add another test of asin.
33316         * math/auto-libm-test-out: Regenerated.
33317         * sysdeps/i386/fpu/libm-test-ulps: Update.
33318         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33319
33320         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (LLL_EBX_LOAD):
33321         Remove macro.
33322         (LLL_EBX_REG): Likewise.
33323         (LLL_ENTER_KERNEL): Likewise.
33324
33325         * math/auto-libm-test-in: Add more tests of asin.
33326         * math/auto-libm-test-out: Regenerated.
33327         * sysdeps/i386/fpu/libm-test-ulps: Update.
33328         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33329
33330         [BZ #18138]
33331         * sysdeps/unix/sysv/linux/i386/sysdep.h (struct
33332         libc_do_syscall_args): New structure.
33333         (INTERNAL_SYSCALL_MAIN_0): New macro.
33334         (INTERNAL_SYSCALL_MAIN_1): Likewise.
33335         (INTERNAL_SYSCALL_MAIN_2): Likewise.
33336         (INTERNAL_SYSCALL_MAIN_3): Likewise.
33337         (INTERNAL_SYSCALL_MAIN_4): Likewise.
33338         (INTERNAL_SYSCALL_MAIN_5): Likewise.
33339         (INTERNAL_SYSCALL_MAIN_6): Likewise.  Call __libc_do_syscall.
33340         (INTERNAL_SYSCALL): Define to use INTERNAL_SYSCALL_MAIN_##nr.
33341         Replace conditional definitions by conditional definitions of ....
33342         (INTERNAL_SYSCALL_MAIN_INLINE): ... this.  New macro.
33343         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: New file.
33344         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = nptl]
33345         (libpthread-sysdep_routines): Add libc-do-syscall.
33346         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: Remove file.
33347         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (SYS_futex): Define
33348         to __NR_futex not 240.
33349
33350 2015-03-25  Alan Modra  <amodra@gmail.com>
33351
33352         * NEWS: Advertise TLS optimization.
33353         * elf/elf.h (R_PPC_TLSGD, R_PPC_TLSLD, DT_PPC_OPT, PPC_OPT_TLS): Define.
33354         (DT_PPC_NUM): Increment.
33355         * elf/dynamic-link.h (HAVE_STATIC_TLS): Define.
33356         (CHECK_STATIC_TLS): Use here.
33357         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Optimize
33358         TLS descriptors.
33359         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
33360         * sysdeps/powerpc/dl-tls.c: New file.
33361         * sysdeps/powerpc/Versions: Add __tls_get_addr_opt.
33362         * sysdeps/powerpc/tst-tlsopt-powerpc.c: New tls test.
33363         * sysdeps/unix/sysv/linux/powerpc/Makefile: Add new test.
33364         Build tst-tlsmod2.so with --no-tls-get-addr-optimize.
33365         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Update.
33366         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
33367         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
33368
33369 2015-03-25  Alan Modra  <amodra@gmail.com>
33370
33371         * sysdeps/powerpc/powerpc64/configure.ac: Correct "linker support
33372         for overlapping .opd entries" to "support...".
33373         * sysdeps/powerpc/powerpc64/configure: Regenerate
33374
33375 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
33376
33377         * math/auto-libm-test-in: Add more tests of acos.
33378         * math/auto-libm-test-out: Regenerated.
33379         * sysdeps/i386/fpu/libm-test-ulps: Update.
33380         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33381
33382         * math/auto-libm-test-in: Add more tests of expm1.
33383         * math/auto-libm-test-out: Regenerated.
33384         * sysdeps/i386/fpu/libm-test-ulps: Update.
33385         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33386
33387 2015-03-24  Joseph Myers  <joseph@codesourcery.com>
33388
33389         * math/auto-libm-test-in: Add more tests of cosh and sinh.
33390         * math/auto-libm-test-out: Regenerated.
33391         * sysdeps/i386/fpu/libm-test-ulps: Update.
33392         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33393
33394         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
33395         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33396
33397         * math/auto-libm-test-in: Add more tests of log2.
33398         * math/auto-libm-test-out: Regenerated.
33399         * sysdeps/i386/fpu/libm-test-ulps: Update.
33400         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33401
33402 2015-03-23  Roland McGrath  <roland@hack.frob.com>
33403
33404         * libio/iofdopen.c: Move FD_FLAGS declaration into its first use,
33405         inside [F_GETFL].  Remove POSIX_MODE local variable, just test the
33406         _IO_IS_APPENDING bit in READ_WRITE instead.
33407
33408 2015-03-23  Florian Weimer  <fweimer@redhat.com>
33409
33410         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
33411         (__determine_cpumask_size): Replace extend_alloca with a
33412         variable-length array.  Do not treat res == 0 as an error.
33413
33414 2015-03-23  Florian Weimer  <fweimer@redhat.com>
33415
33416         [BZ #18100]
33417         * posix/wordexp.c (eval_expr_multdiv): Check for division by zero
33418         and integer overflow.
33419         * posix/wordexp-test.c (test_case): Add divide-by-zero test.
33420         (main): Add integer overflow tests.
33421         * manual/pattern.texi (Calling Wordexp): Document additional use
33422         for WRDE_SYNTAX.
33423
33424 2015-03-23  Alan Modra  <amodra@gmail.com>
33425
33426         * config.h.in: Remove HAVE_ASM_PPC_REL16.
33427         * sysdeps/powerpc/powerpc32/tls-macros.h: Remove HAVE_ASM_PPC_REL16
33428         and false branch of conditional.
33429         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
33430         Likewise.
33431
33432 2015-03-21  Samuel Thibault  <samuel.thibault@ens-lyon.org
33433
33434         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Depend on
33435         libc-modules.h
33436         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Remove
33437         unused declaration of _hurd_intr_rpc_msg_in_trap.
33438         * mach/mach_init.c (__mach_init): Test whether HAVE_HOST_PAGE_SIZE is
33439         defined instead of whether it is non-zero.
33440         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Use "+m"
33441         input constraint instead of both input and output constraint.  Use ecx
33442         clobber instead of %ecx.
33443         * sysdeps/mach/hurd/malloc-machine.h (mutex_init, mutex_lock,
33444         mutex_unlock): Use a statement expression instead of an expression list.
33445         * sysdeps/mach/hurd/setitimer.c (_hurd_itimer_thread_stack_size): Set
33446         type to vm_size_t instead of vm_address_t.
33447         * sysdeps/mach/hurd/fork.c (__fork): Test whether STACK_GROWTH_UP is
33448         defined instead of whether it is non-zero.
33449         * hurd/hurd/ioctl.h (_hurd_locked_install_cttyid): New declaration.
33450         * sysdeps/mach/hurd/setsid.c: Include <hurd/ioctl.h>.
33451         * sysdeps/mach/hurd/mmap.c (__mmap): Use 0 instead of NULL for
33452         comparisons with mapaddr.
33453         * nscd/nscd-client.h: Include <time.h>.
33454         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Pass vm_offset_t dummy
33455         9th parameter to __vm_region instead of int.
33456         * bits/termios.h [!__USE_MISC] (EXTPROC): Do not define.
33457         * scripts/check-local-headers.sh (exclude): Add device/,
33458         hurd/hurd_types.h, hurd/ioctl_types.h, hurd/paths.h, hurd/ioctls.defs,
33459         cthreads.h.
33460
33461 2015-03-19  Roland McGrath  <roland@hack.frob.com>
33462
33463         * sysdeps/arm/memcpy.S [ARM_ALWAYS_BX]: Fix computed-jump calculations
33464         to account for alignment padding.
33465         * sysdeps/arm/memmove.S: Likewise.
33466
33467 2015-03-19  Chris Metcalf  <cmetcalf@ezchip.com>
33468
33469         * sysdeps/unix/sysv/linux/generic/README: New file.
33470
33471 2015-03-18  Joseph Myers  <joseph@codesourcery.com>
33472
33473         [BZ #18138]
33474         * nptl/sem_waitcommon.c: Include <kernel-features.h>.
33475         (futex_abstimed_wait)
33476         [__ASSUME_FUTEX_CLOCK_REALTIME && lll_futex_timed_wait_bitset]:
33477         Use lll_futex_timed_wait_bitset with FUTEX_CLOCK_REALTIME instead
33478         of lll_futex_timed_wait.
33479
33480 2015-03-18  Brad Hubbard  <bhubbard@redhat.com>
33481
33482         [BZ #17542]
33483         * sunrpc/svc.c (xprt_register): Use calloc to allocate xports.
33484
33485 2015-03-17  Alexandre Oliva <aoliva@redhat.com>
33486
33487         [BZ #17090]
33488         [BZ #17620]
33489         [BZ #17621]
33490         [BZ #17628]
33491         * NEWS: Update.
33492         * elf/dl-tls.c (_dl_update_slotinfo): Clean up outdated DTV
33493         entries with Static TLS too.  Skip entries past the end of the
33494         allocated DTV, from Alan Modra.
33495         (tls_get_addr_tail): Update to glibc_likely/unlikely.  Move
33496         Static TLS DTV entry set up from...
33497         (_dl_allocate_tls_init): ... here (fix modid assertion), ...
33498         * elf/dl-reloc.c (_dl_nothread_init_static_tls): ... here...
33499         * nptl/allocatestack.c (init_one_static_tls): ... and here...
33500         * elf/dlopen.c (dl_open_worker): Drop l_tls_modid upper bound
33501         for Static TLS.
33502         * elf/tlsdeschtab.h (map_generation): Return size_t.  Check
33503         that the slot we find is associated with the given map before
33504         using its generation count.
33505         * nptl_db/db_info.c: Include ldsodefs.h.
33506         (rtld_global, dtv_slotinfo_list, dtv_slotinfo): New typedefs.
33507         * nptl_db/structs.def (DB_RTLD_VARIABLE): New macro.
33508         (DB_MAIN_VARIABLE, DB_RTLD_GLOBAL_FIELD): Likewise.
33509         (link_map::l_tls_offset): New struct field.
33510         (dtv_t::counter): Likewise.
33511         (rtld_global): New struct.
33512         (_rtld_global): New rtld variable.
33513         (dl_tls_dtv_slotinfo_list): New rtld global field.
33514         (dtv_slotinfo_list): New struct.
33515         (dtv_slotinfo): Likewise.
33516         * nptl_db/td_symbol_list.c: Drop gnu/lib-names.h include.
33517         (td_lookup): Rename to...
33518         (td_mod_lookup): ... this.  Use new mod parameter instead of
33519         LIBPTHREAD_SO.
33520         * nptl_db/td_thr_tlsbase.c: Include link.h.
33521         (dtv_slotinfo_list, dtv_slotinfo): New functions.
33522         (td_thr_tlsbase): Check DTV generation.  Compute Static TLS
33523         addresses even if the DTV is out of date or missing them.
33524         * nptl_db/fetch-value.c (_td_locate_field): Do not refuse to
33525         index zero-length arrays.
33526         * nptl_db/thread_dbP.h: Include gnu/lib-names.h.
33527         (td_lookup): Make it a macro implemented in terms of...
33528         (td_mod_lookup): ... this declaration.
33529         * nptl_db/db-symbols.awk (DB_RTLD_VARIABLE): Override.
33530         (DB_MAIN_VARIABLE): Likewise.
33531
33532 2015-03-16  H.J. Lu  <hongjiu.lu@intel.com>
33533
33534         [BZ #18134]
33535         * sysdeps/x86_64/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
33536
33537 2015-03-15  Paul Eggert  <eggert@cs.ucla.edu>
33538
33539         * stdlib/setenv.c (__add_to_environ): Revert previous change.
33540
33541 2015-03-14  Andreas Schwab  <schwab@linux-m68k.org>
33542
33543         [BZ #18128]
33544         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (atomic_exchange_and_add)
33545         (atomic_add, atomic_increment_and_test)
33546         (atomic_decrement_and_test): Fix 64-bit arithmetic.
33547
33548 2015-03-13  Paul Eggert  <eggert@cs.ucla.edu>
33549
33550         * stdlib/setenv.c (__add_to_environ):
33551         Dump core quickly if setenv (..., NULL, ...) is called.
33552
33553 2015-03-13  Roland McGrath  <roland@hack.frob.com>
33554
33555         * sysdeps/arm/tls-macros.h: Include <sysdep.h>.
33556         (GET_SPECIAL_RELOC, GET_SPECIAL_PCREL): New macros to encapsulate
33557         all the necessary asm magic in one place.
33558         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Rewritten as C expressions
33559         using those.
33560
33561 2015-03-13  Carlos O'Donell  <carlos@redhat.com>
33562
33563         [BZ #14906]
33564         * nscd/cache.c (prune_cache): Use TRACED_FILE. Compare and update
33565         traced file mtime. Use consistent log message.
33566         * nscd/connections.c [HAVE_INOTIFY] (install_watches): New function.
33567         (register_traced_file): Call install_watches. Always set mtime.
33568         (invalidate_cache): Iterate over all trace files. Call install_watches.
33569         (inotify_check_files): Don't inline. Handle watching parent
33570         directories and configuration file movement in and out.
33571         (handle_inotify_events): New function.
33572         (main_loop_poll): Call handle_inotify_events.
33573         (main_loop_epoll): Likewise.
33574         * nscd/nscd.h: Define TRACED_FILE, TRACED_DIR, and PATH_MAX.
33575         (struct traced_file): Use array of inotify fds. Add parent directory,
33576         and basename.
33577         (struct database_dyn): Remove unused file_mtime.
33578         (init_traced_file): New inline function.
33579         (define_traced_file): New macro.
33580         * nss/nss_db/db-init.c: Use define_traced_file.
33581         (_nss_db_init): Use init_traced_file.
33582         * nss/nss_files/files-init.c: Use define_traced_file.
33583         (_nss_files_init): Use init_traced_file.
33584
33585 2015-03-12  Joseph Myers  <joseph@codesourcery.com>
33586
33587         * soft-fp/soft-fp.h (_FP_STATIC_ASSERT): New macro.
33588         [_LIBC]: Do not include <stdlib.h>.
33589         [!_LIBC] (abort): Remove declaration.
33590         * soft-fp/op-2.h (_FP_MUL_MEAT_2_120_240_double): Use
33591         _FP_STATIC_ASSERT instead of conditionally calling abort.
33592         * soft-fp/op-common.h (_FP_FROM_INT): Likewise.
33593         (_FP_EXTEND_CNAN): Likewise.
33594         (FP_TRUNC): Likewise.
33595         (__FP_CLZ): Likewise.
33596         * sysdeps/powerpc/nofpu/flt-rounds.c: Include <stdlib.h>.
33597
33598 2015-03-12  Yaakov Selkowitz  <yselkowi@redhat.com>
33599
33600         * manual/string.texi (XPG basename): Fix prototype.
33601
33602 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
33603
33604         [BZ #18080]
33605         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S
33606         (__setcontext): Use SIG_SETMASK instead of SIG_BLOCK.
33607         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S
33608         (__setcontext): Likewise.
33609         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S
33610         (__swapcontext): Use SIG_SETMASK instead of SIG_BLOCK.
33611         Call rt_sigprocmask syscall one time to set new signal mask
33612         and retrieve the current signal mask instead of two calls.
33613         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S
33614         (__swapcontext): Likewise.
33615         * stdlib/Makefile (tests): Add new testcase tst-setcontext2.
33616         * stdlib/tst-setcontext2.c: New file.
33617
33618 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
33619
33620         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
33621
33622 2015-03-11  Aurelien Jarno  <aurelien@aurel32.net>
33623
33624         [BZ #18093]
33625         * elf/cache.c (load_aux_cache): Regenerate the cache if it has
33626         the wrong size.
33627
33628 2015-03-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
33629
33630         [BZ #18043]
33631         * posix/wordexp.c (parse_param): Don't call setenv(..., NULL, 1).
33632
33633 2015-03-11  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
33634
33635         * config.h.in [HAVE_ASM_GLOBAL_DOT_NAME]: Remove define.
33636         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias):
33637         Remove define.
33638         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): Likewise.
33639         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Likewise.
33640         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Likewise.
33641         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Likewise.
33642         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Likewise.
33643         * nptl_db/db-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (DOT): Remove
33644         define.
33645         * nptl_db/td_symbol_list.c (td_lookup): Remove
33646         HAVE_ASM_GLOBAL_DOT_NAME code.
33647         * sysdeps/powerpc/powerpc64/configure.ac: Remove
33648         HAVE_ASM_GLOBAL_DOT_NAME check.
33649         * sysdeps/powerpc/powerpc64/configure: Regenerate.
33650         * sysdeps/powerpc/powerpc64/sysdep.h [HAVE_ASM_GLOBAL_DOT_NAME]
33651         (DOT_LABEL): Remove define.
33652         [HAVE_ASM_GLOBAL_DOT_NAME] (BODY_LABEL): Likewise.
33653         [HAVE_ASM_GLOBAL_DOT_NAME] (ENTRY_2): Likewise.
33654         [HAVE_ASM_GLOBAL_DOT_NAME] (END_2): Likewise.
33655         * sysdeps/powerpc/powerpc64/tls-macros.h [HAVE_ASM_GLOBAL_DOT_NAME]
33656         (__TLS_GET_ADDR): Likewise.
33657         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
33658         [HAVE_ASM_GLOBAL_DOT_NAME] (DASHDASHPFX): Likewise.
33659
33660 2015-03-11  Carlos O'Donell  <carlos@redhat.com>
33661
33662         [BZ #18111]
33663         * sysdeps/hppa/fpu/fpu_control.h (_FPU_HPPA_SHIFT_FLAGS): Define.
33664         (_FPU_SETCW): Initialize cw from fpsr before storing.
33665         * sysdeps/hppa/fpu/fsetexcptflg.c: Include fpu_control.h
33666         (fesetexceptflag): Rewrite using fpu_control.h.
33667         * sysdeps/hppa/fpu/feupdateenv.c: Handle FE_DFL_ENV, and FE_NOMASK_ENV.
33668
33669 2015-03-11  John David Anglin  <danglin@gcc.gnu.org>
33670
33671         [BZ #18110]
33672         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Don't modify bufptr in
33673         asms.
33674         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
33675
33676 2015-03-11  Joseph Myers  <joseph@codesourcery.com>
33677
33678         * soft-fp/soft-fp.h (_FP_UNREACHABLE): New macro.
33679         * soft-fp/op-common.h (_FP_MUL): Use _FP_UNREACHABLE instead of
33680         abort.
33681         (_FP_FMA): Likewise.
33682         (_FP_DIV): Likewise.
33683
33684 2015-03-10  Roland McGrath  <roland@hack.frob.com>
33685
33686         * scripts/evaluate-test.sh: Grok exit code 77 as UNSUPPORTED and exit
33687         with 0 in that case.
33688         * Makefile (summarize-tests): New canned sequence, factored out of
33689         commands for targets tests and xtests.  Display summary lines that
33690         don't start with PASS: or XFAIL: rather than ones that do start with
33691         ERROR: or FAIL:.  Make the commands fail if any summary lines fail
33692         to start with X?PASS: or XFAIL: or UNSUPPORTED: rather than if any
33693         do start with ERROR: or FAIL:.
33694         * dlfcn/Makefile (tests): Add bug-atexit3 back here unconditionally
33695         (except for [$(build-shared) = yes]).
33696         (tests-unsupported) [$(CXX) empty]: Add bug-atexit3.
33697         (LDLIBS-bug-atexit3-lib.so): Conditionalize on [$(CXX) nonempty].
33698         ($(objpfx)bug-atexit3, $(objpfx)bug-atexit3.out): Likewise.
33699         * nptl/Makefile: Revert 2015-03-04 changes.
33700         [$(CXX) empty] (tests-unsupported): New variable.
33701         * debug/Makefile: Likewise.
33702
33703         * posix/regcomp.c: Fix comment typos and formatting to harmonize with
33704         gnulib file.  Replace __attribute with __attribute__ throughout.
33705
33706 2015-03-10  Carlos O'Donell  <carlos@redhat.com>
33707
33708         * sysdeps/hppa/fpu/libm-test-ulps: Update.
33709
33710 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
33711
33712         [BZ #18104]
33713         * math/auto-libm-test-in: Add another test of pow.
33714         * math/auto-libm-test-out: Regenerated.
33715
33716 2015-03-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33717
33718         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Add
33719         $(config-cflags-nofma).
33720
33721 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
33722
33723         * soft-fp/double.h [SOFT_FP_DOUBLE_H]: New multiple-include guard.
33724         * soft-fp/extended.h [SOFT_FP_EXTENDED_H]: Likewise.
33725         * soft-fp/op-1.h [SOFT_FP_OP_1_H]: Likewise.
33726         * soft-fp/op-2.h [SOFT_FP_OP_2_H]: Likewise.
33727         * soft-fp/op-4.h [SOFT_FP_OP_4_H]: Likewise.
33728         * soft-fp/op-8.h [SOFT_FP_OP_8_H]: Likewise.
33729         * soft-fp/op-common.h [SOFT_FP_OP_COMMON_H]: Likewise.
33730         * soft-fp/quad.h [SOFT_FP_QUAD_H]: Likewise.
33731         * soft-fp/single.h [SOFT_FP_SINGLE_H]: Likewise.
33732         * soft-fp/soft-fp.h (SOFT_FP_H): Define to 1 rather than empty.
33733         Add comment on closing #endif.
33734
33735 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
33736
33737         * posix/wordexp.c (CHAR_IN_SET): New macro.
33738         (parse_param): Use it.
33739
33740 2015-03-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33741
33742         * sysdeps/powerpc/fpu/libm-test-ulps: update.
33743
33744 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
33745
33746         [BZ #18043]
33747         * posix/wordexp.c (parse_param): Fix buffer overflow.
33748         * posix/wordexp-test.c (test_case): Add test case.
33749
33750 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
33751
33752         [BZ #18042]
33753         * posix/wordexp.c (parse_backtick): Fix off-by-one.
33754         * posix/wordexp-test.c (test_case): Add test for BZ #18042.
33755
33756 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
33757
33758         [BZ #18043]
33759         * posix/wordexp-test.c (test_case): Add test for BZ #18043
33760         (do_bz18043): Delete.
33761         (at_page_end): New.
33762         (testit): Refactor to have words at the edge of unreadable page.
33763
33764 2015-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
33765
33766         [BZ #16734]
33767         * libio/genops.c (_IO_unbuffer_all): Renamed from _IO_unbuffer_write.
33768         Cleanup read-only streams as well.
33769         (_IO_cleanup): Call _IO_unbuffer_all instead of _IO_unbuffer_write.
33770
33771 2015-03-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33772
33773         * sysdeps/mach/hurd/bits/libc-lock.h [_LIBC]: Include
33774         <bits/libc-lockP.h>
33775
33776 2015-03-07  Joseph Myers  <joseph@codesourcery.com>
33777
33778         * soft-fp/soft-fp.h (_FP_ZERO_INIT): New macro.  Define depending
33779         on [__KERNEL__].
33780         * soft-fp/op-1.h (_FP_FRAC_DECL_1): Use _FP_ZERO_INIT.
33781         * soft-fp/op-2.h (_FP_FRAC_DECL_2): Likewise.
33782         * soft-fp/op-common.h (_FP_DECL): Likewise.
33783
33784 2015-03-06  H.J. Lu  <hongjiu.lu@intel.com>
33785
33786         * elf/ifuncdep2.c (global): Replace
33787         __attribute__((visibility("protected"))) with
33788         asm (".protected global").
33789         * elf/ifuncmod1.c (global): Likewise.
33790         * elf/ifuncmod5.c (global): Likewise.
33791
33792 2015-03-06  Joseph Myers  <joseph@codesourcery.com>
33793
33794         * soft-fp/soft-fp.h [!_LIBC && __KERNEL__]: Include
33795         <asm/sfp-machine.h> instead of <sfp-machine.h>.
33796
33797 2015-03-06  Roland McGrath  <roland@hack.frob.com>
33798
33799         * manual/install.texi (Configuring and compiling):
33800         Document test-wrapper-env-only.
33801         * INSTALL: Regenerated.
33802
33803 2015-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
33804
33805         [BZ #18043]
33806         * posix/wordexp.c (parse_param): Fix buffer overflow.
33807         * posix/wordexp-test.c (do_bz18043): Add test case.
33808
33809 2015-03-06  Vincent Bernat  <vincent@bernat.im>
33810
33811         * time/tst-strptime2.c (do_test): Ensure failing tests are
33812         reported correctly.
33813         * time/tst-strptime3.c (do_test): Likewise.
33814
33815 2015-03-06  Samuel Thibault  <samuel.thibault@inria.fr>
33816
33817         Fix aio_error thread-safety.
33818         * sysdeps/pthread/aio_error.c: New file
33819         * sysdeps/pthread/aio_misc.c: Remove optimistic comment about
33820         synchronization.
33821
33822 2015-03-06  Florian Weimer  <fweimer@redhat.com>
33823
33824         * stdio-common/vfprintf.c (THOUSANDS_SEP_T): New typedef.
33825         (group_number, vfprintf): Use it.
33826         (JUMP_TABLE_BASE_LABEL): New preprocessor macro.
33827         (JUMP, REF): Use it.
33828         (WORK_BUFFER_SIZE): New enum constant.
33829         (process_arg, vfprintf): Use it.
33830
33831 2015-03-06  Rical Jasan  <ricaljasan@pacific.net>
33832
33833         * manual/errno.texi (Error Messages): Complete example function
33834         by adding missing #define.
33835         (program_invocation_name): Add statement indicating GNU
33836         extension and reference which header file declares the variable.
33837         (program_invocation_short_name): Likewise.
33838
33839 2015-03-06  Mike Frysinger  <vapier@gentoo.org>
33840
33841         * manual/errno.texi (Error Messages): Delete strerror ISO C89
33842         compatibility note.
33843
33844 2015-03-05  Roland McGrath  <roland@hack.frob.com>
33845
33846         * Makeconfig (test-wrapper-env-only): New variable.
33847         * Rules (make-test-out): If variable $*-ENV-only is nonempty,
33848         then use that with $(test-wrapper-env-only) rather than using
33849         $(test-wrapper-env) $(run-program-env) $($*-ENV).
33850
33851 2015-03-05  H.J. Lu  <hongjiu.lu@intel.com>
33852
33853         [BZ #18082]
33854         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Replace
33855         ELF_RTYPE_CLASS_NOCOPY with ELF_RTYPE_CLASS_COPY in comments.
33856         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Likewise.
33857         * sysdeps/hppa/dl-machine.h (elf_machine_type_class): Likewise.
33858         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Likewise.
33859         * sysdeps/ia64/dl-machine.h (elf_machine_type_class): Likewise.
33860         * sysdeps/m68k/dl-machine.h (elf_machine_type_class): Likewise.
33861         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
33862         Likewise.
33863         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Likewise.
33864         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_type_class):
33865         Likewise.
33866         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
33867         Likewise.
33868         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class):
33869         Likewise.
33870         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_type_class):
33871         Likewise.
33872         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Likewise.
33873         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_type_class):
33874         Likewise.
33875         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_type_class):
33876         Likewise.
33877         * sysdeps/tile/dl-machine.h (elf_machine_type_class): Likewise.
33878         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Likewise.
33879
33880 2015-03-04  Roland McGrath  <roland@hack.frob.com>
33881
33882         * sysdeps/generic/netinet/if_ether.h: Don't #include <features.h>.
33883         (ETH_ALEN): New macro.
33884         (struct ether_addr): Use it for length of ether_addr_octet.
33885
33886         * nss/test-netdb.c: Don't #include <rpc/netdb.h>.
33887         (setdb): Don't call __nss_configure_lookup for "rpc".
33888         (do_test): Don't call test_rpc.
33889         (output_rpcent, test_rpc): Functions moved ...
33890         * sunrpc/test-rpcent.c: ... to this new file.
33891         * sunrpc/Makefile (tests): Add it.
33892
33893         * nptl/tst-cancel4.c (tf_sigpause) [!SIGCANCEL]: Call pause instead of
33894         __xpg_sigpause.
33895         * nptl/tst-signal3.c: Conditionalize body on [SIGRTMIN].
33896         * nptl/tst-signal6.c: Likewise.
33897         * rt/tst-mqueue5.c: Conditionalize body on [SIGRTMIN && SA_SIGINFO].
33898         * rt/tst-timer4.c: Conditionalize body on [SA_SIGINFO].
33899
33900         * configure.ac (libc_cv_cxx_link_ok): New check.
33901         Reset CXX to empty if it fails to link.
33902         * configure: Regenerated.
33903         * dlfcn/Makefile (tests, modules-names): Add bug-atexit3 and
33904         bug-atexit3-lib only if $(CXX) is nonempty.
33905         * nptl/Makefile (tests): Likewise for tst-cancel24.
33906         (tests, tests-static): Likewise for tst-cancel24-static.
33907         * debug/Makefile (tests): Likewise for tst-chk4, tst-chk5, tst-chk6,
33908         tst-lfschk4, tst-lfschk5, and tst-lfschk6.
33909         * elf/Makefile (tests, modules-names): Likewise for tst-unique3,
33910         tst-unique3lib, tst-unique3lib2, tst-unique4, and tst-unique4lib.
33911
33912 2015-03-04  Andreas Schwab  <schwab@suse.de>
33913
33914         [BZ #17631]
33915         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Don't define
33916         for non-GCC compilers.
33917         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
33918         Likewise.
33919
33920 2015-03-03 Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
33921
33922         [BZ #17776]
33923         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Convert input to
33924         integer before bitwise and assembly operations.
33925         (feclearexcept): Likewise.
33926         * math/test-fenvinline.c: New file.
33927         * math/Makefile: Add test-fenvinline test.
33928
33929 2015-03-03  Alan Modra  <amodra@gmail.com>
33930
33931         [BZ #16512]
33932         * scripts/localplt.awk: Strip off symbol version.
33933         * NEWS: Mention bug fix.
33934
33935 2015-03-02  Roland McGrath  <roland@hack.frob.com>
33936
33937         * sysdeps/pthread/timer_routines.c
33938         (timer_free_list, thread_free_list, thread_active_list): Make static.
33939
33940 2015-03-02  Joseph Myers  <joseph@codesourcery.com>
33941
33942         [BZ #17779]
33943         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
33944         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
33945         Undefine.
33946         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
33947         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
33948         Likewise.
33949         * sysdeps/unix/sysv/linux/sh/kernel-features.h
33950         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
33951         Likewise.
33952
33953 2015-03-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
33954
33955         [BZ #18036]
33956         * posix/fnmatch_loop.c (END): Detect invalid pattern.
33957         * posix/tst-fnmatch3.c (do_bz18036): Add test case.
33958
33959 2015-03-02  Andreas Schwab  <schwab@suse.de>
33960
33961         * elf/Makefile ($(elf-objpfx)runtime-linker.st): Fix typo in
33962         variable name.
33963
33964 2015-03-02  Florian Weimer  <fweimer@redhat.com>
33965
33966         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn):
33967         Return error status.
33968
33969 2015-02-27  Alexandre Oliva <aoliva@redhat.com>
33970
33971         [BZ #15969]
33972         * locale/findlocale.c (_nl_find_locale): Introduce const
33973         version of loc_name and drop unsafe type casts.
33974
33975 2015-02-27  Roland McGrath  <roland@hack.frob.com>
33976
33977         * dlfcn/tststatic2.c (main): Converted to ...
33978         (do_test): ... this.
33979         (TEST_FUNCTION): New macro.
33980         Include test-skeleton.c.
33981
33982 2015-02-27  H.J. Lu  <hongjiu.lu@intel.com>
33983
33984         [BZ #17711]
33985         * elf/Makefile (tests): Add vismain only if PIE is enabled.
33986         (tests-pie): Add vismain.
33987         (CFLAGS-vismain.c): New.
33988         * elf/vismain.c: Add comments for PIE requirement.
33989
33990 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
33991
33992         [BZ #18046]
33993         [BZ #18047]
33994         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Use
33995         0x1p-56L as threshold for just returning the argument.
33996         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Use
33997         0x1p-32L as threshold for just returning the argument.
33998         * math/auto-libm-test-in: Add more tests of atanh.
33999         * math/auto-libm-test-out: Regenerated.
34000         * sysdeps/i386/fpu/libm-test-ulps: Update.
34001         * sysdeps/x86_64/fpu/libm-test-ulp: Likewise.
34002
34003 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
34004
34005         * string/bcopy.c (bcopy): Call memmove for performance.
34006
34007 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
34008
34009         * string/bzero.c (__bzero): Call memset for performance.
34010
34011 2015-02-27  John David Anglin  <dave.anglin@bell.net>
34012
34013         [BZ #18068]
34014         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (__O_SYNC): Change
34015         to 00100000.
34016
34017 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
34018
34019         * sysdeps/ieee754/k_standard.c (CSTR): Add comment.
34020
34021 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
34022
34023         * sysdeps/ieee754/k_standard.c (CSTR): New macro.
34024         (__kernel_standard): Use CSTR macro when setting exc.name.
34025         * sysdeps/ieee754/Makefile [$(subdir) = math]
34026         (CFLAGS-k_standard.c): Remove variable.
34027
34028         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Change last case for
34029         setting p and q from "else if" to "else".
34030         (qzero): Likewise.
34031         * sysdeps/ieee754/dbl-64/e_j1.c (pone): Likewise.
34032         (qone): Likewise.
34033         * sysdeps/ieee754/flt-32/e_j0f.c (pzerof): Likewise.
34034         (qzerof): Likewise.
34035         * sysdeps/ieee754/flt-32/e_j1f.c (ponef): Likewise.
34036         (qonef): Likewise.
34037         * sysdeps/ieee754/ldbl-96/e_j0l.c (pzero): Likewise.
34038         (qzero): Likewise.
34039         * sysdeps/ieee754/ldbl-96/e_j1l.c (pone): Likewise.
34040         (qone): Likewise.
34041
34042         [BZ #18038]
34043         [BZ #18039]
34044         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Only
34045         return pi/2 for arguments below 0x1p-113L.
34046         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Only
34047         return pi/2 for arguments below 0x1p-106L.
34048         * math/auto-libm-test-in: Add more tests of acos.
34049         * math/auto-libm-test-out: Regenerated.
34050
34051         [BZ #16351]
34052         * sysdeps/i386/fpu/e_asin.S (dbl_min): New object.
34053         (MO): New macro.
34054         (__ieee754_asin): Force underflow exception for results with small
34055         absolute value.
34056         * sysdeps/i386/fpu/e_asinf.S (flt_min): New object.
34057         (MO): New macro.
34058         (__ieee754_asinf): Force underflow exception for results with
34059         small absolute value.
34060         * sysdeps/ieee754/dbl-64/e_asin.c: Include <float.h> and <math.h>.
34061         (__ieee754_asin): Force underflow exception for results with small
34062         absolute value.
34063         * sysdeps/ieee754/flt-32/e_asinf.c: Include <float.h>.
34064         (__ieee754_asinf): Force underflow exception for results with
34065         small absolute value.
34066         * sysdeps/ieee754/ldbl-128/e_asinl.c: Include <float.h>.
34067         (__ieee754_asinl): Force underflow exception for results with
34068         small absolute value.
34069         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Include <float.h>.
34070         (__ieee754_asinl): Force underflow exception for results with
34071         small absolute value.
34072         * sysdeps/ieee754/ldbl-96/e_asinl.c: Include <float.h>.
34073         (__ieee754_asinl): Force underflow exception for results with
34074         small absolute value.
34075         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
34076         Include <math.h>.
34077         * math/auto-libm-test-in: Do not mark underflow exceptions as
34078         possibly missing for bug 16351.
34079         * math/auto-libm-test-out: Regenerated.
34080
34081         [BZ #18030]
34082         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Adjust exponent
34083         of power of 2 down when low part has opposite sign.
34084         * math/libm-test.inc (logb_test_data): Add more tests.
34085
34086 2015-02-26  Andreas Schwab  <schwab@suse.de>
34087
34088         [BZ #18032]
34089         * posix/fnmatch_loop.c (FCT): Remove extra increment when skipping
34090         over collating symbol inside a bracket expression.  Minor cleanup.
34091         * posix/tst-fnmatch3.c (do_test): Add test case.
34092
34093 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
34094
34095         [BZ #18029]
34096         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl):
34097         Adjust exponent of power of 2 down when low part has opposite
34098         sign.
34099         * math/libm-test.inc (ilogb_test_data): Add more tests.
34100
34101 2015-02-26  Alexandre Oliva  <aoliva@redhat.com>
34102
34103         [BZ #15969]
34104         * locale/findlocale.c (_nl_find_locale): Fix constness error in
34105         the previous change.
34106
34107         [BZ #15969]
34108         * locale/findlocale.c (_nl_find_locale): Retry archive search
34109         after alias expansion.
34110
34111 2015-02-25  Roland McGrath  <roland@hack.frob.com>
34112
34113         * iconv/tst-iconv3.c (main): Converted to ...
34114         (do_test): ... this.
34115         (TEST_FUNCTION): New macro.
34116         Include test-skeleton.c.
34117
34118         * iconv/tst-iconv5.c (testcode, number): Make variables static const.
34119         (convert): Make function static.
34120         (test_unalign): Likewise.  Add const to argument pointee types.
34121         (main): Replace with static function do_test.
34122         Print "Succeeded." only if RET is zero.
34123         (TEST_FUNCTION): New macro.
34124         Include test-skeleton.c.
34125
34126         * iconv/gconv_conf.c (__gconv_get_path): Don't crash if __getcwd
34127         returns a null pointer.
34128
34129 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34130
34131         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Define memcpy
34132         to __memcpy_ppc only for static builds.
34133
34134 2015-02-25  Joseph Myers  <joseph@codesourcery.com>
34135
34136         [BZ #18020]
34137         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use 2**56 and
34138         2**-56 not 2**28 and 2**-29 as thresholds for simpler formulas.
34139         * math/auto-libm-test-in: Add more tests of asinh.
34140         * math/auto-libm-test-out: Regenerated.
34141         * sysdeps/i386/fpu/libm-test-ulps: Update.
34142         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34143
34144 2015-02-25  Cong Wang  <xiyou.wangcong@gmail.com>
34145
34146         [BZ #15850]
34147         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Put in6_pktinfo
34148         and ip6_mtuinfo definitions here.
34149         * sysdeps/unix/sysv/linux/bits/in.h [_UAPI_IPV6_H]: Wrap code
34150         in this define too.  Update comment.
34151
34152 2015-02-24  Benno Schulenberg  <bensberg@justemail.net>
34153
34154         * elf/sprof.c (load_shobj): Tweak error message to match others.
34155
34156 2015-02-24  Kevin Easton  <kevin@guarana.org>
34157
34158         [BZ #16145] (partial fix)
34159         * time/tzset.c (__tz_convert): Unlock tzset_lock earlier
34160         to reduce lock contention.
34161
34162 2015-02-24  Miroslav Lichvar  <mlichvar@redhat.com>
34163
34164         * sysdeps/unix/sysv/linux/bits/timex.h: Update version.
34165         (struct timex): Update time comment.
34166         (ADJ_SETOFFSET): Define.
34167
34168 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
34169
34170         [BZ #18019]
34171         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
34172         2**56 not 2**28 as threshold for log (2x) formula.
34173         * math/auto-libm-test-in: Add more tests of acosh.
34174         * math/auto-libm-test-out: Regenerated.
34175         * sysdeps/i386/fpu/libm-test-ulps: Update.
34176         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34177
34178 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
34179
34180         * include/alloca.h [_STACK_GROWS_DOWN] (extend_alloca): Add
34181         parenthesis around the buf assignment.
34182         [_STACK_GROWS_UP] (extend_alloca): Add a char* cast.
34183
34184 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
34185
34186         [BZ #16783]
34187         * sysdeps/i386/fpu/e_scalb.S (__ieee754_scalb): Do not handle
34188         arguments (NaN, -Inf) the same as (+/-Inf, -Inf).
34189         * sysdeps/i386/fpu/e_scalbf.S (__ieee754_scalbf): Likewise.
34190         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
34191         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
34192         * math/libm-test.inc (scalb_test_data): Add more tests.
34193
34194 2015-02-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
34195
34196         [BZ #17916]
34197         * libio/fileops.c (_IO_new_file_fopen): Limit stack use
34198         * libio/tst-fopenloc.c (do_test, do_bz17916): Add a large ccs= test
34199
34200 2015-02-24  Eric Rannaud  <e@nanocritical.com>
34201
34202         [BZ #17523]
34203         * io/fcntl.h (__OPEN_NEEDS_MODE): New macro.
34204         * io/bits/fcntl2.h (open): Use it.
34205         (openat): Likewise.
34206         * io/open.c (__libc_open): Likewise.
34207         * io/open64.c (__libc_open64): Likewise.
34208         * io/open64_2.c (__open64_2): Likewise.
34209         * io/open_2.c (__open_2): Likewise.
34210         * io/openat.c (__openat): Likewise.
34211         * io/openat64.c (__openat64): Likewise.
34212         * io/openat64_2.c (__openat64_2): Likewise.
34213         * io/openat_2.c (__openat_2): Likewise.
34214         * sysdeps/mach/hurd/open.c (__libc_open): Likewise.
34215         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
34216         * sysdeps/posix/open64.c (__libc_open64): Likewise.
34217         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
34218         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
34219         (__open_nocancel): Likewise.
34220         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
34221         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
34222         * sysdeps/unix/sysv/linux/openat.c (__OPENAT): Likewise.
34223
34224 2015-02-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
34225
34226         [BZ #14841]
34227         * resolv/gethnamaddr.c (getanswer): Skip logging if
34228         RES_USE_DNSSEC is set.
34229         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
34230
34231 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
34232
34233         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Include dl-sysdep.h.
34234
34235 2015-02-23  Alexandre Oliva <aoliva@redhat.com>
34236
34237         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
34238         201304L, for Unicode 7.
34239
34240 2015-02-23  H.J. Lu  <hongjiu.lu@intel.com>
34241
34242         [BZ #17836]
34243         * csu/Makefile (extra-objs): Add gmon-start.o if not builing
34244         shared library.  Add gmon-start.os otherwise.
34245         ($(objpfx)g$(start-installed-name)): Use $(objpfx)S%
34246         $(objpfx)gmon-start.os if builing shared library.
34247         ($(objpfx)g$(static-start-installed-name)): Likewise.
34248
34249 2015-02-23  Andreas Schwab  <schwab@suse.de>
34250
34251         * elf/Makefile (CFLAGS-tst-audit2.c): Define.
34252
34253 2015-02-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
34254
34255         [BZ #17269]
34256         * libio/wstrops.c (_IO_wstr_overflow): Guard against integer overflow
34257         (enlarge_userbuf): Likewise.
34258
34259 2015-02-22  Chung-Lin Tang  <cltang@codesourcery.com>
34260
34261         * libio/tst-memstream2.c (TIMEOUT): Define as 100.
34262         * math/atest-exp.c (TIMEOUT): Adjust to 200.
34263         * math/atest-exp2.c (TIMEOUT): Adjust to 300.
34264         * math/atest-sincos.c (TIMEOUT): Adjust to 600.
34265
34266 2015-02-20  Joseph Myers  <joseph@codesourcery.com>
34267
34268         * soft-fp/op-common.h (_FP_FROM_INT): Wrap call to abort in
34269         expression inside statement expression.
34270
34271 2015-02-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
34272
34273         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include
34274         <sysdeps/nptl/lowlevellock.h> and remove macros and
34275         functions that are now defined there.
34276         (SYS_futex): Remove.
34277         (lll_compare_and_swap): Remove.
34278         * sysdeps/s390/bits/atomic.h (atomic_exchange_acq): Define.
34279
34280 2015-02-19  Joseph Myers  <joseph@codesourcery.com>
34281
34282         [BZ #17999]
34283         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Define to __scandirat
34284         instead of scandirat.
34285         * dirent/scandirat.c [!SCANDIRAT] (SCANDIRAT): Likewise.
34286         [!SCANDIRAT] (SCANDIRAT_WEAK_ALIAS): Define.
34287         [SCANDIRAT_WEAK_ALIAS] (scandirat): Define as weak alias of
34288         __scandirat.
34289         * include/dirent.h (scandirat): Do not use libc_hidden_proto.
34290         (__scandirat): Declare.  Use libc_hidden_proto.
34291         * conform/Makefile (test-xfail-POSIX2008/dirent.h/linknamespace):
34292         Remove variable.
34293         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
34294
34295 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
34296
34297         [BZ #15319]
34298         * sysdeps/i386/fpu/e_atan2.S (dbl_min): New object.
34299         (MO): New macro.
34300         (__ieee754_atan2): For results with small absolute value, force
34301         underflow exception and remove excess range and precision from
34302         return value.
34303         * sysdeps/i386/fpu/e_atan2f.S (flt_min): New object.
34304         (MO): New macro.
34305         (__ieee754_atan2f): For results with small absolute value, force
34306         underflow exception and remove excess range and precision from
34307         return value.
34308         * sysdeps/i386/fpu/s_atan.S (dbl_min): New object.
34309         (MO): New macro.
34310         (__atan): For results with small absolute value, force underflow
34311         exception and remove excess range and precision from return value.
34312         * sysdeps/i386/fpu/s_atanf.S (flt_min): New object.
34313         (MO): New macro.
34314         (__atanf): For results with small absolute value, force underflow
34315         exception and remove excess range and precision from return value.
34316         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <float.h> and
34317         <math.h>.
34318         (__ieee754_atan2): Force underflow exception for results with
34319         small absolute value.
34320         * sysdeps/ieee754/dbl-64/s_atan.c: Include <float.h> and
34321         <math_private.h>.
34322         (atan): Force underflow exception for results with small absolute
34323         value.
34324         * sysdeps/ieee754/flt-32/s_atanf.c: Include <float.h>.
34325         (__atanf): Force underflow exception for results with small
34326         absolute value.
34327         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include <float.h> and
34328         <math.h>.
34329         (__atanl): Force underflow exception for results with small
34330         absolute value.
34331         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <float.h>.
34332         (__atanl): Force underflow exception for results with small
34333         absolute value.
34334         * sysdeps/x86/fpu/bits/mathinline.h
34335         [!__SSE2_MATH__ && !__x86_64__ && __LIBC_INTERNAL_MATH_INLINES]
34336         (__ieee754_atan2): Only define inline for long double.
34337         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
34338         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Include <math.h>.
34339         * math/auto-libm-test-in: Do not mark underflow exceptions as
34340         possibly missing for bug 15319.  Add more tests of atan2.
34341         * math/auto-libm-test-out: Regenerated.
34342         * math/libm-test.inc (casin_test_data): Do not mark underflow
34343         exceptions as possibly missing for bug 15319.
34344         (casinh_test_data): Likewise.
34345         * sysdeps/i386/fpu/libm-test-ulps: Update.
34346
34347 2015-02-18  Steve Ellcey  <sellcey@imgtec.com>
34348
34349         * sysdeps/unix/sysv/linux/mips/bits/endian.h: Remove.
34350         * sysdeps/mips/bits/endian.h: Fix comments.
34351
34352 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
34353
34354         [BZ #17996]
34355         * include/search.h (hcreate_r): Don't use libc_hidden_proto.
34356         (hdestroy_r): Likewise.
34357         (hsearch_r): Likewise.
34358         (__hcreate_r): Declare and use libc_hidden_proto.
34359         (__hdestroy_r): Likewise.
34360         (__hsearch_r): Likewise.
34361         * misc/hsearch.c (hsearch): Call __hsearch_r instead of hsearch_r.
34362         (hcreate): Call __hcreate_r instead of hcreate_r.
34363         (__hdestroy): Call __hdestroy_r instead of hdestroy_r.
34364         * misc/hsearch_r.c (hcreate_r): Rename to __hcreate_r and define
34365         as weak alias of __hcreate_r.
34366         (hdestroy_r): Rename to __hdestroy_r and define as weak alias of
34367         __hdestroy_r.
34368         (hsearch_r): Rename to __hsearch_r and define as weak alias of
34369         __hsearch_r.
34370         * conform/Makefile (test-xfail-XPG3/search.h/linknamespace):
34371         Remove variable.
34372         (test-xfail-XPG4/search.h/linknamespace): Likewise.
34373         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
34374         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
34375         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
34376
34377 2015-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
34378
34379         * malloc/malloc.c (__libc_malloc): Consolidate arena_lookup and
34380         arena_lock into a single arena_get.
34381
34382 2015-02-17  Carlos O'Donell  <carlos@redhat.com>
34383
34384         * dl-reloc.c: Inlucde libc-internal.h.
34385         (_dl_try_allocate_static_tls): Call ALIGN_UP.
34386         (_dl_relocate_object): Call ALIGN_UP, ALIGN_DOWN, and PTR_ALIGN_DOWN.
34387         (_dl_protect_relro): Call ALIGN_UP and ALIGN_DOWN.
34388         * malloc/arena.c (new_heap): Use pagesize. Call ALIGN_UP.
34389         (grow_heap): Likewise.
34390         * malloc/malloc.c: Include libc-internal.h.
34391         (do_check_malloc): Call powerof2.
34392         (sysmalloc): Use pagesize. Call ALIGN_UP.
34393         (systrim): Use pagesize.
34394         (mremap_chunk): Use pagesize. Call ALIGN_UP.
34395         (__libc_valloc): Use pagesize.
34396         (__libc_pvalloc): Use pagesize. Call ALIGN_UP.
34397
34398 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
34399
34400         [BZ #17991]
34401         * include/sys/resource.h (__getrlimit64): Declare.  Use
34402         libc_hidden_proto.
34403         * resource/getrlimit64.c (getrlimit64): Rename to __getrlimit64
34404         and define as weak alias of __getrlimit64.  Use libc_hidden_weak.
34405         * sysdeps/posix/spawni.c (__spawni): Call __getrlimit64 instead of
34406         getrlimit64.
34407         * sysdeps/unix/sysv/linux/getrlimit64.c (getrlimit64): Rename to
34408         __getrlimit64.
34409         [!getrlimit64] (getrlimit64): Define as weak alias of
34410         __getrlimit64.  Use libc_hidden_weak.
34411         * sysdeps/unix/sysv/linux/i386/getrlimit64.c (getrlimit64): Define
34412         using __getrlimit64 not __new_getrlimit64.
34413         (__GI_getrlimit64): Likewise.
34414         * sysdeps/unix/sysv/linux/mips/getrlimit64.c (getrlimit64):
34415         Likewise.
34416         (__GI_getrlimit64): Likewise.
34417         (__old_getrlimit64): Use __getrlimit64 not __new_getrlimit64.
34418         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
34419         (getrlimit): Add __getrlimit64 alias.
34420         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (getrlimit):
34421         Likewise.
34422         * conform/Makefile (test-xfail-XOPEN2K/spawn.h/linknamespace):
34423         Remove variable.
34424         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
34425         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
34426
34427 2015-02-17  Paul Pluzhnikov  <ppluzhnikov@google.com>
34428
34429         * libio/fileops.c: Add missing sys/mman.h
34430         * libio/iopopen.c: Add missing fcntl.h, remove redundant unistd.h
34431
34432 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
34433
34434         * manual/math.texi (Errors in Math Functions): Clarify goals
34435         regarding inexact and underflow exceptions.
34436
34437 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
34438
34439         * sysdeps/mips/memcpy.S: Move R6 PREFETCH_STORE_HINT check.
34440         * sysdeps/mips/memset.S: Ditto.
34441
34442 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
34443
34444         * sysdeps/mips/bits/endian.h (__MIPSEL): Use #ifdef instead of #if.
34445
34446 2015-02-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
34447
34448         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c
34449         (__v1longjmp): Remove versioned symbol.
34450         (__v1siglongjmp): Remove alias and versioned symbol.
34451         (__v2longjmp): Use DEFINE_LONGJMP instead of alias.
34452         (__v2siglongjmp): Likewise.
34453
34454 2015-02-16  Torvald Riegel  <triegel@redhat.com>
34455
34456         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Remove file.
34457
34458 2015-02-16  Mike Frysinger  <vapier@gentoo.org>
34459
34460         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Delete.
34461
34462 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
34463
34464         [BZ #17987]
34465         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Ensure sign of
34466         zero result does not depend on the sign resulting from
34467         subtraction.
34468         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
34469         Likewise.
34470         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
34471         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
34472         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
34473         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
34474         * math/libm-test.inc (remquo_test_data): Add more tests.
34475
34476 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
34477
34478         * manual/time.texi (TZ Variable): glibc no longer comes with tzdata.
34479         Problem reported by J William Piggott.
34480
34481 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
34482
34483         [BZ #17978]
34484         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Do not form
34485         products 4 * y and 2 * y where those would overflow.
34486         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
34487         Likewise.
34488         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
34489         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
34490         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
34491         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
34492         * math/libm-test.inc (remquo_test_data): Add more tests.
34493
34494         * sysdeps/mips/sgidefs.h [!_ABIO64] (_ABIO64): New macro.
34495
34496         * sysdeps/mips/memcpy.S [_COMPILING_NEWLIB]: Change condition to
34497         [defined _COMPILING_NEWLIB].
34498         * sysdeps/mips/memset.S [_COMPILING_NEWLIB]: Likewise.
34499         * sysdeps/mips/strcmp.S [_COMPILING_NEWLIB]: Likewise.
34500
34501         * sysdeps/mips/sys/asm.h [__mips_isa_rev < 6]: Change condition to
34502         [!defined __mips_isa_rev || __mips_isa_rev < 6].
34503
34504 2015-02-16  Torvald Riegel  <triegel@redhat.com>
34505
34506         * nptl/tst-cond25.c (cleanup): Explicitly check that the mutex is
34507         acquired.
34508
34509 2015-02-15  Matthew Fortune <Matthew.Fortune@imgtec.com>
34510
34511         [BZ #17792]
34512         * sysdeps/unix/sysv/linux/ia64/sys/user.h (NBPG): Remove.
34513         (UPAGES, HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR,
34514         HOST_STACK_END_ADDR): Likewise.
34515
34516 2015-02-13  Steve Ellcey  <sellcey@imgtec.com>
34517
34518         * sysdeps/mips/bits/endian.h (__MIPSEB): Use #ifdef instead of #if.
34519         * sysdeps/mips/memcpy.S (__MIPSEB): Ditto.
34520         * sysdeps/mips/memset.S (__MIPSEB): Ditto.
34521
34522 2015-02-13  Roland McGrath  <roland@hack.frob.com>
34523
34524         * sysdeps/generic/c++-types.data: New file.
34525         * sysdeps/generic/ld.abilist: New file.
34526         * sysdeps/generic/libBrokenLocale.abilist: New file.
34527         * sysdeps/generic/libanl.abilist: New file.
34528         * sysdeps/generic/libc.abilist: New file.
34529         * sysdeps/generic/libcrypt.abilist: New file.
34530         * sysdeps/generic/libdl.abilist: New file.
34531         * sysdeps/generic/libm.abilist: New file.
34532         * sysdeps/generic/libpthread.abilist: New file.
34533         * sysdeps/generic/libresolv.abilist: New file.
34534         * sysdeps/generic/librt.abilist: New file.
34535
34536 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
34537
34538         [BZ #17569]
34539         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
34540         Compute absolute value of x as modified by fmod, not original
34541         value of x.
34542         * math/libm-test.inc (RUN_TEST_ffI_f1): Rename to
34543         RUN_TEST_ffI_f1_mod8.  Check extra return value mod 8.
34544         (RUN_TEST_LOOP_ffI_f1): Rename to RUN_TEST_LOOP_ffI_f1_mod8.  Call
34545         RUN_TEST_ffI_f1_mod8.
34546         (remquo_test_data): Add more tests.
34547
34548 2015-02-13  Roland McGrath  <roland@hack.frob.com>
34549
34550         * sysdeps/init_array/pt-crti.S: New file.
34551
34552 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
34553
34554         [BZ #17967]
34555         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Use
34556         __builtin_fmaf instead of relying on contraction of a * b + c.
34557
34558 2015-02-12  J William Piggott  <elseifthen@gmx.com>
34559
34560         [BZ #17969]
34561         * manual/time.texi: correct the zoneinfo path in the TZ Variable
34562         node.
34563
34564 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
34565
34566         [BZ #17964]
34567         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Use
34568         __builtin_fma instead of relying on contraction of a * b + c.
34569
34570 2015-02-12  Roland McGrath  <roland@hack.frob.com>
34571
34572         * Makeconfig (ASFLAGS): Add -Werror=undef.
34573         * sysdeps/arm/Versions (libc: GLIBC_2.19): New (empty) version set.
34574         * sysdeps/unix/make-syscalls.sh: Always emit #define's for
34575         SYSCALL_CANCELLABLE, SYSCALL_NOERRNO, SYSCALL_ERRVAL, to 1 or 0.
34576
34577         * Makeconfig (after-link): New variable.
34578         (+link-pie, +link-pie-tests): Use it.
34579         (+link-static, +link-static-tests): Likewise.
34580         (+link, +link-tests): Likewise.
34581         * Makerules (build-module, build-module-asneeded): Likewise.
34582         (lib%.so, $(common-objpfx)libc.so, $(common-objpfx)linkobj/libc.so):
34583         Likewise.
34584         * elf/Makefile ($(objpfx)ld.so): Likewise.
34585
34586 2015-02-12  Rüdiger Sonderfeld  <ruediger@c-plusplus.net>
34587
34588         [BZ #17965]
34589         * manual/time.texi (Elapsed Time): tv_sec is of type time_t in
34590         both struct timeval and struct timespec.
34591
34592 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
34593
34594         [BZ #16560]
34595         * math/e_exp2l.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
34596         and redefine.
34597         (__ieee754_exp2l): Do not multiply small fractional parts by
34598         M_LN2l.
34599         * sysdeps/i386/fpu/e_exp2l.S (__ieee754_exp2l): Just add 1 to
34600         small argument.
34601         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
34602         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
34603         * sysdeps/x86_64/fpu/e_exp2l.S (__ieee754_exp2l): Likewise.
34604         * math/auto-libm-test-in: Add more tests of exp2.
34605         * math/auto-libm-test-out: Regenerated.
34606
34607 2015-02-12  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
34608
34609         * sysdeps/powerpc/powerpc64/power7/strncpy.S (strncpy): Optimize
34610         unaligned path.
34611
34612 2015-02-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34613
34614         * sysdeps/unix/sysv/linux/powerpc/htm.h [TABORT]: Fix encoding for
34615         little endian.
34616
34617 2015-02-12  Andreas Schwab  <schwab@suse.de>
34618
34619         [BZ #15790]
34620         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
34621         Filter out elision flags from value returned in kind.
34622         * nptl/Makefile (tests): Add tst-pthread-mutexattr.
34623         * nptl/tst-pthread-mutexattr.c: New file.
34624
34625 2015-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34626
34627         * abi-tags: Revert ae20c9a: rename back gnu into gnu-gnu.
34628         * configure.ac, configure: Revert ba90e05: modify gnu-* host_os back
34629         into gnu-gnu, and update comment to refer to abi-tags.
34630
34631 2015-02-11  Joseph Myers  <joseph@codesourcery.com>
34632
34633         [BZ #15467]
34634         * sysdeps/ieee754/dbl-64/s_sincos.c: Include <errno.h>.
34635         (__sincos): Set errno to EDOM for infinite argument.
34636         * sysdeps/ieee754/flt-32/s_sincosf.c: Include <errno.h>.
34637         (SINCOSF_FUNC): Set errno to EDOM for infinite argument.
34638         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include <errno.h>.
34639         (__sincosl): Set errno to EDOM for infinite argument.
34640         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Include <errno.h>.
34641         (__sincosl): Set errno to EDOM for infinite argument.
34642         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include <errno.h>.
34643         (__sincosl): Set errno to EDOM for infinite argument.
34644         * math/libm-test.inc (sincos_test_data): Test errno setting.
34645
34646 2015-02-11  Leonhard Holz  <leonhard.holz@web.de>
34647
34648         * string/strxfrm_l.c: Remove #define STRCMP.
34649         * string/strcoll_l.c: Remove #define STRLEN.
34650         * wcsmbs/wcsxfrm_l.c: Remove #define STRCMP.
34651         * wcsmbs/wcscoll_l.c: Remove #define STRLEN.
34652
34653 2015-02-10  Joseph Myers  <joseph@codesourcery.com>
34654
34655         * sysdeps/mips/soft-fp/sfp-machine.h: Move to ....
34656         * sysdeps/mips/mips32/sfp-machine.h: ... here.
34657         * sysdeps/mips/mips64/soft-fp/Makefile: Move to ....
34658         * sysdeps/mips/mips64/Makefile: ... here.
34659         * sysdeps/mips/mips64/soft-fp/e_sqrtl.c: Move to ....
34660         * sysdeps/mips/mips64/e_sqrtl.c: ... here.
34661         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Move to ....
34662         * sysdeps/mips/mips64/sfp-machine.h: ... here.
34663         * sysdeps/mips/mips32/Implies: Remove mips/soft-fp.
34664         * sysdeps/mips/mips64/n32/Implies: Remove mips/mips64/soft-fp.
34665         * sysdeps/mips/mips64/n64/Implies: Likewise.
34666
34667 2015-02-10  Roland McGrath  <roland@hack.frob.com>
34668
34669         * math/test-snan.c: Drop unnecessary #include's of <stdlib.h>,
34670         <sys/time.h>, <string.h>, and <errno.h>.
34671         (dest_offset, dest_address, value, zero): Remove unused variables.
34672         (ldouble): Remove typedef.
34673         (myFPsighandler): Use simple handler signature, not SA_SIGINFO
34674         signature.  Pass 1 to siglongjmp rather than 0 (which is converted to
34675         1).  Fix code style.
34676         (set_sigaction_FP, remove_sigaction_FP): Functions removed.
34677         (check): Function removed.
34678         (CHECK): New macro.
34679         (TEST_FUNC): Fix code style.  Use CHECK macro rather than repeating
34680         boilerplate feclearexcept + feenableexcept + sigsetjmp code.
34681         Don't call set_sigaction_FP and remove_sigaction_FP here.
34682         (ldouble_test): Just use 'long double' as macro argument, no need for
34683         the 'ldouble' typedef.
34684         (do_test): Set up SIGFPE handler at start, using plain signal rather
34685         than sigaction.  Fix code style.
34686
34687 2015-02-10  Evangelos Foutras  <evangelos@foutrelis.com>
34688
34689         [BZ #17949]
34690         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Fix position of
34691         jump label.
34692
34693 2015-02-09  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
34694
34695         * sysdeps/powerpc/powerpc32/configure.ac: Remove R_PPC_REL16 check.
34696         * sysdeps/powerpc/powerpc32/configure: Regenerated.
34697
34698         * sysdeps/powerpc/configure.ac: Remove file.
34699         * sysdeps/powerpc/configure: Likewise.
34700
34701         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
34702         [sysdep_routines]: Remove wordcopy-power6 object.
34703         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
34704         (__memmove_power7): Use local call for wordcopy and memcpy symbols.
34705         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c
34706         (__memmove_ppc32): Likewise.
34707         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: Remove
34708         file.
34709         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Remove file.
34710         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c [IS_IN (libc)]:
34711         Remove preprocessor.
34712
34713         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
34714         [sysdep_routines]: Remove wide chars objects.
34715         [wcsmbs]: New rule for wide char objects.
34716
34717         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
34718         Remove wordcopy-power6 obejct.
34719         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c (__memmove_ppc):
34720         Use local call for wordcopy and memcpy symbols.
34721         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: Remove file.
34722         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: Add default
34723         implementation for loader.
34724         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Remove file.
34725
34726         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
34727         Remove wordcopy-power7 object.
34728         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: Remove file.
34729         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c
34730         (_wordcopy_fwd_aligned): Remove POWER7 specialization.
34731         (_wordcopy_fwd_dest_aligned): Likewise.
34732         (_wordcopy_bwd_aligned): Likewise.
34733         (_wordcopy_bwd_dest_aligned): Likewise.
34734
34735         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c (__bcopy_ppc):
34736         Rewrite to call __memmove_ppc instead of include default
34737         implementation.
34738
34739         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
34740         Remove wide chars objects.
34741         [wcsmbs]: New rule for wide char objects.
34742
34743 2015-02-09  Andreas Schwab  <schwab@suse.de>
34744
34745         [BZ #17912]
34746         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
34747         in terms of __O_DIRECTORY.
34748
34749 2015-02-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34750
34751         * time/getdate.c: Include <stdbool.h>.
34752         * sysdeps/gnu/unwind-resume.c [!PTR_MANGLE] (__libgcc_s_init): Do not
34753         call PTR_MANGLE.
34754         [!PTR_DEMANGLE] (_Unwind_Resume, __gcc_personality_v0): Do not call
34755         PTR_DEMANGLE.
34756
34757 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
34758
34759         Add ersatz _Static_assert on older C hosts
34760         * misc/sys/cdefs.h (_Static_assert): Define a substitute, if on a
34761         pre-C11 C platform that is not known to support _Static_assert.
34762
34763 2015-02-07  Richard Braun  <rbraun@sceen.net>
34764
34765         * hurd/hurd/signal.h (_hurd_critical_section_lock): Don't unlock
34766         sigstate.
34767         * sysdeps/mach/hurd/mmap.c (__mmap): Also handle PROT_NONE case.
34768
34769 2015-02-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34770
34771         * sysdeps/pthread/aio_misc.c [!AIO_PRIO_DELTA_MAX]: Do not check
34772         priority against unexistent AIO_PRIO_DELTA_MAX.
34773         * misc/chflags.c (chflags): Set flags parameter type to unsigned long
34774         instead of int.
34775         * misc/fchflags.c (fchflags): Likewise.
34776         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
34777         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
34778         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC] (UF_SETTABLE, UF_NODUMP,
34779         UF_IMMUTABLE, UF_APPEND, UF_OPAQUE, UF_NOUNLINK, SF_SETTABLE,
34780         SF_ARCHIVED, SF_IMMUTABLE, SF_APPEND, SF_NOUNLINK, SF_SNAPSHOT):
34781         Declare macros.
34782         [__USE_MISC] (chflags, fchflags): Declare functions.
34783         * hurd/hurdselect.c (_hurd_select): In the poll case, do not return
34784         EINVAL when nfds is greater than FD_SETSIZE.
34785         * hurd/hurd/resource.h (MACH_PRIORITY_TO_NICE,
34786         NICE_TO_MACH_PRIORITY): Align nice levels on Mach priorities from 5 to
34787         45.
34788         * hurd/hurdselect.c (_hurd_select): Pass MACH_RCV_INTERRUPT to
34789         __mach_msg.  If that returns MACH_RCV_INTERRUPTED, set ERR to EINTR.
34790         * hurd/hurdselect.c (_hurd_select): Remove unreachable check for
34791         MACH_RCV_TIMED_OUT.
34792         * hurd/hurd/signal.h (_hurd_self_sigstate,
34793         _hurd_critical_section_lock, _hurd_critical_section_unlock):
34794         Explicit casts from void *.
34795         * sysdeps/mach/hurd/tls.h: Include <stdint.h> and <sysdep.h>.
34796         * abi-tags: Rename gnu-gnu os into gnu.
34797
34798         [BZ #4719]
34799         * sysdeps/mach/hurd/bits/ioctls.h (_IOT__IOTBASE_long, _IOT_char,
34800         _IOT_short, _IOT_int, _IOT_long, _IOT__IOTBASE_int8_t,
34801         _IOT__IOTBASE_uint8_t, _IOT__IOTBASE_int16_t, _IOT__IOTBASE_uint16_t,
34802         _IOT__IOTBASE_int32_t, _IOT__IOTBASE_uint32_t, _IOT__IOTBASE_int64_t,
34803         _IOT__IOTBASE_uint64_t, _IOT__IOTBASE_size_t, _IOT__IOTBASE_ssize_t,
34804         _IOTBASE_unsigned, _IOTBASE_signed): Define macros.
34805
34806         [BZ #17944]
34807         * hurd/hurdsocket.h: New file, defines _hurd_sun_path_dupa which
34808         duplicates ADDR->sun_path with sockaddr LEN limitation.
34809         * sysdeps/mach/hurd/connect.c: Include <string.h>
34810         (__connect): Give result of _hurd_sun_path_dupa to name lookup.
34811         * sysdeps/mach/hurd/sendmsg.c: Likewise.
34812         * sysdeps/mach/hurd/sendto.c: Likewise.
34813         * sysdeps/mach/hurd/bind.c: Call _hurd_sun_path_dupa instead of
34814         implementing it by hand.
34815
34816 2015-02-06  Roland McGrath  <roland@hack.frob.com>
34817
34818         * sysdeps/arm/sysdep.h [!PROF] [ARCH_HAS_T2 && !PIC] (LDR_GLOBAL):
34819         Use sfi_breg on ldr.
34820         [!PROF] [ARCH_HAS_T2 && PIC && ARM_PCREL_MOVW_OK] (LDR_GLOBAL):
34821         Likewise.
34822
34823         * nptl/tst-cancel25.c (tf2): Test for SIGCANCEL being blocked only if
34824         it's defined.
34825         * nptl/tst-signal7.c (do_test): Test SIGCANCEL only if it's defined.
34826         Test SIGSETXID only if it's defined.
34827
34828         * nptl/tst-locale1.c (useless): Use SIGRTMIN only if it's defined.
34829
34830         * rt/tst-timer2.c (do_test): Don't initialize SIGEV.sigev_signo, which
34831         will not be used.  Use NULL rather than 0 for .sigev_notify_attributes.
34832
34833         * nptl/tst-align2.c: Moved ...
34834         * sysdeps/unix/sysv/linux/tst-align-clone.c: ... here.
34835         * nptl/Makefile (tests): Remove tst-align2.
34836         * sysdeps/unix/sysv/linux/Makefile
34837         [$(subdir) = nptl] (tests): Add tst-align-clone.
34838         * nptl/tst-getpid1.c: Moved ...
34839         * sysdeps/unix/sysv/linux/tst-getpid1.c: ... here.
34840         * nptl/tst-getpid2.c: Moved ...
34841         * sysdeps/unix/sysv/linux/tst-getpid2.c: ... here.
34842         * nptl/Makefile (tests): Move tst-getpid1 and tst-getpid2 ...
34843         * sysdeps/unix/sysv/linux/Makefile
34844         [$(subdir) = nptl] (tests): ... here.
34845         * nptl/Makefile (tst-getpid2-ENV): Move variable ...
34846         * sysdeps/unix/sysv/linux/Makefile
34847         [$(subdir) = nptl] (tst-getpid2-ENV): ... here.
34848
34849         * nptl/tst-cleanup2.c (do_test): Use signal rather than sigaction.
34850         Drop trailing \n from perror argument.  Use return rather than exit.
34851
34852         * nptl/tst-cancel20.c (do_test): Conditionalize SA_SIGINFO-using tests
34853         on [SA_SIGINFO].
34854         * nptl/tst-cancel21.c (do_test): Likewise.
34855         * debug/tst-backtrace6.c: Include <signal.h> first thing.
34856         Conditionalize inclusion of tst-backtrace5.c on [SA_SIGINFO].
34857         [!SA_SIGINFO]: Make it a stub test.
34858
34859         * misc/tst-pselect.c (do_test): Don't set SA_NOCLDWAIT in sa_flags for
34860         SIGCHLD; it's redundant with SIG_IGN as sa_handler.
34861
34862         * posix/tst-getlogin.c: Move to ...
34863         * login/tst-getlogin.c: ... here.
34864         * posix/Makefile (tests): Move tst-getlogin to ...
34865         * login/Makefile (tests): ... here.
34866
34867         * libio/tst-atime.c (do_test): Move local variables SV and E
34868         inside [ST_NOATIME] conditional.
34869
34870         * dirent/tst-fdopendir.c (O_NOATIME): If not defined, #define to 0.
34871
34872         * nptl/tst-kill5.c (do_test): Use INT_MAX rather than SIGRTMAX + 10.
34873
34874         * nptl/tst-join5.c: Drop #include <sys/syscall.h>.
34875         (wait_code): New function replaces macro.
34876         Call nanosleep rather than syscall.
34877
34878         * nptl/pt-system.c: Rewritten.  Put everything under
34879         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
34880         Use IFUNC to redirect when possible.
34881
34882         * nptl/pt-longjmp.c: Rewritten.  Put everything under
34883         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
34884         Use IFUNC to redirect when possible.
34885
34886         * nptl/pt-fork.c: Rewritten.  Put everything under
34887         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
34888         Use IFUNC to redirect when possible.
34889         * nptl/Versions (libpthread: GLIBC_2.22): New (empty) version set.
34890
34891         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove all
34892         code under [!__ASSUME_FUTEX_CLOCK_REALTIME], since that is defined
34893         unconditionally nowadays.  This included the only reference to
34894         __vdso_clock_gettime that appears outside libc proper.
34895         * sysdeps/unix/sysv/linux/x86_64/Versions (libc: GLIBC_PRIVATE):
34896         Remove version set (containing only __vdso_clock_gettime).
34897         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
34898         Add attribute_hidden.
34899         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
34900         Likewise.  Drop __attribute__ ((nocommon)), libc_hidden_proto, and
34901         libc_hidden_data_def.
34902         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
34903         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
34904
34905         * inet/Versions (libc: GLIBC_2.0): Move getrpcbyname, getrpcbyname_r,
34906         getrpcbynumber, getrpcbynumber_r, getrpcent, getrpcent_r, endrpcent,
34907         setrpcent, and getrpcport to ...
34908         * sunrpc/Versions (libc: GLIBC_2.0): ... here.
34909         * inet/Versions (libc: GLIBC_2.1.2): Move getrpcbyname_r,
34910         getrpcbynumber_r, and getrpcent_r to ...
34911         * sunrpc/Versions (libc: GLIBC_2.1.2): ... this new set.
34912         * inet/getrpcbyname.c: Moved ...
34913         * sunrpc/getrpcbyname.c: ... here.
34914         * inet/getrpcbyname_r.c: Moved ...
34915         * sunrpc/getrpcbyname_r.c: ... here.
34916         * inet/getrpcbynumber.c: Moved ...
34917         * sunrpc/getrpcbynumber.c: ... here.
34918         * inet/getrpcbynumber_r.c: Moved ...
34919         * sunrpc/getrpcbynumber_r.c: ... here.
34920         * inet/getrpcent.c: Moved ...
34921         * sunrpc/getrpcent.c: ... here.
34922         * inet/getrpcent_r.c: Moved ...
34923         * sunrpc/getrpcent_r.c: ... here.
34924         * inet/Makefile (routines): Move those to ...
34925         * sunrpc/Makefile (routines): ... here.
34926         * nss/Makefile (databases): Add key and rpc only if sunrpc appears in
34927         the $(subdirs) list.
34928         (CPPFLAGS-getent.c): New variable.  Pass -D option to set HAVE_SUNRPC
34929         to 0 or 1, indicating whether sunrpc appears in the $(subdirs) list.
34930         * nss/getent.c (print_rpc, rpc_keys): Conditionalize on [HAVE_SUNRPC].
34931         (databases): Conditionalize rpc entry on [HAVE_SUNRPC].
34932
34933         * elf/Makefile (routines): Include $(all-dl-routines), not just
34934         $(dl-routines).
34935         (rtld-routines): Likewise.  Use = rather than :=.
34936         * sysdeps/aarch64/Makefile [$(subdir) = elf]
34937         (sysdep_routines, sysdep-rtld-routines): Don't add tlsdesc and
34938         dl-tlsdesc to these; sysdep-dl-routines alone is enough.
34939         * sysdeps/arm/Makefile: Likewise.
34940         * sysdeps/i386/Makefile: Likewise.
34941         * sysdeps/x86_64/Makefile: Likewise.
34942         * sysdeps/hppa/Makefile [$(subdir) = elf]
34943         (sysdep_routines, sysdep-rtld-routines): Don't add
34944         $(sysdep-dl-routines) to these.
34945         * sysdeps/ia64/Makefile: Likewise.
34946         * sysdeps/unix/sysv/linux/ia64/Makefile: Likewise.
34947         * sysdeps/unix/sysv/linux/aarch64/Makefile [$(subdir) = elf]
34948         [$(build-shared) = yes] (sysdep_routines, sysdep-rtld-routines):
34949         Don't add dl-static to these; sysdep-dl-routines alone is enough.
34950         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
34951         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
34952         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
34953         * sysdeps/unix/sysv/linux/tile/Makefile: Likewise.
34954         * sysdeps/powerpc/Makefile [$(subdir) = elf]
34955         (sysdep_routines, sysdep-rtld-routines): Don't add dl-machine to
34956         these; sysdep-dl-routines alone is enough.
34957
34958 2015-02-06  Joseph Myers  <joseph@codesourcery.com>
34959
34960         [BZ #17932]
34961         * soft-fp/op-common.h (_FP_FMA): Set exponent of result in case
34962         where multiplication results in zero and third argument is finite
34963         and nonzero.
34964         * math/auto-libm-test-in: Add more tests of fma.
34965         * math/auto-libm-test-out: Regenerated.
34966
34967         * soft-fp/op-common.h (_FP_CMP_CHECK_DENORM): New macro.
34968         (_FP_CMP_CHECK_FLUSH_ZERO): Likewise.
34969         (_FP_CMP): Use_FP_CMP_CHECK_DENORM and _FP_CMP_CHECK_FLUSH_ZERO.
34970         (_FP_CMP_EQ): Likewise.
34971         (_FP_CMP_UNORD): Use _FP_CMP_CHECK_DENORM.
34972
34973         * soft-fp/op-common.h (FP_EXTEND): Rename to _FP_EXTEND_CNAN with
34974         extra argument CHECK_NAN.  Redefine as wrapper around
34975         _FP_EXTEND_CNAN.
34976
34977 2015-02-06  Carlos O'Donell  <carlos@systemhalted.org>
34978
34979         * version.h (RELEASE): Set to "stable".
34980         (VERSION): Set to "2.21"
34981         * include/features.h (__GLIBC_MINOR__): Set to 21.
34982
34983         * sysdeps/unix/sysv/linux/hppa/pthread.h: Sync with pthread.h.
34984
34985 2015-02-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
34986             Paul Eggert  <eggert@cs.ucla.edu>
34987
34988         [BZ #16618]
34989         * stdio-common/tst-sscanf.c (main): Test for buffer overflow.
34990         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Compute needed
34991         size in bytes. Store needed elements in wpmax. Use needed size
34992         in bytes for extend_alloca.
34993
34994 2015-02-05  Carlos O'Donell  <carlos@systemhalted.org>
34995
34996         * manual/install.texi: Latest tested versions are GCC 4.9.2,
34997         binutls 2.25, and texinfo 5.2.
34998         * INSTALL: Regenerate.
34999         * sysdeps/nios2/configure: Regenerate.
35000         * sysdeps/unix/sysv/linux/nios2/configure: Regenerate.
35001         * manual/contrib.texi: Update.
35002         * po/be.po: Update.
35003         * po/bg.po: Update.
35004         * po/ca.po: Update.
35005         * po/cs.po: Update.
35006         * po/da.po: Update.
35007         * po/de.po: Update.
35008         * po/el.po: Update.
35009         * po/eo.po: Update.
35010         * po/es.po: Update.
35011         * po/fi.po: Update.
35012         * po/fr.po: Update.
35013         * po/gl.po: Update.
35014         * po/hr.po: Update.
35015         * po/hu.po: Update.
35016         * po/ia.po: Update.
35017         * po/id.po: Update.
35018         * po/it.po: Update.
35019         * po/ja.po: Update.
35020         * po/ko.po: Update.
35021         * po/lt.po: Update.
35022         * po/nb.po: Update.
35023         * po/nl.po: Update.
35024         * po/pl.po: Update.
35025         * po/pt_BR.po: Update.
35026         * po/ru.po: Update.
35027         * po/rw.po: Update.
35028         * po/sk.po: Update.
35029         * po/sl.po: Update.
35030         * po/sv.po: Update.
35031         * po/tr.po: Update.
35032         * po/uk.po: Update.
35033         * po/vi.po: Update.
35034         * po/zh_CN.po: Update.
35035         * po/zh_TW.po: Update.
35036
35037         * sysdeps/hppa/Makefile (CFLAGS-dl-fptr.c): Add -Wno-error.
35038         * sysdeps/hppa/bits/setjmp.h: Union is named __jmp_buf_internal_tag.
35039         * sysdeps/hppa/dl-irel.h: Remove #warning.
35040         * sysdeps/hppa/entry.h: Provide prototype for
35041         __canonicalize_funcptr_for_compare and cast argument.
35042         * sysdeps/hppa/fpu/fegetexcept.c (fegetexcept): Add semicolon.
35043         * sysdeps/hppa/fpu/ftestexcept.c (fetestexcept): Likewise.
35044         * sysdeps/hppa/sotruss-lib.c: New file.
35045         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h
35046         (atomic_compare_and_exchange_val_acq): Use __typeof__.
35047         (atomic_compare_and_exchange_bool_acq): Likewise.
35048         * sysdeps/unix/sysv/linux/hppa/mmap.c: Use weak alias.
35049         * sysdeps/unix/sysv/linux/hppa/pthread.h: Include pthread.h.
35050
35051         * sysdeps/unix/sysv/linux/hppa/syscall.S: Delete file.
35052         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Move syscall from here...
35053         * sysdeps/unix/sysv/linux/hppa/syscall.c: ... to here.
35054
35055 2015-02-05  Chung-Lin Tang  <cltang@codesourcery.com>
35056
35057         * sysdeps/nios2/machine-gmon.h (NIOS2_MCOUNT_CALL): Correct name of
35058         called function in non-PIC case.
35059
35060 2015-01-31  David S. Miller  <davem@davemloft.net>
35061
35062         * sysdeps/sparc/sparc32/bits/atomic.h
35063         (__sparc32_atomic_do_unlock24): Put the memory barrier before the
35064         unlock not after it.
35065         (__v9_compare_and_exchange_val_32_acq): Use unions to avoid getting
35066         volatile register usage warnings from the compiler.
35067
35068         * sysdeps/sparc/nptl/sem_init.c: Delete.
35069         * sysdeps/sparc/nptl/sem_post.c: Delete.
35070         * sysdeps/sparc/nptl/sem_timedwait.c: Delete.
35071         * sysdeps/sparc/nptl/sem_wait.c: Delete.
35072         * sysdeps/sparc/sparc32/sem_init.c: New file.
35073         * sysdeps/sparc/sparc32/sem_waitcommon.c: New file.
35074         * sysdeps/sparc/sparc32/sem_open.c: Generic nptl version with
35075         padding explicitly initialized.
35076         * sysdeps/sparc/sparc32/sem_post.c: Generic nptl version using
35077         padding for in-semaphore spinlock.
35078         * sysdeps/sparc/sparc32/sem_wait.c: Likewise.
35079         * sysdeps/sparc/sparc32/sem_trywait.c: Delete.
35080         * sysdeps/sparc/sparc32/sem_timedwait.c: Delete.
35081         * sysdeps/sparc/sparc32/sparcv9/sem_init.c: New file.
35082         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: New file.
35083         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: New file.
35084         * sysdeps/sparc/sparc32/sparcv9/sem_waitcommon.c: New file.
35085         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Redirect to nptl
35086         version.
35087         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: Delete.
35088         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Delete.
35089
35090 2015-01-30  H.J. Lu  <hongjiu.lu@intel.com>
35091
35092         [BZ #17801]
35093         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
35094         Set the bit_AVX_Fast_Unaligned_Load bit for AVX2.
35095         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX_Fast_Unaligned_Load):
35096         New.
35097         (index_AVX_Fast_Unaligned_Load): Likewise.
35098         (HAS_AVX_FAST_UNALIGNED_LOAD): Likewise.
35099         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check the
35100         bit_AVX_Fast_Unaligned_Load bit instead of the bit_AVX_Usable bit.
35101         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Likewise.
35102         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
35103         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Likewise.
35104         * sysdeps/x86_64/multiarch/memmove.c (__libc_memmove): Replace
35105         HAS_AVX with HAS_AVX_FAST_UNALIGNED_LOAD.
35106         * sysdeps/x86_64/multiarch/memmove_chk.c (__memmove_chk): Likewise.
35107
35108 2015-01-29  Andreas Schwab  <schwab@suse.de>
35109
35110         * sysdeps/nptl/allocrtsig.c: Include <signal.h>.
35111
35112 2015-01-29  Siddhesh Poyarekar <siddhesh@redhat.com>
35113
35114         [BZ #17892]
35115         * nscd/nscd_stat.c (send_stats): Initialize DATA.
35116
35117 2015-01-28  Martin Sebor  <msebor@redhat.com>
35118
35119         * math/README.libm-test: Clarify. Add "How to read the test output."
35120
35121 2015-01-28  Chris Metcalf  <cmetcalf@ezchip.com>
35122
35123         * sysdeps/tile/tilegx/bits/atomic.h [!_LP64] (__HAVE_64B_ATOMICS):
35124         Define to 0.
35125
35126 2015-01-28  Joseph Myers  <joseph@codesourcery.com>
35127
35128         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIN32]
35129         (__HAVE_64B_ATOMICS): Define to 0.
35130
35131 2015-01-28  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
35132
35133         [BZ #17885]
35134         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Fix correct
35135         value to set as new flag.
35136
35137         [BZ #16576]
35138         * sysdeps/powerpc/fpu/math_private.h [__CPU_HAS_FSQRT]: Remove define
35139         and use _ARCH_PPCSQ instead.
35140         (__ieee754_sqrt): Likewise.
35141         (__ieee754_sqrtf): Likewise.
35142         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Build only if
35143         _ARCH_PPCSQ is defined.
35144         (__ieee754_sqrt): Use _ARCH_PPCSQ to select wheter to use hardware
35145         fsqrt instruction.
35146         * sysdeps/powerpc/fpu/e_sqrtf.c (__ieee754_sqrtf): Build only if
35147         _ARCH_PPCSQ is defined.
35148         (__ieee754_sqrtf): Use _ARCH_PPCSQ to select wheter to use hardware
35149         fsqrts instruction.
35150         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Remove file.
35151
35152 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35153
35154         * iconv/loop.c: Suppress array out of bound warning caused by GCC
35155         bug (GCC BZ #64739).
35156
35157 2015-01-25  Andreas Schwab  <schwab@linux-m68k.org>
35158
35159         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
35160         Mark _retval as used.
35161         (lll_futex_wake_unlock): Likewise.
35162         (lll_futex_timed_wait_requeue_pi): Likewise.
35163
35164         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
35165         (atomic_compare_and_exchange_val_acq): Use uint32_t for the
35166         register variables.
35167
35168         * sysdeps/m68k/m680x0/fpu/fraiseexcpt.c (__feraiseexcept): Use
35169         libm_hidden_def.
35170
35171         * sysdeps/m68k/bits/byteswap.h (__bswap_16, __bswap_32)
35172         (__bswap_64): Mark as __always_inline.
35173
35174 2015-01-25  Bram  <bug_rh@spam.wizbit.be>
35175
35176         [BZ #15378]
35177         * elf/dl-load.c (open_path): Avoid writing to 'env_path_list'
35178         when none of the search directories exist.
35179
35180 2015-01-24  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
35181
35182         [BZ #17869]
35183         * sysdeps/powerpc/powerpc64/power8/memset.S: Use power7 instead of
35184         power8 in .machine directive.
35185
35186         [BZ #17868]
35187         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Force value
35188         set dependency from opd value.
35189
35190 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
35191
35192         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
35193         Treat model numbers 0x4a/0x4d/0x5a/0x5d as Intel Silvermont
35194         architecture.
35195
35196 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
35197
35198         [BZ #17870]
35199         * nptl/sem_post.c (__new_sem_post): Replace unsigned long int
35200         with uint64_t.
35201         * nptl/sem_waitcommon.c (__sem_wait_cleanup): Replace 1UL with
35202         (uint64_t) 1.
35203         (__new_sem_wait_fast): Replace unsigned long with uint64_t.
35204         (__new_sem_wait_slow): Replace unsigned long int with uint64_t.
35205         Replace 1UL with (uint64_t) 1.
35206         * sysdeps/nptl/internaltypes.h (new_sem): Replace unsigned long
35207         int with uint64_t.
35208
35209 2015-01-23  Roland McGrath  <roland@hack.frob.com>
35210
35211         * inet/if_index.c (if_nameindex): Add missing libc_hidden_weak.
35212         (if_freenameindex): Likewise.
35213
35214         * resource/getrlimit64.c: Add missing libc_hidden_def.
35215
35216 2015-01-22  Joseph Myers  <joseph@codesourcery.com>
35217
35218         * soft-fp/op-common.h (_FP_ADD_INTERNAL): Declare labels with
35219         __label__.
35220         (_FP_FMA): Likewise.
35221         (_FP_TO_INT_ROUND): Likewise.
35222         (_FP_FROM_INT): Likewise.
35223
35224 2015-01-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35225
35226         [BZ #16418]
35227         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
35228         Make code racy and cancel safe.
35229
35230 2015-01-21  Carlos O'Donell  <carlos@redhat.com>
35231
35232         * sysdeps/arm/unwind-resume.h: Fix copyright year.
35233         * dlfcn/tst-rec-dlopen.c: Fix incorrect copyright year and
35234         attribution.
35235
35236         * pwd/tst-getpw.c: Rewrite.
35237
35238         [BZ #17702]
35239         * dlfcn/Makefile (tests): Add tst-rec-dlopen.
35240         (modules-names): Add moddummy1 and moddummy2.
35241         ($(objpfx)tst-rec-dlopen): Define.
35242         * dlfcn/moddummy1.c: New file.
35243         * dlfcn/moddummy2.c: New file.
35244         * dlfcn/tst-rec-dlopen.c: New file.
35245         * elf/dl-cache.c (_dl_load_cache_lookup):
35246         Return char*. Copy result with alloca/strcpy/strdup.
35247         * elf/dl-load.c (_dl_map_object): _dl_load_cached_lookup
35248         returns char*. Free cached. If not saving realname
35249         free cached.
35250         * elf/dl-open.c (dl_open_worker): Do not assert that
35251         _r_debug->r_state is RT_CONSISTENT.
35252         * sysdeps/generic/ldsodefs.h: _dl_load_cache_lookup
35253         returns char*.
35254
35255 2015-01-21  Torvald Riegel  <triegel@redhat.com>
35256             Carlos O'Donell  <carlos@redhat.com>
35257
35258         [BZ #12674]
35259         * nptl/sem_waitcommon.c: New file.
35260         * nptl/sem_wait.c: Include sem_waitcommon.c.
35261         (__sem_wait_cleanup, do_futex_wait): Remove.
35262         (__new_sem_wait): Adapt.
35263         (__new_sem_trywait): New function.
35264         (__old_sem_trywait): Moved here from nptl/sem_trywait.c.
35265         * nptl/sem_timedwait.c: Include sem_waitcommon.c.
35266         (__sem_wait_cleanup, do_futex_timed_wait): Remove.
35267         (sem_timedwait): Adapt.
35268         * nptl/sem_post.c (__new_sem_post): Adapt.
35269         (futex_wake): New function.
35270         (__old_sem_post): Add release MO fence.
35271         * nptl/sem_open.c (sem_open): Adapt.
35272         * nptl/sem_init.c (__new_sem_init): Adapt.
35273         (futex_private_if_supported): New function.
35274         * nptl/sem_getvalue.c (__new_sem_getvalue): Adapt.
35275         (__old_sem_getvalue): Add using previous code.
35276         * sysdeps/nptl/internaltypes.h: Adapt.
35277         * nptl/tst-sem13.c (do_test): Adapt.
35278         * nptl/tst-sem11.c (main): Adapt.
35279         * nptl/sem_trywait.c: Remove.
35280         * nptl/DESIGN-sem.txt: Remove.
35281         * nptl/Makefile (libpthread-routines): Remove sem_trywait.
35282         (gen-as-const-headers): Remove structsem.sym.
35283         * nptl/structsem.sym: Remove.
35284         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Remove.
35285         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Remove.
35286         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Remove.
35287         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove.
35288         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Remove.
35289         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Remove.
35290         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Remove.
35291         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Remove.
35292         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Remove.
35293         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Remove.
35294         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Remove.
35295         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Remove.
35296         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Remove.
35297         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Remove.
35298         * sysdeps/unix/sysv/linux/sh/sem_post.S: Remove.
35299         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Remove.
35300         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove.
35301         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove.
35302         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove.
35303         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Remove.
35304         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove.
35305         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove.
35306
35307 2015-01-20  Carlos O'Donell  <carlos@redhat.com>
35308
35309         * INSTALL: Regenerated.
35310
35311         * po/libc.pot: Regenerated.
35312
35313 2015-01-18  Chung-Lin Tang  <cltang@codesourcery.com>
35314             Sandra Loosemore  <sandra@codesourcery.com>
35315             Andrew Jenner  <andrew@codesourcery.com>
35316             Joseph Myers  <joseph@codesourcery.com>
35317             Nathan Sidwell  <nathan@codesourcery.com>
35318
35319         * NEWS: Mention new Nios II port.
35320         * sysdeps/nios2/Implies: New file.
35321         * sysdeps/nios2/Makefile: New file.
35322         * sysdeps/nios2/Subdirs: New file.
35323         * sysdeps/nios2/Versions: New file.
35324         * sysdeps/nios2/__longjmp.S: New file.
35325         * sysdeps/nios2/abort-instr.h: New file.
35326         * sysdeps/nios2/backtrace.c: New file.
35327         * sysdeps/nios2/bits/endian.h: New file.
35328         * sysdeps/nios2/bits/fenv.h: New file.
35329         * sysdeps/nios2/bits/link.h: New file.
35330         * sysdeps/nios2/bits/setjmp.h: New file.
35331         * sysdeps/nios2/bsd-_setjmp.S: New file.
35332         * sysdeps/nios2/bsd-setjmp.S: New file.
35333         * sysdeps/nios2/configure: New generated file.
35334         * sysdeps/nios2/configure.ac: New file.
35335         * sysdeps/nios2/crti.S: New file.
35336         * sysdeps/nios2/crtn.S: New file.
35337         * sysdeps/nios2/dl-init.c: New file.
35338         * sysdeps/nios2/dl-machine.h: New file.
35339         * sysdeps/nios2/dl-sysdep.h: New file.
35340         * sysdeps/nios2/dl-tls.h: New file.
35341         * sysdeps/nios2/dl-trampoline.S: New file.
35342         * sysdeps/nios2/gccframe.h: New file.
35343         * sysdeps/nios2/gmp-mparam.h: New file.
35344         * sysdeps/nios2/jmpbuf-offsets.h: New file.
35345         * sysdeps/nios2/jmpbuf-unwind.h: New file.
35346         * sysdeps/nios2/ldsodefs.h: New file.
35347         * sysdeps/nios2/libc-tls.c: New file.
35348         * sysdeps/nios2/libm-test-ulps: New file.
35349         * sysdeps/nios2/machine-gmon.h: New file.
35350         * sysdeps/nios2/math-tests.h: New file.
35351         * sysdeps/nios2/math_private.h: New file.
35352         * sysdeps/nios2/memusage.h: New file.
35353         * sysdeps/nios2/nptl/Makefile: New file.
35354         * sysdeps/nios2/nptl/bits/pthreadtypes.h: New file.
35355         * sysdeps/nios2/nptl/bits/semaphore.h: New file.
35356         * sysdeps/nios2/nptl/pthread_spin_lock.c: New file.
35357         * sysdeps/nios2/nptl/pthreaddef.h: New file.
35358         * sysdeps/nios2/nptl/tcb-offsets.sym: New file.
35359         * sysdeps/nios2/nptl/tls.h: New file.
35360         * sysdeps/nios2/preconfigure: New file.
35361         * sysdeps/nios2/s_fma.c: New file.
35362         * sysdeps/nios2/s_fmaf.c: New file.
35363         * sysdeps/nios2/setjmp.S: New file.
35364         * sysdeps/nios2/sfp-machine.h: New file.
35365         * sysdeps/nios2/sotruss-lib.c: New file.
35366         * sysdeps/nios2/stackguard-macros.h: New file.
35367         * sysdeps/nios2/stackinfo.h: New file.
35368         * sysdeps/nios2/start.S: New file.
35369         * sysdeps/nios2/sysdep.h: New file.
35370         * sysdeps/nios2/tls-macros.h: New file.
35371         * sysdeps/nios2/tst-audit.h: New file.
35372         * sysdeps/unix/sysv/linux/nios2/Implies: New file.
35373         * sysdeps/unix/sysv/linux/nios2/Makefile: New file.
35374         * sysdeps/unix/sysv/linux/nios2/Versions: New file.
35375         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: New file.
35376         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: New file.
35377         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: New file.
35378         * sysdeps/unix/sysv/linux/nios2/cacheflush.c: New file.
35379         * sysdeps/unix/sysv/linux/nios2/clone.S: New file.
35380         * sysdeps/unix/sysv/linux/nios2/configure: New generated file.
35381         * sysdeps/unix/sysv/linux/nios2/configure.ac: New file.
35382         * sysdeps/unix/sysv/linux/nios2/getcontext.S: New file.
35383         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: New file.
35384         * sysdeps/unix/sysv/linux/nios2/kernel_rt_sigframe.h: New file.
35385         * sysdeps/unix/sysv/linux/nios2/makecontext.c: New file.
35386         * sysdeps/unix/sysv/linux/nios2/profil-counter.h: New file.
35387         * sysdeps/unix/sysv/linux/nios2/setcontext.S: New file.
35388         * sysdeps/unix/sysv/linux/nios2/shlib-versions: New file.
35389         * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: New file.
35390         * sysdeps/unix/sysv/linux/nios2/swapcontext.S: New file.
35391         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: New file.
35392         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: New file.
35393         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: New file.
35394         * sysdeps/unix/sysv/linux/nios2/sys/user.h: New file.
35395         * sysdeps/unix/sysv/linux/nios2/syscall.S: New file.
35396         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: New file.
35397         * sysdeps/unix/sysv/linux/nios2/sysdep.S: New file.
35398         * sysdeps/unix/sysv/linux/nios2/sysdep.h: New file.
35399         * sysdeps/unix/sysv/linux/nios2/ucontext_i.sym: New file.
35400         * sysdeps/unix/sysv/linux/nios2/vfork.S: New file.
35401         * sysdeps/unix/sysv/linux/nios2/c++-types.data: New file.
35402         * sysdeps/unix/sysv/linux/nios2/ld.abilist: New file.
35403         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: New file.
35404         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: New file.
35405         * sysdeps/unix/sysv/linux/nios2/libc.abilist: New file.
35406         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: New file.
35407         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: New file.
35408         * sysdeps/unix/sysv/linux/nios2/libm.abilist: New file.
35409         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: New file.
35410         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: New file.
35411         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: New file.
35412         * sysdeps/unix/sysv/linux/nios2/librt.abilist: New file.
35413         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: New file.
35414         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: New file.
35415         * sysdeps/unix/sysv/linux/nios2/localplt.data: New file.
35416
35417 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
35418
35419         [BZ #17844]
35420         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c
35421         (getutent): Use weak_alias in non SHARED case
35422         and default_symbol_version in SHARED case.
35423         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c
35424         (getutent_r, pututline): Likewise.
35425         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c
35426         (getutid): Likewise.
35427         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c
35428         (getutid_r): Likewise.
35429         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c
35430         (getutline): Likewise.
35431         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c
35432         (getutline_r): Likewise.
35433         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
35434         (updwtmp): Likewise.
35435
35436 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
35437
35438         [BZ #17848]
35439         * sysdeps/s390/s390-32/memcmp.S
35440         (memcmp_g5): Rename to __memcmp_g5.
35441         * sysdeps/s390/s390-32/memcpy.S
35442         (memcpy_g5): Rename to __memcpy_g5.
35443         Jump to __memcpy_mvcle instead of memcpy_mvcle.
35444         (memcpy_mvcle) Rename to __memcpy_mvcle.
35445         * sysdeps/s390/s390-32/memset.S
35446         (memset_g5): Rename to __memset_g5.
35447         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
35448         (IFUNC_RESOLVE): Prefix ifunc-resolve function
35449         and use prefixed functions.
35450         * sysdeps/s390/s390-32/multiarch/memcmp.S
35451         (memcmp_z196): Rename to __memcmp_z196.
35452         (memcmp_z10): Rename to __memcmp_z10.
35453         (memcmp): Set alias to __memcmp_g5.
35454         (bcmp): Set alias to __memcmp_g5.
35455         * sysdeps/s390/s390-32/multiarch/memcpy.S
35456         (memcpy_z196): Rename to __memcpy_z196.
35457         Jump to __memcpy_mvcle instead of memcpy_mvcle.
35458         (memcpy_z10): Rename to __memcpy_z10.
35459         Jump to __memcpy_mvcle instead of memcpy_mvcle.
35460         (memcpy): Set alias to __memcpy_g5.
35461         * sysdeps/s390/s390-32/multiarch/memset.S
35462         (memset_z196): Rename to __memset_z196.
35463         Jump to __memset_mvcle instead of memset_mvcle.
35464         (memset_z10): Rename to __memset_z10.
35465         Jump to __memset_mvcle instead of memset_mvcle.
35466         (memset_mvcle) Rename to __memset_mvcle.
35467         (memset): Set alias to __memset_g5.
35468         * sysdeps/s390/s390-64/memcmp.S
35469         (memcmp_z900): Rename to __memcmp_z900.
35470         * sysdeps/s390/s390-64/memcpy.S
35471         (memcpy_z900): Rename to __memcpy_z900.
35472         Jump to __memcpy_mvcle instead of memcpy_mvcle.
35473         (memcpy_mvcle) Rename to __memcpy_mvcle.
35474         * sysdeps/s390/s390-64/memset.S
35475         (memset_z900): Rename to __memset_z900.
35476         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
35477         (IFUNC_RESOLVE): Prefix ifunc-resolve function
35478         and use prefixed functions.
35479         * sysdeps/s390/s390-64/multiarch/memcmp.S
35480         (memcmp_z196): Rename to __memcmp_z196.
35481         (memcmp_z10): Rename to __memcmp_z10.
35482         (memcmp): Set alias to __memcmp_z900.
35483         (bcmp): Set alias to __memcmp_z900.
35484         * sysdeps/s390/s390-64/multiarch/memcpy.S
35485         (memcpy_z196): Rename to __memcpy_z196.
35486         Jump to __memcpy_mvcle instead of memcpy_mvcle.
35487         (memcpy_z10): Rename to __memcpy_z10.
35488         Jump to __memcpy_mvcle instead of memcpy_mvcle.
35489         (memcpy): Set alias to __memcpy_z900.
35490         * sysdeps/s390/s390-64/multiarch/memset.S
35491         (memset_z196): Rename to __memset_z196.
35492         Jump to __memset_mvcle instead of memset_mvcle.
35493         (memset_z10): Rename to __memset_z10.
35494         Jump to __memset_mvcle instead of memset_mvcle.
35495         (memset_mvcle) Rename to __memset_mvcle.
35496         (memset): Set alias to __memset_z900.
35497
35498 2015-01-14  Joseph Myers  <joseph@codesourcery.com>
35499
35500         [BZ #17748]
35501         * sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call
35502         __fesetenv instead of fesetenv.
35503
35504 2015-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
35505
35506         * sysdeps/s390/dl-tls.h [IS_IN (rtld)]: Define __tls_get_addr
35507         macro.
35508
35509 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35510
35511         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Fix performance
35512         regression on LE.
35513
35514         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: New file.
35515         * sysdeps/powerpc/powerpc64/power8/strncmp.S: New file.
35516         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
35517         strncmp-power8 object.
35518         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
35519         (__libc_ifunc_impl_list): Add __strncmp_power8 implementation.
35520         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c (strncmp): Likewise.
35521         * NEWS: Update.
35522
35523 2015-01-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
35524             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35525
35526         * sysdeps/powerpc/powerpc64/power7/strcmp.S (strcmp): Optimize
35527         trailing byte check.
35528
35529 2015-01-13  David S. Miller  <davem@davemloft.net>
35530
35531         * include/signal.h (__sigreturn): Guard with __USE_MISC.
35532
35533 2015-01-13  Roland McGrath  <roland@hack.frob.com>
35534
35535         * login/logout.c (logout): Use memset rather than bzero.
35536         * nis/nss_compat/compat-pwd.c (getpwent_next_file): Likewise.
35537         * nis/nss_compat/compat-spwd.c (getspent_next_file): Likewise.
35538         * resolv/gethnamaddr.c (gethostbyaddr): Use memcmp rather than bcmp.
35539         (_gethtbyaddr): Likewise.
35540         * locale/programs/simple-hash.c (bcopy): Macro removed.
35541
35542 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35543
35544         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
35545         Add strcmp-power8 object.
35546         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
35547         (__libc_ifunc_impl_list): Add __strcmp_power8 implementation.
35548         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: New file.
35549         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c (strcmp): Add
35550         __strcmp_power8 implementation.
35551         * sysdeps/powerpc/powerpc64/power8/strcmp.S: New file.
35552         * NEWS: Update.
35553
35554         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
35555         Add strncpy-power8 and stpncpy-power8 objects.
35556         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
35557         (__libc_ifunc_impl_list): Add __strncpy_power8 and stpncpy_power8
35558         implementations.
35559         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: New file.
35560         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c (__stpncpy): Add
35561         __stpncpy_power8 implementation.
35562         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: New file.
35563         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c (strncpy): Add
35564         __strncpy_power8 implementation.
35565         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: New file.
35566         * sysdeps/powerpc/powerpc64/power8/strncpy.S: New file.
35567         * NEWS: Update.
35568
35569         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.c: New file.
35570         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: Remove file.
35571         * sysdeps/powerpc/powerpc64/power7/strncat.S: Likewise.
35572
35573         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
35574         strncat-power8 object.
35575         * sysdeps/powerpc/powerpc64/multiarch/strcat.c (strcat): Add
35576         __strcat_power8 implementation.
35577         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
35578         (__libc_ifunc_impl_list): Add __strcat_power8 implementation.
35579         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: New file:
35580         optimized strcat for power8.
35581
35582         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
35583         strcpy-power8 and stpcpy-power8 objects.
35584         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
35585         (__libc_ifunc_impl_list): Add __strcpy_power8 and __stpcpy_power8
35586         implementations.
35587         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: New file:
35588         multiarch stpcpy implementation for POWER8.
35589         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: New file;
35590         multiarch strcpy implementation for POWER8.
35591         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c (strcpy): Add
35592         __strcpy_power8 function.
35593         * sysdeps/powerpc/powerpc64/power8/stpcpy.S: New file: optimized
35594         stpcpy for POWER8.
35595         * sysdeps/powerpc/powerpc64/power8/strcpy.S: New file: optimized
35596         strcpy for POWER8.
35597         * NEWS: Update.
35598
35599 2015-01-13  Leonhard Holz  <leonhard.holz@web.de>
35600
35601         [BZ #16009]
35602         * string/strxfrm_l.c (STRXFRM): Allocate fixed size cache for
35603         weights and rules. Use do_xfrm_cached if data fits in cache,
35604         do_xfrm otherwise.  Moved former main loop to...
35605         * (do_xfrm_cached): New function.
35606         * (do_xfrm): Non-caching version of do_xfrm_cached. Uses
35607         find_idx, find_position and stack_push.
35608         * (find_idx): New function.
35609         * (find_position): Likewise.
35610         * localedata/sort-test.sh: Added test run for do_xfrm.
35611         * localedata/xfrm-test.c (main): Added command line option
35612         -nocache to run the test with strings that are too large for
35613         the STRXFRM cache.
35614
35615 2015-01-13  Torvald Riegel  <triegel@redhat.com>
35616
35617         * sysdeps/nptl/fork.c (__libc_fork): Provide address of futex
35618         variable to lll_futex_wake call, not the value itself.
35619
35620 2015-01-12  Joseph Myers  <joseph@codesourcery.com>
35621
35622         [BZ #17803]
35623         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (twom63): Rename to
35624         twom64.  Adjust value to 0x1p-64L.
35625         (__scalblnl): Only return standard underflowing result for K <=
35626         -64 not K <= -63; adjust exponent for underflowing result by 64
35627         not 63.
35628         * math/libm-test.inc (scalbn_test_data): Add more tests.
35629         (scalbln_test_data): Likewise.
35630
35631         [BZ #17834]
35632         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (two63): Change value to
35633         0x1p63L.
35634         (__scalblnl): Get new exponent of adjusted subnormal value from ES
35635         not HX.
35636         * math/libm-test.inc (scalbn_test_data): Add more tests.
35637         (scalbln_test_data): Likewise.
35638
35639 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35640             Stefani Seibold  <stefani@seibold.net>
35641
35642         * sysdeps/unix/sysv/linux/x86_64/Makefile [$(subdir) = elf]
35643         (sysdep_routines): Add dl-vdso here, ...
35644         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = elf]
35645         (sysdep_routines): ... not here.
35646         * sysdeps/unix/sysv/linux/i386/gettimeofday.c: New file: set syscall
35647         fallback when vDSO is not presented.
35648         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
35649         Define with libc_hidden_proto/libc_hidden_data_def definitions.
35650         (_libc_vdso_platform_setup): Rename to __vdso_platform_setup.
35651         * sysdeps/unix/sysv/linux/i386/init-first.c: New file: likewise.
35652         * sysdeps/unix/sysv/linux/i386/time.c: New file: likewise.
35653         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Moved to ...
35654         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: ... here.
35655         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: Move to ...
35656         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: ... here.
35657         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Move to ...
35658         * sysdeps/unix/sysv/linux/x86/gettimeofday.c: ... here.  Also added
35659         fallback configurable symbol when vDSO is not available.
35660         * sysdeps/unix/sysv/linux/x86_64/time.c: Move to ...
35661         * sysdeps/unix/sysv/linux/x86/time.c: ... here.  Also refactored to
35662         be able to redefine fallback symbol when vDSO is not available.
35663         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: Move to ...
35664         * sysdeps/unix/sysv/linux/x86/timespec_get.c: ... here.
35665
35666 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35667
35668         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Add tm_capable field.
35669         (TLS_INIT_TP): Add tm_capable initialization.
35670         (TLS_DEFINE_INIT_TP): Likewise.
35671         (THREAD_GET_TM_CAPABLE): New file: get tm_capable field value from
35672         TCB.
35673         (THREAD_SET_TM_CAPABLE): New file: set tm_capable field value in TCB.
35674         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Add field offset
35675         calculation.
35676         * sysdeps/powerpc/powerpc32/sysdep.h (DO_CALL): Abort hardware
35677         transactoion is lock elision is built and TCB tm_capable is set.
35678         * sysdeps/powerpc/powerpc64/sysdep.h (DO_CALL): Likewise.
35679         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
35680         (INTERNAL_SYSCALL_NCS): Likewise.
35681         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
35682         (INTERNAL_SYSCALL_NCS): Likewise.
35683         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): New define.
35684
35685         * sysdeps/powerpc/nptl/elide.h: New file: generic lock elision support
35686         for powerpc.
35687         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
35688         [pthread_rwlock_t] (__pad1): Change size to 7 bytes in 64 bits case
35689         and remove it for 32 bits case.
35690         [pthread_rwlock_t] (__rwelision): New field for lock elision.
35691         (__PTHREAD_RWLOCK_ELISION_EXTRA): Adjust for new lock elision field
35692         initialization.
35693         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init):
35694         Disable lock elision with rdlocks if elision is not available.
35695
35696         * sysdeps/unix/sysv/linux/powerpc/Makefile [nptl]
35697         (sysdep_routines): Add lock elision objects.
35698         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
35699         [pthread_mutex_t] (__spins): Rework to add lock elision field.
35700         [pthread_mutex_t] (__elision): Add field.
35701         [__PTHREAD_SPINS]: Adjust to init lock elision field.
35702         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c: New file: lock
35703         elision definitions for powerpc.
35704         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: New file:
35705         implementation of lock elision for powerpc.
35706         * sysdeps/unix/sysv/linux/powerpc/elision-timed.c: New file:
35707         implementation of timed lock elision for powerpc.
35708         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: New file:
35709         implementation of trylock with lock elision for powerpc.
35710         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: New file:
35711         implementaion of unlock for lock elision for powerpc.
35712         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: New file:
35713         automatic enable lock elision for mutexes.
35714         * sysdeps/unix/sysv/linux/powerpc/htm.h: New file: hardware
35715         transaction execution definitions for powerpc.
35716         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file: add TLE
35717         definitions.
35718         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_cond_lock.c: New file.
35719         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_lock.c: Likewise.
35720         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_timedlock.c: Likewise.
35721         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_trylock.c: Likewise.
35722         * NEWS: Update.
35723
35724 2015-01-09  Roland McGrath  <roland@hack.frob.com>
35725
35726         * sysdeps/posix/shm-directory.c: Use <> rather than ""
35727         for #include of <shm-directory.h>.
35728
35729 2015-01-09  Chung-Lin Tang  <cltang@codesourcery.com>
35730
35731         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Remove MIN() and
35732         assign raw DT_REL[A]COUNT value to ranges[0].nrelative.
35733
35734 2015-01-09  Matthew Fortune <matthew.fortune@imgtec.com>
35735
35736         [BZ #17791]
35737         * NEWS: Mention bug fix.
35738         * sysdepsysdeps/unix/sysv/linux/microblaze/sys/user.h
35739         (PAGE_SHIFT, PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Remove.
35740         (HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Remove.
35741
35742 2015-01-09  Torvald Riegel <triegel@redhat.com>
35743
35744         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Delete file.
35745
35746 2015-01-09  Torvald Riegel <triegel@redhat.com>
35747
35748         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: Delete file.
35749
35750 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
35751
35752         * sysdeps/microblaze/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as void
35753         pointer and cast to uintptr_t.
35754
35755 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
35756
35757         * sysdeps/microblaze/nptl/tls.h (__microblaze_get_thread_area): Function
35758         removed.
35759         (READ_THREAD_POINTER): Use __microblaze_thread_area instead.
35760
35761 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
35762
35763         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Use NULL instead
35764         of 0.
35765
35766 2015-01-08  Roland McGrath  <roland@hack.frob.com>
35767
35768         * sysdeps/pthread/timer_routines.c: Fix <pthreadP.h> include to use
35769         <nptl/pthreadP.h> instead.
35770         * sysdeps/pthread/aio_notify.c: Include <signal.h> for raise decl.
35771
35772         * signal/allocrtsig.c (RESERVED_SIGRT): New macro, defined to 0 if not
35773         already defined.
35774         [__SIGRTMIN] (init): Function removed.
35775         [__SIGRTMIN] (initialized): Variable removed.
35776         [!__SIGRTMIN] (current_rtmin, current_rtmax): Variables removed.
35777         [__SIGRTMIN] (current_rtmin, current_rtmax): Initialize to
35778         __SIGRTMIN + RESERVED_SIGRT and __SIGRTMAX, respectively.
35779         (__libc_current_sigrtmin) [__SIGRTMIN]: Don't call init.
35780         (__libc_current_sigrtmin) [!__SIGRTMIN]: Just return -1.
35781         (__libc_current_sigrtmin): Add __libc_current_sigrtmin_private alias.
35782         (__libc_current_sigrtmax) [__SIGRTMIN]: Don't call init.
35783         (__libc_current_sigrtmax) [!__SIGRTMIN]: Just return -1.
35784         (__libc_current_sigrtmax): Add __libc_current_sigrtmax_private alias.
35785         (__libc_allocate_rtsig) [__SIGRTMIN]: Don't call init.
35786         (__libc_allocate_rtsig): Add __libc_allocate_rtsig_private alias.
35787         * sysdeps/nptl/allocrtsig.c: New file.
35788         * sysdeps/unix/sysv/linux/allocrtsig.c: File removed.
35789         * sysdeps/unix/sysv/linux/testrtsig.h: File removed.
35790         * sysdeps/generic/testrtsig.h: File removed.
35791
35792         * nptl/pthread_sigmask.c [SIGCANCEL || SIGTIMER || SIGSETXID]: #error.
35793         (pthread_sigmask): Call sigprocmask, not __sigprocmask.
35794
35795         * nptl/nptl-init.c (pthread_functions): Conditionalize
35796         .ptr__nptl_setxid initialization on [SIGSETXID].
35797
35798         * sysdeps/nptl/sys/procfs.h: New file.
35799         * nptl_db/Makefile (headers): Add it.
35800         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it.
35801
35802         * nptl/pthreadP.h (check_cpuset_attr): Moved ...
35803         * sysdeps/unix/sysv/linux/check-cpuset.h: ... to this new file.
35804         * nptl/pthread_attr_setaffinity.c: Include it.
35805         * nptl/pthread_setattr_default_np.c: Likewise.
35806         * nptl/check-cpuset.h: New file.
35807
35808 2015-01-08  Richard Henderson  <rth@redhat.com>
35809
35810         * elf/Makefile (CFLAGS-tst-execstack-mod.c): Add -Wno-trampolines
35811         (CFLAGS-tst-execstack-prog.c): Likewise.
35812         * nptl/Makefile (CFLAGS-tst-execstack-mod.c): Likewise.
35813
35814 2015-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
35815             Sandra Loosemore  <sandra@codesourcery.com>
35816             Andrew Jenner  <andrew@codesourcery.com>
35817             Joseph Myers  <joseph@codesourcery.com>
35818             Nathan Sidwell  <nathan@codesourcery.com>
35819
35820         * elf/elf.h (EM_ALTERA_NIOS2): New machine number for Altera Nios II.
35821         (DT_NIOS2_GP): New dynamic entry type for Nios II _gp address.
35822         (R_NIOS2_NONE,R_NIOS2_S16,R_NIOS2_U16): Define Nios II relocations.
35823         (R_NIOS2_PCREL16,R_NIOS2_CALL26,R_NIOS2_IMM5): Likewise.
35824         (R_NIOS2_CACHE_OPX,R_NIOS2_IMM6,R_NIOS2_IMM8,R_NIOS2_HI16): Likewise.
35825         (R_NIOS2_LO16,R_NIOS2_HIADJ16,R_NIOS2_BFD_RELOC_32): Likewise.
35826         (R_NIOS2_BFD_RELOC_16,R_NIOS2_BFD_RELOC_8,R_NIOS2_GPREL): Likewise.
35827         (R_NIOS2_GNU_VTINHERIT,R_NIOS2_GNU_VTENTRY,R_NIOS2_UJMP): Likewise.
35828         (R_NIOS2_CJMP,R_NIOS2_CALLR,R_NIOS2_ALIGN,R_NIOS2_GOT16): Likewise.
35829         (R_NIOS2_CALL16,R_NIOS2_GOTOFF_LO,R_NIOS2_GOTOFF_HA): Likewise.
35830         (R_NIOS2_PCREL_LO,R_NIOS2_PCREL_HA,R_NIOS2_TLS_GD16): Likewise.
35831         (R_NIOS2_TLS_LDM16,R_NIOS2_TLS_LDO16,R_NIOS2_TLS_IE16): Likewise.
35832         (R_NIOS2_TLS_LE16,R_NIOS2_TLS_DTPMOD,R_NIOS2_TLS_DTPREL): Likewise.
35833         (R_NIOS2_TLS_TPREL,R_NIOS2_COPY,R_NIOS2_GLOB_DAT): Likewise.
35834         (R_NIOS2_JUMP_SLOT,R_NIOS2_RELATIVE,R_NIOS2_GOTOFF): Likewise.
35835         (R_NIOS2_CALL26_NOAT,R_NIOS2_GOT_LO,R_NIOS2_GOT_HA): Likewise.
35836         (R_NIOS2_CALL_LO,R_NIOS2_CALL_HA): Likewise.
35837
35838 2015-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35839
35840         * sysdeps/unix/sysv/linux/futimens.c (futimens): Use address of first
35841         timespec struct member in syscall macro.
35842         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
35843         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Use address of
35844         first timeval struct member in syscall macro.
35845         * sysdeps/unix/sysv/linux/utimes.c (__utimeS): Likewise.
35846
35847 2015-01-07  Joseph Myers  <joseph@codesourcery.com>
35848
35849         [BZ #17748]
35850         * include/fenv.h (__feupdateenv): Use libm_hidden_proto.
35851         * math/feupdateenv.c (__feupdateenv): Use libm_hidden_def.
35852         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Rename to
35853         __feupdateenv and define as weak alias of __feupdateenv.  Use
35854         libm_hidden_weak.
35855         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Use
35856         libm_hidden_def.
35857         * sysdeps/arm/feupdateenv.c (feupdateenv): Rename to __feupdateenv
35858         and define as weak alias of __feupdateenv.  Use libm_hidden_weak.
35859         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
35860         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Use
35861         libm_hidden_def.
35862         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Rename to
35863         __feupdateenv and define as weak alias of __feupdateenv.  Use
35864         libm_hidden_weak.
35865         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Use
35866         libm_hidden_def.
35867         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Rename to
35868         __feupdateenv and define as weak alias of __feupdateenv.  Use
35869         libm_hidden_weak.
35870         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Use
35871         libm_hidden_def.
35872         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
35873         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
35874         (__feupdateenv): Likewise.
35875         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Rename to
35876         __feupdateenv and define as weak alias of __feupdateenv.  Use
35877         libm_hidden_weak.
35878         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
35879         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Use
35880         libm_hidden_def.
35881         * sysdeps/tile/math_private.h (__feupdateenv): New inline
35882         function.
35883         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Use
35884         libm_hidden_def.
35885         * sysdeps/generic/math_private.h (default_libc_feupdateenv): Call
35886         __feupdateenv instead of feupdateenv.
35887         (default_libc_feupdateenv_test): Likewise.
35888         (libc_feresetround_ctx): Likewise.
35889
35890 2015-01-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35891
35892         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Fix function
35893         prototype.
35894
35895 2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
35896
35897         * posix/regcomp.c (parse_bracket_exp): Initialize type to
35898         COLL_SYM in a couple of places to avoid uninitialized variable
35899         wanings on tilegx gcc 4.8.2.
35900
35901 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
35902
35903         * sysdeps/aarch64/strcpy.S: New file.
35904         * sysdeps/aarch64/stpcpy.S: New file.
35905         * NEWS: Updated.
35906
35907 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
35908
35909         * sysdeps/aarch64/strrchr.S: New file.
35910         * NEWS: Updated.
35911
35912 2015-01-07  Eric Biggers  <ebiggers3@gmail.com>
35913
35914         [BZ #17658]
35915         * stdlib/setenv.c: Fix memory leak when setting large,
35916         duplicate string.
35917
35918 2015-01-06  Vladimir A. Nazarenko  <naszar@ya.ru>
35919
35920         [BZ #17273]
35921         * misc/mntent_r.c (__getmntent_r): Cut off trailing spaces
35922         and tabs from buffer before parsing fstab entry.
35923         * misc/tst-mntent.c (main): Add test for mount entry with
35924         trailing spaces and tabs.
35925
35926 2015-01-06  Joseph Myers  <joseph@codesourcery.com>
35927
35928         [BZ #17748]
35929         * include/fenv.h (__fesetround): Declare.  Use libm_hidden_proto.
35930         * math/fesetround.c (fesetround): Rename to __fesetround and
35931         define as weak alias of __fesetround.  Use libm_hidden_weak.
35932         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Likewise.
35933         * sysdeps/alpha/fpu/fesetround.c (fesetround): Likewise.
35934         * sysdeps/arm/fesetround.c (fesetround): Likewise.
35935         * sysdeps/hppa/fpu/fesetround.c (fesetround): Likewise.
35936         * sysdeps/i386/fpu/fesetround.c (fesetround): Likewise.
35937         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
35938         * sysdeps/m68k/fpu/fesetround.c (fesetround): Likewise.
35939         * sysdeps/mips/fpu/fesetround.c (fesetround): Likewise.
35940         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround): Rename to
35941         __fesetround_inline.
35942         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetround_ppc): Call
35943         __fesetround_inline instead of __fesetround.
35944         * sysdeps/powerpc/fpu/fesetround.c (fesetround): Rename to
35945         __fesetround and define as weak alias of __fesetround.  Use
35946         libm_hidden_weak.  Call __fesetround_inline instead of
35947         __fesetround.
35948         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Rename to
35949         __fesetround and define as weak alias of __fesetround.  Use
35950         libm_hidden_weak.
35951         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c (fesetround):
35952         Likewise.
35953         * sysdeps/s390/fpu/fesetround.c (fesetround): Likewise.
35954         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
35955         * sysdeps/sparc/fpu/fesetround.c (fesetround): Likewise.
35956         * sysdeps/tile/math_private.h (__fesetround): New inline function.
35957         * sysdeps/x86_64/fpu/fesetround.c (fesetround): Rename to
35958         __fesetround and define as weak alias of __fesetround.  Use
35959         libm_hidden_weak.
35960         * sysdeps/generic/math_private.h (default_libc_fesetround): Call
35961         __fesetround instead of fesetround.
35962         (default_libc_feholdexcept_setround): Likewise.
35963         (libc_feholdsetround_ctx): Likewise.
35964         (libc_feholdsetround_noex_ctx): Likewise.
35965
35966         [BZ #17748]
35967         * include/fenv.h (__fesetenv): Use libm_hidden_proto.
35968         * math/fesetenv.c (__fesetenv): Use libm_hidden_def.
35969         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
35970         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
35971         * sysdeps/alpha/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
35972         * sysdeps/arm/fesetenv.c (fesetenv): Rename to __fesetenv and
35973         define as weak alias of __fesetenv.  Use libm_hidden_weak.
35974         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
35975         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
35976         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
35977         define as weak alias of __fesetenv.  Use libm_hidden_weak.
35978         * sysdeps/m68k/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
35979         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
35980         define as weak alias of __fesetenv.  Use libm_hidden_weak.
35981         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Use
35982         libm_hidden_def.
35983         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Likewise.
35984         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c (__fesetenv):
35985         Likewise.
35986         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
35987         define as weak alias of __fesetenv.  Use libm_hidden_weak.
35988         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
35989         * sysdeps/sparc/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
35990         * sysdeps/tile/math_private.h (__fesetenv): New inline function.
35991         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
35992         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
35993         * sysdeps/generic/math_private.h (default_libc_fesetenv): Use
35994         __fesetenv instead of fesetenv.
35995         (libc_feresetround_noex_ctx): Likewise.
35996         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
35997         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
35998         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
35999         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
36000         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
36001         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
36002         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
36003         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
36004         (__feupdateenv): Likewise.
36005         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
36006         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
36007         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
36008         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Likewise.
36009
36010 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
36011
36012         [BZ #17806]
36013         * resolv/res_init.c (__res_iclose): Only clear nsinit if the
36014         addresses have been freed.
36015
36016 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
36017
36018         * resolv/res_init.c (__res_vinit): Improve comments about nserv
36019         and nservall.
36020
36021 2015-01-06  Ondřej Bílka  <neleai@seznam.cz>
36022
36023         * sysdeps/unix/sysv/linux/check_pf.c (make_request):
36024         Clean up check_pf allocation pattern. addresses
36025
36026 2015-01-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36027
36028         * nptl/pthread_cancel.c (pthread_cancel): Use ANSI prototype.
36029         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
36030         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
36031         * nptl/pthread_exit.c (__pthread_exit): Likewise.
36032         * nptl/pthread_join.c (pthread_join): Likewise.
36033         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
36034         * sysdeps/posix/waitid.c (__waitid): Likewise.
36035         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
36036         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
36037         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
36038         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
36039         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
36040         Likewise.
36041         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
36042         (__libc_pread64): Likewise.
36043         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
36044         (__libc_pwrite): Likewise.
36045         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
36046         (__libc_pwrite64): Likewsie.
36047         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
36048         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
36049         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
36050         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
36051         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
36052         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
36053         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
36054         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
36055         Likewise.
36056         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
36057         (__libc_pread64): Likewise.
36058         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_pwrite):
36059         Likewise.
36060         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
36061         (__libc_pwrite64): Likewise.
36062         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
36063         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
36064         * sysdeps/unix/sysv/linux/preadv.c (PREADV): Likewise.
36065         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
36066         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
36067         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
36068         * sysdeps/unix/sysv/linux/pwritev.c (__libc_pwritev): Likewise.
36069         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
36070         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
36071         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
36072         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_write64): Likewise.
36073         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
36074         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
36075         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
36076         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
36077         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
36078         Likewise.
36079
36080 2015-01-06  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
36081
36082         * math/Makefile (CFLAGS-test-float.c): Remove -frounding-math.
36083         (CFLAGS-test-double.c): Likewise.
36084         (CFLAGS-test-ldouble.c): Likewise.
36085         (CPPFLAGS-test-ifloat.c): Likewise.
36086         (CPPFLAGS-test-idouble.c): Likewise.
36087         (CPPFLAGS-test-ildoubl.c): Likewise.
36088         (CFLAGS-test-test-fenv.c): Remove variable.
36089         (CFLAGS-test-misc.c): Likewise.
36090
36091 2015-01-06  H.J. Lu  <hongjiu.lu@intel.com>
36092
36093         [BZ #17797]
36094         * bits/time.h (CLOCKS_PER_SEC): Changed to ((clock_t) 1000000).
36095         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Likewise.
36096         * sysdeps/unix/sysv/linux/clock.c (clock): _Static_assert
36097         CLOCKS_PER_SEC == 1000000.
36098         * time/clocktest.c (main): Replace %ld with %jd and cast to
36099         intmax_t.
36100
36101 2015-01-05  Roland McGrath  <roland@hack.frob.com>
36102
36103         * sysdeps/generic/unwind-resume.h: New file.
36104         * sysdeps/gnu/unwind-resume.c: Include it.
36105         (libgcc_s_personality): Use PERSONALITY_PROTO macro for the prototype.
36106         (__gcc_personality_v0): Likewise, and PERSONALITY_ARGS for the callee
36107         argument list.
36108         (libgcc_s_resume): Variable renamed to __libgcc_s_resume, made hidden
36109         global rather than static.
36110         (_Unwind_Resume): Update user.
36111         Conditionalize definition on [!HAVE_ARCH_UNWIND_RESUME].
36112         (init): Likewise.  Renamed to __libgcc_s_init, made hidden global
36113         rather than static.  Add __attribute__ ((cold)).
36114         (_Unwind_Resume, __gcc_personality_v0): Update callers.
36115         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
36116         * sysdeps/arm/arm-unwind-resume.S: New file.
36117         * sysdeps/arm/rt-arm-unwind-resume.S: New file.
36118         * sysdeps/arm/pt-arm-unwind-resume.S: New file.
36119         * sysdeps/arm/Makefile [$(subdir) = csu]
36120         (sysdep_routines, shared-only-routines): Add arm-unwind-resume.
36121         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
36122         Add rt-arm-unwind-resume.
36123         [$(subdir) = nptl]
36124         (libpthread-sysdep_routines, libpthread-shared-only-routines):
36125         Add pt-arm-unwind-resume.
36126         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: File removed.
36127         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: File removed.
36128
36129 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
36130
36131         [BZ #17748]
36132         * include/fenv.h (__feholdexcept): Declare.  Use
36133         libm_hidden_proto.
36134         * math/feholdexcpt.c (feholdexcept): Rename to __feholdexcept and
36135         define as weak alias of __feholdexcept.  Use libm_hidden_weak.
36136         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Likewise.
36137         * sysdeps/alpha/fpu/feholdexcpt.c (feholdexcept): Likewise.
36138         * sysdeps/arm/feholdexcpt.c (feholdexcept): Likewise.
36139         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
36140         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
36141         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Likewise.
36142         * sysdeps/m68k/fpu/feholdexcpt.c (feholdexcept): Likewise.
36143         * sysdeps/mips/fpu/feholdexcpt.c (feholdexcept): Likewise.
36144         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
36145         * sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Likewise.
36146         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c
36147         (feholdexcept): Likewise.
36148         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
36149         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
36150         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Likewise.
36151         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
36152         * sysdeps/generic/math_private.h (default_libc_feholdexcept): Use
36153         __feholdexcept instead of feholdexcept.
36154         (default_libc_feholdexcept_setround): Likewise.
36155
36156 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
36157
36158         * sysdeps/mips/memset.S (memset): Modify for mips32r6/mips64r6
36159         to avoid using stl/str to align destination.
36160
36161 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
36162
36163         * sysdeps/mips/memcpy.S: Add support for mips32r6/mips64r6.
36164
36165 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
36166
36167         [BZ #17796]
36168         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c
36169         [!SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)] (posix_fadvise64):
36170         Define as weak alias not strong alias.
36171
36172 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
36173
36174         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Replace
36175         bltzal with addiupc.
36176         (RTLD_START): Ditto.
36177
36178 2015-01-05  Chris Metcalf  <cmetcalf@ezchip.com>
36179
36180         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Fix return type
36181         for __vdso_* functions in declarations.
36182         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise for
36183         definitions.
36184         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL,
36185         INTERNAL_VSYSCALL): Use struct return types to check for error.
36186
36187         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c [!defined _LP64
36188         && REGISTER_CAST_INT32_TO_INT64]: Provide explicit lround()
36189         function with cast from llround().
36190         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Define.
36191         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
36192         Define.
36193
36194 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
36195
36196         [BZ #17793]
36197         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c (posix_fadvise64):
36198         Define as weak alias not strong alias.
36199
36200         [BZ #17635]
36201         * ctype/ctype-c99.c: New file.  isblank implementation moved from
36202         ...
36203         * ctype/ctype-extn.c: ... here.
36204         (__isblank_l): Move to ...
36205         * ctype/ctype-c99_l.c: ... here.  New file.
36206         * ctype/Makefile (routines): Add ctype-c99 and ctype-c99_l.
36207         * conform/Makefile (test-xfail-ISO99/ctype.h/linknamespace):
36208         Remove variable.
36209         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
36210         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
36211         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
36212         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
36213         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
36214
36215         [BZ #17777]
36216         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c
36217         (posix_fadvise64): Define as weak alias not strong alias.
36218         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
36219         (posix_fallocate64): Likewise.
36220         * conform/Makefile (test-xfail-XOPEN2K/fcntl.h/linknamespace):
36221         Remove variable.
36222         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
36223         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
36224         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
36225         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
36226         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
36227
36228 2015-01-05  Matthew Fortune  <matthew.fortune@imgtec.com>
36229
36230         [BZ #16191]
36231         * NEWS: Mention bug fix.
36232         * sysdeps/unix/sysv/linux/mips/sys/user.h (PAGE_SHIFT): Remove.
36233         (PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Likewise.
36234         (HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR): Likewise.
36235         (HOST_STACK_END_ADDR): Likewise.
36236
36237 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
36238
36239         [BZ #17748]
36240         * include/fenv.h (__fegetround): Declare.  Use libm_hidden_proto.
36241         * math/fegetround.c (fegetround): Rename to __fegetround and
36242         define as weak alias of __fegetround.  Use libm_hidden_weak.
36243         * sysdeps/aarch64/fpu/fegetround.c (fegetround): Likewise.
36244         * sysdeps/alpha/fpu/fegetround.c (fegetround): Likewise.
36245         * sysdeps/arm/fegetround.c (fegetround): Likewise.
36246         * sysdeps/hppa/fpu/fegetround.c (fegetround): Likewise.
36247         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
36248         * sysdeps/ia64/fpu/fegetround.c (fegetround): Likewise.
36249         * sysdeps/m68k/fpu/fegetround.c (fegetround): Likewise.
36250         * sysdeps/mips/fpu/fegetround.c (fegetround): Likewise.
36251         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
36252         Undefine after rather than before function definition; use
36253         parentheses around function name in definition.
36254         (__fegetround): Also undefine macro after function definition.
36255         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Rename to
36256         __fegetround and define as weak alias of __fegetround.  Use
36257         libm_hidden_weak.  Do not undefine as macro.
36258         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
36259         Likewise.
36260         * sysdeps/s390/fpu/fegetround.c (fegetround): Rename to
36261         __fegetround and define as weak alias of __fegetround.  Use
36262         libm_hidden_weak.
36263         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
36264         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
36265         * sysdeps/tile/math_private.h (__fegetround): New inline function.
36266         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Rename to
36267         __fegetround and define as weak alias of __fegetround.  Use
36268         libm_hidden_weak.
36269         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Use
36270         __fegetround instead of fegetround.
36271
36272         [BZ #17782]
36273         * sysdeps/unix/sysv/linux/mips/bits/termios.h (TIOCSER_TEMT):
36274         Condition macro definition on [__USE_MISC].
36275
36276         [BZ #17781]
36277         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
36278         (struct sigaction): Change type of sa_flags field to int.
36279
36280         [BZ #17780]
36281         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock)
36282         [!__USE_FILE_OFFSET64 && _MIPS_SIM != _ABI64]: Rename pad field to
36283         __glibc_reserved0.
36284
36285         * nptl/version.c (banner): Use single year in copyright notice.
36286
36287         * NEWS: Update copyright dates.
36288         * catgets/gencat.c (print_version): Likewise.
36289         * csu/version.c (banner): Likewise.
36290         * debug/catchsegv.sh: Likewise.
36291         * debug/pcprofiledump.c (print_version): Likewise.
36292         * debug/xtrace.sh (do_version): Likewise.
36293         * elf/ldconfig.c (print_version): Likewise.
36294         * elf/ldd.bash.in: Likewise.
36295         * elf/pldd.c (print_version): Likewise.
36296         * elf/sotruss.sh: Likewise.
36297         * elf/sprof.c (print_version): Likewise.
36298         * iconv/iconv_prog.c (print_version): Likewise.
36299         * iconv/iconvconfig.c (print_version): Likewise.
36300         * locale/programs/locale.c (print_version): Likewise.
36301         * locale/programs/localedef.c (print_version): Likewise.
36302         * login/programs/pt_chown.c (print_version): Likewise.
36303         * malloc/memusage.sh (do_version): Likewise.
36304         * malloc/memusagestat.c (print_version): Likewise.
36305         * malloc/mtrace.pl: Likewise.
36306         * manual/libc.texinfo: Likewise.
36307         * nptl/version.c (banner): Likewise.
36308         * nscd/nscd.c (print_version): Likewise.
36309         * nss/getent.c (print_version): Likewise.
36310         * nss/makedb.c (print_version): Likewise.
36311         * posix/getconf.c (main): Likewise.
36312         * scripts/test-installation.pl: Likewise.
36313         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
36314
36315 2015-01-02  Will Newton  <will.newton@linaro.org>
36316
36317         * sysdeps/arm/armv7/configure: Removed.
36318         * sysdeps/arm/armv7/configure.ac: Likewise.
36319
36320 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
36321
36322         * All files with FSF copyright notices: Update copyright dates
36323         using scripts/update-copyrights.
36324         * intl/plural.c: Regenerated.
36325         * locale/programs/charmap-kw.h: Likewise.
36326         * locale/programs/locfile-kw.h: Likewise.
36327
36328 2015-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
36329
36330         * scripts/gen-posix-conf-vars.awk (END): Don't use sprintf.
36331
36332 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
36333
36334         [BZ #17748]
36335         * include/fenv.h (__fegetenv): Use libm_hidden_proto.
36336         * math/fegetenv.c (__fegetenv): Use libm_hidden_def.
36337         * sysdeps/aarch64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
36338         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
36339         * sysdeps/alpha/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
36340         * sysdeps/arm/fegetenv.c (fegetenv): Rename to __fegetenv and
36341         define as weak alias of __fegetenv.  Use libm_hidden_weak.
36342         * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Likewise.
36343         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
36344         * sysdeps/ia64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
36345         define as weak alias of __fegetenv.  Use libm_hidden_weak.
36346         * sysdeps/m68k/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
36347         * sysdeps/mips/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
36348         define as weak alias of __fegetenv.  Use libm_hidden_weak.
36349         * sysdeps/powerpc/fpu/fegetenv.c (__fegetenv): Use
36350         libm_hidden_def.
36351         * sysdeps/powerpc/nofpu/fegetenv.c (__fegetenv): Likewise.
36352         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (__fegetenv):
36353         Likewise.
36354         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
36355         define as weak alias of __fegetenv.  Use libm_hidden_weak.
36356         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
36357         * sysdeps/sparc/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
36358         * sysdeps/tile/math_private.h (__fegetenv): New inline function.
36359         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
36360         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
36361         * sysdeps/generic/math_private.h (libc_feholdsetround_ctx): Use
36362         __fegetenv instead of fegetenv.
36363         (libc_feholdsetround_noex_ctx): Likewise.
36364
36365 2014-12-31  Matthew Fortune  <matthew.fortune@imgtec.com>
36366
36367         * elf/elf.h (PT_MIPS_ABIFLAGS): Define.
36368         (Elf_MIPS_ABIFlags_v0): New structure.
36369         (EF_MIPS_FP64): Define.
36370         (MIPS_AFL_REG_NONE, MIPS_AFL_REG_32, MIPS_AFL_REG_64): Likewise.
36371         (MIPS_AFL_REG_128, MIPS_AFL_ASE_DSP, MIPS_AFL_ASE_DSP64): Likewise.
36372         (MIPS_AFL_ASE_DSPR2, MIPS_AFL_ASE_EVA, MIPS_AFL_ASE_MCU): Likewise.
36373         (MIPS_AFL_ASE_MDMX, MIPS_AFL_ASE_MIPS3D, MIPS_AFL_ASE_MT): Likewise.
36374         (MIPS_AFL_ASE_SMARTMIPS, MIPS_AFL_ASE_VIRT): Likewise.
36375         (MIPS_AFL_ASE_VIRT64, MIPS_AFL_ASE_MSA, MIPS_AFL_ASE_MSA64): Likewise.
36376         (MIPS_AFL_ASE_MIPS16, MIPS_AFL_ASE_MICROMIPS): Likewise.
36377         (MIPS_AFL_ASE_XPA, MIPS_AFL_EXT_XLR, MIPS_AFL_EXT_OCTEON2): Likewise.
36378         (MIPS_AFL_EXT_OCTEONP, MIPS_AFL_EXT_LOONGSON_3A): Likewise.
36379         (MIPS_AFL_EXT_OCTEON, MIPS_AFL_EXT_5900, MIPS_AFL_EXT_4010): Likewise.
36380         (MIPS_AFL_EXT_4100, MIPS_AFL_EXT_3900, MIPS_AFL_EXT_10000): Likewise.
36381         (MIPS_AFL_EXT_SB1, MIPS_AFL_EXT_4111, MIPS_AFL_EXT_4120): Likewise.
36382         (MIPS_AFL_EXT_5400, MIPS_AFL_EXT_5500): Likewise.
36383         (MIPS_AFL_EXT_LOONGSON_2E, MIPS_AFL_EXT_LOONGSON_2F): Likewise.
36384         (Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE): New enum values.
36385         (Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT): Likewise.
36386         (Val_GNU_MIPS_ABI_FP_OLD_64, Val_GNU_MIPS_ABI_FP_XX): Likewise.
36387         (Val_GNU_MIPS_ABI_FP_64, Val_GNU_MIPS_ABI_FP_64A): Likewise.
36388         (Val_GNU_MIPS_ABI_FP_MAX): Likewise.
36389         * sysdeps/mips/Makefile [subdir=elf]: Add tst-abi-interlink,
36390         tst-mode-switch-1, tst-mode-switch-2, tst-mode-switch-3 tests.
36391         * sysdeps/mips/bits/linkmap.h (struct link_map_machine): Add fpmode
36392         field.
36393         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Reject
36394         EF_MIPS_FP64.
36395         * sysdeps/mips/dl-machine-reject-phdr.h: New file.
36396         * sysdeps/mips/tst-abi-fp32mod.c: Likewise.
36397         * sysdeps/mips/tst-abi-fpxxmod.c: Likewise.
36398         * sysdeps/mips/tst-abi-fpxxomod.c: Likewise.
36399         * sysdeps/mips/tst-abi-fp64mod.c: Likewise.
36400         * sysdeps/mips/tst-abi-fp64amod.c: Likewise.
36401         * sysdeps/mips/tst-abi-interlink.c: Likewise.
36402         * sysdeps/mips/tst-mode-switch-1.c: Likewise.
36403         * sysdeps/mips/tst-mode-switch-2.c: Likewise.
36404         * sysdeps/mips/tst-mode-switch-3.c: Likewise.
36405         * sysdeps/unix/sysv/linux/mips/configure.ac (o32-fpabi): Define to
36406         record the current FP ABI extension.
36407         (mips-mode-switch): Define to show if kernel headers support mode
36408         switching.
36409         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
36410         * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increase maximum
36411         supported SYSV ABI version to 3.
36412         * sysdeps/unix/sysv/linux/mips/libc-abis: Add new MIPS_O32_FP64
36413         feature.
36414
36415 2014-12-31  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
36416             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36417
36418         * sysdeps/powerpc/powerpc64/power7/strcpy.S (strcpy): Optimize unaligned
36419         path.
36420         * benchtests/bench-strcpy.c (test_main): Add more unaligned inputs.
36421
36422 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
36423
36424         * sysdeps/powerpc/bits/fenvinline.h (fegetround): Rename macro to
36425         __fegetround and redefine to call __fegetround.  Remove condition
36426         on [!__NO_MATH_INLINES].
36427         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove inline
36428         function.
36429         * sysdeps/powerpc/nofpu/fenv_libc.h: Remove file.
36430         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
36431         Remove macro.
36432         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Include <fenv.h>
36433         instead of <fenv_libc.h>.
36434         (__llrintl): Call fegetround instead of __fegetround.
36435         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Include <fenv.h>
36436         instead of <fenv_libc.h>.
36437         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
36438         (__lrintl): Call fegetround instead of __fegetround.
36439         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Include <fenv.h>
36440         instead of <fenv_libc.h>.
36441         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
36442         (__rintl): Call fegetround instead of __fegetround.
36443
36444 2014-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
36445
36446         * scripts/gen-posix-conf-vars.awk: Don't use multi-dimensional
36447         arrays.
36448
36449 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
36450
36451         [BZ #17775]
36452         * sysdeps/i386/dl-machine.h (PI_STATIC_AND_HIDDEN): Removed.
36453         (elf_machine_dynamic) [!PI_STATIC_AND_HIDDEN]: Likewise.
36454         (elf_machine_load_address) [!PI_STATIC_AND_HIDDEN]: Likewise.
36455
36456 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
36457
36458         * sysdeps/i386/tls-macros.h: Include <features.h>.
36459         (TLS_LE): Use non-PIC version for GCC >= 5.0.
36460         (TLS_IE): Likewise.
36461         (TLS_LD): Likewise.
36462         (TLS_GD): Likewise.
36463         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Don't
36464         define for GCC >= 5.0.
36465
36466 2014-12-30  Chris Metcalf  <cmetcalf@ezchip.com>
36467
36468         * math/test-fenv.c (test_single_exception, set_single_exc,
36469         feenv_nomask_test, feenv_mask_test, feexcp_nomask_test,
36470         feexcp_mask_test, feenable_test, fe_single_test): Add
36471         [!FE_ALL_EXCEPT] test so these routines are not compiled in the
36472         case where they are not used.
36473         * math/libm-test.inc: Likewise.
36474         * setjmp/test-setjmp-fp.c: Mark attribute ((unused)) on variable
36475         unused in the absence of FP rounding/exception support.
36476         * stdio-common/tst-printf-round.c: Likewise.
36477         * stdlib/tst-strtod-round.c: Likewise.
36478         * stdlib/tst-strtod-underflow.c: Likewise.
36479
36480 2014-12-30  Joseph Myers  <joseph@codesourcery.com>
36481
36482         [BZ #17723]
36483         * include/fenv.h (__feraiseexcept): Use libm_hidden_proto.
36484         * math/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def.
36485         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
36486         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
36487         libm_hidden_weak.
36488         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Likewise.
36489         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
36490         * sysdeps/i386/fpu/fraiseexcpt.c (__feraiseexcept): Use
36491         libm_hidden_def.
36492         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
36493         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
36494         libm_hidden_weak.
36495         * sysdeps/m68k/coldfire/fpu/fraiseexcpt.c (feraiseexcept):
36496         Likewise.
36497         * sysdeps/microblaze/math_private.h (__feraiseexcept): New macro.
36498         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Rename to
36499         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
36500         libm_hidden_weak.
36501         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Use
36502         libm_hidden_def.
36503         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
36504         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c
36505         (__feraiseexcept): Likewise.
36506         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Rename to
36507         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
36508         libm_hidden_weak.
36509         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
36510         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Use
36511         libm_hidden_def.
36512         * sysdeps/tile/math_private.h (__feraiseexcept): New macro.
36513         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (__feraiseexcept):
36514         Use libm_hidden_def.
36515         * sysdeps/x86_64/fpu/fraiseexcpt.c (__feraiseexcept): Use
36516         libm_hidden_def.
36517         (feraiseexcept): Define as weak not strong alias.  Use
36518         libm_hidden_weak.
36519         * sysdeps/x86/fpu/bits/fenv.h (__feraiseexcept_invalid_divbyzero):
36520         New inline function.  Factored out of ...
36521         (feraiseexcept): ... here.  Use __feraiseexcept_invalid_divbyzero.
36522         * sysdeps/x86/fpu/include/bits/fenv.h: New file.
36523         * math/e_scalb.c (invalid_fn): Call __feraiseexcept instead of
36524         feraiseexcept.
36525         * math/w_acos.c (__acos): Likewise.
36526         * math/w_asin.c (__asin): Likewise.
36527         * math/w_ilogb.c (__ilogb): Likewise.
36528         * math/w_j0.c (y0): Likewise.
36529         * math/w_j1.c (y1): Likewise.
36530         * math/w_jn.c (yn): Likewise.
36531         * math/w_log.c (__log): Likewise.
36532         * math/w_log10.c (__log10): Likewise.
36533         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Likewise.
36534         * sysdeps/aarch64/fpu/math_private.h
36535         (libc_feupdateenv_test_aarch64): Likewise.
36536         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
36537         * sysdeps/arm/fenv_private.h (libc_feupdateenv_test_vfp): Likewise.
36538         * sysdeps/arm/feupdateenv.c (feupdateenv): Likewise.
36539         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
36540         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
36541         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
36542         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Likewise.
36543         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
36544         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
36545         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
36546
36547 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
36548
36549         [BZ #17732]
36550         * io/test-utime.c (main): Replace %ld with %jd and cast to
36551         intmax_t.
36552         * libio/tst-ftell-active-handler.c (do_append_test): Likewise.
36553         * nptl/tst-mutex5.c: Include <stdint.h>.
36554         (do_test): Replace %ld with %jd and cast to intmax_t.
36555         * posix/tst-regex.c (run_test): Likewise.
36556         (run_test_backwards): Likewise.
36557         * rt/tst-clock.c: Include <stdint.h>.
36558         (clock_test): Replace %ld with %jd and cast to intmax_t.
36559         * rt/tst-cpuclock1.c: Include <stdint.h>.
36560         (do_test): Replace %lu with %ju and cast to uintmax_t.
36561         * rt/tst-cpuclock2.c: Include <stdint.h>.
36562         (do_test): Replace %lu with %ju and cast to uintmax_t.
36563         * rt/tst-mqueue1.c: Include <stdint.h>.
36564         (check_attrs): Replace %ld with %jd and cast to intmax_t.
36565         * rt/tst-mqueue3.c (fct): Replace %ld with %jd and cast to
36566         intmax_t.
36567         * rt/tst-mqueue4.c (do_test): Likewise.
36568         * rt/tst-timer4.c: Include <stdint.h>.
36569         (check_ts): Replace %ld with %jd and cast to intmax_t.
36570         (do_test): Likewise.
36571         * stdio-common/tst-fmemopen2.c (do_test): Replace %ld with %jd
36572         and cast to intmax_t.
36573         * sysdeps/pthread/tst-timer.c (main): Likewise.
36574         * time/clocktest.c (main): Likewise.
36575         * time/tst-posixtz.c (do_test): Likewise.
36576         * timezone/tst-timezone.c (main): Likewise.
36577
36578 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
36579             H.J. Lu  <hongjiu.lu@intel.com>
36580
36581         * sysdeps/i386/i686/multiarch/bcopy-sse2-unaligned.S: New file.
36582         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
36583         * sysdeps/i386/i686/multiarch/memmove-sse2-unaligned.S: Likewise.
36584         * sysdeps/i386/i686/multiarch/mempcpy-sse2-unaligned.S: Likewise.
36585         * sysdeps/i386/i686/multiarch/bcopy.S: Select the sse2_unaligned
36586         version if bit_Fast_Unaligned_Load is set.
36587         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
36588         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
36589         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
36590         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
36591         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
36592         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
36593         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
36594         bcopy-sse2-unaligned, memcpy-sse2-unaligned,
36595         memmove-sse2-unaligned and mempcpy-sse2-unaligned.
36596         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c (MAX_IFUNC): Set
36597         to 4.
36598         (__libc_ifunc_impl_list): Test __bcopy_sse2_unaligned,
36599         __memmove_chk_sse2_unaligned, __memmove_sse2_unaligned,
36600         __memcpy_chk_sse2_unaligned, __memcpy_sse2_unaligned,
36601         __mempcpy_chk_sse2_unaligned, and __mempcpy_sse2_unaligned.
36602
36603 2014-12-29  Chris Metcalf  <cmetcalf@ezchip.com>
36604
36605         * sysdeps/unix/sysv/linux/tst-setgetname.c (do_test): Use #ifndef
36606         instead of #if to avoid a Wundef warning.
36607         * stdlib/tst-limits.c (do_test): Likewise.
36608
36609         * sysdeps/tile/math_private.h (fetestexcept): Add macro to
36610         parallel other exception macros.
36611         (fegetenv): Convert from macro to extern inline so that it applies
36612         retroactively to inline functions already seen by the compiler.
36613         (fesetenv, feupdateenv, fegetround, fesetround): Likewise.
36614
36615         * posix/Makefile (before-compile): Use $(objpfx) for
36616         posix-conf-vars-def.h.
36617
36618 2014-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
36619
36620         * posix/getconf.c (main): Use size_t for type of I.
36621         * scripts-gen-posix-conf-vars.awk (END): Use size_t for type of
36622         NSPEC.
36623
36624         * posix/posix-conf-vars.list (SPEC:XBS5): Add sysconf prefix.
36625         * posix/confstr.c: Define NEED_SPEC_ARRAY to 0.
36626         * posix/posix-envs.def: Likewise.
36627         * sysdeps/posix/sysconf.c: Likewise.
36628         * posix/getconf.c: Define NEED_SPEC_ARRAY to 1.
36629         (specs): Remove array.
36630         * scripts/gen-posix-conf-vars.awk: Support generation of specs
36631         array.
36632
36633         * posix/posix-conf-vars.list: Add _POSIX sysconf namespace.
36634         * sysdeps/posix/sysconf.c: Include posix-conf-vars.h.
36635         (__sysconf): Use CONF_IS_* macros.
36636
36637         * posix/Makefile (before-compile): Add posix-conf-vars-def.h.
36638         ($(objpfx)posix-conf-vars-def.h): New target.
36639         * posix/posix-conf-vars.list: New file.
36640         * posix/posix-conf-vars.h: New file.
36641         * posix/confstr.c: Include posix-conf-vars.h.
36642         (confstr): Use CONF_IS_* macros.
36643         * posix/posix-envs.def: Include posix-conf-vars.h.  Use
36644         CONF_IS_* macros.
36645         * scripts/gen-posix-conf-vars.awk: New file.
36646
36647 2014-12-26  Chris Metcalf  <cmetcalf@ezchip.com>
36648
36649         * sysdeps/tile/math_private.h (fegetenv, fesetenv, feupdateenv,
36650         fegetround): Add no-op macros to avoid linknamespace issues.
36651
36652         * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Remove
36653         definitions of INTERNAL_VSYSCALL and INLINE_VSYSCALL.
36654
36655         * sysdeps/unix/sysv/linux/tile/sysdep.h
36656         (HAVE_CLOCK_GETTIME_VSYSCALL): Move definition out of
36657         assembly-specific section to avoid a redefinition warning.
36658
36659         * sysdeps/tile/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast to
36660         long before casting to pointer to avoid a cast warning.
36661
36662 2014-12-23  Chris Metcalf  <cmetcalf@ezchip.com>
36663
36664         * sysdeps/tile/tilegx/Implies: New file.
36665
36666 2014-12-23  Richard Earnshaw  <rearnsha@arm.com>
36667
36668         * string/stpcpy.c (__stpcpy): Rewrite using strlen and memcpy.
36669
36670 2014-12-23  Florian Weimer  <fweimer@redhat.com>
36671
36672         * iconvdata/run-iconv-test.sh: Actually test iconv modules.
36673
36674 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
36675
36676         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Do
36677         not define.
36678         * sysdeps/unix/sysv/linux/utimes.c: Do not include
36679         <kernel-features.h>.
36680         (__utimes) [__NR_utimes]: Make code unconditional.
36681         (__utimes) [!__ASSUME_UTIMES]: Remove conditional code.
36682         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
36683         (__ASSUME_UTIMES): Do not undefine.
36684         * sysdeps/unix/sysv/linux/tile/kernel-features.h
36685         (__ASSUME_UTIMES): Likewise.
36686         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
36687         (__ASSUME_UTIMES): Define for [__LINUX_KERNEL_VERSION >= 0x030e00]
36688         instead of undefining for [__LINUX_KERNEL_VERSION < 0x030e00].
36689         * sysdeps/unix/sysv/linux/hppa/utimes.c: New file.
36690
36691 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
36692
36693         * sysdeps/mips/memcpy.S: Fix preprocessor indentation.
36694
36695 2014-12-22  Chris Metcalf  <cmetcalf@ezchip.com>
36696
36697         [BZ #17747]
36698         * math/w_j0.c [defined NO_LONG_DOUBLE] (j0, y0): Convert strong
36699         alias to weak alias for j0l, y0l.
36700         * math/w_j1.c [defined NO_LONG_DOUBLE] (j1, y1): Likewise.
36701         * math/w_jn.c [defined NO_LONG_DOUBLE] (jn, yn): Likewise.
36702
36703         [BZ #17746]
36704         * sysdeps/tile/tilegx/strstr.c (STRSTR2): Remove implicit boolean
36705         conversion.
36706
36707 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
36708
36709         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Set
36710         to zero if not already defined.
36711
36712 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
36713
36714         [BZ #17724]
36715         * sysdeps/ieee754/k_standard.c: Don't include <float.h>.
36716         (__kernel_standard_f): Remove.  Moved to k_standardf.c.
36717         (__kernel_standard_l): Remove.  Moved to k_standardl.c with
36718         (char *) casts added.
36719         * sysdeps/ieee754/k_standardf.c: New file.
36720         * sysdeps/ieee754/k_standardl.c: Likewise.
36721         * math/Makefile (libm-support): Remove k_standard.
36722         (libm-calls): Add k_standard.
36723
36724 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
36725
36726         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
36727         Optimize to avoid an unnecessary FPCR read.
36728
36729 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
36730
36731         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
36732         Optimize to reduce FPCR/FPSR accesses.
36733
36734 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
36735
36736         * sysdeps/aarch64/fpu/ftestexcept.c (fetestexcept):
36737         Call libc_fetestexcept_aarch64.
36738
36739 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
36740
36741         * sysdeps/aarch64/fpu/fesetround.c (fesetround):
36742         Call libc_fesetround_aarch64.
36743
36744 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
36745
36746         [BZ #17733]
36747         * sysdeps/unix/sysv/linux/bind.S (NO_WEAK_ALIAS): Do not define.
36748         (__bind): Do not define as weak alias.
36749         * sysdeps/unix/sysv/linux/getsockname.S (NO_WEAK_ALIAS): Do not
36750         define.
36751         (__getsockname): Do not define as weak alias.
36752
36753 2014-12-22  Will Newton  <will.newton@linaro.org>
36754
36755         * manual/install.texi: Document that we require bison 2.7
36756         or above.
36757         * INSTALL: Regenerate.
36758         * configure.ac: Use AC_CHECK_PROG_VER instead of
36759         AC_PATH_PROG when checking for bison and check for
36760         version 2.7 or above.
36761         * configure: Regenerate.
36762
36763 2014-12-21  Chris Metcalf  <cmetcalf@ezchip.com>
36764
36765         [BZ #17745]
36766         * sysdeps/tile/ffs.c (__ffs): Moved ffsll definition...
36767         * sysdeps/tile/ffsll.c (ffsll): To here.
36768
36769         * sysdeps/unix/sysv/linux/tile/localplt.data: Removed.
36770
36771 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
36772
36773         * elf/dl-tls.c (__tls_get_addr): Provide the hidden definition
36774         if not defined.
36775         * sysdeps/i386/dl-tls.h (___tls_get_addr): Provide the hidden
36776         definition.
36777         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
36778         hidden ___tls_get_addr.
36779         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
36780         hidden __tls_get_addr.
36781         * sysdeps/generic/localplt.data (__tls_get_addr): Removed.
36782         * sysdeps/unix/sysv/linux/i386/localplt.data (___tls_get_addr):
36783         Likewise.
36784
36785 2014-12-21  Andreas Schwab  <schwab@linux-m68k.org>
36786
36787         * sysdeps/m68k/dl-machine.h (RTLD_START): Remove @PLTPC from
36788         _dl_init call.
36789
36790 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
36791
36792         * sysdeps/i386/dl-machine.h (_dl_start_user): Remove @PLT
36793         from "call _dl_init@PLT".
36794         * sysdeps/x86_64/dl-machine.h (_dl_start_user): Likewise.
36795
36796 2014-12-21  Anders Kaseorg  <andersk@mit.edu>
36797
36798         * manual/search.texi: (Array Sort Function): Clarify stable sorting
36799         guarantees.
36800
36801 2014-12-20  Chris Metcalf  <cmetcalf@ezchip.com>
36802
36803         * sysdeps/unix/sysv/linux/tile/localplt.data: New file.
36804
36805 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
36806
36807         [BZ #17744]
36808         * sysdeps/tile/tilegx/strstr.c (STRSTR): Call __strnlen, not
36809         strnlen.
36810
36811 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
36812
36813         * sysdeps/mips/addmul_1.S (__mpn_addmul_1): Use mulu/muhu instead
36814         of multu on MIPSr6.
36815         * sysdeps/mips/mul_1.S (__mpn_mul_1): Ditto.
36816         * sysdeps/mips/submul_1.S (__mpn_submul_1): Ditto.
36817         * sysdeps/mips/mips64/addmul_1.S (__mpn_addmul_1): Ditto.
36818         * sysdeps/mips/mips64/mul_1.S (__mpn_mul_1): Ditto.
36819         * sysdeps/mips/mips64/submul_1.S (__mpn_submul_1): Ditto.
36820
36821 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
36822
36823         * sysdeps/mips/sys/asm.h (PTR_ADDU): Use addu on mips32r6/mips64r6.
36824         (PTR_ADDIU): Use addiu for mips32r6/mips64r6.
36825         (PTR_SUBU): Use subu for mips32r6/mips64r6.
36826         (PTR_SUBIU): Use subu for mips32r6/mips64r6 (subiu does not exist).
36827         * sysdeps/mips/machine-gmon.h (PTR_ADDU_STRING) Use addu for
36828         mips32r6/mips64r6.
36829         (PTR_SUBU_STRING) Use subu for mips32r6/mips64r6.
36830
36831 2014-12-19  Ondřej Bílka  <neleai@seznam.cz>
36832
36833         * string/strncat.c (STRNCAT): Simplify implementation.
36834
36835 2014-12-19  David S. Miller  <davem@davemloft.net>
36836
36837         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Use a union to
36838         access the quad as both a long double and as a series of 4 words.
36839
36840         * get-dynamic-info.h (elf_get_dynamic_info): Ignore -Warray-bounds for a
36841         link_map->l_info array access.
36842
36843 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
36844
36845         * iconvdata/tst-loading.c (TIMEOUT): Increase timeout 10 sec.
36846
36847         * math/atest-exp.c (TIMEOUT): Increase timeout to 10 sec.
36848         * math/atest-exp2.c (TIMEOUT): Likewise.
36849         * math/atest-sincos.c (TIMEOUT): Likewise.
36850
36851 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
36852
36853         * sysdeps/x86_64/x32/Makefile (CFLAGS-s_llround.c): Replace
36854         -Wno-error with -fno-builtin-lround.
36855
36856 2014-12-19  Torvald Riegel  <triegel@redhat.com>
36857
36858         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: New file.
36859         Contains futex constants and functions moved over from ...
36860         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.  Include
36861         <lowlevellock-futex.h>.
36862         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
36863         (lll_timedwait_tid): Add comments and parentheses around macro
36864         arguments.
36865
36866 2014-12-19  Torvald Riegel  <triegel@redhat.com>
36867
36868         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Include
36869         <lowlevellock-futex.h>.  Remove FUTEX_* constants defined there.
36870         (__lll_private_flag): Remove.
36871         (lll_futex_wait): Likewise.
36872         (lll_futex_timed_wait): Likewise.
36873         (lll_futex_wake): Likewise.
36874         (lll_futex_requeue): Likewise.
36875         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
36876         (__lll_timedwait_tid): Spell out argument names.
36877         (lll_timedwait_tid): Add comments and parentheses around macro
36878         arguments.
36879         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Make FUTEX_* constants,
36880         LLL_SHARED and LLL_PRIVATE usable from assembly code.
36881
36882 2014-12-19  Torvald Riegel  <triegel@redhat.com>
36883
36884         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove file.
36885         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
36886         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
36887         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Likewise.
36888         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
36889         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
36890         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
36891         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
36892         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
36893         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
36894         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
36895         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
36896         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
36897         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
36898         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Likewise.
36899         * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
36900         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
36901         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
36902         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
36903
36904 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
36905
36906         * sysdeps/x86_64/x32/Makefile: New file.
36907
36908 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
36909
36910         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Replace
36911         1L with (mp_limb_t) 1.
36912
36913 2014-12-17  Roland McGrath  <roland@hack.frob.com>
36914
36915         * sysdeps/nptl/fork.c (__fork_generation_pointer): Variable moved ...
36916         * nptl/libc_pthread_init.c: ... here.
36917         * sysdeps/nptl/fork.c (__fork_handlers): Variable moved ...
36918         * nptl/register-atfork.c: ... here.
36919
36920         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread):
36921         Use pthread_sigmask rather than INTERNAL_SYSCALL.
36922         Use assert_perror to check its return value.
36923         (__gai_create_helper_thread): Likewise.
36924
36925         * inet/if_index.c (__if_freenameindex): Add libc_hidden_def.
36926
36927         * malloc/malloc.c (alloc_perturb, free_perturb): Remove inline keyword.
36928
36929 2014-12-17  Joseph Myers  <joseph@codesourcery.com>
36930
36931         [BZ #17725]
36932         * sysdeps/generic/profil-counter.h (profil_counter): Rename to
36933         __profil_counter.
36934         * sysdeps/unix/sysv/linux/hppa/profil-counter.h (profil_counter):
36935         Likewise.
36936         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
36937         Likewise.
36938         * sysdeps/unix/sysv/linux/ia64/profil-counter.h (profil_counter):
36939         Likewise.
36940         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h
36941         (profil_counter): Likewise.
36942         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h
36943         (profil_counter): Likewise.
36944         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
36945         Likewise.
36946         * sysdeps/unix/sysv/linux/tile/profil-counter.h (profil_counter):
36947         Likewise.
36948         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h
36949         (profil_counter): Likewise.
36950         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
36951         Likewise.
36952         [!__profil_counter] (profil_counter): Define as weak alias of
36953         __profil_counter.
36954         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h
36955         (profil_counter): Rename to __profil_counter.
36956         [!__profil_counter] (profil_counter): Define as weak alias of
36957         __profil_counter.
36958         * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h
36959         (profil_counter): Rename to __profil_counter.
36960         [!__profil_counter] (profil_counter): Define as weak alias of
36961         __profil_counter.
36962         * sysdeps/posix/profil.c: Update comment referring to
36963         profil_counter.
36964         (__profil): Use __profil_counter instead of profil_counter.
36965         * sysdeps/posix/sprofil.c (profil_counter): Rename to
36966         __profil_counter.  Use __profil_counter_ushort and
36967         __profil_counter_uint in definitions.
36968         (__sprofil): Use __profil_counter_uint and __profil_counter_ushort
36969         instead of profil_counter_uint and profil_counter_ushort.
36970
36971         [BZ #17722]
36972         * inet/inet_mkadr.c (inet_makeaddr): Rename to __inet_makeaddr and
36973         define as weak alias of __inet_makeaddr.
36974         * resolv/inet_addr.c (inet_addr): Rename to __inet_addr and define
36975         as weak alias of __inet_addr.
36976         * resolv/inet_pton.c (inet_pton): Rename to __inet_pton and define
36977         as weak alias of __inet_pton.  Use libc_hidden_weak.
36978         * include/arpa/inet.h (__inet_pton): Declare.  Use
36979         libc_hidden_proto.
36980         (inet_makeaddr): Don't use libc_hidden_proto.
36981         (__inet_makeaddr): Declare.  Use libc_hidden_proto.
36982         * resolv/res_init.c (__res_vinit): Use __inet_pton instead of
36983         inet_pton.  Use __inet_makeaddr instead of inet_makeaddr.
36984         * conform/Makefile (test-xfail-POSIX/pthread.h/linknamespace):
36985         Remove variable.
36986         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
36987         (test-xfail-POSIX/time.h/linknamespace): Likewise.
36988
36989 2014-12-17  Steve Ellcey  <sellcey@imgtec.com>
36990
36991         * inet/getnetgrent_r.c: Move while loop to be inside if statement.
36992
36993 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
36994
36995         * stdio-common/bug-vfprintf-nargs.c (do_test):
36996         Cast value to intptr_t to avoid format warning
36997         for usage with PRIdPTR printing macro.
36998
36999 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
37000
37001         * libio/tst-widetext.c (do_test):
37002         Use format type %td instead of %Zd for ptrdiff_t
37003         in order to avoid format warning.
37004
37005 2014-12-17  Andreas Schwab  <schwab@suse.de>
37006
37007         * nscd/mem.c (gc): Add size_t cast to match printf format.
37008
37009 2014-12-16  Roland McGrath  <roland@hack.frob.com>
37010
37011         * sysdeps/gnu/unwind-resume.c: #include <sysdep.h>.
37012         (init): Apply PTR_MANGLE to pointers before storing them.
37013         (_Unwind_Resume, __gcc_personality_v0): Apply PTR_DEMANGLE to pointers
37014         before using them.
37015
37016 2014-12-16  Joseph Myers  <joseph@codesourcery.com>
37017
37018         [BZ #17719]
37019         * sysdeps/x86_64/memrchr.S (memrchr): Rename to __memrchr and
37020         define as weak alias of __memrchr.
37021         (__memrchr): Do not define as strong alias of memrchr.
37022         * conform/Makefile (test-xfail-XPG4/libgen.h/linknamespace):
37023         Remove variable.
37024         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
37025         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
37026         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
37027
37028         [BZ #17717]
37029         * inet/if_index.c (if_nametoindex): Rename to __if_nametoindex and
37030         define as weak alias of __if_nametoindex.  Use libc_hidden_weak.
37031         (if_indextoname): Rename to __if_indextoname and define as weak
37032         alias of __if_indextoname.  Use libc_hidden_weak.
37033         (if_freenameindex): Rename to __if_freenameindex and define as
37034         weak alias of __if_freenameindex.
37035         (if_nameindex): Rename to __if_nameindex and define as weak alias
37036         of __if_nameindex.
37037         * sysdeps/mach/hurd/if_index.c (if_nametoindex): Rename to
37038         __if_nametoindex and define as weak alias of __if_nametoindex.
37039         Use libc_hidden_weak.
37040         (if_freenameindex): Rename to __if_freenameindex and define as
37041         weak alias of __if_freenameindex.
37042         (if_nameindex): Rename to __if_nameindex and define as weak alias
37043         of __if_nameindex.
37044         (if_indextoname): Rename to __if_indextoname and define as weak
37045         alias of __if_indextoname.  Use libc_hidden_weak.
37046         * sysdeps/unix/sysv/linux/if_index.c (if_nametoindex): Rename to
37047         __if_nametoindex and define as weak alias of __if_nametoindex.
37048         Use libc_hidden_weak.
37049         (if_freenameindex): Rename to __if_freenameindex and define as
37050         weak alias of __if_freenameindex.  Use libc_hidden_weak.
37051         (if_nameindex_netlink): Use __if_freenameindex instead of
37052         if_freenameindex.
37053         (if_nameindex): Rename to __if_nameindex and define as weak alias
37054         of __if_nameindex.  Use libc_hidden_weak.
37055         (if_indextoname): Rename to __if_indextoname and define as weak
37056         alias of __if_indextoname.  Use libc_hidden_weak.
37057         * include/net/if.h [!_ISOMAC] (__if_nametoindex): Declare and use
37058         libc_hidden_proto.
37059         [!_ISOMAC] (__if_freenameindex): Likewise.
37060         * resolv/res_init.c (__res_vinit): Use __if_nametoindex instead of
37061         if_nametoindex.
37062         * conform/Makefile (test-xfail-XPG4/grp.h/linknamespace): Remove
37063         variable.
37064         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
37065         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
37066         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
37067         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
37068         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
37069         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
37070         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
37071
37072         * conform/Makefile (test-xfail-UNIX98/semaphore.h/linknamespace):
37073         Remove variable.
37074         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
37075         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
37076
37077 2014-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
37078
37079         * resolv/res_send.c (__libc_res_nsend): Disable warning 'array
37080         subscript above bounds'
37081
37082         * resolv/res_send.c (__libc_res_nsend): Fix check for nsmap
37083         bounds.
37084
37085 2014-12-16  Arjun Shankar  <arjun.is@lostca.se>
37086
37087         * libio/tst-fopenloc.c: Use test-skeleton.c.
37088
37089         * stdlib/tst-bsearch.c: Use test-skeleton.c.
37090         (entry): Rename to ITEM.
37091         (do_test, comp): Adjust.
37092
37093         * stdio-common/tst-fseek.c: Use test-skeleton.c.
37094
37095 2014-12-16  Torvald Riegel  <triegel@redhat.com>
37096
37097         * string/tester.c: Include <libc-internal.h>.
37098         (test_memset): Ignore -Wmemset-transposed-args.
37099
37100 2014-12-16  Torvald Riegel  <triegel@redhat.com>
37101
37102         * misc/tst-mntent2.c (do_test): Fix warning.
37103
37104 2014-12-16  Torvald Riegel  <triegel@redhat.com>
37105
37106         * elf/tst-unique4lib.cc(a): Mark as used.
37107
37108 2014-12-16  Florian Weimer  <fweimer@redhat.com>
37109
37110         [BZ #17630]
37111         * resolv/nss_dns/dns-network.c (getanswer_r): Iterate over alias
37112         names.
37113
37114 2014-12-16  Allan McRae  <allan@archlinux.org>
37115
37116         * stdio-common/Makefile (tests): Re-add bug26.
37117
37118 2014-12-15  Ondřej Bílka  <neleai@seznam.cz>
37119
37120         [BZ #17657]
37121         * locale/programs/ld-ctype.c (find_translit2, read_widestring): Return
37122         static array.
37123
37124 2014-12-15  Bernard Ogden  <bernie.ogden@linaro.org>
37125
37126         * nptl/lowlevellock.c (__lll_lock_wait_private): Add comments.
37127         (__lll_lock_wait): Likewise.
37128         (__lll_timedlock_wait): Likewise.
37129         (__lll_timedwait_tid): Likewise.
37130         * nptl/lowlevelrobustlock.c (__lll_robust_lock_wait): Likewise.
37131         (__lll_robust_timedlock_wait): Likewise.
37132         * sysdeps/nptl/lowlevellock.h (lll_trylock): Likewise.
37133         (lll_cond_trylock): Likewise.
37134         (__lll_lock): Likewise.
37135         (__lll_robust_lock): Likewise.
37136         (__lll_cond_lock): Likewise.
37137         (lll_robust_cond_lock): Likewise.
37138         (__lll_timedlock): Likewise.
37139         (__lll_robust_timedlock): Likewise.
37140         (__lll_unlock): Likewise.
37141         (__lll_robust_unlock): Likewise.
37142         (lll_wait_tid): Likewise.
37143         (lll_timedwait_tid): Likewise.
37144
37145 2014-12-15  Torvald Riegel  <triegel@redhat.com>
37146
37147         * nptl/tst-sem4.c (do_test): Start with a fresh semaphore state.
37148
37149 2014-12-15  Torvald Riegel  <triegel@redhat.com>
37150
37151         * nptl/tst-mutex5.c (do_test): Do not skip tests if elision is enabled.
37152
37153 2014-12-15  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
37154
37155         * stdio-common/test-vfprintf.c: Include <libc-internal.h>.
37156         * stdio-common/tst-sprintf.c: Likewise.
37157
37158 2014-12-15  Torvald Riegel  <triegel@redhat.com>
37159
37160         * sysdeps/unix/sysv/linux/s390/pthread_once.c: Remove file.
37161
37162 2014-12-15  Jeff Law  <law@redhat.com>
37163
37164         [BZ #16617]
37165         * stdio-common/vfprintf.c (vfprintf): Allocate large specs array
37166         on the heap.  (CVE-2012-3406)
37167         * stdio-common/bug23-2.c, stdio-common/bug23-3.c: New file.
37168         * stdio-common/bug23-4.c: New file.  Test case by Joseph Myers.
37169         * stdio-common/Makefile (tests): Add bug23-2, bug23-3, bug23-4.
37170
37171 2014-12-15  Will Newton  <will.newton@linaro.org>
37172
37173         * manual/install.texi: Bump required version of texinfo
37174         to 4.7 from 4.5.
37175         * INSTALL: Regenerated.
37176         * configure.ac: Check for makeinfo version 4.7 and above.
37177         * configure: Regenerated.
37178
37179 2014-12-12  Roland McGrath  <roland@hack.frob.com>
37180
37181         * sysdeps/posix/shm-directory.h (SHM_GET_NAME): Take new argument
37182         PREFIX, string constant to insert between directory and name.
37183         * sysdeps/posix/shm_open.c: Update caller.
37184         * sysdeps/posix/shm_unlink.c: Likewise.
37185         * nptl/semaphoreP.h (struct mountpoint_info): Type removed.
37186         (__where_is_shmfs, mountpoint, __namedsem_once): Declarations removed.
37187         (SEM_SHM_PREFIX): New macro.
37188         * sysdeps/posix/Makefile (librt-routines): Add shm-directory only if
37189         [$(have-thread-library) = no].
37190         * nptl/Makefile (libpthread-routines): Add shm-directory.
37191         * nptl/Versions (GLIBC_PRIVATE): Add __shm_directory.
37192         * sysdeps/nptl/shm-directory.h: New file.
37193         * sysdeps/posix/shm-directory.c
37194         [IS_IN (libpthread)] (__shm_directory): Add hidden_def.
37195         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
37196         * nptl/sem_open.c (check_add_mapping): Use munmap function rather than
37197         INTERNAL_SYSCALL.
37198         (__where_is_shmfs): Function removed.
37199         (mountpoint, defaultmount, defaultdir, __namedsem_once):
37200         Variables removed.
37201         (sem_open): Use __libc_close function rather than INTERNAL_SYSCALL.
37202         Use SHM_GET_NAME.
37203         * nptl/sem_unlink.c: Prototypify.  Use SHM_GET_NAME.
37204
37205         * sysdeps/nptl/bits/libc-lockP.h [IS_IN (libpthread)]
37206         (PTFAVAIL, __libc_ptf_call, __libc_ptf_call_always): Define as
37207         unconditional for use inside libpthread.
37208         [IS_IN (libpthread)]: Include <nptl/pthreadP.h>.
37209
37210 2014-12-12  Roland McGrath  <roland@hack.frob.com>
37211
37212         * nptl/pthread_getaffinity.c: New file.
37213         * nptl/pthread_setaffinity.c: New file.
37214         * nptl/pthread_getname.c: New file.
37215         * nptl/pthread_setname.c: New file.
37216
37217         * nptl/pthread_create.c (START_THREAD_DEFN)
37218         [! __ASSUME_SET_ROBUST_LIST]: Add missing & in lll_futex_wake argument.
37219
37220 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
37221             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37222
37223         * resolv/res_send.c (send_vc): Disable warning resplen may
37224         be used uninitialized.
37225
37226 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
37227
37228         * nptl/tst-mutex6.c
37229         (ATTR_NULL): New define checks ATTR against NULL.
37230         (do_test): Use !ATTR_NULL instead of ATTR != NULL.
37231         * nptl/tst-mutexpp6.c (ATTR_NULL): New define.
37232
37233 2014-12-11  James Lemke  <jwlemke@codesourcery.com>
37234
37235         [BZ #17581]
37236         * malloc/hooks.c
37237         (mem2mem_check): Revert my previous change.
37238         (malloc_check_get_size): Revert my previous change.
37239         (mem2chunk_check): Revert my previous change.
37240
37241 2014-12-11  Roland McGrath  <roland@hack.frob.com>
37242
37243         * sysdeps/posix/shm-directory.c: New file.
37244         * sysdeps/posix/shm-directory.h: New file.
37245         * sysdeps/posix/Makefile [($(subdir) = rt] (librt-routines): Add it.
37246         * sysdeps/posix/shm_open.c: Use SHM_GET_NAME.
37247         Use O_NOFOLLOW and O_CLOEXEC if available.  Transmute EISDIR to EINVAL.
37248         * sysdeps/posix/shm_unlink.c: Use SHM_GET_NAME.
37249         Transmute EPERM to EACCES.
37250         * sysdeps/unix/sysv/linux/shm-directory.c: New file, most code taken
37251         from ...
37252         * sysdeps/unix/sysv/linux/shm_open.c: ... here.  File removed.
37253         * sysdeps/unix/sysv/linux/shm_unlink.c: File removed.
37254
37255 2014-12-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
37256
37257         * sysdeps/sh/jmpbuf_unwind.h (_jmpbuf_sp): Declare SP as void
37258         pointer and cast to uintptr_t.
37259         * sysdeps/sh/nptl/tls.h (TLS_INIT_TP): Use NULL instead of 0.
37260         * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_timed_wait):
37261         Add cast to avoid warning.
37262         * sysdeps/unix/sysv/linux/sh/register-dump.h: Use 0 instead of NULL.
37263
37264 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
37265
37266         * nptl/semaphore.h: Move to ...
37267         * sysdeps/pthread/semaphore.h: ... here.
37268         * Makefile (installed-headers): Change nptl/semaphore.h to
37269         sysdeps/pthread/semaphore.h.
37270
37271 2014-12-11  Roland McGrath  <roland@hack.frob.com>
37272
37273         * misc/tst-error1.c (do_test): Ignore -Wformat-security for
37274         generated error format strings.
37275
37276         * stdio-common/tstdiomisc.c (t2): Ignore -Wformat and
37277         -Wformat-extra-args warnings for scanf formats.
37278         * stdio-common/scanf4.c (main): Ignore -Wformat-zero-length around
37279         test of zero-length format (duh).
37280         * stdio-common/scanf7.c (main): Ignore -Wformat warnings for
37281         corner-case scanf format test.
37282         * stdio-common/test-vfprintf.c (do_test): Ignore -Wformat-security for
37283         generated fprintf format string.
37284         * stdio-common/tst-sprintf.c (do_test): Ignore -Wformat warnings for
37285         corner-case sprintf format tests.
37286         * stdio-common/tst-printf.c: Ignore -Wformat throughout.
37287         * stdio-common/tst-printfsz.c (main): Ignore -Wformat and
37288         -Wformat-extra-args warnings throughout.
37289         * stdio-common/Makefile (CFLAGS-tstdiomisc.c): Variable removed.
37290         (CFLAGS-scanf4.c): Likewise.
37291         (CFLAGS-scanf7.c): Likewise.
37292         (CFLAGS-tst-sprintf.c): Likewise.
37293         (CFLAGS-tst-printf.c): Likewise.
37294         (CFLAGS-tst-printfsz.c): Likewise.
37295
37296 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
37297
37298         * include/cpio.h: New file.
37299         * include/fmtmsg.h: Likewise.
37300
37301         * tst-mbswcs1.c (show): Use %zu format instead of %Zd.  Cast
37302         corresponding format argument to size_t.
37303         * tst-mbswcs2.c (show): Likewise.  Use %td format for ptrdiff_t
37304         arguments.
37305         * tst-mbswcs3.c (show): Use %zu format instead of %Zd.  Cast
37306         corresponding format argument to size_t.
37307         * tst-mbswcs4.c (show): Likewise.  Use %td format for ptrdiff_t
37308         arguments.
37309         * tst-mbswcs5.c (show): Use %zu format instead of %Zd.  Cast
37310         corresponding format argument to size_t.
37311         * tst-trans.c (do_test): Use %lc format for wint_t arguments.
37312         * Makefile (CFLAGS-tst-mbswcs1.c): Remove variable.
37313         (CFLAGS-tst-mbswcs2.c): Likewise.
37314         (CFLAGS-tst-mbswcs3.c): Likewise.
37315         (CFLAGS-tst-mbswcs4.c): Likewise.
37316         (CFLAGS-tst-mbswcs5.c): Likewise.
37317         (CFLAGS-tst-trans.c): Likewise.
37318
37319 2014-12-11  Roland McGrath  <roland@hack.frob.com>
37320
37321         * posix/regexbug1.c (main): Use "%s" format with regerror results,
37322         rather than assuming they won't contain any '%'s.
37323
37324 2014-12-11  Chris Metcalf  <cmetcalf@ezchip.com>
37325
37326         * sysdeps/tile/tilegx/memset.c (__memcpy): Add
37327         inhibit_loop_to_libcall to avoid recursive calls.
37328         * sysdeps/tile/tilegx/memcpy.c (__memcpy): Likewise.
37329         * sysdeps/tile/tilepro/memcpy.c (__memcpy): Likewise.
37330
37331 2014-12-11  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
37332
37333         * include/sys/socket.h (__sendmmsg): Add __USE_GNU guards on function
37334         prototype.
37335
37336 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
37337
37338         * sysdeps/mips/dl-trampoline.c: Modify switch expression to have
37339         integer value instead of boolean.
37340
37341 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
37342
37343         * malloc/malloc.c: Fix powerof2 check.
37344
37345 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
37346
37347         * locale/programs/locfile.h (maybe_swap_uint32):
37348         Remove inline and add unused attribute.
37349
37350 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
37351
37352         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
37353         Truncating assembler expression to a .long expression.
37354
37355 2014-12-11  Andreas Schwab  <schwab@suse.de>
37356
37357         * elf/rtld.c (struct map_args): Constify str member.
37358         (do_preload): Constify fname argument.
37359
37360 2014-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37361
37362         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Remove overflow warnings for
37363         constants definition.
37364
37365 2014-12-11  Andreas Schwab  <schwab@suse.de>
37366
37367         [BZ #16657]
37368         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
37369         FORCE_ELISION instead of DO_ELISION.
37370         * sysdeps/unix/sysv/linux/x86/force-elision.h (DO_ELISION):
37371         Remove.
37372         * sysdeps/unix/sysv/linux/s390/force-elision.h (DO_ELISION):
37373         Likewise.
37374
37375         * iconvdata/gconv-modules: Remove duplicate entry.
37376
37377 2014-12-11  Will Newton  <will.newton@linaro.org>
37378
37379         Merge gettext 0.19.3 into intl/.
37380
37381         This involves a number of cosmetic changes to comments
37382         and ANSI function definitions and prototypes throughout
37383         all the files. The gettext copyright header is used but
37384         with the date ranges taken from the glibc copy.
37385
37386         * NEWS: Add gettext merge to 2.21.
37387         * intl/bindtextdom.c: Switch to gettext copyright.
37388         Use ANSI definitions and prototypes.
37389         Use gl_* locking primitives rather than __libc_* ones.
37390         Use __builtin_expect rather than __glibc_likely/unlikely.
37391         * intl/dcgettext.c: Switch to gettext copyright.
37392         Use ANSI definitions and prototypes.
37393         * intl/dcigettext.c: Switch to gettext copyright.
37394         Use ANSI definitions and prototypes.
37395         (INTDIV0_RAISES_SIGFPE): New define.
37396         Use gl_* locking primitives rather than __libc_* ones.
37397         Include eval-plural.h instead of plural-eval.c.
37398         Use __builtin_expect rather than __glibc_likely/unlikely.
37399         * intl/dcngettext.c: Switch to gettext copyright.
37400         Use ANSI definitions and prototypes.
37401         * intl/dgettext.c: Likewise.
37402         * intl/dngettext.c: Likewise.
37403         * intl/plural-eval.c: Renamed to...
37404         * intl/eval-plural.h: ...this.
37405         * intl/explodename.c: Switch to gettext copyright.
37406         Use ANSI definitions and prototypes.
37407         (_nl_explode_name): Use strchr instead of __rawmemchr.
37408         * intl/finddomain.c: Switch to gettext copyright.
37409         Use ANSI definitions and prototypes.
37410         Use gl_* locking primitives rather than __libc_* ones.
37411         (_nl_find_domain): Use malloc rather than alloca for
37412         allocation of temporary locale name.
37413         * intl/gettext.c: Switch to gettext copyright.
37414         Use ANSI definitions and prototypes.
37415         * intl/gettextP.h: Switch to gettext copyright.
37416         Use ANSI definitions and prototypes.
37417         Use gl_* locking primitives rather than __libc_* ones.
37418         * intl/gmo.h: Switch to gettext copyright.
37419         (struct sysdep_string): Move struct segment_pair outside of
37420         struct definition.
37421         * intl/hash-string.c: Use ANSI definitions and prototypes.
37422         * intl/hash-string.h: Switch to gettext copyright.
37423         Use ANSI definitions and prototypes.
37424         * intl/l10nflist.c: Switch to gettext copyright.
37425         Use ANSI definitions and prototypes.
37426         (_nl_normalize_codeset): Avoid integer overflow.
37427         * intl/loadinfo.h: Switch to gettext copyright.
37428         Use ANSI definitions and prototypes.
37429         (LIBINTL_DLL_EXPORTED): New define.
37430         (PATH_SEPARATOR): New define.
37431         * intl/loadmsgcat.c: Switch to gettext copyright.
37432         * intl/localealias.c: Switch to gettext copyright.
37433         Use ANSI definitions and prototypes.
37434         (_nl_expand_alias): Use PATH_SEPARATOR.
37435         * intl/ngettext.c: Switch to gettext copyright.
37436         Use ANSI definitions and prototypes.
37437         * intl/plural-exp.c: Likewise.
37438         * intl/plural-exp.h: Switch to gettext copyright.
37439         Use ANSI definitions and prototypes.
37440         (struct expression): Move definition of enum operator outside
37441         of struct definition.
37442         * intl/plural.c: Regenerate.
37443         * intl/plural.y: Switch to gettext copyright.
37444         Use ANSI definitions and prototypes.
37445         Port to bison 3.0.
37446         * intl/textdomain.c: Switch to gettext copyright.
37447         Use ANSI definitions and prototypes.
37448         Use gl_* locking primitives rather than __libc_* ones.
37449
37450 2014-12-10  Steve Ellcey  <sellcey@imgtec.com>
37451
37452         * debug/warning-nop.c: Add used atrribute.
37453
37454 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
37455
37456         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: New file.
37457
37458         * sysdeps/unix/sysv/linux/mips/mips64/Makefile
37459         [$(subdir) == signal] (CFLAGS-sigaction.c): New variable.
37460         [$(subdir) == nptl] (CFLAGS-sigaction.c): Likewise.
37461
37462 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
37463             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37464
37465         [BZ #17634]
37466         * wcsmbs/wcschr.c [!WCSCHR] (wcschr): Define as __wcschr.
37467         Undefine after defining function.  Define as weak alias of
37468         __wcschr.  Use libc_hidden_weak.
37469         * include/wchar.h (__wcschr): Declare.  Use libc_hidden_proto.
37470         * sysdeps/i386/i686/multiarch/wcschr-c.c [IS_IN (libc) && SHARED]
37471         (libc_hidden_def): Also define __GI___wcschr alias.
37472         * sysdeps/i386/i686/multiarch/wcschr.S (wcschr): Rename to
37473         __wcschr and define as weak alias of __wcschr.
37474         * sysdeps/powerpc/power6/wcschr.c [!WCSCHR] (WCSCHR): Define as
37475         __wcschr.
37476         [!WCSCHR] (DEFAULT_WCSCHR): Define.
37477         [DEFAULT_WCSCHR] (__wcschr): Use libc_hidden_def.
37478         [DEFAULT_WCSCHR] (wcschr): Define as weak alias of __wcschr.  Use
37479         libc_hidden_weak.  Do not use libc_hidden_def.
37480         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c
37481         [IS_IN (libc) && SHARED] (libc_hidden_def): Also define
37482         __GI___wcschr alias.
37483         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c
37484         [IS_IN (libc)] (wcschr): Define as macro expanding to
37485         __redirect_wcschr.
37486         [IS_IN (libc)] (__wcschr_ppc): Use __redirect_wcschr in typeof.
37487         [IS_IN (libc)] (__wcschr_power6): Likewise.
37488         [IS_IN (libc)] (__wcschr_power7): Likewise.
37489         [IS_IN (libc)] (__libc_wcschr): New.  Define with libc_ifunc
37490         instead of wcschr.
37491         [IS_IN (libc)] (wcschr): Undefine and define as weak alias of
37492         __libc_wcschr.
37493         [!IS_IN (libc)] (libc_hidden_def): Do not undefine and redefine.
37494         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c (wcschr): Rename to
37495         __wcschr and define as weak alias of __wcschr.  Use
37496         libc_hidden_builtin_def.
37497         * sysdeps/x86_64/wcschr.S (wcschr): Rename to __wcschr and define
37498         as weak alias of __wcschr.  Use libc_hidden_weak.
37499         * time/alt_digit.c (_nl_get_walt_digit): Use __wcschr instead of
37500         wcschr.
37501         * time/era.c (_nl_init_era_entries): Likewise.
37502         * conform/Makefile (test-xfail-ISO/time.h/linknamespace): Remove
37503         variable.
37504         (test-xfail-XPG3/time.h/linknamespace): Likewise.
37505         (test-xfail-XPG4/time.h/linknamespace): Likewise.
37506
37507 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
37508
37509         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld
37510         format for long int variable.
37511
37512 2014-12-10  Anders Kaseorg  <andersk@MIT.EDU>
37513
37514         [BZ #10672]
37515         * manual/search.texi: (Array Sort Function): Remove claim how to make
37516         qsort stable.
37517
37518 2014-12-10  Andreas Schwab  <schwab@suse.de>
37519
37520         [BZ #12847]
37521         * sysdeps/nptl/fork.c (fresetlockfiles): Skip files with
37522         user-controlled locks.
37523
37524 2014-12-10  Richard Earnshaw  <rearnsha@arm.com>
37525
37526         * sysdeps/aarch64/strchrnul.S (vrepmask): Use a call-clobbered
37527         register.
37528
37529 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
37530
37531         * configure.ac (--disable-werror): New configure option.
37532         (enable_werror): New AC_SUBST.
37533         * configure: Regenerated.
37534         * config.make.in (enable-werror): New variable.
37535         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Add -Werror
37536         -Wno-error=undef.
37537         (+gccwarn-c): Do not use -Werror=implicit-function-declaration.
37538         * manual/install.texi (Configuring and compiling): Document
37539         --disable-werror.
37540         * INSTALL: Regenerated.
37541         * debug/Makefile (CFLAGS-tst-chk1.c): Add -Wno-error.
37542         (CFLAGS-tst-chk2.c): Likewise.
37543         (CFLAGS-tst-chk3.c): Likewise.
37544         (CFLAGS-tst-chk4.cc): Likewise.
37545         (CFLAGS-tst-chk5.cc): Likewise.
37546         (CFLAGS-tst-chk6.cc): Likewise.
37547         (CFLAGS-tst-lfschk1.c): Likewise.
37548         (CFLAGS-tst-lfschk2.c): Likewise.
37549         (CFLAGS-tst-lfschk3.c): Likewise.
37550         (CFLAGS-tst-lfschk4.cc): Likewise.
37551         (CFLAGS-tst-lfschk5.cc): Likewise.
37552         (CFLAGS-tst-lfschk6.cc): Likewise.
37553
37554         * stdio-common/tst-printfsz.c: Include <libc-internal.h>.
37555         (main): Disable -Wdeprecated-declarations around calls to
37556         register_printf_function.
37557
37558         * stdio-common/tst-unlockedio.c: Include <libc-internal.h>.
37559         (do_test): Disable -Wdiv-by-zero around some calls to
37560         fwrite_unlocked and fread_unlocked.
37561
37562         * include/libc-internal.h (DIAG_PUSH_NEEDS_COMMENT): New macro.
37563         (DIAG_POP_NEEDS_COMMENT): Likewise.
37564         (_DIAG_STR1): Likewise.
37565         (_DIAG_STR): Likewise.
37566         (DIAG_IGNORE_NEEDS_COMMENT): Likewise.
37567         * stdio-common/bug21.c: Include <libc-internal.h>.
37568         (do_test): Disable -Wformat around call to sscanf.
37569         * stdio-common/scanf14.c: Include <libc-internal.h>.
37570         (main): Disable -Wformat around some calls to scanf functions.
37571
37572 2014-12-09  Torvald Riegel  <triegel@redhat.com>
37573
37574         * sysdeps/unix/sysv/linux/sh/pthread_once.S: Remove file.
37575
37576 2014-12-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37577
37578         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix wide-character
37579         stack variable alignment.
37580
37581 2014-12-06  Joseph Myers  <joseph@codesourcery.com>
37582
37583         [BZ #17682]
37584         * resource/Versions (libc): Add __getrlimit at GLIBC_PRIVATE.
37585         * resource/getrlimit.c (__getrlimit): Use libc_hidden_def.
37586         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
37587         * include/sys/resource.h (__getrlimit): Use libc_hidden_proto.
37588         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Use
37589         __getrlimit instead of getrlimit.
37590         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Use
37591         __gettimeofday instead of gettimeofday.
37592         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
37593         Likewise.
37594         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
37595         Likewise.
37596         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
37597         * conform/Makefile (test-xfail-POSIX2008/aio.h/linknamespace):
37598         Remove variable.
37599         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
37600         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
37601
37602 2014-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37603
37604         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix buffer overrun
37605         for wide-character tests.
37606
37607 2014-12-04  Roland McGrath  <roland@hack.frob.com>
37608
37609         * io/openat64.c: #include <libc-internal.h>
37610         (__openat64): Prototypify.  Use ignore_value on MODE.
37611         * io/openat.c: Likewise.
37612         * misc/reboot.c: #include <libc-internal.h>
37613         (reboot): Prototypify.  Use ignore_value on HOWTO.
37614         * misc/ptrace.c: #include <libc-internal.h>
37615         (ptrace): Prototypify.  Use ignore_value for va_arg'd parameters.
37616
37617 2014-12-04  Joseph Myers  <joseph@codesourcery.com>
37618
37619         * conform/list-header-symbols.pl (%extra_syms): Add h_errno for
37620         XPG4, UNIX98 and XOPEN2K.
37621         * conform/Makefile (test-xfail-XOPEN2K/grp.h/linknamespace):
37622         Remove variable.
37623         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
37624
37625 2014-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
37626
37627         * libio/fileops.c: Use ISO C style for function definitions.
37628         * libio/iofopen.c: Likewise.
37629         * libio/wfileops.c: Likewise.
37630
37631         [BZ #17653]
37632         * libio/fileops.c (_IO_new_file_underflow): Unset cached
37633         offset on EOF.
37634         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
37635         * libio/tst-ftell-active-handler.c (fgets_func_t): New type.
37636         (fgets_func): Function pointer to fgets and fgetws.
37637         (do_ftell_test): Add test to verify ftell value after read
37638         EOF.
37639         (do_test): Set fgets_func.
37640
37641         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Add
37642         O_TRUNC flag for w and w+ modes.
37643         (do_rewind_test): Likewise.
37644         (do_ftell_test): Likewise.
37645         (do_write_test): Likewise.
37646
37647         [BZ #17647]
37648         * libio/fileops.c (do_ftell): Seek only when there are
37649         unflushed writes.
37650         * libio/wfileops.c (do_ftell_wide): Likewise.
37651         * libio/tst-ftell-active-handler.c (do_ftruncate_test): New
37652         test case.
37653         (do_one_test): Call it.
37654
37655 2014-12-03  Joseph Myers  <joseph@codesourcery.com>
37656
37657         * conform/list-header-symbols.pl (%extra_syms): Add getdate_err
37658         for XPG4, UNIX98, XOPEN2K and XOPEN2K8.
37659         * conform/Makefile (test-xfail-XOPEN2K/pthread.h/linknamespace):
37660         Remove variable.
37661         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
37662         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
37663         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
37664
37665 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
37666
37667         * conform/Makefile (test-xfail-XOPEN2K/aio.h/linknamespace):
37668         Remove variable.
37669         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
37670
37671         [BZ #17668]
37672         * inet/ifaddrs.c (getifaddrs): Rename to __getifaddrs and define
37673         as weak alias of __getifaddrs.  Use libc_hidden_weak.
37674         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
37675         __freeifaddrs.  Use libc_hidden_weak.
37676         * sysdeps/gnu/ifaddrs.c (getifaddrs): Rename to __getifaddrs and
37677         define as weak alias of __getifaddrs.  Use libc_hidden_weak.
37678         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
37679         __freeifaddrs.  Use libc_hidden_weak.
37680         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Rename to
37681         __getifaddrs and define as weak alias of __getifaddrs.  Use
37682         libc_hidden_weak.
37683         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
37684         __freeifaddrs.  Use libc_hidden_weak.
37685         * conform/Makefile (test-xfail-XOPEN2K/net/if.h/linknamespace):
37686         Remove variable.
37687         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
37688         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
37689
37690 2014-12-02  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
37691
37692         [BZ #17601]
37693         * sysdeps/mips/start.S (__start): Use indirect jump to call
37694         __libc_start_main.
37695
37696 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
37697
37698         * nptl/tst-stack4.c (dso_process): Use int not uintptr_t for t.
37699
37700         * nptl/tst-mutex1.c: Include <stdbool.h>.
37701         [!ATTR] (ATTR_NULL): New macro.
37702         (do_test): Test !ATTR_NULL instead of ATTR != NULL.
37703         * nptl/tst-mutexpi1.c (ATTR_NULL): New macro.
37704         * nptl/tst-mutexpp1.c (ATTR_NULL): New macro.
37705
37706         * posix/tst-getopt_long1.c (do_test): Cast elements of argv array
37707         to char *.
37708
37709         [BZ #17665]
37710         * posix/unistd.h [__USE_MISC || (__USE_XOPEN && !__USE_UNIX98)]:
37711         Change conditional to [__USE_MISC].
37712
37713         [BZ #17664]
37714         * misc/mntent_r.c (__getmntent_r): Use __fgets_unlocked instead of
37715         fgets_unlocked.
37716         * resolv/res_hconf.c [IS_IN (libc)] (fgets_unlocked): Define to
37717         __fgets_unlocked.
37718         * resolv/res_init.c (__res_vinit): Use __fgets_unlocked instead of
37719         fgets_unlocked.
37720         * conform/Makefile (test-xfail-XPG4/sys/statvfs.h/linknamespace):
37721         Remove variable.
37722         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
37723         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
37724         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
37725         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
37726         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
37727         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
37728         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
37729         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
37730         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
37731
37732         * elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)).
37733
37734 2014-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37735
37736         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
37737         Remove strpbrk objects.
37738         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
37739         (__libc_ifunc_impl_list): Remove strpbrk implementation.
37740         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: Remove file.
37741         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Remove file.
37742         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: Remove file.
37743         * sysdeps/powerpc/powerpc64/strpbrk.S: New file.
37744
37745         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
37746         Remove strcspn objects.
37747         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
37748         (__libc_ifunc_impl_list): Remove strcspn implementation.
37749         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: Remove file.
37750         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Remove file.
37751         * sysdeps/powerpc/powerpc64/power7/strcspn.S: Remove file.
37752         * sysdeps/powerpc/powerpc64/strcspn.S: New file.
37753
37754         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
37755         Remove strspn objetcs.
37756         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
37757         (__libc_ifunc_impl_list): Remove strspn implementation.
37758         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: Remove file.
37759         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
37760         * sysdeps/powerpc/powerpc64/power7/strspn.S: Remove file.
37761         * sysdeps/powerpc/powerpc64/strspn.S: New file.
37762
37763 2014-12-01  James Lemke  <jwlemke@codesourcery.com>
37764
37765         [BZ #17581]
37766         * malloc/hooks.c
37767         (mem2mem_check): Add a terminator to the chain of checking blocks.
37768         (malloc_check_get_size): Use it here.
37769         (mem2chunk_check): Ditto.
37770
37771 2014-12-01  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
37772
37773         * sysdeps/powerpc/powerpc64/strtok.S: New file.
37774         * sysdeps/powerpc/powerpc64/strtok_r.S: New file.
37775
37776 2014-11-29  Carlos O'Donell  <carlos@redhat.com>
37777
37778         * bits/ioctl-types.h: Indent preprocessor directives correctly.
37779
37780         * nptl/nptl-init.c: Include libc-internal.h.
37781         (__pthread_initialize_minimal_internal): Use ROUND_UP.
37782
37783         * elf/ldconfig.c (search_dir): Expand comment.
37784
37785 2014-11-29  Joseph Myers  <joseph@codesourcery.com>
37786
37787         * conform/Makefile (linknamespace-symlist-stdlibs-base): New
37788         variable.
37789         (linknamespace-symlist-stdlibs-tests): Likewise.
37790         (tests-special): Append $(linknamespace-symlist-stdlibs-tests)
37791         instead of $(objpfx)symlist-stdlibs.
37792         (linknamespace-libs-isoc): New variable.
37793         (linknamespace-libs): Use $(linknamespace-libs-isoc).
37794         (linknamespace-libs-ISO): New variable.
37795         (linknamespace-libs-ISO99): Likewise.
37796         (linknamespace-libs-ISO11): Likewise.
37797         (linknamespace-libs-XPG3): Likewise.
37798         (linknamespace-libs-XPG4): Likewise.
37799         (linknamespace-libs-POSIX): Likewise.
37800         (linknamespace-libs-UNIX98): Likewise.
37801         (linknamespace-libs-XOPEN2K): Likewise.
37802         (linknamespace-libs-POSIX2008): Likewise.
37803         (linknamespace-libs-XOPEN2K8): Likewise.
37804         ($(objpfx)symlist-stdlibs): Replace by
37805         $(linknamespace-symlist-stdlibs-tests).  Use
37806         $(linknamespace-libs-$*) as set of libraries.
37807         ($(linknamespace-header-tests)): Update dependencies.  Use
37808         $(objpfx)symlist-stdlibs-$$std for --libsyms argument.
37809         (test-xfail-XPG4/sys/mman.h/linknamespace): Remove.
37810         * conform/linknamespace.pl: Remove comment about considering
37811         definitions of symbols from irrelevant libraries.
37812
37813 2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
37814
37815         [BZ #13862]
37816         * elf/dl-tls.c: Include <atomic.h>.
37817         (oom): Remove #ifdef SHARED/#endif.
37818         (_dl_static_dtv, _dl_initial_dtv): Moved before ...
37819         (_dl_resize_dtv): This.  Extracted from _dl_update_slotinfo.
37820         (_dl_allocate_tls_init): Resize DTV if the current DTV isn't
37821         big enough.
37822         (_dl_update_slotinfo): Call _dl_resize_dtv to resize DTV.
37823         * nptl/Makefile (tests): Add tst-stack4.
37824         (modules-names): Add tst-stack4mod.
37825         ($(objpfx)tst-stack4): New.
37826         (tst-stack4mod.sos): Likewise.
37827         ($(objpfx)tst-stack4.out): Likewise.
37828         ($(tst-stack4mod.sos)): Likewise.
37829         (clean): Likewise.
37830         * nptl/tst-stack4.c: New file.
37831         * nptl/tst-stack4mod.c: Likewise.
37832
37833 2014-11-27  J. Brown  <jb999@gmx.de>
37834
37835         * sysdeps/x86/bits/string.h: Add recent CPUs.
37836
37837 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
37838
37839         * misc/tst-pselect.c (do_test): Use sigprocmask instead of
37840         sigblock.
37841
37842         * libio/bug-ungetwc1.c (do_test): Verify results of getwc and
37843         feof.
37844
37845         * dlfcn/failtestmod.c (constr): Do not store result of dlsym in a
37846         variable.
37847
37848 2014-11-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
37849
37850         * nscd/connections.c: Include libc-internal.h because of macro
37851         usage ignore_value.
37852
37853 2014-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
37854
37855         * string/bits/string3.h (__warn_memset_zero_len): Don't
37856         declare for gcc newer than 5.0.
37857         (memset): Don't test for zero-length __LEN for gcc newer than
37858         5.0.
37859
37860 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
37861
37862         * stdio-common/tst-fmemopen.c (do_test): Cast st_size values to
37863         size_t for %zu format.
37864
37865         * nss/tst-nss-test1.c (do_test): Use %td printf format for pointer
37866         difference, not %ju.
37867
37868 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
37869
37870         * include/libc-internal.h (ignore_value): New macro.
37871         * nscd/connections.c (restart): Wrap calls to setuid and setgid
37872         with ignore_value.
37873
37874         * sysdeps/mips/__longjmp.c (____longjmp): Use prototype
37875         definition.
37876
37877         * nptl/tst-cancel-self-cancelstate.c (do_test): Cast argument of
37878         pthread_cleanup_push to void *.
37879
37880         * sysdeps/unix/sysv/linux/arm/libc-do-syscall.S (_FORTIFY_SOURCE):
37881         Undefine.
37882
37883         [BZ #16619]
37884         [BZ #16740]
37885         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52
37886         instead of 1L << 52.
37887
37888         * libio/bug-rewind.c (do_test): Check fwscanf return values.
37889         * libio/bug-rewind2.c (do_test): Likewise.
37890
37891         * debug/test-stpcpy_chk-ifunc.c: Remove file.
37892         * debug/test-strcpy_chk-ifunc.c: Likewise.
37893         * wcsmbs/test-wcschr-ifunc.c: Likewise.
37894         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
37895         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
37896         * wcsmbs/test-wcslen-ifunc.c: Likewise.
37897         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
37898         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
37899         * Rules [$(multi-arch) = no] (tests): Do not filter out
37900         $(tests-ifunc).
37901         [$(multi-arch) = no] (xtests): Do not filter out $(xtests-ifunc).
37902         * debug/Makefile (tests-ifunc): Remove variable.
37903         (tests): Do not add $(tests-ifunc).
37904         * wcsmbs/Makefile (tests-ifunc): Remove variable.
37905         (tests): Do not add $(tests-ifunc).
37906         * benchtests/bench-string.h (TEST_IFUNC): Remove macro.
37907         [TEST_IFUNC]: Remove conditionals.
37908         * string/test-string.h (TEST_IFUNC): Remove macro.
37909         [TEST_IFUNC]: Remove conditionals.
37910
37911         * string/test-strchr.c [!WIDE] (L): New macro.
37912         [WIDE] (L): Likewise.
37913         (check1): Use CHAR instead of char.  Use L on string and character
37914         constants.
37915
37916 2014-11-26  Adhemerval Zanella  <azanella@linux.ibm.com>
37917
37918         * csu/tst-atomic.c (do_test): Add atomic_exchange_and_add_{acq,rel}
37919         tests.
37920         * sysdeps/powerpc/bits/atomic.h
37921         (__arch_atomic_exchange_and_add_32_acq): Add definition.
37922         (__arch_atomic_exchange_and_add_32_rel): Likewise.
37923         (atomic_exchange_and_add_acq): Likewise.
37924         (atomic_exchange_and_add_rel): Likewise.
37925         * sysdeps/powerpc/powerpc32/bits/atomic.h
37926         (__arch_atomic_exchange_and_add_64_acq): Add definition.
37927         (__arch_atomic_exchange_and_add_64_rel): Likewise.
37928         * sysdeps/powerpc/powerpc64/bits/atomic.h
37929         (__arch_atomic_exchange_and_add_64_acq): Add definition.
37930         (__arch_atomic_exchange_and_add_64_rel): Likewise.
37931
37932 2014-11-26  Torvald Riegel  <triegel@redhat.com>
37933
37934         * nptl/tpp.c (__init_sched_fifo_prio, __pthread_tpp_change_priority):
37935         Change synchronization of __sched_fifo_min_prio and
37936         __sched_fifo_max_prio.
37937         * nptl/pthread_mutexattr_getprioceiling.c
37938         (pthread_mutexattr_getprioceiling): Likewise.
37939         * nptl/pthread_mutexattr_setprioceiling.c
37940         (pthread_mutexattr_setprioceiling): Likewise.
37941         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
37942         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
37943         Likewise.
37944
37945 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
37946
37947         * setjmp/jmpbug.c (test): Make foo volatile and cast it to
37948         void.
37949
37950 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
37951
37952         * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
37953         third argument const.
37954
37955 2014-11-25  Paul Eggert  <eggert@cs.ucla.edu>
37956
37957         fnmatch: work around GCC compiler warning bug with uninit var
37958         * posix/fnmatch_loop.c (FCT): Use a scalar not a one-item array.
37959         This works around a bug with x86-64 GCC 4.9.2 and earlier
37960         where 'gcc -O2 -Wmaybe-uninitialized' incorrectly complains
37961         "../locale/weightwc.h:93:7: warning: '*((void *)&str+4)' may be
37962         used uninitialized in this function [-Wmaybe-uninitialized]".
37963
37964 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
37965
37966         * posix/bug-regex31.c (main): Return RES not 0.
37967
37968 2014-11-25  Anton Blanchard <anton@samba.org>
37969
37970         * sysdeps/powerpc/bits/atomic.h
37971         (__arch_compare_and_exchange_bool_64_rel): Load from mem.
37972
37973 2014-11-24  Sterling Augustine  <saugustine@google.com>
37974
37975         * sysdeps/x86_64/start.S (_start): Use ENTRY and END macros.
37976
37977 2014-11-24  Ryan Cumming  <etaoins@gmail.com>
37978
37979         [BZ #17608]
37980         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_TAI.
37981
37982 2014-11-24  Joseph Myers  <joseph@codesourcery.com>
37983
37984         [BZ #17633]
37985         * stdio-common/perror.c (perror): Call __fileno instead of fileno.
37986         * conform/Makefile (test-xfail-ISO/stdio.h/linknamespace): Remove
37987         variable.
37988         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
37989         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
37990
37991 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
37992
37993         * string/strncpy.c (strncpy): Improve performance by using memset.
37994
37995 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
37996
37997         * string/strcpy.c (strcpy):
37998         Improve performance by using strlen and memcpy.
37999
38000 2014-11-24  Leonhard Holz  <leonhard.holz@web.de>
38001
38002         * string/strcoll_l.c (get_next_seq): __always_inline.
38003         * string/strcoll_l.c (do_compare): __always_inline.
38004
38005 2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
38006
38007         * include/bits/stdlib-float.h: Use IS_IN only if _ISOMAC is
38008         defined.
38009         * include/mqueue.h: Likewise.
38010         * include/stdlib.h: Likewise.
38011
38012         * stdlib/isomac.c (fmt): Replace NOT_IN_libc with IN_MODULE.
38013         (get_null_defines): Adjust.
38014         * sunrpc/Makefile: Adjust comment.
38015         * Makerules (CPPFLAGS-nonlib): Remove NOT_IN_libc.
38016         * elf/Makefile (CPPFLAGS-sotruss-lib): Likewise.
38017         (CFLAGS-interp.c): Likewise.
38018         (CFLAGS-ldconfig.c): Likewise.
38019         (CPPFLAGS-.os): Likewise.
38020         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
38021         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
38022         * extra-modules.mk (extra-modules.mk): Likewise.
38023         * iconv/Makefile (CPPFLAGS-iconvprogs): Likewise.
38024         * locale/Makefile (CPPFLAGS-locale_programs): Likewise.
38025         * malloc/Makefile (CPPFLAGS-memusagestat): Likewise.
38026         * nscd/Makefile (CPPFLAGS-nscd): Likewise.
38027         * nss/Makefile (CPPFLAGS-nss_test1): Likewise.
38028         * stdlib/Makefile (CFLAGS-tst-putenvmod.c): Likewise.
38029         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
38030         * sysdeps/unix/sysv/linux/Makefile (CPPFLAGS-lddlibc4): Likewise.
38031         * iconvdata/Makefile (CPPFLAGS): Likewise.
38032         (cpp-srcs-left): Add libof for all iconvdata routines.
38033         * bits/stdio-lock.h: Replace NOT_IN_libc with IS_IN.
38034         * include/assert.h: Likewise.
38035         * include/ctype.h: Likewise.
38036         * include/errno.h: Likewise.
38037         * include/libc-symbols.h: Likewise.
38038         * include/math.h: Likewise.
38039         * include/netdb.h: Likewise.
38040         * include/resolv.h: Likewise.
38041         * include/stdio.h: Likewise.
38042         * include/stdlib.h: Likewise.
38043         * include/string.h: Likewise.
38044         * include/sys/stat.h: Likewise.
38045         * include/wctype.h: Likewise.
38046         * intl/l10nflist.c: Likewise.
38047         * libidn/idn-stub.c: Likewise.
38048         * libio/libioP.h: Likewise.
38049         * nptl/libc_multiple_threads.c: Likewise.
38050         * nptl/pthreadP.h: Likewise.
38051         * posix/regex_internal.h: Likewise.
38052         * resolv/res_hconf.c: Likewise.
38053         * sysdeps/arm/armv7/multiarch/memcpy.S: Likewise.
38054         * sysdeps/arm/memmove.S: Likewise.
38055         * sysdeps/arm/sysdep.h: Likewise.
38056         * sysdeps/generic/_itoa.h: Likewise.
38057         * sysdeps/generic/symbol-hacks.h: Likewise.
38058         * sysdeps/gnu/errlist.awk: Likewise.
38059         * sysdeps/gnu/errlist.c: Likewise.
38060         * sysdeps/i386/i586/memcpy.S: Likewise.
38061         * sysdeps/i386/i586/memset.S: Likewise.
38062         * sysdeps/i386/i686/memcpy.S: Likewise.
38063         * sysdeps/i386/i686/memmove.S: Likewise.
38064         * sysdeps/i386/i686/mempcpy.S: Likewise.
38065         * sysdeps/i386/i686/memset.S: Likewise.
38066         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
38067         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
38068         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: Likewise.
38069         * sysdeps/i386/i686/multiarch/memchr-sse2.S: Likewise.
38070         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
38071         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
38072         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
38073         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
38074         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
38075         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
38076         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
38077         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
38078         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
38079         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
38080         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
38081         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
38082         * sysdeps/i386/i686/multiarch/memrchr-c.c: Likewise.
38083         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: Likewise.
38084         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: Likewise.
38085         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
38086         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
38087         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
38088         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
38089         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
38090         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
38091         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
38092         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: Likewise.
38093         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
38094         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Likewise.
38095         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
38096         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
38097         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
38098         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
38099         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
38100         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
38101         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
38102         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
38103         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
38104         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
38105         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
38106         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
38107         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
38108         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
38109         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
38110         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
38111         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
38112         * sysdeps/i386/i686/multiarch/wcschr-c.c: Likewise.
38113         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: Likewise.
38114         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
38115         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
38116         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
38117         * sysdeps/i386/i686/multiarch/wcscpy-c.c: Likewise.
38118         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Likewise.
38119         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
38120         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
38121         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: Likewise.
38122         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
38123         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: Likewise.
38124         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: Likewise.
38125         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
38126         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
38127         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
38128         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
38129         * sysdeps/nptl/bits/libc-lock.h: Likewise.
38130         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
38131         * sysdeps/nptl/bits/stdio-lock.h: Likewise.
38132         * sysdeps/posix/closedir.c: Likewise.
38133         * sysdeps/posix/opendir.c: Likewise.
38134         * sysdeps/posix/readdir.c: Likewise.
38135         * sysdeps/posix/rewinddir.c: Likewise.
38136         * sysdeps/powerpc/novmx-sigjmp.c: Likewise.
38137         * sysdeps/powerpc/powerpc32/__longjmp.S: Likewise.
38138         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
38139         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
38140         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
38141         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Likewise.
38142         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Likewise.
38143         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: Likewise.
38144         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
38145         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: Likewise.
38146         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
38147         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
38148         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
38149         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: Likewise.
38150         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: Likewise.
38151         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: Likewise.
38152         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
38153         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
38154         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: Likewise.
38155         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: Likewise.
38156         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
38157         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: Likewise.
38158         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: Likewise.
38159         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
38160         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: Likewise.
38161         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: Likewise.
38162         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: Likewise.
38163         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
38164         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
38165         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: Likewise.
38166         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
38167         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: Likewise.
38168         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
38169         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: Likewise.
38170         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
38171         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Likewise.
38172         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
38173         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
38174         * sysdeps/powerpc/powerpc64/__longjmp.S: Likewise.
38175         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: Likewise.
38176         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: Likewise.
38177         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: Likewise.
38178         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
38179         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
38180         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
38181         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Likewise.
38182         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: Likewise.
38183         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
38184         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: Likewise.
38185         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
38186         * sysdeps/powerpc/powerpc64/multiarch/memset.c: Likewise.
38187         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
38188         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
38189         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
38190         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
38191         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Likewise.
38192         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: Likewise.
38193         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
38194         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
38195         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: Likewise.
38196         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
38197         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
38198         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
38199         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
38200         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Likewise.
38201         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
38202         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Likewise.
38203         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Likewise.
38204         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: Likewise.
38205         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Likewise.
38206         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
38207         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
38208         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: Likewise.
38209         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
38210         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
38211         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Likewise.
38212         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: Likewise.
38213         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
38214         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
38215         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: Likewise.
38216         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
38217         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
38218         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
38219         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Likewise.
38220         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
38221         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Likewise.
38222         * sysdeps/s390/s390-32/multiarch/memcmp.S: Likewise.
38223         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
38224         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
38225         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
38226         * sysdeps/s390/s390-64/multiarch/memcmp.S: Likewise.
38227         * sysdeps/s390/s390-64/multiarch/memcpy.S: Likewise.
38228         * sysdeps/s390/s390-64/multiarch/memset.S: Likewise.
38229         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
38230         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
38231         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: Likewise.
38232         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
38233         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
38234         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Likewise.
38235         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: Likewise.
38236         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
38237         * sysdeps/unix/alpha/sysdep.S: Likewise.
38238         * sysdeps/unix/alpha/sysdep.h: Likewise.
38239         * sysdeps/unix/make-syscalls.sh: Likewise.
38240         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
38241         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
38242         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
38243         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
38244         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
38245         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
38246         * sysdeps/unix/sysv/linux/getpid.c: Likewise.
38247         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
38248         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
38249         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
38250         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
38251         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
38252         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
38253         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
38254         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
38255         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
38256         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
38257         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
38258         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
38259         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
38260         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
38261         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
38262         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
38263         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
38264         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
38265         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
38266         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
38267         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
38268         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
38269         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: Likewise.
38270         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
38271         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
38272         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
38273         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
38274         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
38275         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
38276         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
38277         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
38278         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
38279         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
38280         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
38281         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
38282         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
38283         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
38284         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
38285         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
38286         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
38287         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
38288         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
38289         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
38290         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
38291         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
38292         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
38293         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
38294         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
38295         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
38296         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
38297         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
38298         * sysdeps/wordsize-32/symbol-hacks.h: Likewise.
38299         * sysdeps/x86_64/memcpy.S: Likewise.
38300         * sysdeps/x86_64/memmove.c: Likewise.
38301         * sysdeps/x86_64/memset.S: Likewise.
38302         * sysdeps/x86_64/multiarch/init-arch.h: Likewise.
38303         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
38304         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
38305         * sysdeps/x86_64/multiarch/memcmp.S: Likewise.
38306         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
38307         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
38308         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
38309         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
38310         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
38311         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
38312         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
38313         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
38314         * sysdeps/x86_64/multiarch/memset-avx2.S: Likewise.
38315         * sysdeps/x86_64/multiarch/memset.S: Likewise.
38316         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
38317         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Likewise.
38318         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
38319         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
38320         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
38321         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
38322         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Likewise.
38323         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
38324         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
38325         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
38326         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
38327         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
38328         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
38329         * sysdeps/x86_64/multiarch/wcscpy-c.c: Likewise.
38330         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
38331         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
38332         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Likewise.
38333         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
38334         * sysdeps/x86_64/strcmp.S: Likewise.
38335
38336         * extra-lib.mk (CPPFLAGS-$(lib)): Remove IS_IN_$(lib).
38337
38338         * elf/Makefile (CPPFLAGS-.os): Remove IS_IN_rtld.
38339         * elf/dl-open.c: Use IS_IN (rtld) instead if IS_IN_rtld.
38340         * elf/rtld-Rules: Likewise.
38341         * elf/setup-vdso.h: Likewise.
38342         * include/assert.h: Likewise.
38343         * include/bits/stdlib-float.h: Likewise.
38344         * include/errno.h: Likewise.
38345         * include/sys/stat.h: Likewise.
38346         * include/unistd.h: Likewise.
38347         * sysdeps/aarch64/setjmp.S: Likewise.
38348         * sysdeps/alpha/setjmp.S: Likewise.
38349         * sysdeps/arm/__longjmp.S: Likewise.
38350         * sysdeps/arm/aeabi_unwind_cpp_pr1.c: Likewise.
38351         * sysdeps/arm/setjmp.S: Likewise.
38352         * sysdeps/arm/sysdep.h: Likewise.
38353         * sysdeps/generic/_itoa.h: Likewise.
38354         * sysdeps/generic/dl-sysdep.h: Likewise.
38355         * sysdeps/generic/ldsodefs.h: Likewise.
38356         * sysdeps/i386/dl-tls.h: Likewise.
38357         * sysdeps/i386/setjmp.S: Likewise.
38358         * sysdeps/m68k/setjmp.c: Likewise.
38359         * sysdeps/mach/hurd/dl-execstack.c: Likewise.
38360         * sysdeps/mach/hurd/opendir.c: Likewise.
38361         * sysdeps/posix/getcwd.c: Likewise.
38362         * sysdeps/posix/opendir.c: Likewise.
38363         * sysdeps/posix/profil.c: Likewise.
38364         * sysdeps/powerpc/dl-procinfo.h: Likewise.
38365         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
38366         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
38367         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
38368         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
38369         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
38370         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
38371         * sysdeps/s390/dl-tls.h: Likewise.
38372         * sysdeps/s390/s390-32/setjmp.S: Likewise.
38373         * sysdeps/s390/s390-64/setjmp.S: Likewise.
38374         * sysdeps/sh/sh3/setjmp.S: Likewise.
38375         * sysdeps/sh/sh4/setjmp.S: Likewise.
38376         * sysdeps/unix/alpha/sysdep.h: Likewise.
38377         * sysdeps/unix/arm/sysdep.S: Likewise.
38378         * sysdeps/unix/i386/sysdep.S: Likewise.
38379         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
38380         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
38381         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
38382         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
38383         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
38384         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
38385         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
38386         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
38387         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
38388         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
38389         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
38390         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
38391         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
38392         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
38393         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
38394         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
38395         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
38396         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
38397         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
38398         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
38399         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
38400         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
38401         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
38402         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
38403         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
38404         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
38405         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
38406         * sysdeps/unix/x86_64/sysdep.S: Likewise.
38407         * sysdeps/x86_64/setjmp.S: Likewise.
38408
38409         * include/math.h: Use IS_IN instead of IS_IN_libm.
38410         * sysdeps/alpha/fpu/s_copysign.c: Likewise.
38411         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
38412         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
38413         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
38414         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
38415         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
38416         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
38417         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
38418         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
38419         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
38420         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Likewise.
38421         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
38422         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Likewise.
38423         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
38424         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
38425         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Likewise.
38426         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
38427         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
38428         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
38429         * sysdeps/ieee754/ldbl-opt/s_copysign.c: Likewise.
38430         * sysdeps/ieee754/ldbl-opt/s_finite.c: Likewise.
38431         * sysdeps/ieee754/ldbl-opt/s_frexp.c: Likewise.
38432         * sysdeps/ieee754/ldbl-opt/s_isinf.c: Likewise.
38433         * sysdeps/ieee754/ldbl-opt/s_isnan.c: Likewise.
38434         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Likewise.
38435         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
38436         * sysdeps/ieee754/ldbl-opt/s_modf.c: Likewise.
38437         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
38438         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
38439         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
38440         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
38441         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
38442         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
38443         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
38444         Likewise.
38445         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
38446         Likewise.
38447         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c:
38448         Likewise.
38449         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c:
38450         Likewise.
38451         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c:
38452         Likewise.
38453         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
38454         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
38455         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
38456         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
38457         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
38458         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
38459         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
38460         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
38461         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
38462         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
38463         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Likewise.
38464         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
38465         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S: Likewise.
38466         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
38467         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
38468         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
38469         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
38470         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
38471         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
38472         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
38473         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
38474         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
38475         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
38476         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
38477         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: Likewise.
38478         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
38479         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S: Likewise.
38480
38481         * nptl/lowlevellock.c: Use IS_IN instead of IS_IN_libpthread.
38482         * nptl/pthreadP.h: Likewise.
38483         * nptl_db/structs.def: Likewise.
38484         * sysdeps/arm/sysdep.h: Likewise.
38485         * sysdeps/nptl/bits/libc-lock.h: Likewise.
38486         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
38487         * sysdeps/sparc/sparc32/lowlevellock.c: Likewise.
38488         * sysdeps/unix/alpha/sysdep.h: Likewise.
38489         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
38490         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
38491         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
38492         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
38493         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
38494         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
38495         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
38496         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
38497         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
38498         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
38499         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
38500         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
38501         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
38502         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
38503         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
38504         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
38505         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
38506         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
38507         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
38508         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
38509         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
38510         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
38511         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
38512         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
38513         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
38514         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
38515
38516         * include/mqueue.h: Use IS_IN instead of IS_IN_librt.
38517         * nptl/pthreadP.h: Likewise.
38518         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
38519         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
38520         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
38521         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
38522         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
38523         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
38524         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
38525         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
38526         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
38527         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
38528         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
38529         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
38530         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
38531         Likewise.
38532         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
38533         Likewise.
38534         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
38535         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
38536         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
38537         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
38538         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
38539         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
38540         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
38541         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
38542
38543         * dlfcn/dladdr.c: Use IS_IN.
38544         * dlfcn/dladdr1.c: Likewise.
38545         * dlfcn/dlclose.c: Likewise.
38546         * dlfcn/dlerror.c: Likewise.
38547         * dlfcn/dlinfo.c: Likewise.
38548         * dlfcn/dlmopen.c: Likewise.
38549         * dlfcn/dlopen.c: Likewise.
38550         * dlfcn/dlsym.c: Likewise.
38551         * dlfcn/dlvsym.c: Likewise.
38552
38553         * include/ifaddrs.h: Use IS_IN.
38554         * inet/check_pf.c: Likewise.
38555         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
38556         * nscd/Makefile (CPPFLAGS-nscd): Remove IS_IN_nscd.
38557
38558         * elf/Makefile (CFLAGS-ldconfig.c): Remove definition of
38559         IS_IN_ldconfig.
38560         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Use IS_IN.
38561         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: Likewise.
38562
38563         * include/shlib-compat.h [!NOT_IN_libc]: Remove.
38564         * nss/nss_files/files-parse.c (IS_IN_libc): Replace with
38565         IS_IN (libc).
38566
38567         * elf/Makefile (libof-sotruss-lib): Set as extramodules.
38568
38569         * elf/Makefile (CPPFLAGS-.os): Remove IN_LIB.
38570         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
38571         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
38572         * include/libc-symbols.h (IS_IN_LIB): New macro.
38573         * include/errno.h: Use IS_IN_LIB instead of IN_LIB.
38574         * include/netdb.h: Likewise.
38575         * include/stap-probe.h: Remove all uses of IN_LIB.
38576
38577         * Makeconfig (module-cppflags-real): Define MODULE_NAME
38578         instead of IN_MODULE.
38579         * include/libc-symbols.h (IN_MODULE): Define using
38580         MODULE_NAME.
38581         (PASTE_NAME, PASTE_NAME1): New macros.
38582         * include/stap-probe.h (LIBC_PROBE_1): Use MODULE_NAME instead
38583         of IN_LIB.
38584         (STAP_PROBE_ASM): Likewise.
38585
38586 2014-11-23  Samuel Thibault  <samuel.thibault@ens-lyon.org>
38587
38588         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Call
38589         __mach_init in dlopened libc.
38590
38591 2014-11-22  Mike Frysinger  <vapier@gentoo.org>
38592
38593         * sysdeps/arm/preconfigure.ac: Delete EABI check.
38594         * sysdeps/arm/preconfigure: Regenerate.
38595
38596 2014-11-21  Roland McGrath  <roland@hack.frob.com>
38597
38598         * nptl/pthread_create.c (__pthread_create_2_1): Set
38599         ATTR_FLAG_POLICY_SET and/or ATTR_FLAG_SCHED_SET in PD->flags
38600         when copying values from IATTR into PD.
38601
38602 2014-11-21  Will Newton  <will.newton@linaro.org>
38603             Andrew Pinski  <andrew.pinski@caviumnetworks.com>
38604
38605         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address):
38606         Refactor inline-asm.  Also add comment.
38607
38608         * sysdeps/aarch64/bits/link.h (la_aarch64_gnu_pltenter): Use
38609         ElfW macro instead of hardcoded Elf64 types.
38610         (la_aarch64_gnu_pltenter): Likewise.
38611         * sysdeps/aarch64/dl-machine.h
38612         (elf_machine_runtime_setup): Use ElfW(Addr).
38613
38614         * elf/elf.h (R_AARCH64_P32_ABS32, R_AARCH64_P32_COPY,
38615         R_AARCH64_P32_GLOB_DAT, R_AARCH64_P32_JUMP_SLOT,
38616         R_AARCH64_P32_RELATIVE, R_AARCH64_P32_TLS_DTPMOD,
38617         R_AARCH64_P32_TLS_DTPREL, R_AARCH64_P32_TLS_TPREL,
38618         R_AARCH64_P32_TLSDESC, R_AARCH64_P32_IRELATIVE): Define.
38619         (R_AARCH64_TLS_DTPMOD64): Rename to ..
38620         (R_AARCH64_TLS_DTPMOD): This.
38621         (R_AARCH64_TLS_DTPREL64): Rename to ...
38622         (R_AARCH64_TLS_DTPREL): This.
38623         (R_AARCH64_TLS_TPREL64): Rename to ...
38624         (R_AARCH64_TLS_TPREL): This.
38625         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Update
38626         R_AARCH64_TLS_DTPMOD64, R_AARCH64_TLS_DTPREL64, and
38627         R_AARCH64_TLS_TPREL64.
38628         (elf_machine_rela): Likewise.
38629
38630 2014-11-21  Torvald Riegel  <triegel@redhat.com>
38631
38632         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS): Fix value
38633         by setting it to 0.  64b atomics are not supported currently.
38634
38635 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
38636
38637         [BZ #16469]
38638         * resolv/res_query.c (__libc_res_nsearch): Skip leading dot in
38639         search domain names.
38640
38641 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
38642
38643         [BZ #16469]
38644         * NEWS: Update.
38645         * resolv/res_query.c (__libc_res_nquerydomain): Retain
38646         trailing dot.
38647         * posix/tst-getaddrinfo5.c: New.
38648         * posix/Makefile (tests): Add it.
38649
38650 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
38651
38652         [BZ #14498]
38653         * NEWS: Fixed.
38654         * nss/nss_db/db-XXX.c (_nss_db_get##name##_r): Update hidx
38655         after parsing line but before break_if_match.
38656         * nss/nss_files/files-service (DB_LOOKUP): Don't "continue;"
38657         if there is a protocol mismatch.
38658
38659 2014-11-21  Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
38660
38661         * manual/sysinfo.texi (addmntent): It is actually MT-Safe,
38662         because the potential race is on the user-supplied stream.
38663
38664 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
38665
38666         * sysdeps/posix/ctermid.c (ctermid): Return a pointer to a
38667         string literal if not passed a buffer.
38668         * manual/job.texi (ctermid): Update reasoning, note deviation
38669         from posix, suggest mtasurace when not passed a buffer, for
38670         future non-preliminary safety notes.
38671
38672 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
38673
38674         * manual/users.texi (cuserid): Fix MT-Safety note for the case
38675         of not passing it a buffer.
38676         Reported by Peng Haitao.
38677
38678 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
38679
38680         * manual/Makefile ($(objpfx)stamp-summary): Require
38681         check-safety.sh to pass.
38682         * manual/check-safety.sh: Wish for verification that every
38683         @deftypefn and @deftypefun is followed by a @safety remark.
38684
38685 2014-11-20  Roland McGrath  <roland@hack.frob.com>
38686
38687         * nptl/unwind.c (unwind_cleanup): Use __libc_fatal.
38688
38689         * nptl/pthread_setcanceltype.c [!SIGCANCEL]: Return ENOTSUP early for
38690         PTHREAD_CANCEL_ASYNCHRONOUS.
38691         * nptl/pthread_cancel.c [!SIGCANCEL]: Just abort rather than trying to
38692         send SIGCANCEL.
38693
38694         * nptl/default-sched.h: New file.
38695         * sysdeps/unix/sysv/linux/default-sched.h: New file.
38696         * nptl/pthread_create.c: Include it.
38697         (__pthread_create_2_1): Use collect_default_sched instead of making
38698         Linux syscalls here directly.
38699
38700 2014-11-20  Torvald Riegel  <triegel@redhat.com>
38701
38702         * nptl/pthread_once.c (clear_once_control, __pthread_once_slow,
38703         __pthread_once): Use C11 atomics.
38704
38705 2014-11-20  Torvald Riegel  <triegel@redhat.com>
38706
38707         * csu/tst-atomic.c (do_test): Add tests for C11-like atomics.
38708
38709 2014-11-20  Torvald Riegel  <triegel@redhat.com>
38710
38711         * include/atomic.h (__atomic_link_error, __atomic_check_size,
38712         atomic_thread_fence_acquire, atomic_thread_fence_release,
38713         atomic_thread_fence_seq_cst, atomic_load_relaxed,
38714         atomic_load_acquire, atomic_store_relaxed, atomic_store_release,
38715         atomic_compare_exchange_weak_relaxed,
38716         atomic_compare_exchange_weak_acquire,
38717         atomic_compare_exchange_weak_release,
38718         atomic_exchange_acquire, atomic_exchange_release,
38719         atomic_fetch_add_relaxed, atomic_fetch_add_acquire,
38720         atomic_fetch_add_release, atomic_fetch_add_acq_rel,
38721         atomic_fetch_and_acquire,
38722         atomic_fetch_or_relaxed, atomic_fetch_or_acquire): New.
38723
38724 2014-11-20  Torvald Riegel  <triegel@redhat.com>
38725
38726         * sysdeps/aarch64/bits/atomic.h (__HAVE_64B_ATOMICS,
38727         USE_ATOMIC_COMPILER_BUILTINS): Define.
38728         * sysdeps/alpha/bits/atomic.h (__HAVE_64B_ATOMICS,
38729         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38730         * sysdeps/arm/bits/atomic.h (__HAVE_64B_ATOMICS,
38731         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38732         * sysdeps/i386/i486/bits/atomic.h (__HAVE_64B_ATOMICS,
38733         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38734         * sysdeps/ia64/bits/atomic.h (__HAVE_64B_ATOMICS,
38735         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38736         * sysdeps/m68k/coldfire/bits/atomic.h (__HAVE_64B_ATOMICS,
38737         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38738         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (__HAVE_64B_ATOMICS,
38739         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38740         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS,
38741         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38742         * sysdeps/mips/bits/atomic.h (__HAVE_64B_ATOMICS,
38743         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38744         * sysdeps/powerpc/powerpc32/bits/atomic.h (__HAVE_64B_ATOMICS,
38745         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38746         * sysdeps/powerpc/powerpc64/bits/atomic.h (__HAVE_64B_ATOMICS,
38747         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38748         * sysdeps/s390/bits/atomic.h (__HAVE_64B_ATOMICS,
38749         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38750         * sysdeps/sparc/sparc32/bits/atomic.h (__HAVE_64B_ATOMICS,
38751         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38752         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (__HAVE_64B_ATOMICS,
38753         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38754         * sysdeps/sparc/sparc64/bits/atomic.h (__HAVE_64B_ATOMICS,
38755         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38756         * sysdeps/tile/tilegx/bits/atomic.h (__HAVE_64B_ATOMICS,
38757         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38758         * sysdeps/tile/tilepro/bits/atomic.h (__HAVE_64B_ATOMICS,
38759         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38760         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (__HAVE_64B_ATOMICS,
38761         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38762         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
38763         (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38764         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (__HAVE_64B_ATOMICS,
38765         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38766         * sysdeps/x86_64/bits/atomic.h (__HAVE_64B_ATOMICS,
38767         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38768
38769 2014-11-19  Roland McGrath  <roland@hack.frob.com>
38770
38771         * nptl/pthread_create.c (__pthread_create_2_1): Don't try to validate
38772         the sched_priority value here.  It was already checked when the user
38773         called pthread_attr_setschedparam.
38774
38775         * nptl/tst-bad-schedattr.c: New file.
38776         * nptl/Makefile (tests): Add it.
38777
38778 2014-11-19  Carlos O'Donell  <carlos@redhat.com>
38779             Florian Weimer  <fweimer@redhat.com>
38780             Joseph Myers  <joseph@codesourcery.com>
38781             Adam Conrad  <adconrad@0c3.net>
38782             Andreas Schwab  <schwab@suse.de>
38783             Brooks  <bmoses@google.com>
38784
38785         [BZ #17625]
38786         * wordexp-test.c (__dso_handle): Add prototype.
38787         (__register_atfork): Likewise.
38788         (__app_register_atfork): New function.
38789         (registered_forks): New global.
38790         (register_fork): New function.
38791         (test_case): Add 3 new tests for WRDE_CMDSUB.
38792         (main): Call __app_register_atfork.
38793         (testit): If WRDE_NOCMD set registered_forks to zero, run test, and if
38794         fork count is non-zero fail the test.
38795         * posix/wordexp.c (exec_comm): Return WRDE_CMDSUB if WRDE_NOCMD flag
38796         is set.
38797         (parse_dollars): Remove check for WRDE_NOCMD.
38798         (parse_dquote): Likewise.
38799
38800 2014-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
38801
38802         * Makeconfig (built-modules): List non-library modules to be
38803         built.
38804         (module-cppflags): Include libc-modules.h for
38805         everything except shlib-versions.v.i.
38806         (CPPFLAGS): Use it.
38807         (before-compile): Add libc-modules.h.
38808         ($(common-objpfx)libc-modules.h,
38809         $(common-objpfx)libc-modules.stmp): New targets.
38810         (common-generated): Add libc-modules.h and libc-modules.stmp.
38811         ($(common-objpfx)Versions.v.i): Depend on libc-modules.h.
38812         * include/libc-symbols.h: Don't include libc-modules.h.
38813         * include/libc-modules.h: Remove file.
38814         * scripts/gen-libc-modules.awk: New script to generate
38815         libc-modules.h.
38816         * sysdeps/unix/Makefile ($(common-objpfx)sysd-syscalls):
38817         Depend on libc-modules.stmp.
38818
38819         * include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.
38820
38821         * Makeconfig (in-module): Get value of libof set for the
38822         translation unit.
38823         (CPPFLAGS): Use $(in-module).
38824         * Makerules: Don't suffix routine names for nonlib.
38825         * include/libc-modules.h: New file.
38826         * include/libc-symbols.h: Include libc-modules.h
38827         (IS_IN): New macro to replace IS_IN_* macros.
38828         * elf/Makefile: Set libof-* for each routine.
38829         * elf/rtld-Rules: Likewise.
38830         * extra-modules.mk: Likewise.
38831         * iconv/Makefile: Likewise.
38832         * iconvdata/Makefile: Likewise.
38833         * locale/Makefile: Likewise.
38834         * malloc/Makefile: Likewise.
38835         * nss/Makefile: Likewise.
38836         * sysdeps/gnu/Makefile: Likewise.
38837         * sysdeps/ieee754/ldbl-opt/Makefile: Likewise.
38838         * sysdeps/unix/sysv/linux/Makefile: Likewise.
38839         * sysdeps/s390/s390-64/Makefile: Likewise.
38840         * nscd/Makefile: Set libof-* for each routine.  Set CFLAGS and
38841         CPPFLAGS for nscd instead of nonlib.
38842
38843 2014-11-18  Roland McGrath  <roland@hack.frob.com>
38844
38845         * nptl/createthread.c: New file.
38846
38847         * nptl/createthread.c: Moved ...
38848         * sysdeps/unix/sysv/linux/createthread.c: ... here.
38849
38850         * nptl/createthread.c: Add proper top-line comment.
38851         (do_clone): Folded into ...
38852         (create_thread): ... here.  Take new arguments STOPPED_START and
38853         THREAD_RAN.  Always set PD->stopped_start to something here.  Don't
38854         increment __nptl_threads, do event-reporting logic, do
38855         CHECK_THREAD_SYSINFO, or set THREAD_SELF->header.multiple_threads
38856         here.  Set *THREAD_RAN after ARCH_CLONE call succeeds.  Don't do any
38857         resource cleanup if sched_setaffinity or sched_setscheduler fails,
38858         just send SIGCANCEL.
38859         * nptl/pthread_create.c: Forward-declare create_thread before
38860         including createthread.c.
38861         (start_thread): Use new macro START_THREAD_DEFN to replace defining
38862         declaration, and new macro START_THREAD_SELF to replace argument.
38863         Remove return statement.
38864         (report_thread_creation): New function.
38865         (__pthread_create_2_1): Use it.  Do TD_CREATE reporting,
38866         synchronization logic, and __nptl_nthreads increment here, around
38867         calling create_thread.  Do CHECK_THREAD_SYSINFO and initialize
38868         PD->parent_cancelhandling here, before create_thread.  When
38869         create_thread fails, do __nptl_nthreads decrement, setxid_futex wake,
38870         __deallocate_stack, and ENOMEM translation here.
38871
38872 2014-11-18  Joseph Myers  <joseph@codesourcery.com>
38873
38874         [BZ #17616]
38875         * sysdeps/ieee754/dbl-64/mpa.c (mpone): Rename to __mpone.
38876         (mptwo): Rename to __mptwo.
38877         (__inv): Use __mptwo instead of mptwo.
38878         * sysdeps/ieee754/dbl-64/mpa.h (mpone): Rename to __mpone.
38879         (mptwo): Rename to __mptwo.
38880         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __mpone instead
38881         of mpone and __mptwo instead of mptwo.
38882         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Use __mpone
38883         instead of mpone.
38884         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
38885         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Likewise.
38886         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use __mpone instead
38887         of mpone and __mptwo instead of mptwo.
38888         (__mpranred): Use __mpone instead of mpone.
38889         * conform/Makefile (test-xfail-ISO/math.h/linknamespace): Remove
38890         variable.
38891         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
38892         (test-xfail-ISO99/math.h/linknamespace): Likewise.
38893         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
38894         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
38895         (test-xfail-ISO11/math.h/linknamespace): Likewise.
38896         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
38897         (test-xfail-XPG3/math.h/linknamespace): Likewise.
38898         (test-xfail-XPG4/math.h/linknamespace): Likewise.
38899         (test-xfail-POSIX/math.h/linknamespace): Likewise.
38900         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
38901         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
38902         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
38903         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
38904         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
38905         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
38906         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
38907         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
38908         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
38909         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
38910
38911 2014-11-18  Tom de Vries  <tom@codesoucery.com>
38912
38913         * manual/signal.texi (Primitives Interrupted by Signals): In section,
38914         replace BSD Handler xref with BSD Signal Handling.
38915
38916 2014-11-17  Richard Henderson  <rth@redhat.com>
38917
38918         * sysdeps/alpha/soft-fp/local-soft-fp.h (_FP_UNPACK_RAW_2): Remove.
38919         (_FP_PACK_RAW_2): Remove.
38920         (AXP_DECL_RETURN_Q): Rename from FP_DECL_RETURN, use _FP_UNION_Q.
38921         (AXP_RETURN_Q): Rename from FP_RETURN, use _FP_UNION_Q.
38922         (AXP_UNPACK_RAW_Q, AXP_UNPACK_SEMIRAW_Q, AXP_UNPACK_Q): New.
38923         (AXP_PACK_RAW_Q, AXP_PACK_SEMIRAW_Q, AXP_PACK_Q): New.
38924         * sysdeps/alpha/soft-fp/ots_add.c (_OtsAddX): Update to match.
38925         * sysdeps/alpha/soft-fp/ots_cmp.c (internal_equality): Likewise.
38926         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Likewise.
38927         * sysdeps/alpha/soft-fp/ots_cvtqux.c (_OtsCvtQUX): Likewise.
38928         * sysdeps/alpha/soft-fp/ots_cvtqx.c (_OtsCvtQX): Likewise.
38929         * sysdeps/alpha/soft-fp/ots_cvttx.c (_OtsConvertFloatTX): Likewise.
38930         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Likewise.
38931         * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Likewise.
38932         * sysdeps/alpha/soft-fp/ots_div.c (_OtsDivX): Likewise.
38933         * sysdeps/alpha/soft-fp/ots_mul.c (_OtsMulX): Likewise.
38934         * sysdeps/alpha/soft-fp/ots_nintxq.c (_OtsNintXQ): Likewise.
38935         * sysdeps/alpha/soft-fp/ots_sub.c (_OtsSubX): Likewise.
38936
38937 2014-11-14  Roland McGrath  <roland@hack.frob.com>
38938
38939         * signal/signal.h [__USE_MISC]
38940         (struct sigvec): Remove type.
38941         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): Remove macros.
38942         (sigvec): Remove declaration.
38943         * sysdeps/posix/sigvec.c: Moved ...
38944         * signal/sigvec.c: ... here, replacing old file.
38945         (struct sigvec): New type, copied from old signal.h definition.
38946         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): New macros, likewise copied.
38947         (__sigvec): Convert definition to prototype.
38948         (sigvec): Replace weak_alias with compat_symbol.
38949         * signal/Versions (libc: GLIBC_2.21): New version set.
38950         * include/signal.h: Remove __sigvec declaration.
38951         * sysdeps/unix/bsd/sigvec.c: Remove file.
38952         * sysdeps/unix/bsd/syscalls.list: Remove sigvec.
38953         * manual/signal.texi (BSD Handler): Remove subsection.
38954         Move siginterrupt up to ...
38955         (BSD Signal Handling): ... here.  Mark it as XPG rather than BSD.
38956         (Blocking in BSD): Fold subsection into its parent.
38957         * NEWS: Mention sigvec removal.
38958
38959 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
38960
38961         * sysdeps/x86_64/fpu/dla.h [__FMA4__ && __GNUC_PREREQ (4, 6)]
38962         (DLA_FMS): Make definition conditional only on [__FMA4__].
38963         [__FMA4__ && !__GNUC_PREREQ (4, 6)] (DLA_FMS): Remove conditional
38964         definition.
38965
38966         * sysdeps/arm/sysdep.h [PROF && __GNUC_PREREQ(4,4)] (CALL_MCOUNT):
38967         Make definition conditional only on [PROF].
38968         [PROF && !__GNUC_PREREQ(4,4)] (CALL_MCOUNT): Remove conditional
38969         definition.
38970         [__GNUC_PREREQ(4,4)] (mcount): Make definition unconditional.
38971         [!__GNUC_PREREQ(4,4)] (mcount): Remove conditional definition.
38972
38973         * signal/signal.h (__sigpause): Only declare if [__USE_XOPEN &&
38974         !__GNUC__].
38975         * include/signal.h (__sigpause): Move declaration above call to
38976         libc_hidden_proto.
38977         * conform/Makefile (test-xfail-ISO/signal.h/linknamespace): Remove
38978         variable.
38979         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
38980         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
38981
38982 2014-11-14  David S. Miller  <davem@davemloft.net>
38983
38984         * sysdeps/sparc/sparc64/rtld-memcpy.c (NO_MEMPCPY_STPCPY_REDIRECT):
38985         Define before including <string/memcpy.c> and <string/mempcpy.c>.
38986
38987 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
38988
38989         * configure.ac (libc_cv_compiler_ok): Require GCC 4.6 or later.
38990         * configure: Regenerated.
38991         * manual/install.texi (Tools for Compilation): Document a
38992         requirement of GCC 4.6 or later and that GCC 4.9 is the newest
38993         compiler verified to work.
38994         * INSTALL: Regenerated.
38995
38996         * include/string.h [NO_MEMPCPY_STPCPY_REDIRECT] (mempcpy): Do not
38997         redeclare with asm name.
38998         [NO_MEMPCPY_STPCPY_REDIRECT] (stpcpy): Likewise.
38999         * string/mempcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Define before
39000         including <string.h>.
39001         * string/stpcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
39002         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c
39003         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
39004         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c
39005         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
39006         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
39007         [SHARED && !NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
39008
39009 2014-11-13  Joseph Myers  <joseph@codesourcery.com>
39010
39011         * stdlib/strtol.c (__strtol): Use prototype definition.
39012
39013         [BZ #17594]
39014         * stdlib/strtol.c (SYM__): New macro.
39015         (SYM__1): Likewise.
39016         (__strtol): Likewise.
39017         (strtol): Rename to __strtol and define as weak alias of
39018         __strtol.  Use libc_hidden_weak.
39019
39020 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
39021
39022         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START):
39023         Use numbered labels in inline assembly.
39024
39025 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
39026
39027         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp):
39028         Add setjmp LIBC_PROBE.
39029         * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp):
39030         Likewise.
39031         * sysdeps/s390/s390-32/__longjmp.c (__longjmp):
39032         Add longjmp, longjmp_target LIBC_PROBE.
39033         * sysdeps/s390/s390-64/__longjmp.c (__longjmp):
39034         Likewise.
39035
39036 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
39037
39038         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
39039         Gate the definition of refsym additionally with !RTLD_BOOTSTRAP
39040         to get rid of unused variable warning.
39041
39042 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
39043
39044         * sysdeps/s390/s390-32/backtrace.c (__backtrace):
39045         Check for unwind_backtrace ==  NULL only in SHARED case.
39046         (__backchain_backtrace): Compile only in SHARED case.
39047         * sysdeps/s390/s390-64/backtrace.c (__backtrace):
39048         Likewise.
39049         (__backchain_backtrace): Declare as static.
39050
39051 2014-11-12  Roland McGrath  <roland@hack.frob.com>
39052
39053         * nptl/createthread.c [!TLS_MULTIPLE_THREADS_IN_TCB]
39054         (__libc_multiple_threads_ptr): Variable moved ...
39055         * nptl/nptl-init.c [!TLS_MULTIPLE_THREADS_IN_TCB]: ... here.
39056
39057 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
39058
39059         * conform/GlibcConform.pm: New file.
39060         * conform/conformtest.pl: Use GlibcConform module.
39061         * conform/linknamespace.pl: New file.
39062         * conform/list-header-symbols.pl: Likewise.
39063         * conform/Makefile (linknamespace-symlists-base): New variable.
39064         (linknamespace-symlists-tests): Likewise.
39065         (linknamespace-header-base): Likewise.
39066         (linknamespace-header-tests): Likewise.
39067         (tests-special): Add new tests.
39068         ($(linknamespace-symlists-tests)): New rule.
39069         (linknamespace-libs): New variable.
39070         ($(objpfx)symlist-stdlibs): New rule.
39071         ($(linknamespace-header-tests)): Likewise.
39072         (test-xfail-XPG3/varargs.h/linknamespace): New variable.
39073         (test-xfail-XPG4/varargs.h/linknamespace): Likewise.
39074         (test-xfail-UNIX98/varargs.h/linknamespace): Likewise.
39075         (test-xfail-XPG4/ndbm.h/linknamespace): Likewise.
39076         (test-xfail-UNIX98/ndbm.h/linknamespace): Likewise.
39077         (test-xfail-XOPEN2K/ndbm.h/linknamespace): Likewise.
39078         (test-xfail-XOPEN2K8/ndbm.h/linknamespace): Likewise.
39079         (test-xfail-ISO/math.h/linknamespace): Likewise.
39080         (test-xfail-ISO/signal.h/linknamespace): Likewise.
39081         (test-xfail-ISO/stdio.h/linknamespace): Likewise.
39082         (test-xfail-ISO/time.h/linknamespace): Likewise.
39083         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
39084         (test-xfail-ISO99/ctype.h/linknamespace): Likewise.
39085         (test-xfail-ISO99/math.h/linknamespace): Likewise.
39086         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
39087         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
39088         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
39089         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
39090         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
39091         (test-xfail-ISO11/math.h/linknamespace): Likewise.
39092         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
39093         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
39094         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
39095         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
39096         (test-xfail-XPG3/fnmatch.h/linknamespace): Likewise.
39097         (test-xfail-XPG3/glob.h/linknamespace): Likewise.
39098         (test-xfail-XPG3/math.h/linknamespace): Likewise.
39099         (test-xfail-XPG3/regex.h/linknamespace): Likewise.
39100         (test-xfail-XPG3/search.h/linknamespace): Likewise.
39101         (test-xfail-XPG3/stdio.h/linknamespace): Likewise.
39102         (test-xfail-XPG3/time.h/linknamespace): Likewise.
39103         (test-xfail-XPG3/unistd.h/linknamespace): Likewise.
39104         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
39105         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
39106         (test-xfail-XPG4/fmtmsg.h/linknamespace): Likewise.
39107         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
39108         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
39109         (test-xfail-XPG4/grp.h/linknamespace): Likewise.
39110         (test-xfail-XPG4/libgen.h/linknamespace): Likewise.
39111         (test-xfail-XPG4/math.h/linknamespace): Likewise.
39112         (test-xfail-XPG4/netdb.h/linknamespace): Likewise.
39113         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
39114         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
39115         (test-xfail-XPG4/search.h/linknamespace): Likewise.
39116         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
39117         (test-xfail-XPG4/stdlib.h/linknamespace): Likewise.
39118         (test-xfail-XPG4/sys/mman.h/linknamespace): Likewise.
39119         (test-xfail-XPG4/sys/statvfs.h/linknamespace): Likewise.
39120         (test-xfail-XPG4/syslog.h/linknamespace): Likewise.
39121         (test-xfail-XPG4/time.h/linknamespace): Likewise.
39122         (test-xfail-XPG4/unistd.h/linknamespace): Likewise.
39123         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
39124         (test-xfail-POSIX/aio.h/linknamespace): Likewise.
39125         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
39126         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
39127         (test-xfail-POSIX/math.h/linknamespace): Likewise.
39128         (test-xfail-POSIX/mqueue.h/linknamespace): Likewise.
39129         (test-xfail-POSIX/pthread.h/linknamespace): Likewise.
39130         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
39131         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
39132         (test-xfail-POSIX/semaphore.h/linknamespace): Likewise.
39133         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
39134         (test-xfail-POSIX/time.h/linknamespace): Likewise.
39135         (test-xfail-POSIX/unistd.h/linknamespace): Likewise.
39136         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
39137         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
39138         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
39139         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
39140         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
39141         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
39142         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
39143         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
39144         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
39145         (test-xfail-UNIX98/mqueue.h/linknamespace): Likewise.
39146         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
39147         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
39148         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
39149         (test-xfail-UNIX98/regex.h/linknamespace): Likewise.
39150         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
39151         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
39152         (test-xfail-UNIX98/semaphore.h/linknamespace): Likewise.
39153         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
39154         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
39155         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
39156         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
39157         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
39158         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
39159         (test-xfail-UNIX98/unistd.h/linknamespace): Likewise.
39160         (test-xfail-UNIX98/wchar.h/linknamespace): Likewise.
39161         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
39162         (test-xfail-XOPEN2K/aio.h/linknamespace): Likewise.
39163         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
39164         (test-xfail-XOPEN2K/fcntl.h/linknamespace): Likewise.
39165         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
39166         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
39167         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
39168         (test-xfail-XOPEN2K/grp.h/linknamespace): Likewise.
39169         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
39170         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
39171         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
39172         (test-xfail-XOPEN2K/net/if.h/linknamespace): Likewise.
39173         (test-xfail-XOPEN2K/netdb.h/linknamespace): Likewise.
39174         (test-xfail-XOPEN2K/pthread.h/linknamespace): Likewise.
39175         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
39176         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
39177         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
39178         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
39179         (test-xfail-XOPEN2K/signal.h/linknamespace): Likewise.
39180         (test-xfail-XOPEN2K/spawn.h/linknamespace): Likewise.
39181         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
39182         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
39183         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
39184         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
39185         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
39186         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
39187         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
39188         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
39189         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
39190         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
39191         (test-xfail-POSIX2008/aio.h/linknamespace): Likewise.
39192         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
39193         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
39194         (test-xfail-POSIX2008/dirent.h/linknamespace): Likewise.
39195         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
39196         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
39197         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
39198         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
39199         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
39200         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
39201         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
39202         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
39203         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
39204         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
39205         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
39206         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
39207         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
39208         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
39209         (test-xfail-POSIX2008/unistd.h/linknamespace): Likewise.
39210         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
39211         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
39212         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
39213         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
39214         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
39215         (test-xfail-XOPEN2K8/grp.h/linknamespace): Likewise.
39216         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
39217         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
39218         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
39219         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
39220         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
39221         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
39222         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
39223         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
39224         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
39225         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
39226         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
39227         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
39228         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
39229         (test-xfail-XOPEN2K8/syslog.h/linknamespace): Likewise.
39230         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
39231         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
39232         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
39233
39234         [BZ #17589]
39235         * intl/localealias.c [_LIBC] (FGETS): Use __fgets_unlocked instead
39236         of fgets_unlocked.
39237
39238         [BZ #17585]
39239         * string/memmem.c [!_LIBC] (__memmem): Define to memmem.
39240         (memmem): Rename to __memmem and define as weak alias of
39241         __memmem.  Use libc_hidden_weak.
39242         (__memmem): Use libc_hidden_def.
39243         * include/string.h (__memmem): Declare.  Use libc_hidden_proto.
39244         * locale/findlocale.c (valid_locale_name): Use __memmem instead of
39245         memmem.
39246
39247         [BZ #17582]
39248         * libio/iofgets.c [weak_alias && !_IO_MTSAFE_IO]
39249         (__fgets_unlocked): Add alias of _IO_fgets.  Use libc_hidden_def.
39250         * libio/iofgets_u.c (fgets_unlocked): Rename to __fgets_unlocked
39251         and define as weak alias of __fgets_unlocked.  Use
39252         libc_hidden_weak.
39253         (__fgets_unlocked): Use libc_hidden_def.
39254         * include/stdio.h (__fgets_unlocked): Declare.  Use
39255         libc_hidden_proto.
39256         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Use
39257         __fgets_unlocked instead of fgets_unlocked.
39258         * sysdeps/unix/sysv/linux/alpha/getsysstats.c
39259         (GET_NPROCS_CONF_PARSER): Likewise.
39260         * sysdeps/unix/sysv/linux/sparc/getsysstats.c
39261         (GET_NPROCS_CONF_PARSER): Likewise.
39262
39263         [BZ #17574]
39264         * wcsmbs/wmemset.c (wmemset): Rename to __wmemset and define as
39265         weak alias of __wmemset.  Use libc_hidden_weak.
39266         (__wmemset): Use libc_hidden_def.
39267         * include/wchar.h (__wmemset): Declare.  Use libc_hidden_proto.
39268         * stdio-common/printf_fp.c (___printf_fp): Call __wmemset instead
39269         of wmemset.
39270
39271         [BZ #17573]
39272         * include/string.h [NOT_IN_libc || !SHARED] (mempcpy): Declare
39273         with asm name __mempcpy.
39274         [NOT_IN_libc || !SHARED] (stpcpy): Declare with asm name __stpcpy.
39275
39276         [BZ #17572]
39277         * sysdeps/x86_64/rawmemchr.S (rawmemchr): Rename to __rawmemchr
39278         and define as weak alias of __rawmemchr.
39279         (__rawmemchr): Do not define as strong alias of rawmemchr.
39280
39281         [BZ #17571]
39282         * stdlib/msort.c (qsort_r): Rename to __qsort_r and define as weak
39283         alias of __qsort_r.
39284         (qsort): Call __qsort_r instead of qsort_r.
39285         * include/stdlib.h (qsort_r): Do not call libc_hidden_proto.
39286         (__qsort_r): Declare.  Call libc_hidden_proto.
39287         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call __qsort_r
39288         instead of qsort_r.
39289         * nscd/gai.c (__qsort_r): Define to qsort_r.
39290         * posix/tst-rfc3484.c (__qsort_r): Likewise.
39291         * posix/tst-rfc3484-2.c (__qsort_r): Likewise.
39292         * posix/tst-rfc3484-3.c (__qsort_r): Likewise.
39293
39294         [BZ #17570]
39295         * malloc/malloc.c (malloc_info): Rename to __malloc_info and
39296         define as weak alias of __malloc_info.
39297
39298         [BZ #17584]
39299         * dirent/rewinddir.c (rewinddir): Rename to __rewinddir and define
39300         as weak alias of __rewinddir.  Don't use libc_hidden_def.
39301         (__rewinddir): Use libc_hidden_def.
39302         * sysdeps/mach/hurd/rewinddir.c: Rename to __rewinddir and define
39303         as weak alias of __rewinddir.  Don't use libc_hidden_def.
39304         (__rewinddir): Use libc_hidden_def.
39305         * sysdeps/posix/rewinddir.c: Rename to __rewinddir and define as
39306         weak alias of __rewinddir.  Don't use libc_hidden_def.
39307         (__rewinddir): Use libc_hidden_def.
39308         * include/dirent.h (rewinddir): Don't use libc_hidden_proto.
39309         (__rewinddir): Use libc_hidden_proto.
39310         * sysdeps/posix/getcwd.c [!_LIBC] (__rewinddir): Define to
39311         rewinddir.
39312         (__getcwd): Use __rewinddir instead of rewinddir.
39313
39314         [BZ #17583]
39315         * libio/fileno.c (fileno): Rename to __fileno and define as weak
39316         alias of __fileno.  Use libc_hidden_weak.
39317         (__fileno): Use libc_hidden_def.
39318         [weak_alias] (fileno_unlocked): Define as weak alias of __fileno.
39319         * libio/ftello.c (ftello): Rename to __ftello and define as weak
39320         alias of __ftello.
39321         [__OFF_T_MATCHES_OFF64_T] (ftello64): Define as weak alias of
39322         __ftello.
39323         * libio/iofread.c [weak_alias && !_IO_MTSAFE_IO]
39324         (__fread_unlocked): Define as strong alias of _IO_fread.  Use
39325         libc_hidden_def.
39326         (fread_unlocked): Don't use libc_hidden_ver.
39327         * libio/iofread_u.c (fread_unlocked): Rename to __fread_unlocked
39328         and define as weak alias of __fread_unlocked.  Don't use
39329         libc_hidden_def.
39330         (__fread_unlocked): Use libc_hidden_def.
39331         * include/stdio.h (__fileno): Declare.  Use libc_hidden_proto.
39332         (ftello): Don't use libc_hidden_proto.
39333         (__ftello): Declare.  Use libc_hidden_proto.
39334         (fread_unlocked): Don't use libc_hidden_proto.
39335         (__fread_unlocked): Declare.  Use libc_hidden_proto.
39336         * time/tzfile.c (__tzfile_read): Use __fileno, __fread_unlocked
39337         and __ftello instead of fileno, fread_unlocked and ftello.
39338
39339 2012-11-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
39340
39341         * sysdeps/s390/s390-32/bcopy.S (__bcopy): Use GOT instead of
39342         GOT12.
39343         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
39344         Likewise.
39345         (_dl_start_user): Likewise.
39346         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Likewise.
39347
39348 2014-11-12  Carlos O'Donell  <carlos@redhat.com>
39349             Siddhesh Poyarekar  <siddhesh@redhat.com>
39350
39351         * sysdeps/s390/s390-32/dl-machine.h (_dl_start_user):
39352         Move argv and envp down instead of moving argc up.
39353         * sysdeps/s390/s390-32/dl-sysdep.h: New file.
39354
39355 2014-11-12  Leonhard Holz  <leonhard.holz@web.de>
39356
39357         [BZ #17506]
39358         * test-skeleton.c (main): Return successful if one of
39359         EXPECTED_SIGNAL or EXPECTED_STATUS is met when both given.
39360         * string/tst-strcoll-overflow.c: Define expected status.
39361
39362 2014-11-12  Tatiana Udalova  <t.udalova@samsung.com>
39363
39364         [BZ #17475]
39365         * locale/iso-639.def: Define Bhili and Tulu language codes.
39366
39367 2014-11-11  Alan Hayward  <alan.hayward@arm.com>
39368
39369         * sysdeps/unix/sysv/linux/aarch64/bits/ipc.h: New file.
39370
39371 2014-11-10  Renlin Li  <Renlin.Li@arm.com>
39372
39373         [BZ #17555]
39374         * sysdeps/aarch64/start.S (_start): Delete x29 overwritten assignment.
39375
39376 2014-11-10  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
39377
39378         * configure.ac: Updated check of minimal required version to
39379         2.22.
39380         * manual/install.texi (Tools for Compilation): Updated version
39381         number.
39382         * configure: Regenerated.
39383         * INSTALL: Likewise.
39384
39385 2014-11-07  Andreas Schwab  <schwab@linux-m68k.org>
39386
39387         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Remove
39388         __tls_get_addr.
39389
39390 2014-11-07  Joseph Myers  <joseph@codesourcery.com>
39391
39392         * include/sys/wait.h (__libc_waitpid): Remove declaration.
39393         * posix/waitpid.c (__libc_waitpid): Rename to __waitpid.
39394         (__waitpid): Don't define as alias.  Use libc_hidden_def not
39395         libc_hidden_weak.
39396         (waitpid): Define as alias of __waitpid.
39397         * sysdeps/unix/bsd/waitpid.c (__libc_waitpid): Rename to
39398         __waitpid.
39399         (__waitpid): Don't define as alias.  Use libc_hidden_def not
39400         libc_hidden_weak.
39401         (waitpid): Define as alias of __waitpid.
39402         * sysdeps/unix/sysv/linux/i386/syscalls.list (waitpid): Remove
39403         __libc_waitpid alias.
39404         * sysdeps/unix/sysv/linux/m68k/syscalls.list (waitpid): Likewise.
39405         * sysdeps/unix/sysv/linux/powerpc/syscalls.list (waitpid):
39406         Likewise.
39407         * sysdeps/unix/sysv/linux/sh/syscalls.list (waitpid): Likewise.
39408         * sysdeps/unix/sysv/linux/sparc/syscalls.list (waitpid): Likewise.
39409         * sysdeps/unix/sysv/linux/tile/waitpid.S (__libc_waitpid): Remove
39410         alias.
39411         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Rename to
39412         __waitpid.
39413         (__waitpid): Don't define as alias.  Use libc_hidden_def not
39414         libc_hidden_weak.
39415         (waitpid): Define as alias of __waitpid.
39416
39417 2014-11-06  Carlos O'Donell  <carlos@redhat.com>
39418
39419         * manual/llio.texi: Add comment that write safety has been
39420         fixed in Linux.
39421
39422         * elf/Makefile (all-built-dso): Add $(common-objpfx)elf/ld.so.
39423         (localplt-build-dso): Add elf/ld.so.
39424         * sysdeps/unix/sysv/linux/i386/localplt.data: Add ___tls_get_addr
39425         i.e. 3 underscore version, __libc_memalign, malloc, calloc, realloc,
39426         and free for ld.so.
39427         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: Add
39428         __libc_memalign, malloc, calloc, realloc, and free for ld.so.
39429         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data:
39430         Likewise.
39431         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
39432         Likewise.
39433         * sysdeps/unix/sysv/linux/s390/localplt.data: Likewise.
39434         * sysdeps/generic/localplt.data: Add __tls_get_addr i.e. 2 underscore
39435         version, __libc_memalign, malloc, calloc, realloc and free for ld.so.
39436         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Likewise.
39437         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
39438         * sysdeps/unix/sysv/linux/alpha/localplt.data: Likewise.
39439         * sysdeps/unix/sysv/linux/ia64/localplt.data: Likewise.
39440         * sysdeps/unix/sysv/linux/m68k/localplt.data: Likewise.
39441         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
39442         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Likewise.
39443         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
39444
39445 2014-11-05  Joseph Myers  <joseph@codesourcery.com>
39446
39447         [BZ #14132]
39448         * include/libc-symbols.h (INTUSE): Remove macro.
39449         (INTDEF): Likewise.
39450         (INTVARDEF): Likewise.
39451         (_INTVARDEF): Likewise.
39452         (INTDEF2): Likewise.
39453         (INTVARDEF2): Likewise.
39454         * elf/rtld.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Use
39455         rtld_hidden_def instead of INTVARDEF.
39456         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]
39457         (_dl_starting_up_internal): Remove declaration.
39458         (_dl_starting_up): Use rtld_hidden_proto.
39459         * elf/dl-init.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Remove
39460         declaration.
39461         [!HAVE_INLINED_SYSCALLS] (_dl_starting_up_internal): Likewise.
39462         (_dl_init) [!HAVE_INLINED_SYSCALLS]: Don't use INTUSE with
39463         _dl_starting_up.
39464         * elf/dl-writev.h (_dl_writev): Likewise.
39465         * sysdeps/powerpc/powerpc64/dl-machine.h [!HAVE_INLINED_SYSCALLS]
39466         (DL_STARTING_UP_DEF): Use __GI__dl_starting_up instead of
39467         _dl_starting_up_internal.
39468
39469 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39470
39471         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
39472         test-skeleton.c.
39473
39474 2014-11-05  Will Newton  <will.newton@linaro.org>
39475
39476         * benchtests/Makefile: (bench-malloc): Add malloc thread
39477         scalability benchmark.
39478         * benchtests/bench-malloc-threads.c: New file.
39479
39480 2014-11-05  Richard Earnshaw  <rearnsha@arm.com>
39481
39482         * sysdeps/aarch64/strchrnul.S: New file.
39483
39484 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39485
39486         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Simplify
39487         definition.
39488         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
39489         Likewise.
39490         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
39491         Likewise.
39492         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
39493         Likewise.
39494         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
39495         Likewise.
39496         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
39497         Likewise.
39498
39499 2014-11-05  Arjun Shankar  <arjun.is@lostca.se>
39500
39501         * catgets/test-gencat.c: Use test-skeleton.c.
39502         * catgets/tst-catgets.c: Likewise.
39503         * csu/tst-empty.c: Likewise.
39504         * elf/tst-audit2.c: Likewise.
39505         * elf/tst-global1.c: Likewise.
39506         * elf/tst-pathopt.c: Likewise.
39507         * elf/tst-piemod1.c: Likewise.
39508         * elf/tst-tls10.c: Likewise.
39509         * elf/tst-tls11.c: Likewise.
39510         * elf/tst-tls12.c: Likewise.
39511         * gnulib/tst-gcc.c: Likewise.
39512         * iconvdata/tst-e2big.c: Likewise.
39513         * iconvdata/tst-loading.c: Likewise.
39514         * iconv/tst-iconv1.c: Likewise.
39515         * iconv/tst-iconv2.c: Likewise.
39516         * inet/test-inet6_opt.c: Likewise.
39517         * inet/tst-gethnm.c: Likewise.
39518         * inet/tst-network.c: Likewise.
39519         * inet/tst-ntoa.c: Likewise.
39520         * intl/tst-codeset.c: Likewise.
39521         * intl/tst-gettext2.c: Likewise.
39522         * intl/tst-gettext3.c: Likewise.
39523         * intl/tst-ngettext.c: Likewise.
39524         * intl/tst-translit.c: Likewise.
39525         * io/test-stat.c: Likewise.
39526         * libio/test-fmemopen.c: Likewise.
39527         * libio/tst-freopen.c: Likewise.
39528         * libio/tst-sscanf.c: Likewise.
39529         * libio/tst-ungetwc1.c: Likewise.
39530         * libio/tst-ungetwc2.c: Likewise.
39531         * libio/tst-widetext.c: Likewise.
39532         * localedata/tst-ctype.c: Likewise.
39533         * localedata/tst-digits.c: Likewise.
39534         * localedata/tst-leaks.c: Likewise.
39535         * localedata/tst-mbswcs1.c: Likewise.
39536         * localedata/tst-mbswcs2.c: Likewise.
39537         * localedata/tst-mbswcs3.c: Likewise.
39538         * localedata/tst-mbswcs4.c: Likewise.
39539         * localedata/tst-mbswcs5.c: Likewise.
39540         * localedata/tst-setlocale.c: Likewise.
39541         * localedata/tst-trans.c: Likewise.
39542         * localedata/tst-wctype.c: Likewise.
39543         * localedata/tst-xlocale1.c: Likewise.
39544         * login/tst-grantpt.c: Likewise.
39545         * malloc/tst-calloc.c: Likewise.
39546         * malloc/tst-malloc.c: Likewise.
39547         * malloc/tst-mallocstate.c: Likewise.
39548         * malloc/tst-mcheck.c: Likewise.
39549         * malloc/tst-mtrace.c: Likewise.
39550         * malloc/tst-obstack.c: Likewise.
39551         * math/atest-exp2.c: Likewise.
39552         * math/atest-exp.c: Likewise.
39553         * math/atest-sincos.c: Likewise.
39554         * math/test-matherr.c: Likewise.
39555         * math/test-misc.c: Likewise.
39556         * math/test-powl.c: Likewise.
39557         * math/tst-definitions.c: Likewise.
39558         * misc/tst-dirname.c: Likewise.
39559         * misc/tst-efgcvt.c: Likewise.
39560         * misc/tst-fdset.c: Likewise.
39561         * misc/tst-hsearch.c: Likewise.
39562         * misc/tst-mntent2.c: Likewise.
39563         * nptl/tst-sem7.c: Likewise.
39564         * nptl/tst-sem8.c: Likewise.
39565         * nptl/tst-sem9.c: Likewise.
39566         * nss/test-netdb.c: Likewise.
39567         * posix/tst-fnmatch.c: Likewise.
39568         * posix/tst-getlogin.c: Likewise.
39569         * posix/tst-gnuglob.c: Likewise.
39570         * posix/tst-mmap.c: Likewise.
39571         * pwd/tst-getpw.c: Likewise.
39572         * resolv/tst-inet_ntop.c: Likewise.
39573         * rt/tst-timer.c: Likewise.
39574         * stdio-common/test-fseek.c: Likewise.
39575         * stdio-common/test-popen.c: Likewise.
39576         * stdio-common/test-vfprintf.c: Likewise.
39577         * stdio-common/tst-cookie.c: Likewise.
39578         * stdio-common/tst-fileno.c: Likewise.
39579         * stdio-common/tst-gets.c: Likewise.
39580         * stdio-common/tst-obprintf.c: Likewise.
39581         * stdio-common/tst-perror.c: Likewise.
39582         * stdio-common/tst-sprintf2.c: Likewise.
39583         * stdio-common/tst-sprintf3.c: Likewise.
39584         * stdio-common/tst-sprintf.c: Likewise.
39585         * stdio-common/tst-swprintf.c: Likewise.
39586         * stdio-common/tst-tmpnam.c: Likewise.
39587         * stdio-common/tst-unbputc.c: Likewise.
39588         * stdio-common/tst-wc-printf.c: Likewise.
39589         * stdlib/tst-environ.c: Likewise.
39590         * stdlib/tst-fmtmsg.c: Likewise.
39591         * stdlib/tst-limits.c: Likewise.
39592         * stdlib/tst-rand48-2.c: Likewise.
39593         * stdlib/tst-rand48.c: Likewise.
39594         * stdlib/tst-random2.c: Likewise.
39595         * stdlib/tst-random.c: Likewise.
39596         * stdlib/tst-strtol.c: Likewise.
39597         * stdlib/tst-strtoll.c: Likewise.
39598         * stdlib/tst-tls-atexit.c: Likewise.
39599         * stdlib/tst-xpg-basename.c: Likewise.
39600         * string/test-ffs.c: Likewise.
39601         * string/tst-bswap.c: Likewise.
39602         * string/tst-inlcall.c: Likewise.
39603         * string/tst-strtok.c: Likewise.
39604         * string/tst-strxfrm.c: Likewise.
39605         * sysdeps/x86_64/tst-audit10.c: Likewise.
39606         * sysdeps/x86_64/tst-audit3.c: Likewise.
39607         * sysdeps/x86_64/tst-audit4.c: Likewise.
39608         * sysdeps/x86_64/tst-audit5.c: Likewise.
39609         * time/tst-ftime_l.c: Likewise.
39610         * time/tst-getdate.c: Likewise.
39611         * time/tst-mktime3.c: Likewise.
39612         * time/tst-mktime.c: Likewise.
39613         * time/tst-posixtz.c: Likewise.
39614         * time/tst-strptime2.c: Likewise.
39615         * time/tst-strptime3.c: Likewise.
39616         * wcsmbs/tst-btowc.c: Likewise.
39617         * wcsmbs/tst-mbrtowc.c: Likewise.
39618         * wcsmbs/tst-mbsrtowcs.c: Likewise.
39619         * wcsmbs/tst-wchar-h.c: Likewise.
39620         * wcsmbs/tst-wcpncpy.c: Likewise.
39621         * wcsmbs/tst-wcrtomb.c: Likewise.
39622         * wcsmbs/tst-wcsnlen.c: Likewise.
39623         * wcsmbs/tst-wcstof.c: Likewise.
39624
39625 2014-11-04  Joseph Myers  <joseph@codesourcery.com>
39626
39627         [BZ #14132]
39628         * elf/dl-profile.c (_dl_mcount): Use rtld_hidden_def instead of
39629         INTDEF.
39630         * sysdeps/generic/ldsodefs.h (_dl_mcount_internal): Remove
39631         declaration.
39632         (_dl_mcount): Use rtld_hidden_proto.
39633         * elf/dl-runtime.c (_dl_profile_fixup): Don't use INTUSE with
39634         _dl_mcount.
39635         * elf/rtld.c (_rtld_global_ro): Likewise.
39636
39637         [BZ #14132]
39638         * elf/dl-init.c (_dl_init): Don't use INTDEF.
39639         * sysdeps/aarch64/dl-machine.h (RTLD_START): Use _dl_init instead
39640         of _dl_init_internal.
39641         * sysdeps/alpha/dl-machine.h (RTLD_START): Likewise.
39642         * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
39643         * sysdeps/hppa/dl-machine.h (RTLD_START): Likewise.
39644         * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
39645         * sysdeps/ia64/dl-machine.h (RTLD_START): Likewise.
39646         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
39647         * sysdeps/microblaze/dl-machine.h (RTLD_START): Likewise.
39648         * sysdeps/mips/dl-machine.h (RTLD_START): Likewise.
39649         * sysdeps/powerpc/powerpc32/dl-start.S (_start): Likewise.
39650         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
39651         * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
39652         * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
39653         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
39654         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
39655         * sysdeps/tile/dl-start.S (_start): Likewise.
39656         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
39657         * sysdeps/x86_64/x32/dl-machine.h (RTLD_START): Likewise.
39658
39659         [BZ #14132]
39660         * sysdeps/generic/ldsodefs.h (_dl_argv): Use rtld_hidden_proto.
39661         [IS_IN_rtld] (_dl_argv_internal): Do not declare.
39662         (rtld_progname): Make macro definition unconditional.
39663         * elf/rtld.c (_dl_argv): Use rtld_hidden_data_def instead of
39664         INTDEF.
39665         (dlmopen_doit): Do not use INTUSE with _dl_argv.
39666         (dl_main): Likewise.
39667         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
39668         * sysdeps/alpha/dl-machine.h (RTLD_START): Use __GI__dl_argv
39669         instead of _dl_argv_internal.
39670         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
39671         __GI__dl_argv instead of INTUSE(_dl_argv).
39672         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
39673         __GI__dl_argv instead of _dl_argv_internal.
39674
39675         * soft-fp/op-common.h (_FP_TO_INT_ROUND): New macro.
39676         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_D): New
39677         macro.
39678         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_D): Likewise.
39679         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_E):
39680         New macro.
39681         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_E): Likewise.
39682         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_Q): New
39683         macro.
39684         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_Q): Likewise.
39685         * soft-fp/single.h (FP_TO_INT_ROUND_S): New macro.
39686
39687 2014-11-04  Andreas Schwab  <schwab@suse.de>
39688
39689         * posix/regex_internal.h: Don't include <locale/elem-hash.h>.
39690
39691 2014-11-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39692
39693         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Encode
39694         mtvsrd instruction in binary form.
39695
39696 2014-11-03  Andreas Schwab  <schwab@suse.de>
39697
39698         [BZ #17522]
39699         * libio/wfileops.c (_IO_wdo_write): If the file buffer has room
39700         for less than MB_LEN_MAX use a local buffer of that size.
39701         * libio/tst-fputws.c: New file.
39702         * libio/Makefile (tests): Add tst-fputws.
39703
39704 2014-11-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
39705
39706         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu): fix
39707         the size of the fpu_fr.fpu_dregs[] array.
39708
39709 2014-11-01  Joseph Myers  <joseph@codesourcery.com>
39710
39711         * posix/nanosleep.c (__libc_nanosleep): Rename to __nanosleep.
39712         (__nanosleep): Do not define as alias.
39713         (nanosleep): Define as alias of __nanosleep.
39714         * sysdeps/unix/sysv/linux/syscalls.list (nanosleep): Remove
39715         __libc_nanosleep name.
39716
39717 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
39718
39719         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): Mention need to update
39720         install.texi in comment.
39721
39722 2014-10-31  Torvald Riegel  <triegel@redhat.com>
39723
39724         * sysdeps/powerpc/bits/atomic.h (atomic_write_barrier): Remove and...
39725         * sysdeps/powerpc/powerpc32/bits/atomic.h (atomic_write_barrier):
39726         ... add here and use lwsync or sync ...
39727         * sysdeps/powerpc/powerpc64/bits/atomic.h (atomic_write_barrier):
39728         ... and add here using lwsync.
39729
39730 2014-10-31  Matthew Fortune  <matthew.fortune@imgtec.com>
39731
39732         * elf/dl-machine-reject-phdr.h: New file.
39733         * elf/dl-load.c: #include that.
39734         (open_verify): Call elf_machine_reject_phdr_p and ignore the file
39735         if that returned true.
39736
39737 2014-10-31  Roland McGrath  <roland@hack.frob.com>
39738
39739         [BZ #17496]
39740         * Makerules: Move gnu/lib-names.h generation chunk up, to right after
39741         gen-as-const-headers chunk.  Add a big scare comment after the last
39742         safe place to touch before-compile.
39743
39744 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
39745
39746         * manual/install.texi (Tools for Compilation): Update autoconf
39747         version requirements.
39748         * INSTALL: Regenerated.
39749
39750         * misc/pselect.c [!__pselect] (__libc_pselect): Remove alias.
39751         * sysdeps/unix/sysv/linux/pselect.c [__NR_pselect6]
39752         (__libc_pselect): Likewise.
39753
39754         [BZ #14138]
39755         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Remove file.
39756         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
39757         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
39758         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
39759
39760 2014-10-31  Torvald Riegel  <triegel@redhat.com>
39761
39762         * sysdeps/sparc/sparc32/bits/atomic.h (atomic_write_barrier): Use
39763         correct barrier instruction.
39764         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_write_barrier):
39765         Likewise.
39766         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_write_barrier):
39767         Likewise.
39768
39769 2014-10-30  Roland McGrath  <roland@hack.frob.com>
39770
39771         * include/ctype.h: Include <ctype/ctype.h> first thing rather than
39772         after defining inlines.  Instead, just use parens to defeat macro
39773         expansion of __isctype in its declaration.
39774
39775 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
39776
39777         * include/sys/uio.h (__libc_readv): Remove declaration.
39778         (__libc_writev): Likewise.
39779         * misc/readv.c (__libc_readv): Rename to __readv.
39780         (__readv): Do not define as alias.
39781         (readv): Define as alias of __readv.
39782         * misc/writev.c (__libc_writev): Rename to __writev.
39783         (__writev): Do not define as alias.
39784         (writev): Define as alias of __writev.
39785         * sysdeps/posix/readv.c (__libc_readv): Rename to __readv.
39786         (__readv): Do not define as alias.
39787         (readv): Define unconditionally as alias of __readv.
39788         * sysdeps/posix/writev.c (__libc_writev): Rename to __writev.
39789         (__writev): Do not define as alias.
39790         (writev): Define unconditionally as alias of __writev.
39791         * sysdeps/unix/syscalls.list (readv): Do not define __libc_readv
39792         name.
39793         (writev): Do not define __libc_writev name.
39794
39795 2014-10-30  Roland McGrath  <roland@hack.frob.com>
39796
39797         * iconv/iconv_charmap.c (add_bytes): Make IN argument pointer to const.
39798         (convert_charseq): New function, broken out of ...
39799         (use_from_charmap): ... here.  Call it.
39800         (use_to_charmap): Use convert_charseq and free instead of duplicating
39801         its code with a variable-length stack struct.
39802
39803 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
39804
39805         * include/fcntl.h (__libc_creat): Remove declaration.
39806         * io/creat.c (__libc_creat): Rename to creat.
39807         (creat): Do not define as alias.
39808         * sysdeps/unix/sysv/linux/alpha/creat.c (creat64): Define as alias
39809         of creat instead of __libc_creat.
39810         * sysdeps/unix/sysv/linux/generic/creat.c (__libc_creat): Rename
39811         to creat.
39812         (creat): Do not define as alias.
39813         [__WORDSIZE == 64] (creat64): Define as alias of creat instead of
39814         __libc_creat.
39815         * sysdeps/unix/sysv/linux/syscalls.list (creat): Do not define
39816         __libc_creat name.
39817         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (creat):
39818         Likewise.
39819
39820 2014-10-29  Carlos O'Donell  <carlos@redhat.com>
39821
39822         * manual/llio.texi: Add comments discussing why write() may be
39823         considered MT-unsafe on Linux.
39824
39825 2014-10-28  Carlos O'Donell  <carlos@redhat.com>
39826
39827         * dl-load.c (local_strdup): Remove.
39828         (expand_dynamic_string_token): Use __strdup.
39829         (decompose_rpath): Likewise.
39830         (_dl_map_object): Likewise.
39831
39832 2014-10-28  Joseph Myers  <joseph@codesourcery.com>
39833
39834         [BZ #14132]
39835         * sysdeps/generic/unwind-dw2-fde.c
39836         (__register_frame_info_bases_internal): Do not declare.
39837         (__register_frame_info_table_bases_internal): Likewise.
39838         (__deregister_frame_info_bases_internal): Likewise.
39839         (__register_frame_info_bases): Declare and use hidden_proto before
39840         definition.  Use hidden_def instead of INTDEF.
39841         (__register_frame_info_table_bases): Likewise.
39842         (__deregister_frame_info_bases): Likewise.
39843         (__register_frame_info): Do not use INTUSE.
39844         (__register_frame): Likewise.
39845         (__register_frame_info_table): Likewise.
39846         (__register_frame_table): Likewise.
39847         (__deregister_frame_info): Likewise.
39848         (__deregister_frame): Likewise.
39849
39850 2014-10-27  Gratian Crisan  <gratian.crisan@ni.com>
39851
39852         * sysdeps/unix/sysv/linux/arm/kernel-features.h
39853         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_FUTEX_LOCK_PI): Do
39854         not undefine.
39855         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_REQUEUE_PI):
39856         Likewise.
39857         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_SET_ROBUST_LIST):
39858         Likewise.
39859
39860 2014-10-27  Joseph Myers  <joseph@codesourcery.com>
39861
39862         [BZ #14138]
39863         * sysdeps/unix/sysv/linux/arm/setfsgid.c: Remove file.
39864         * sysdeps/unix/sysv/linux/arm/setfsuid.c: Likewise.
39865         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
39866         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
39867         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: Likewise.
39868         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Likewise.
39869         * sysdeps/unix/sysv/linux/s390/s390-32/setfsgid.c: Likewise.
39870         * sysdeps/unix/sysv/linux/s390/s390-32/setfsuid.c: Likewise.
39871         * sysdeps/unix/sysv/linux/sh/setfsgid.c: Likewise.
39872         * sysdeps/unix/sysv/linux/sh/setfsuid.c: Likewise.
39873         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: Likewise.
39874         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: Likewise.
39875         * sysdeps/unix/sysv/linux/arm/syscalls.list (setfsgid): Add
39876         syscall.
39877         (setfsuid): Likewise.
39878         * sysdeps/unix/sysv/linux/i386/syscalls.list (setfsgid): Likewise.
39879         (setfsuid): Likewise.
39880         * sysdeps/unix/sysv/linux/m68k/syscalls.list (setfsgid): Likewise.
39881         (setfsuid): Likewise.
39882         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setfsgid):
39883         Likewise.
39884         (setfsuid): Likewise.
39885         * sysdeps/unix/sysv/linux/sh/syscalls.list (setfsgid): Likewise.
39886         (setfsuid): Likewise.
39887         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (setfsgid):
39888         Likewise.
39889         (setfsuid): Likewise.
39890
39891 2014-10-27  Andreas Schwab  <schwab@suse.de>
39892
39893         [BZ #17501]
39894         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Fix
39895         check for Slow_SSE4_2 feature bit.
39896         * sysdeps/i386/i686/multiarch/strcmp.S (STRCMP): Likewise.
39897         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
39898         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP, __strcascmp):
39899         Likewise.  Fix check for Fast_Unaligned_Load feature bit.
39900
39901 2014-10-24  Roland McGrath  <roland@hack.frob.com>
39902
39903         * configure.ac: Validate compiler version with a empirical test of
39904         __GNUC__ and __GNUC_MINOR__ predefined values, rather than by grepping
39905         $CC -v output.
39906         * configure: Regenerated.
39907
39908         * inet/htons.c (htons): Prototypify.
39909         * inet/htonl.c (htonl): Likewise.
39910
39911 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
39912
39913         * string/strncat.c (strncat): Improve performance by using strlen.
39914
39915 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
39916
39917         * string/strcat.c (strcat): Improve performance by using strlen/strcpy.
39918
39919 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
39920
39921         * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag):
39922         Call libc_fetestexcept_aarch64.
39923
39924 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
39925
39926         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept):
39927         Call libc_feholdexcept_aarch64.
39928
39929 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
39930
39931         * sysdeps/aarch64/fpu/fegetround.c (fegetround):
39932         Call get_rounding_mode.
39933
39934 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
39935
39936         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
39937         Simplify logic.
39938
39939 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
39940
39941         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept):
39942         Simplify logic.
39943
39944 2014-10-24  Joseph Myers  <joseph@codesourcery.com>
39945
39946         [BZ #14138]
39947         * sysdeps/unix/sysv/linux/arm/getegid.c: Remove file.
39948         * sysdeps/unix/sysv/linux/arm/geteuid.c: Likewise.
39949         * sysdeps/unix/sysv/linux/arm/getgid.c: Likewise.
39950         * sysdeps/unix/sysv/linux/arm/getgroups.c: Likewise.
39951         * sysdeps/unix/sysv/linux/arm/getresgid.c: Likewise.
39952         * sysdeps/unix/sysv/linux/arm/getresuid.c: Likewise.
39953         * sysdeps/unix/sysv/linux/arm/getuid.c: Likewise.
39954         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
39955         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
39956         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
39957         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
39958         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
39959         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
39960         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
39961         * sysdeps/unix/sysv/linux/m68k/getegid.c: Likewise.
39962         * sysdeps/unix/sysv/linux/m68k/geteuid.c: Likewise.
39963         * sysdeps/unix/sysv/linux/m68k/getgid.c: Likewise.
39964         * sysdeps/unix/sysv/linux/m68k/getgroups.c: Likewise.
39965         * sysdeps/unix/sysv/linux/m68k/getresgid.c: Likewise.
39966         * sysdeps/unix/sysv/linux/m68k/getresuid.c: Likewise.
39967         * sysdeps/unix/sysv/linux/m68k/getuid.c: Likewise.
39968         * sysdeps/unix/sysv/linux/s390/s390-32/getegid.c: Likewise.
39969         * sysdeps/unix/sysv/linux/s390/s390-32/geteuid.c: Likewise.
39970         * sysdeps/unix/sysv/linux/s390/s390-32/getgid.c: Likewise.
39971         * sysdeps/unix/sysv/linux/s390/s390-32/getgroups.c: Likewise.
39972         * sysdeps/unix/sysv/linux/s390/s390-32/getresgid.c: Likewise.
39973         * sysdeps/unix/sysv/linux/s390/s390-32/getresuid.c: Likewise.
39974         * sysdeps/unix/sysv/linux/s390/s390-32/getuid.c: Likewise.
39975         * sysdeps/unix/sysv/linux/sh/getegid.c: Likewise.
39976         * sysdeps/unix/sysv/linux/sh/geteuid.c: Likewise.
39977         * sysdeps/unix/sysv/linux/sh/getgid.c: Likewise.
39978         * sysdeps/unix/sysv/linux/sh/getgroups.c: Likewise.
39979         * sysdeps/unix/sysv/linux/sh/getresgid.c: Likewise.
39980         * sysdeps/unix/sysv/linux/sh/getresuid.c: Likewise.
39981         * sysdeps/unix/sysv/linux/sh/getuid.c: Likewise.
39982         * sysdeps/unix/sysv/linux/sparc/sparc32/getegid.c: Likewise.
39983         * sysdeps/unix/sysv/linux/sparc/sparc32/geteuid.c: Likewise.
39984         * sysdeps/unix/sysv/linux/sparc/sparc32/getgid.c: Likewise.
39985         * sysdeps/unix/sysv/linux/sparc/sparc32/getgroups.c: Likewise.
39986         * sysdeps/unix/sysv/linux/sparc/sparc32/getuid.c: Likewise.
39987         * sysdeps/unix/sysv/linux/arm/syscalls.list (getegid): Add
39988         syscall.
39989         (geteuid): Likewise.
39990         (getgid): Likewise.
39991         (getuid): Likewise.
39992         (getresgid): Likewise.
39993         (getresuid): Likewise.
39994         (getgroups): Likewise.
39995         * sysdeps/unix/sysv/linux/i386/syscalls.list (getegid): Likewise.
39996         (geteuid): Likewise.
39997         (getgid): Likewise.
39998         (getuid): Likewise.
39999         (getresgid): Likewise.
40000         (getresuid): Likewise.
40001         (getgroups): Likewise.
40002         * sysdeps/unix/sysv/linux/m68k/syscalls.list (getegid): Likewise.
40003         (geteuid): Likewise.
40004         (getgid): Likewise.
40005         (getuid): Likewise.
40006         (getresgid): Likewise.
40007         (getresuid): Likewise.
40008         (getgroups): Likewise.
40009         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (getegid):
40010         Likewise.
40011         (geteuid): Likewise.
40012         (getgid): Likewise.
40013         (getuid): Likewise.
40014         (getresgid): Likewise.
40015         (getresuid): Likewise.
40016         (getgroups): Likewise.
40017         * sysdeps/unix/sysv/linux/sh/syscalls.list (getegid): Likewise.
40018         (geteuid): Likewise.
40019         (getgid): Likewise.
40020         (getuid): Likewise.
40021         (getresgid): Likewise.
40022         (getresuid): Likewise.
40023         (getgroups): Likewise.
40024         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (getegid):
40025         Likewise.
40026         (geteuid): Likewise.
40027         (getgid): Likewise.
40028         (getuid): Likewise.
40029         (getgroups): Likewise.
40030
40031         [BZ #14138]
40032         * sysdeps/unix/sysv/linux/i386/chown.c: Remove file.
40033         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
40034         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
40035         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
40036         * sysdeps/unix/sysv/linux/s390/s390-32/fchown.c: Remove file.
40037         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
40038         * sysdeps/unix/sysv/linux/sh/chown.c: Likewise.
40039         * sysdeps/unix/sysv/linux/sh/fchown.c: Likewise.
40040         * sysdeps/unix/sysv/linux/sh/lchown.c: Likewise.
40041         * sysdeps/unix/sysv/linux/sparc/sparc32/chown.c: Likewise.
40042         * sysdeps/unix/sysv/linux/sparc/sparc32/fchown.c: Likewise.
40043         * sysdeps/unix/sysv/linux/sparc/sparc32/lchown.c: Likewise.
40044         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (GLIBC_2.1): Add
40045         __chown.
40046         * sysdeps/unix/sysv/linux/i386/syscalls.list (chown): Add syscall.
40047         (lchown): Likewise.
40048         (fchown): Likewise.
40049         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (chown):
40050         Likewise.
40051         (lchown): Likewise.
40052         (fchown): Likewise.
40053         * sysdeps/unix/sysv/linux/sh/syscalls.list (chown): Likewise.
40054         (lchown): Likewise.
40055         (fchown): Likewise.
40056         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (chown):
40057         Likewise.
40058         (lchown): Likewise.
40059         (fchown): Likewise.
40060
40061 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
40062
40063         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept):
40064         Simplify logic.
40065
40066 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
40067
40068         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
40069         Cleanup logic.
40070
40071 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
40072
40073         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
40074         Remove unused include.
40075
40076 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
40077
40078         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Remove spaces.
40079         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Remove spaces.
40080         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Remove spaces.
40081         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Remove spaces.
40082
40083 2014-10-23  Carlos O'Donell  <carlos@systemhalted.org>
40084             Helge Deller <deller@gmx.de>
40085
40086         [BZ #17508]
40087         * sysdeps/unix/sysv/linux/hppa/bits/signum.h: Remove SIGEMT.
40088         Define SIGSTKFLT as 7. Define SIGSYS as 31. Define SIGXCPU as 12.
40089         Remove SIGLOST. Define SIGXFSZ as 30. Define __SIGRTMIN as 32.
40090
40091 2014-10-23  Joseph Myers  <joseph@codesourcery.com>
40092
40093         [BZ #14132]
40094         * sysdeps/powerpc/powerpc32/libgcc-compat.S (__ashldi3_v_glibc20):
40095         Remove macro definition.
40096         (__ashrdi3_v_glibc20): Likewise.
40097         (__lshrdi3_v_glibc20): Likewise.
40098         (__cmpdi2_v_glibc20): Likewise.
40099         (__ucmpdi2_v_glibc20): Likewise.
40100         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixdfdi_v_glibc20): Likewise.
40101         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
40102         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
40103         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
40104         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
40105         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdisf_v_glibc20): Likewise.
40106
40107 2014-10-22  Roland McGrath  <roland@hack.frob.com>
40108
40109         * inet/netgroup.h (struct name_list): Use C99 [] syntax rather than
40110         old GNU extension [0] syntax.
40111         * nscd/nscd_helper.c (open_socket): Use a flexible array member and
40112         alloca rather than an array member with variable length.
40113         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
40114         * nscd/nscd.c (invalidate_db): New function, broken out of ...
40115         (parse_opt): ... here.  Likewise use alloca there.
40116         Validate the -i argument before checking for rootness.
40117         (send_shutdown): New function, broken out of ...
40118         (parse_opt): ... here.
40119
40120 2014-10-22  Roland McGrath  <roland@hack.frob.com>
40121
40122         * sysdeps/arm/__longjmp.S [NEED_HWCAP] [IS_IN_rtld]: Use LDST_PCREL
40123         macro to get at the _rt_local_ro field.
40124         [NEED_HWCAP] [!IS_IN_rtld]: Use LDR_GLOBAL to get at _rtld_global_ro
40125         ([PIC] case) or _dl_hwcap ([!PIC] case).
40126         * sysdeps/arm/setjmp.S: Likewise.
40127
40128         * config.h.in (ARM_PCREL_MOVW_OK): New macro.
40129         * sysdeps/arm/configure.ac: New check to define it.
40130         * sysdeps/arm/configure: Regenerated.
40131         * sysdeps/arm/sysdep.h [__ASSEMBLER__]: Include <arm-features.h>.
40132         (LDST_INDEXED_NOINDEX, LDST_INDEXED_INDEX): New macros.
40133         (LDST_INDEXED, LDST_PC_INDEXED): New macros, differing definitions
40134         depending on [ARM_NO_INDEX_REGISTER] and [__thumb2__].
40135         (LDST_PCREL) [!__thumb2__ && ARCH_HAS_T2 && ARM_PCREL_MOVW_OK]:
40136         Use move/movt pair instead of a load.
40137         (LDST_GLOBAL): Macro removed.
40138         (LDR_GLOBAL): New macro replaces it.
40139         (LDR_HIDDEN): New macro.
40140         (PTR_MANGLE_LOAD): Use LDR_GLOBAL rather than LDST_GLOBAL.
40141         Use LDR_HIDDEN instead for __pointer_chk_guard_local.
40142
40143         * setjmp/tst-setjmp-static.c: New file.
40144         * setjmp/Makefile (tests): Add it.
40145         (tests-static): New variable.
40146
40147 2014-10-22  Maciej W. Rozycki  <macro@codesourcery.com>
40148
40149         [BZ #17485]
40150         * sysdeps/unix/sysv/linux/mips/vfork.S (__libc_vfork): Define.
40151
40152 2014-10-21  Joseph Myers  <joseph@codesourcery.com>
40153
40154         [BZ #14132]
40155         * math/s_ldexpf.c (__ldexpf): Do not use INTDEF.
40156
40157 2014-10-21  Roland McGrath  <roland@hack.frob.com>
40158
40159         * nptl/version.c (__nptl_main): Call __libc_write, not __write.
40160
40161 2014-10-20  Roland McGrath  <roland@hack.frob.com>
40162
40163         * io/fts.c (dirent_not_directory): New function.
40164         (fts_build): Call it.
40165
40166 2014-10-20  Roland McGrath  <roland@hack.frob.com>
40167
40168         * nptl/version.c (__nptl_main): Use normal __write rather than
40169         INTERNAL_SYSCALL.
40170         (banner): Update copyright years.
40171
40172         * nptl/pthread_rwlock_timedrdlock.c: #include <sys/time.h> before using
40173         gettimeofday.
40174         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
40175         * nptl/pthread_cond_timedwait.c: Likewise.
40176         * nptl/pthread_mutex_timedlock.c: Likewise.
40177         * nptl/sem_timedwait.c: Likewise.
40178
40179         * sysdeps/nptl/bits/libc-lock.h
40180         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
40181         (__libc_lock_init_recursive): Return void, not 0.
40182         * sysdeps/nptl/bits/libc-lockP.h (__libc_lock_init): Likewise.
40183         (__libc_rwlock_init): Likewise.
40184         * sysdeps/nptl/bits/stdio-lock.h (_IO_lock_init): Likewise.
40185
40186 2014-10-20  Torvald Riegel  <triegel@redhat.com>
40187
40188         [BZ #15215]
40189         * nptl/pthread_once.c (__pthread_once): Split out fast path to ...
40190         (__pthread_once_slow): ... here.
40191         * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove file.
40192         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Remove file.
40193
40194 2014-10-20  Torvald Riegel  <triegel@redhat.com>
40195
40196         [BZ #15215]
40197         * nptl/pthreadP.h (__PTHREAD_ONCE_INPROGRESS, __PTHREAD_ONCE_DONE,
40198         __PTHREAD_ONCE_FORK_GEN_INCR): New.
40199         * sysdeps/nptl/fork.c (__libc_fork): Use them.
40200         * nptl/pthread_once.c (__pthread_once): Likewise.
40201         Update comments.
40202
40203 2014-10-20  Joseph Myers  <joseph@codesourcery.com>
40204
40205         [BZ #14138]
40206         * sysdeps/unix/syscalls.list (readv): Use __libc_readv as strong
40207         name.
40208         (writev): Use __libc_writev as strong name.
40209         * sysdeps/unix/sysv/linux/readv.c: Remove file.
40210         * sysdeps/unix/sysv/linux/writev.c: Likewise.
40211
40212 2014-10-17  Roland McGrath  <roland@hack.frob.com>
40213
40214         * nptl/createthread.c (TLS_DEFINE_INIT_TP, TLS_VALUE): Macros removed.
40215
40216         * sysdeps/i386/nptl/tls.h
40217         (THREAD_SELF_SYSINFO, THREAD_SYSINFO): Macros removed.
40218         [NEED_DL_SYSINFO] (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO):
40219         New macros.
40220         * sysdeps/ia64/nptl/tls.h [NEED_DL_SYSINFO]
40221         (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO): New macros.
40222         * nptl/allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]:
40223         Call SETUP_THREAD_SYSINFO instead of doing an assignment.
40224         * nptl/createthread.c (create_thread) [NEED_DL_SYSINFO]:
40225         Call CHECK_THREAD_SYSINFO instead of doing an assert.
40226
40227         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
40228         Conditionalize FUTEX_PRIVATE_FLAG and FUTEX_CLOCK_REALTIME probes
40229         on [__NR_futex].
40230         * nptl/pthread_mutex_init.c (prio_inherit_missing): New function,
40231         broken out of ...
40232         (__pthread_mutex_init): ... here.  Call it.
40233         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full):
40234         Conditionalize PI cases on [__NR_futex].
40235         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
40236         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
40237         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
40238
40239         * nptl/nptl-init.c (sighandler_setxid, __xidcmd): Make definitions
40240         conditional on [SIGSETXID].
40241         (sigcancel_handler): Make definition conditional on [SIGCANCEL].
40242         (__pthread_initialize_minimal_internal): Set up SIGCANCEL only if it
40243         is defined.  Likewise for SIGSETXID.
40244         * nptl/allocatestack.c (setxid_mark_thread, setxid_unmark_thread):
40245         Conditionalize definitions on [SIGSETXID].
40246         (setxid_signal_thread, __nptl_setxid_error, __nptl_setxid): Likewise.
40247         * nptl/pthread_create.c (start_thread): Conditionalize SIGCANCEL
40248         unblocking on [SIGCANCEL].
40249
40250         * nptl/nptl-init.c (__nptl_set_robust): Conditionalize body on
40251         [__NR_set_robust_list].
40252
40253 2014-10-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
40254
40255         * string/strcoll_l.c (get_next_seq): Fix up formatting.
40256         (do_compare): Likewise.
40257
40258 2014-10-17  Leonhard Holz  <leonhard.holz@web.de>
40259
40260         [BZ #15884]
40261         * string/strcoll_l.c: Don't include stdio.h.
40262         (coll_seq): Remove members idxarr and rulearr.
40263         (get_next_seq_cached): Remove function.
40264         (get_next_seq): Likewise.
40265         (get_next_seq_nocache): Rename to get_next_seq.
40266         (do_compare): Remove function.
40267         (do_compare_nocache): Rename to do_compare.
40268         (STRCOLL): Remove weight and rules cache.
40269
40270 2014-10-16  Roland McGrath  <roland@hack.frob.com>
40271
40272         * sysdeps/arm/soft-fp/sfp-machine.h: Filed moved ...
40273         * sysdeps/arm/sfp-machine.h: ... to here.
40274         * sysdeps/arm/Implies: Remove arm/soft-fp.
40275
40276 2014-10-14  Joseph Myers  <joseph@codesourcery.com>
40277
40278         * conform/data/sys/utsname.h-data (*_t): Allow.
40279         * conform/data/sys/wait.h-data [POSIX] (uid_t): Do not define.
40280         [POSIX] (WEXITED): Do not expect constant.
40281         [POSIX] (WSTOPPED): Likewise.
40282         [POSIX] (WNOHANG): Likewise.
40283         [POSIX] (WNOWAIT): Likewise.
40284         [POSIX] (siginfo_t): Do not expect type or elements.
40285         [POSIX] (pid_t): Do not expect type.
40286         [POSIX] (signal.h): Do not allow header.
40287         [POSIX] (sys/resource.h): Likewise.
40288         [POSIX] (si_*): Do not allow pattern.
40289         [POSIX] (W*): Likewise.
40290         [POSIX] (P_*): Likewise.
40291         [POSIX] (BUS_*): Likewise.
40292         [POSIX] (CLD_*): Likewise.
40293         [POSIX] (FPE_*): Likewise.
40294         [POSIX] (ILL_*): Likewise.
40295         [POSIX] (POLL_*): Likewise.
40296         [POSIX] (SEGV_*): Likewise.
40297         [POSIX] (SI_*): Likewise.
40298         [POSIX] (TRAP_*): Likewise.
40299         * conform/Makefile (test-xfail-POSIX/sys/wait.h/conform): New
40300         variable.
40301
40302 2014-10-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
40303
40304         [BZ #12926]
40305         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Avoid
40306         infinite loop when __recvmsg returns 0.
40307
40308 2014-10-10  Joseph Myers  <joseph@codesourcery.com>
40309
40310         * CANCEL-FCT-WAIVE: Remove file.
40311         * CANCEL-FILE-WAIVE: Likewise.
40312
40313         [BZ #14132]
40314         * elf/dl-sysdep.c (__libc_enable_secure): Use rtld_hidden_data_def
40315         instead of INTVARDEF.
40316         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
40317         * sysdeps/mach/hurd/dl-sysdep.c (__libc_enable_secure): Use
40318         rtld_hidden_data_def instead of INTVARDEF.
40319         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
40320         * elf/dl-deps.c (expand_dst): Likewise.
40321         * elf/dl-load.c (_dl_dst_count): Likewise.
40322         (_dl_dst_substitute): Likewise.
40323         (decompose_rpath): Likewise.
40324         (_dl_init_paths): Likewise.
40325         (open_path): Likewise.
40326         (_dl_map_object): Likewise.
40327         * elf/rtld.c (dl_main): Likewise.
40328         (process_dl_audit): Likewise.
40329         (process_envvars): Likewise.
40330         * include/unistd.h [IS_IN_rtld] (__libc_enable_secure_internal):
40331         Remove declaration.
40332         (__libc_enable_secure): Use rtld_hidden_proto.
40333
40334 2014-10-09  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
40335
40336         * elf/dl-load.c
40337         (add_path): New function broken out of _dl_rtld_di_serinfo.
40338         (_dl_rtld_di_serinfo): Remove that nested function.  Update call sites.
40339
40340 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
40341
40342         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_D): Use
40343         parentheses around macro arguments.
40344         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_DP): Likewise.
40345         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_D): Likewise.
40346         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_DP): Likewise.
40347         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_D): Likewise.
40348         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_DP): Likewise.
40349         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_D): Likewise.
40350         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
40351         [_FP_W_TYPE_SIZE < 64] (FP_PACK_D): Likewise.
40352         [_FP_W_TYPE_SIZE < 64] (FP_PACK_DP): Likewise.
40353         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_D): Likewise.
40354         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_DP): Likewise.
40355         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_D): Likewise.
40356         [_FP_W_TYPE_SIZE < 64] (FP_CMP_D): Likewise.
40357         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_D): Likewise.
40358         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_D): Likewise.
40359         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_D): Likewise.
40360         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_D): Likewise.
40361         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_D): Likewise.
40362         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_DP): Likewise.
40363         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_D): Likewise.
40364         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_DP): Likewise.
40365         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_D): Likewise.
40366         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_DP): Likewise.
40367         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D): Likewise.
40368         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
40369         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_D): Likewise.
40370         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_DP): Likewise.
40371         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_D): Likewise.
40372         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_DP): Likewise.
40373         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_D): Likewise.
40374         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_D): Likewise.
40375         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_D): Likewise.
40376         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_D): Likewise.
40377         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_D): Likewise.
40378         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_D): Likewise.
40379         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_E):
40380         Likewise.
40381         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_EP): Likewise.
40382         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_E): Likewise.
40383         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
40384         [_FP_W_TYPE_SIZE < 64] (FP_PACK_E): Likewise.
40385         [_FP_W_TYPE_SIZE < 64] (FP_PACK_EP): Likewise.
40386         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_E): Likewise.
40387         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_EP): Likewise.
40388         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_E): Likewise.
40389         [_FP_W_TYPE_SIZE < 64] (FP_CMP_E): Likewise.
40390         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_E): Likewise.
40391         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_E): Likewise.
40392         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_E): Likewise.
40393         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_E): Likewise.
40394         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_E): Likewise.
40395         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_EP): Likewise.
40396         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_E): Likewise.
40397         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
40398         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_E): Likewise.
40399         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_EP): Likewise.
40400         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_E): Likewise.
40401         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_EP): Likewise.
40402         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_E): Likewise.
40403         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_E): Likewise.
40404         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_E): Likewise.
40405         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_E): Likewise.
40406         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_E): Likewise.
40407         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_E): Likewise.
40408         * soft-fp/op-1.h (_FP_FRAC_SRST_1): Likewise.
40409         (_FP_FRAC_SRS_1): Likewise.
40410         (_FP_FRAC_CLZ_1): Likewise.
40411         (_FP_MUL_MEAT_1_imm): Likewise.
40412         (_FP_MUL_MEAT_1_wide): Likewise.
40413         (_FP_MUL_MEAT_1_hard): Likewise.
40414         (_FP_SQRT_MEAT_1): Likewise.
40415         (_FP_FRAC_ASSEMBLE_1): Likewise.
40416         (_FP_FRAC_DISASSEMBLE_1): Likewise.
40417         * soft-fp/op-2.h (_FP_FRAC_CLZ_2): Likewise.
40418         (__FP_CLZ_2): Likewise.
40419         (_FP_MUL_MEAT_2_wide): Likewise.
40420         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
40421         (_FP_MUL_MEAT_2_gmp): Likewise.
40422         (_FP_MUL_MEAT_2_120_240_double): Likewise.
40423         (_FP_SQRT_MEAT_2): Likewise.
40424         (_FP_FRAC_ASSEMBLE_2): Likewise.
40425         (_FP_FRAC_DISASSEMBLE_2): Likewise.
40426         * soft-fp/op-4.h (_FP_FRAC_SRS_4): Likewise.
40427         (_FP_FRAC_CLZ_4): Likewise.
40428         (_FP_MUL_MEAT_4_wide): Likewise.
40429         (_FP_MUL_MEAT_4_gmp): Likewise.
40430         (_FP_SQRT_MEAT_4): Likewise.
40431         (_FP_FRAC_ASSEMBLE_4): Likewise.
40432         (_FP_FRAC_DISASSEMBLE_4): Likewise.
40433         * soft-fp/op-common.h (_FP_CMP): Likewise.
40434         (_FP_CMP_EQ): Likewise.
40435         (_FP_CMP_UNORD): Likewise.
40436         (_FP_TO_INT): Likewise.
40437         (_FP_FROM_INT): Likewise.
40438         [!__FP_CLZ] (__FP_CLZ): Likewise.
40439         (_FP_DIV_HELP_imm): Likewise.
40440         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_Q):
40441         Likewise.
40442         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_QP): Likewise.
40443         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_Q): Likewise.
40444         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_QP): Likewise.
40445         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_Q): Likewise.
40446         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_QP): Likewise.
40447         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
40448         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
40449         [_FP_W_TYPE_SIZE < 64] (FP_PACK_Q): Likewise.
40450         [_FP_W_TYPE_SIZE < 64] (FP_PACK_QP): Likewise.
40451         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_Q): Likewise.
40452         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_QP): Likewise.
40453         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_Q): Likewise.
40454         [_FP_W_TYPE_SIZE < 64] (FP_CMP_Q): Likewise.
40455         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_Q): Likewise.
40456         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_Q): Likewise.
40457         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_Q): Likewise.
40458         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_Q): Likewise.
40459         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_Q): Likewise.
40460         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_QP): Likewise.
40461         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_Q): Likewise.
40462         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_QP): Likewise.
40463         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_Q): Likewise.
40464         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_QP): Likewise.
40465         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
40466         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
40467         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_Q): Likewise.
40468         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_QP): Likewise.
40469         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_Q): Likewise.
40470         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_QP): Likewise.
40471         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_Q): Likewise.
40472         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_Q): Likewise.
40473         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_Q): Likewise.
40474         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_Q): Likewise.
40475         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_Q): Likewise.
40476         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_Q): Likewise.
40477         * soft-fp/single.h (FP_UNPACK_RAW_S): Likewise.
40478         (FP_UNPACK_RAW_SP): Likewise.
40479         (FP_PACK_RAW_S): Likewise.
40480         (FP_PACK_RAW_SP): Likewise.
40481         (FP_UNPACK_S): Likewise.
40482         (FP_UNPACK_SP): Likewise.
40483         (FP_UNPACK_SEMIRAW_S): Likewise.
40484         (FP_UNPACK_SEMIRAW_SP): Likewise.
40485         (FP_PACK_S): Likewise.
40486         (FP_PACK_SP): Likewise.
40487         (FP_PACK_SEMIRAW_S): Likewise.
40488         (FP_PACK_SEMIRAW_SP): Likewise.
40489         (_FP_SQRT_MEAT_S): Likewise.
40490         (FP_CMP_S): Likewise.
40491         (FP_CMP_EQ_S): Likewise.
40492         (FP_CMP_UNORD_S): Likewise.
40493         (FP_TO_INT_S): Likewise.
40494         (FP_FROM_INT_S): Likewise.
40495
40496         * soft-fp/op-common.h (_FP_TO_INT): Handle rsigned == 2.
40497
40498         * soft-fp/soft-fp.h (FP_EX_INVALID_SNAN): New macro.
40499         (FP_EX_INVALID_IMZ): Likewise.
40500         (FP_EX_INVALID_IMZ_FMA): Likewise.
40501         (FP_EX_INVALID_ISI): Likewise.
40502         (FP_EX_INVALID_ZDZ): Likewise.
40503         (FP_EX_INVALID_IDI): Likewise.
40504         (FP_EX_INVALID_SQRT): Likewise.
40505         (FP_EX_INVALID_CVI): Likewise.
40506         (FP_EX_INVALID_VC): Likewise.
40507         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Specify more precise
40508         "invalid" exceptions.
40509         (_FP_CHECK_SIGNAN_SEMIRAW): Likewise.
40510         (_FP_ADD_INTERNAL): Likewise.
40511         (_FP_MUL): Likewise.
40512         (_FP_FMA): Likewise.
40513         (_FP_DIV): Likewise.
40514         (_FP_CMP_CHECK_NAN): Likewise.
40515         (_FP_SQRT): Likewise.
40516         (_FP_TO_INT): Likewise.
40517         (FP_EXTEND): Likewise.
40518
40519 2014-10-09  Allan McRae  <allan@archlinux.org>
40520
40521         * po/fr.po: Update French translation from translation project.
40522
40523 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
40524
40525         [BZ #14132]
40526         * stdlib/cxa_atexit.c (__cxa_atexit): Use libc_hidden_def instead
40527         of INTDEF.
40528         * include/stdlib.h (__cxa_atexit_internal): Remove declaration.
40529         (__cxa_atexit): Use libc_hidden_proto.
40530         [!NOT_IN_libc] (__cxa_atexit): Remove macro definition.
40531
40532         [BZ #14132]
40533         * include/wctype.h [!_ISOMAC] (__iswalpha_l_internal): Remove
40534         declaration.
40535         [!_ISOMAC] (__iswdigit_l_internal): Likewise.
40536         [!_ISOMAC] (__iswspace_l_internal): Likewise.
40537         [!_ISOMAC] (__iswxdigit_l_internal): Likewise.
40538         [!_ISOMAC] (__iswctype_internal): Likewise.
40539         * stdio-common/siglist.c (_sys_siglist_internal): Remove alias.
40540         * sysdeps/unix/syscalls.list (chown): Remove __chown_internal
40541         alias.
40542         (fcntl): Remove __fcntl_internal alias.
40543         * sysdeps/unix/sysv/linux/hppa/syscalls.list (connect): Remove
40544         __connect_internal alias.
40545         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (connect):
40546         Likewise.
40547
40548         * soft-fp/soft-fp.h (FP_DENORM_ZERO): New macro.
40549         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Check
40550         FP_DENORM_ZERO.
40551         (_FP_CHECK_FLUSH_ZERO): New macro.
40552         (_FP_ADD_INTERNAL): Call _FP_CHECK_FLUSH_ZERO.
40553         (_FP_CMP): Likewise.
40554         (_FP_CMP_EQ): Likewise.
40555         (_FP_TO_INT): Do not set inexact for subnormal arguments if
40556         FP_DENORM_ZERO.
40557         (FP_EXTEND): Call _FP_CHECK_FLUSH_ZERO.
40558         (FP_TRUNC): Likewise.
40559
40560         * soft-fp/op-common.h (_FP_TO_INT): Ensure maximum exponent is
40561         treated as invalid conversion, not as normal exponent.
40562
40563         * soft-fp/op-common.h (_FP_CMP_CHECK_NAN): New macro.
40564         (_FP_CMP): Add extra argument EX.  Call _FP_CMP_CHECK_NAN.
40565         (_FP_CMP_EQ): Likewise.
40566         (_FP_CMP_UNORD): Likewise.
40567         * soft-fp/double.h (FP_CMP_D): Add extra argument EX.
40568         (FP_CMP_EQ_D): Likewise.
40569         (FP_CMP_UNORD_D): Likewise.
40570         * soft-fp/extended.h (FP_CMP_E): Likewise.
40571         (FP_CMP_EQ_E): Likewise.
40572         (FP_CMP_UNORD_E): Likewise.
40573         * soft-fp/quad.h (FP_CMP_Q): Likewise.
40574         (FP_CMP_EQ_Q): Likewise.
40575         (FP_CMP_UNORD_Q): Likewise.
40576         * soft-fp/single.h (FP_CMP_S): Likewise.
40577         (FP_CMP_EQ_S): Likewise.
40578         (FP_CMP_UNORD_S): Likewise.
40579         * soft-fp/eqdf2.c (__eqdf2): Update call to FP_CMP_EQ_D.
40580         * soft-fp/eqsf2.c (__eqsf2): Update call to FP_CMP_EQ_S.
40581         * soft-fp/eqtf2.c (__eqtf2): Update call to FP_CMP_EQ_Q.
40582         * soft-fp/gedf2.c (__gedf2): Update call to FP_CMP_D.
40583         * soft-fp/gesf2.c (__gesf2): Update call to FP_CMP_S.
40584         * soft-fp/getf2.c (__getf2): Update call to FP_CMP_Q.
40585         * soft-fp/ledf2.c (__ledf2): Update call to FP_CMP_D.
40586         * soft-fp/lesf2.c (__lesf2): Update call to FP_CMP_S.
40587         * soft-fp/letf2.c (__letf2): Update call to FP_CMP_Q.
40588         * soft-fp/unorddf2.c (__unorddf2): Update call to FP_CMP_UNORD_D.
40589         * soft-fp/unordsf2.c (__unordsf2): Update call to FP_CMP_UNORD_S.
40590         * soft-fp/unordtf2.c (__unordtf2): Update call to FP_CMP_UNORD_Q.
40591         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Update call
40592         to FP_CMP_Q.
40593         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c (_Q_cmp): Update call to
40594         FP_CMP_Q.
40595         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c (_Q_cmpe): Likewise.
40596         * sysdeps/sparc/sparc32/soft-fp/q_feq.c (_Q_feq): Update call to
40597         FP_CMP_EQ_Q.
40598         * sysdeps/sparc/sparc32/soft-fp/q_fge.c (_Q_fge): Update call to
40599         FP_CMP_Q.
40600         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c (_Q_fgt): Likewise.
40601         * sysdeps/sparc/sparc32/soft-fp/q_fle.c (_Q_fle): Likewise.
40602         * sysdeps/sparc/sparc32/soft-fp/q_flt.c (_Q_flt): Likewise.
40603         * sysdeps/sparc/sparc32/soft-fp/q_fne.c (_Q_fne): Update call to
40604         FP_CMP_EQ_Q.
40605         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c (_Qp_cmp): Update call to
40606         FP_CMP_Q.
40607         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c (_Qp_cmpe): Likewise.
40608         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c (_Qp_feq): Update call to
40609         FP_CMP_EQ_Q.
40610         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c (_Qp_fge): Update call to
40611         FP_CMP_Q.
40612         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c (_Qp_fgt): Likewise.
40613         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c (_Qp_fle): Likewise.
40614         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c (_Qp_flt): Likewise.
40615         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c (_Qp_fne): Update call to
40616         FP_CMP_EQ_Q.
40617
40618         * soft-fp/op-common.h (FP_EXTEND): When a subnormal input produces
40619         a subnormal result, set the underflow exception if trapping on
40620         underflow is enabled.
40621         * soft-fp/soft-fp.h (FP_INIT_TRAPPING_EXCEPTIONS): New macro.
40622         (FP_INIT_EXCEPTIONS): Default to FP_INIT_TRAPPING_EXCEPTIONS.
40623         [FP_NO_EXACT_UNDERFLOW] (FP_TRAPPING_EXCEPTIONS): Undefine and
40624         redefine to 0.
40625         * soft-fp/extenddftf2.c (FP_NO_EXACT_UNDERFLOW): Define.
40626         * soft-fp/extendsfdf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
40627         * soft-fp/extendsftf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
40628         * soft-fp/extendxftf2.c (__extendxftf2): Use
40629         FP_INIT_TRAPPING_EXCEPTIONS instead of FP_INIT_ROUNDMODE.
40630
40631         * soft-fp/soft-fp.h (FP_CLEAR_EXCEPTIONS): Remove macro.
40632         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Define FP_NO_EXCEPTIONS.
40633         (_Q_itoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
40634         FP_HANDLE_EXCEPTIONS.
40635         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Define FP_NO_EXCEPTIONS.
40636         (_Q_lltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
40637         FP_HANDLE_EXCEPTIONS.
40638         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Define FP_NO_EXCEPTIONS.
40639         (_Q_ulltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
40640         FP_HANDLE_EXCEPTIONS.
40641         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Define FP_NO_EXCEPTIONS.
40642         (_Q_utoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
40643         FP_HANDLE_EXCEPTIONS.
40644
40645 2014-10-08  Joseph Myers  <joseph@codesourcery.com>
40646
40647         [BZ #14132]
40648         * sysdeps/unix/sysv/linux/include/sys/timex.h: New file.
40649         * sysdeps/unix/sysv/linux/adjtime.c [!ADJTIMEX] (ADJTIMEX): Do not
40650         use INTUSE.
40651         [!ADJTIMEX] (INTUSE(__adjtimex)): Remove declaration.
40652         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal):
40653         Remove alias.
40654         (__adjtimex): Define using libc_hidden_ver.
40655         * sysdeps/unix/sysv/linux/ntp_gettime.c (INTUSE(__adjtimex)):
40656         Remove declaration.
40657         (ntp_gettime): Call __adjtimex directly.
40658         * sysdeps/unix/sysv/linux/ntp_gettimex.c (INTUSE(__adjtimex)):
40659         Remove declaration.
40660         (ntp_gettimex): Call __adjtimex directly.
40661         * sysdeps/unix/sysv/linux/syscalls.list (adjtimex): Remove
40662         __adjtimex_internal alias.
40663
40664 2014-10-08  Roland McGrath  <roland@hack.frob.com>
40665
40666         [BZ #17460]
40667         * nscd/nscd.c (more_help): Rewrite list of tables collection
40668         using xstrdup and asprintf.
40669
40670         * nscd/nscd_conf.c: Remove local xstrdup declaration.
40671
40672 2014-10-08  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
40673             Roland McGrath  <roland@hack.frob.com>
40674
40675         * elf/dl-lookup.c (enter_unique_sym): New function, broken out of ...
40676         (do_lookup_unique): ... local function 'enter' here; update callers.
40677
40678 2014-10-06  Joseph Myers  <joseph@codesourcery.com>
40679
40680         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Condition
40681         compat_symbol calls on [SHARED].
40682         * sysdeps/unix/sysv/linux/powerpc/lchown.S: Remove file.
40683         * sysdeps/unix/sysv/linux/i386/syscalls.list (oldsetrlimit):
40684         Remove.
40685         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
40686         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list
40687         (oldsetrlimit): Remove.
40688         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
40689         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
40690         (lchown): New syscall entry.
40691         (oldsetrlimit): Remove.
40692         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
40693         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list
40694         (oldsetrlimit): Remove.
40695         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
40696
40697         [BZ #14138]
40698         * sysdeps/unix/sysv/linux/arm/fchown.c: Remove file.
40699         * sysdeps/unix/sysv/linux/arm/lchown.c: Likewise.
40700         * sysdeps/unix/sysv/linux/m68k/fchown.c: Likewise.
40701         * sysdeps/unix/sysv/linux/m68k/lchown.c: Likewise.
40702         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
40703         * sysdeps/unix/sysv/linux/arm/syscalls.list (lchown): Add syscall.
40704         (fchown): Likewise.
40705         * sysdeps/unix/sysv/linux/m68k/syscalls.list (lchown): Likewise.
40706         (fchown): Likewise.
40707         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (chown):
40708         Likewise.
40709
40710 2014-10-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40711
40712         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Remove file.
40713         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c
40714         (pthread_spin_unlock): Use __ARCH_REL_INSTR instead of
40715         __lll_rel_instr and __ARCH_ACQ_INSTR instead of __lll_acq_instr.
40716         * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
40717         Likewise.
40718         (__old_sem_post): Likewise.
40719
40720 2014-10-06  Chris Metcalf  <cmetcalf@tilera.com>
40721
40722         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Define
40723         INLINE_VSYSCALL, INTERNAL_VSYSCALL, and
40724         HAVE_CLOCK_GETTIME_VSYSCALL macros.
40725         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (__gettimeofday):
40726         Use INLINE_VSYSCALL macro.
40727         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso: Add declaration of
40728         __vdso_clock_gettime.
40729         * sysdeps/unix/sysv/linux/tile/init-first.c
40730         (_libc_vdso_platform_setup): Set new __vdso_clock_gettime global.
40731         * sysdeps/unix/sysv/linux/tile/Versions (GLIBC_PRIVATE): Add
40732         __vdso_clock_gettime.
40733
40734         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Fix code
40735         to set up frame more cleanly.
40736
40737         * sysdeps/tile/memcmp.c: New file.
40738
40739         * sysdeps/unix/sysv/linux/tile/sysconf.c: New file.
40740
40741         * sysdeps/tile/tilegx/string-endian.h (STRSHIFT): New macro.
40742         * sysdeps/tile/tilegx/strcasestr.c: New file.
40743         * sysdeps/tile/tilegx/strnlen.c: New file.
40744         * sysdeps/tile/tilegx/strstr.c: New file.
40745
40746         * sysdeps/tile/tilegx/string-endian.h (copy_byte): Optimize.
40747
40748 2014-10-06  Arjun Shankar  <arjun.is@lostca.se>
40749
40750         * nptl/tst-setuid3.c: Write errors to stdout.
40751
40752 2014-10-01  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
40753
40754         * elf/dl-deps.c
40755         (preload): New functions broken out of _dl_map_object_deps.
40756         (_dl_map_object_deps):  Remove a nested function. Update call sites.
40757
40758 2014-10-01  Joseph Myers  <joseph@codesourcery.com>
40759
40760         [BZ #14138]
40761         * sysdeps/unix/sysv/linux/execve.c: Remove file.
40762         * sysdeps/unix/sysv/linux/syscalls.list (execve): Add syscall.
40763
40764 2014-10-01  Steve Ellcey  <sellcey@mips.com>
40765
40766         * sysdeps/mips/strcmp.S: New.
40767
40768 2014-09-30  Joseph Myers  <joseph@codesourcery.com>
40769
40770         [BZ #14138]
40771         * sysdeps/unix/sysv/linux/syscalls.list (fchownat): New syscall.
40772         (linkat): Likewise.
40773         (mkdirat): Likewise.
40774         (readlinkat): Likewise.
40775         (renameat): Likewise.
40776         (symlinkat): Likewise.
40777         (unlinkat): Likewise.
40778         * sysdeps/unix/sysv/linux/fchownat.c: Remove file.
40779         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
40780         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
40781         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
40782         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
40783         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
40784         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
40785
40786 2014-09-30  Will Newton  <will.newton@linaro.org>
40787
40788         * math/math.h: Define long double math functions if
40789         _LIBC_TEST is defined.
40790         * stdlib/tst-strtod-round.c: Define _LIBC_TEST.
40791
40792         * localedata/Makefile: Move assignment to tests-special
40793         into an ifdef testing run-built-tests.
40794         * timezone/Makefile: Likewise.
40795
40796 2014-09-29  Joseph Myers  <joseph@codesourcery.com>
40797
40798         * sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script
40799         with $(BASH) not $(SHELL).
40800
40801 2014-09-29  Carlos O'Donell  <carlos@redhat.com>
40802             Matthew LeGendre  <legendre1@llnl.gov>
40803
40804         [BZ #17411]
40805         * elf/dl-reloc.c (_dl_relocate_object): Allocate correct amount for
40806         l_reloc_result.
40807
40808 2014-09-29  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
40809
40810         * stdio-common/printf_fp.c
40811         (hack_digit): New function, broken out of ...
40812         (__printf_fp): ... local function here.  Update call sites.
40813         hack_digit now takes an additional parameter that is a pointer
40814         to a struct of the referenced locals.  Those locals moved inside
40815         the struct and references updated.
40816
40817 2014-09-29  H.J. Lu  <hongjiu.lu@intel.com>
40818
40819         * aclocal.m4: Require autoconf 2.69.
40820         * configure: Regenerated.
40821         * sysdeps/aarch64/configure: Likewise.
40822         * sysdeps/alpha/configure: Likewise.
40823         * sysdeps/arm/armv7/configure: Likewise.
40824         * sysdeps/arm/configure: Likewise.
40825         * sysdeps/ia64/configure: Likewise.
40826         * sysdeps/mach/configure: Likewise.
40827         * sysdeps/mips/configure: Likewise.
40828         * sysdeps/s390/configure: Likewise.
40829         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
40830         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Likewise.
40831
40832         * sysdeps/alpha/configure.ac: Avoid empty lines at the end of
40833         file.
40834         * sysdeps/ia64/configure.ac: Likewise.
40835
40836 2014-09-26  Joseph Myers  <joseph@codesourcery.com>
40837
40838         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Do not
40839         specify symbol version for ld.so.  Do not include entry for
40840         libpthread.
40841         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
40842         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
40843         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
40844
40845         [BZ #14171]
40846         * Makeconfig [$(build-shared) = yes]
40847         ($(common-objpfx)soversions.mk): Don't handle SONAMEs specified in
40848         makefiles.
40849         [$(build-shared) = yes && $(soversions.mk-done) = t]
40850         ($(common-objpfx)gnu/lib-names.h): Remove rule.
40851         [$(build-shared) = yes && $(soversions.mk-done) = t]
40852         ($(common-objpfx)gnu/lib-names.stmp): Likewise.  Split and moved
40853         to Makerules.
40854         [$(build-shared) = yes && $(soversions.mk-done) = t]
40855         (before-compile): Don't append $(common-objpfx)gnu/lib-names.h
40856         here.
40857         [$(build-shared) = yes && $(soversions.mk-done) = t]
40858         (common-generated): Don't append gnu/lib-names.h and
40859         gnu/lib-names.stmp here.
40860         * Makerules [$(build-shared) = yes && $(soversions.mk-done) = t]
40861         (lib-names-h-abi): New variable.
40862         [$(build-shared) = yes && $(soversions.mk-done) = t]
40863         (lib-names-stmp-abi): Likewise.
40864         [$(build-shared) = yes && $(soversions.mk-done) = t &&
40865         abi-variants] (before-compile): Append
40866         $(common-objpfx)$(lib-names-h-abi).
40867         [$(build-shared) = yes && $(soversions.mk-done) = t &&
40868         abi-variants] (common-generated): Append gnu/lib-names.h.
40869         [$(build-shared) = yes && $(soversions.mk-done) = t &&
40870         abi-variants] (install-others-nosubdir): Depend on
40871         $(inst_includedir)/$(lib-names-h-abi).
40872         [$(build-shared) = yes && $(soversions.mk-done) = t &&
40873         abi-variants] ($(common-objpfx)gnu/lib-names.h): New rule.
40874         [$(build-shared) = yes && $(soversions.mk-done) = t]
40875         ($(common-objpfx)$(lib-names-h-abi)): New rule.
40876         [$(build-shared) = yes && $(soversions.mk-done) = t]
40877         ($(common-objpfx)$(lib-names-stmp-abi)): Likewise.
40878         [$(build-shared) = yes && $(soversions.mk-done) = t]
40879         (common-generated): Append $(lib-names-h-abi) and
40880         $(lib-names-stmp-abi).
40881         * scripts/lib-names.awk: Do not handle multi being set.
40882         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-ld-soname):
40883         Remove variable.
40884         (abi-lp64_be-ld-soname): Likewise.
40885         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-ld-soname):
40886         Likewise.
40887         (abi-hard-ld-soname): Likewise.
40888         * sysdeps/unix/sysv/linux/i386/shlib-versions: New file.
40889         * sysdeps/unix/sysv/linux/mips/Makefile (abi-o32_soft-ld-soname):
40890         Remove variable.
40891         (abi-o32_hard-ld-soname): Likewise.
40892         (abi-o32_soft_2008-ld-soname): Likewise.
40893         (abi-o32_hard_2008-ld-soname): Likewise.
40894         (abi-n32_soft-ld-soname): Likewise.
40895         (abi-n32_hard-ld-soname): Likewise.
40896         (abi-n32_soft_2008-ld-soname): Likewise.
40897         (abi-n32_hard_2008-ld-soname): Likewise.
40898         (abi-n64_soft-ld-soname): Likewise.
40899         (abi-n64_hard-ld-soname): Likewise.
40900         (abi-n64_soft_2008-ld-soname): Likewise.
40901         (abi-n64_hard_2008-ld-soname): Likewise.
40902         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-64-v1-ld-soname):
40903         Likewise.
40904         (abi-64-v2-ld-soname): Likewise.
40905         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Add
40906         ld.so entries.
40907         * sysdeps/unix/sysv/linux/s390/Makefile (abi-64-ld-soname): Remove
40908         variable.
40909         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Add ld.so
40910         entry.
40911         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-ld-soname): Remove
40912         variable.
40913         (abi-64-ld-soname): Likewise.
40914         (abi-x32-ld-soname): Likewise.
40915         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Add ld.so
40916         entry.
40917         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
40918
40919 2014-09-23  Joseph Myers  <joseph@codesourcery.com>
40920
40921         [BZ #14138]
40922         * sysdeps/unix/sysv/linux/arm/setrlimit.c: Remove file.
40923         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
40924         * sysdeps/unix/sysv/linux/m68k/setrlimit.c: Likewise.
40925         * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: Likewise.
40926         * sysdeps/unix/sysv/linux/s390/s390-32/setrlimit.c: Likewise.
40927         * sysdeps/unix/sysv/linux/sh/setrlimit.c: Likewise.
40928         * sysdeps/unix/sysv/linux/i386/syscalls.list (setrlimit): Add
40929         syscall entry for GLIBC_2.2 symbol version.
40930         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list (setrlimit):
40931         Likewise.
40932         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
40933         (setrlimit): Likewise.
40934         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setrlimit):
40935         Likewise.
40936
40937 2014-09-23  Will Newton  <will.newton@linaro.org>
40938
40939         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h: Check for
40940         _LINUX_ARM_SYSDEP_H include guard too.
40941         * sysdeps/unix/sysv/linux/arm/sysdep.h (_SYS_AUXV_H): Remove
40942         define.
40943
40944 2014-09-20  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
40945
40946         * sysdeps/unix/sysv/linux/eventfd.c:
40947         Make first argument unsigned.
40948         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Likewise.
40949         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
40950
40951 2014-09-20  Ondřej Bílka  <neleai@seznam.cz>
40952
40953         [BZ #16852]
40954         * socket/recvmmsg.c (recvmmsg): Drop const argument.
40955         * socket/sys/socket.h: Likewise.
40956         * sysdeps/unix/sysv/linux/recvmmsg.c: Likewise.
40957
40958 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
40959
40960         * stdlib/longlong.h: Add __udiv_w_sdiv prototype.
40961
40962 2014-09-17  Arjun Shankar  <arjun.is@lostca.se>
40963
40964         * time/tst-ftime.c: New test.
40965         * time/Makefile (tests): Add tst-ftime.
40966
40967 2014-09-17  Joseph Myers  <joseph@codesourcery.com>
40968
40969         * soft-fp/extended.h: Fix comment formatting.
40970         * soft-fp/op-1.h: Likewise.
40971         * soft-fp/op-2.h: Likewise.
40972         * soft-fp/op-4.h: Likewise.
40973         * soft-fp/op-8.h: Likewise.
40974         * soft-fp/op-common.h: Likewise.
40975         * soft-fp/soft-fp.h: Likewise.
40976
40977         * soft-fp/op-common.h (_FP_TO_INT): Correct formatting.
40978
40979 2014-09-16  Joseph Myers  <joseph@codesourcery.com>
40980
40981         [BZ #6652]
40982         * Makeconfig (soversions-default-setname): Remove variable.
40983         ($(common-objpfx)soversions.i): Don't pass default_setname to
40984         soversions.awk.
40985         * Makerules ($(common-objpfx)abi-versions.h): Don't pass
40986         oldest_abi to abi-versions.awk.
40987         * config.h.in (GLIBC_OLDEST_ABI): Remove macro undefine.
40988         * config.make.in (oldest-abi): Remove variable.
40989         * configure.ac (--enable-oldest-abi): Remove configure option.
40990         * configure: Regenerated.
40991         * csu/version.c (banner) [GLIBC_OLDEST_ABI]: Remove conditional
40992         text.
40993         * scripts/abi-versions.awk: Do not handle oldest_abi variable.
40994         * scripts/soversions.awk: Do not handle default_setname variable.
40995         * sysdeps/mach/hurd/configure.ac: Do not handle oldest_abi
40996         variable.
40997         * sysdeps/mach/hurd/configure: Regenerated.
40998         * sysdeps/unix/sysv/linux/configure.ac: Do not handle oldest_abi
40999         variable.
41000         * sysdeps/unix/sysv/linux/configure: Regenerated.
41001
41002 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
41003
41004         * elf/Makefile (CFLAGS-interp.c): Remove.
41005         ($(elf-objpfx)runtime-linker.h): Generate header with linker
41006         path string.
41007         * elf/interp.c: Include generated runtime-linker.h
41008
41009         * Makerules (lib%.so): Don't include $(+interp) in
41010         prerequisites.
41011         * elf/Makefile (CFLAGS-interp.c): Don't define NOT_IN_libc.
41012         * dlfcn/eval.c: Remove file.
41013
41014         * posix/getconf.c (vars): Don't check for _[SP]C_* and _CS
41015         macros.
41016
41017         [BZ #17266]
41018         * misc/sys/cdefs.h: Define __extern_always_inline for clang
41019         4.2 and newer.
41020
41021         [BZ #17370]
41022         * libio/wfileops.c (do_ftell_wide): Free OUT on error path.
41023
41024 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
41025             Jakub Jelinek  <jakub@redhat.com>
41026
41027         [BZ #17266]
41028         * libio/stdio.h: Check definition of __fortify_function
41029         instead of __extern_always_inline to include bits/stdio2.h.
41030         * math/bits/math-finite.h [__USE_XOPEN || __USE_ISOC99]: Also
41031         check if __extern_always_inline is defined.
41032         [__USE_MISC || __USE_XOPEN]: Likewise.
41033         [__USE_ISOC99] Likewise.
41034         * misc/sys/cdefs.h (__fortify_function): Define only if
41035         __extern_always_inline is defined.
41036         [!__cplusplus || __GNUC_PREREQ (4,3)]: Revert to defining
41037         __extern_always_inline and __extern_inline only for g++-4.3
41038         and newer or a compatible gcc.
41039
41040 2014-09-15  Andreas Schwab  <schwab@linux-m68k.org>
41041
41042         [BZ #17371]
41043         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
41044         last change to handle zero prefix length.
41045
41046 2014-09-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
41047
41048         * sysdeps/posix/sysconf.c (__sysconf): Return -1 for
41049         _SC_REGEX_VERSION.
41050
41051         * posix/getconf.c (vars): Add _POSIX_IPV6 and
41052         _POSIX_RAW_SOCKETS.
41053
41054 2014-09-13  Allan McRae  <allan@archlinux.org>
41055
41056         * po/ru.po: Update Russian translation from translation project.
41057
41058 2014-09-12  Roland McGrath  <roland@hack.frob.com>
41059
41060         * locale/programs/locale.c (show_locale_vars): Inline local function
41061         into its sole call site.  Clean up some style nits.
41062         (print_item): New function, broken out of ...
41063         (show_info): ... local function here.  Clean up style nits.
41064
41065         * locale/programs/ld-ctype.c (set_one_default): New function, broken
41066         out of ...
41067         (set_class_defaults): ... local function set_default here.
41068         Define set_default as a macro locally to pass constant parameters.
41069         (allocate_arrays, set_class_defaults): Use C99 for scope for each CNT,
41070         rather than a shared local.
41071
41072         * stdlib/rpmatch.c (try): New function, broken out of ...
41073         (rpmatch): ... local function here.  Also, prototypify definition.
41074
41075 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
41076
41077         * scripts/soversions.awk: Do not handle configuration names.
41078         * Makeconfig ($(common-objpfx)soversions.i): Do not pass cpu,
41079         vendor and os variables to soversions.awk.
41080         * configure.ac: Do not modify gnu-* host_os.
41081         * configure: Regenerated
41082         * shlib-versions: Remove first column with configuration names.
41083         * nptl/shlib-versions: Likewise.
41084         * nptl_db/shlib-versions: Likewise.
41085         * sysdeps/hppa/shlib-versions: Likewise.
41086         * sysdeps/m68k/shlib-versions: Likewise.
41087         * sysdeps/mach/hurd/shlib-versions: Likewise.
41088         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: Likewise.
41089         * sysdeps/unix/sysv/linux/alpha/shlib-versions: Likewise.
41090         * sysdeps/unix/sysv/linux/arm/shlib-versions: Likewise.
41091         * sysdeps/unix/sysv/linux/hppa/shlib-versions: Likewise.
41092         * sysdeps/unix/sysv/linux/ia64/shlib-versions: Likewise.
41093         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: Likewise.
41094         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: Likewise.
41095         * sysdeps/unix/sysv/linux/mips/shlib-versions: Likewise.
41096         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
41097         Likewise.
41098         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
41099         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
41100         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
41101         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
41102         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
41103         * sysdeps/unix/sysv/linux/tile/shlib-versions: Likewise.
41104         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
41105         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
41106
41107         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
41108         (HAVE_ELFV2_ABI): AC_DEFINE in ELFv2 case.
41109         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
41110         Regenerated.
41111         * config.h.in (HAVE_ELFV2_ABI): New macro undefine.
41112         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
41113         Condition symbol version definitions on [HAVE_ELFV2_ABI].
41114
41115         * shlib-versions: Remove OS-specific entries.  Moved to files in
41116         sysdeps.
41117         * sysdeps/mach/hurd/shlib-versions: New file.
41118         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
41119
41120         * nptl/shlib-versions: Remove architecture-specific entries.
41121         Moved to files in sysdeps.
41122         * shlib-versions: Likewise.
41123         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: New
41124         file.
41125         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
41126         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
41127         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
41128         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
41129
41130         * sysdeps/gnu/netinet/udp.h (UDP_NO_CHECK6_TX): New macro.
41131         (UDP_NO_CHECK6_RX): Likewise.
41132
41133 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
41134
41135         * sysdeps/posix/sysconf.c (__sysconf): Spell
41136         _POSIX_DEVICE_SPECIFIC and _POSIX_DEVICE_SPECIFIC_R correctly.
41137
41138 2014-08-12  Florian Weimer  <fweimer@redhat.com>
41139
41140         * iconv/gconv_open.c (__gconv_open): Remove transliteration module
41141         loading.
41142         * iconv/Versions (__gconv_transliterate): Export for use from
41143         gconv modules.
41144         * iconv/gconv.h (__GCONV_TRANSLIT): New flag.
41145         (struct __gconv_trans_data, __gconv_trans_fct,
41146         __gconv_trans_context_fct, __gconv_trans_query_fct,
41147         __gconv_trans_init_fct, __gconv_trans_end_fct): Remove type
41148         definitions.
41149         (struct __gconv_step_data): Remove __trans member.
41150         (__gconv_transliterate): Declaration moved from gconv_int.h.  No
41151         longer hidden.  Remove unused trans_data argument.
41152         * iconv/gconv_int.h (struct trans_struct): Remove definition.
41153         (__gconv_translit_find): Remove declaration.
41154         (__gconv_transliterate): Declaration moved to gconv.h.  Add hidden
41155         prototype.
41156         * iconv/gconv_close.c (__gconv_close): Remove __trans cleanup.
41157         * iconv/gconv_trans.c (__gconv_transliterate): Remove unused
41158         trans_data argument.  Add hidden definition.
41159         (__gconv_translit_find): Remove.
41160         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): Call
41161         __gconv_transliterate directly if __GCONV_TRANSLIT is set.
41162         * iconv/skeleton.c: Remove transliteration initialization.
41163         * libio/fileops.c (_IO_new_file_fopen): Adjust struct
41164         __gconv_step_data initialization.
41165         * libio/iofwide.c (__libio_translit_): Remove.
41166         (_IO_fwide): Adjust struct __gconv_step_data initialization.
41167         * wcsmbs/btowc.c (__btowc): Likewise.
41168         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
41169         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
41170         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
41171         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
41172         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
41173         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
41174         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
41175         * wcsmbs/wctob.c (wctob): Likewise.
41176
41177 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
41178
41179         [BZ #16194]
41180         * sysdeps/x86/tst-xmmymm.sh: Rename file to...
41181         * sysdeps/x86/tst-ld-sse-use.sh: ... this.  Check for zmm
41182         register usage.
41183         * sysdeps/x86/Makefile: Adjust.
41184
41185 2014-09-11  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
41186             Roland McGrath  <roland@hack.frob.com>
41187
41188         * locale/weight.h: Add include guard.
41189         (findidx): Make static rather than auto; take new parameters
41190         TABLE, INDIRECT, and EXTRA instead of getting them as outer locals.
41191         * locale/weightwc.h: Likewise.
41192         * posix/fnmatch_loop.c
41193         (FCT): Change type of EXTRA from int32_t to wint_t.
41194         Don't include either header inside the function.
41195         Call FINDIDX rather than findidx, and pass new arguments.
41196         #undef FINDIDX at the end of the file.
41197         * posix/fnmatch.c [_LIBC]: #include <locale/weight.h> and define
41198         FINDIDX before including fnmatch_loop.c for the non-wide version.
41199         [_LIBC] [HANDLE_MULTIBYTE]: #define findidx to findidxwc around
41200         #include <locale/weightwc.h>, and define FINDIDX to findidxwc
41201         for the wide version.
41202         * posix/regcomp.c [_LIBC]: #include <locale/weight.h>.
41203         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
41204         Pass new arguments to findidx.
41205         * posix/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
41206         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
41207         Don't #include it inside the function.  Pass new arguments to findidx.
41208         * posix/regex_internal.h
41209         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
41210         (re_string_elem_size_at): Don't #include it inside the function.
41211         Pass new arguments to findidx.
41212         * string/strcoll_l.c: #include WEIGHT_H at top level.
41213         (get_next_seq): Don't #include it inside the function.
41214         Pass new arguments to findidx.
41215         (get_next_seq_nocache): Likewise.
41216         * string/strxfrm_l.c: #include WEIGHT_H at top level.
41217         (STRXFRM): Don't #include it inside the function.
41218         Pass new arguments to findidx.
41219
41220 2014-09-11  Florian Weimer  <fweimer@redhat.com>
41221
41222         [BZ #17344]
41223         * malloc/malloc.c (unlink): Turn asserts into a call to
41224         malloc_printerr.
41225
41226 2014-09-11  Tim Lammens  <tim.lammens@gmail.com>
41227
41228         [BZ #17370]
41229         * libio/wfileops (do_ftell_wide): Free OUT.
41230
41231 2014-09-10  Chris Metcalf  <cmetcalf@tilera.com>
41232
41233         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Remove file.
41234
41235 2014-09-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
41236
41237         [BZ #17363]
41238         * inet/getnetgrent_r.c (__internal_getnetgrent_r): Try next
41239         group if the current group is empty.
41240
41241 2014-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41242
41243         * benchtests/bench-memset.c (test_main): Add more test from size
41244         from 32 to 512 bytes.
41245         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
41246         Add POWER8 memset object.
41247         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
41248         (__libc_ifunc_impl_list): Add POWER8 memset and bzero implementations.
41249         * sysdeps/powerpc/powerpc64/multiarch/bzero.c (__bzero): Add POWER8
41250         implementation.
41251         * sysdeps/powerpc/powerpc64/multiarch/memset.c (__libc_memset):
41252         Likewise.
41253         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: New file:
41254         multiarch POWER8 memset optimization.
41255         * sysdeps/powerpc/powerpc64/power8/memset.S: New file: optimized
41256         POWER8 memset optimization.
41257
41258         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
41259         Remove bzero multiarch objects.
41260         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: Remove file.
41261         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: Likewise.
41262         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: Likewise.
41263         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S [NO_BZERO_IMPL]:
41264         Remove define.
41265         [__bzero]: Redefine to specific name.
41266         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
41267         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
41268         * sysdeps/powerpc/powerpc64/power4/memset.S [NO_BZERO_IMPL]: Remove
41269         define.
41270         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
41271         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
41272
41273 2014-09-10  Florian Weimer  <fweimer@redhat.com>
41274
41275         * Makeconfig (gccwarn-c): Turn implicit-function-declaration
41276         warnings into errors.
41277
41278         * stdlib/tst-tls-atexit-lib.c: Include <stdlib.h>, for the
41279         __cxa_thread_atexit_impl prototype.
41280
41281 2014-09-09  Steve Ellcey  <sellcey@mips.com>
41282
41283         * sysdeps/mips/preconfigure: Put code inside mips* case statement.
41284         Fix capitalization of error message.
41285
41286 2014-09-09  Steve Ellcey  <sellcey@mips.com>
41287
41288         * sysdeps/mips/preconfigure: Modify ABI tests.
41289
41290 2014-09-07  Carlos O'Donell  <carlos@systemhalted.org>
41291
41292         * sysdeps/unix/sysv/linux/hppa/c++-types.data: New file.
41293
41294 2014-09-07  Roland McGrath  <roland@hack.frob.com>
41295             Carlos O'Donell  <carlos@systemhalted.org>
41296
41297         * sysdeps/unix/sysv/linux/hppa/nptl/libc-lowlevellock.c: File removed.
41298         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Moved ...
41299         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: ... here.
41300         * sysdeps/unix/sysv/linux/hppa/nptl/pt-vfork.S: Moved ...
41301         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: ... here.
41302         * sysdeps/unix/sysv/linux/hppa/nptl/pthread.h: Moved ...
41303         * sysdeps/unix/sysv/linux/hppa/pthread.h: ... here.
41304         * sysdeps/unix/sysv/linux/hppa/nptl/pthreadP.h: Moved ...
41305         * sysdeps/unix/sysv/linux/hppa/pthreadP.h: ... here.
41306         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_broadcast.c: Moved ...
41307         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c: ... here.
41308         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_destroy.c: Moved ...
41309         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c: ... here.
41310         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_init.c: Moved ...
41311         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c: ... here.
41312         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_signal.c: Moved ...
41313         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c: ... here.
41314         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_timedwait.c: Moved ...
41315         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: ... here.
41316         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_wait.c: Moved ...
41317         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c: ... here.
41318         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Moved ...
41319         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: ... here.
41320         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h: Moved ...
41321         * sysdeps/hppa/nptl/bits/pthreadtypes.h: ... here.
41322         * sysdeps/unix/sysv/linux/hppa/nptl/bits/semaphore.h: Moved ...
41323         * sysdeps/hppa/nptl/bits/semaphore.h: ... here.
41324         * sysdeps/unix/sysv/linux/hppa/clone.S: Include <tcb-offsets.h>.
41325         Deconditionalize the code that was previously under [RESET_PID].
41326         * sysdeps/unix/sysv/linux/hppa/nptl/clone.S: File removed.
41327         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: New file.
41328         * sysdeps/unix/sysv/linux/hppa/nptl/fork.c: File removed.
41329         * sysdeps/hppa/nptl/tcb-offsets.sym: Include pthread.h and don't
41330         include sysdep.h.
41331
41332 2014-09-08  Allan McRae  <allan@archlinux.org>
41333
41334         * version.h (RELEASE): Set to "development".
41335         (VERSION): Set to "2.20.90"
41336
41337 2014-09-07  Allan McRae  <allan@archlinux.org
41338
41339         * version.h (RELEASE): Set to "stable".
41340         (VERSION): Set to "2.20"
41341         * include/features.h (__GLIBC_MINOR__): Set to 20.
41342
41343         * manual/contrib.texi: Add entries for Wilco Dijkstra and Stefan
41344         Liebler.
41345
41346         * po/ko.po: Update Korean translation from translation project.
41347
41348 2014-09-06  Chris Metcalf  <cmetcalf@tilera.com>
41349
41350         [BZ #17354]
41351         * sysdeps/tile/dl-machine.h (elf_machine_rela): Add a MUNGE_SIGNED
41352         macro for handling signed relocations.
41353
41354 2014-09-03  Florian Weimer  <fweimer@redhat.com>
41355
41356         [BZ #17325]
41357         * iconvdata/ibm1364.c (BODY): Fix check for sentinel.
41358         * iconvdata/ibm932.c (BODY): Replace invalid sentinel check with
41359         assert.
41360         * iconvdata/ibm933.c (BODY): Fix check for sentinel.
41361         * iconvdata/ibm935.c (BODY): Likewise.
41362         * iconvdata/ibm937.c (BODY): Likewise.
41363         * iconvdata/ibm939.c (BODY): Likewise.
41364         * iconvdata/ibm943.c (BODY): Replace invalid sentinel check with
41365         assert.
41366         * iconvdata/Makefile (iconv-test.out): Pass module list to test
41367         script.
41368         * iconvdata/run-iconv-test.sh: New test loop for checking for
41369         decoder crashers.
41370
41371 2014-09-02  Khem Raj  <raj.khem@gmail.com>
41372
41373         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (fegetenv): Add
41374         libm_hidden_ver.
41375
41376 2014-09-01  Allan McRae  <allan@archlinux.org>
41377
41378         * po/eo.po: Update Esperanto translation from translation project.
41379
41380         * po/ca.po: Update Catalan translation from translation project.
41381
41382 2014-08-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
41383
41384         * sysdeps/mach/hurd/fork.c (__fork): Lock SS->lock around
41385         __proc_dostop call.
41386
41387 2014-08-27  Mark Wielaard  <mjw@redhat.com>
41388
41389         [BZ #17319]
41390         * sysdeps/i386/nptl/tls.h (TLS_INIT_TP): Use INTERNAL_SYSCALL
41391         to call set_thread_area instead of hand written asm.
41392         (__NR_set_thread_area): Removed define.
41393         (TLS_FLAG_WRITABLE): Likewise.
41394         (__ASSUME_SET_THREAD_AREA): Remove check.
41395         (TLS_EBX_ARG): Remove define.
41396         (TLS_LOAD_EBX): Likewise.
41397
41398 2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
41399
41400         Simplify atomicity of socket creation in bind.
41401
41402         * sysdeps/mach/hurd/bind.c (__bind): Use dir_lookup(node, "") instead of
41403         looking up the name after linking the file.
41404
41405 2014-08-27  Allan McRae  <allan@archlinux.org>
41406
41407         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
41408
41409 2014-08-26  Florian Weimer  <fweimer@redhat.com>
41410
41411         [BZ #17187]
41412         * iconv/gconv_trans.c (struct known_trans, search_tree, lock,
41413         trans_compare, open_translit, __gconv_translit_find):
41414         Remove module loading code.
41415
41416 2014-08-26  Allan McRae  <allan@archlinux.org>
41417
41418         * po/vi.po: Update Vietnamese translation from translation project.
41419
41420         * po/uk.po: Update Ukrainian translation from translation project.
41421
41422         * po/fr.po: Update French translation from translation project.
41423
41424         * po/ru.po: Update Russian translation from translation project.
41425
41426         * po/pl.po: Update Polish translation from translation project.
41427
41428         * po/cs.po: Update Czech translation from translation project.
41429
41430         * po/de.po: Update German translation from translation project.
41431
41432         * po/bg.po: Update Bulgarian translation from translation project.
41433
41434         * po/sv.po: Update Sweedish translation from translation project.
41435
41436         * po/nl.po: Update Dutch translation from translation project.
41437
41438         * po/es.po: Update Spanish translation from translation project.
41439
41440 2014-08-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
41441
41442         * nptl/Makefile (CFLAGS-pthread_atfork.c): Remove.
41443
41444         * catgets/Makefile (CPPFLAGS-gencat): Remove.
41445         * iconv/Makefile (CPPFLAGS-iconv_prog): Likewise.
41446         (CPPFLAGS-iconvconfig): Likewise.
41447         * timezone/Makefile (CPPFLAGS-zic): Likewise.
41448
41449         * include/libc-symbols.h: Remove unnecessary check for
41450         NOT_IN_libc.
41451         * nptl/pthreadP.h: Likewise.
41452         * sysdeps/aarch64/setjmp.S: Likewise.
41453         * sysdeps/alpha/setjmp.S: Likewise.
41454         * sysdeps/arm/sysdep.h: Likewise.
41455         * sysdeps/i386/setjmp.S: Likewise.
41456         * sysdeps/m68k/setjmp.c: Likewise.
41457         * sysdeps/posix/getcwd.c: Likewise.
41458         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
41459         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
41460         * sysdeps/s390/s390-32/setjmp.S: Likewise.
41461         * sysdeps/s390/s390-64/setjmp.S: Likewise.
41462         * sysdeps/sh/sh3/setjmp.S: Likewise.
41463         * sysdeps/sh/sh4/setjmp.S: Likewise.
41464         * sysdeps/unix/alpha/sysdep.h: Likewise.
41465         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
41466         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
41467         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
41468         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
41469         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
41470         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
41471         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
41472         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
41473         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
41474         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
41475         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
41476         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
41477         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
41478         * sysdeps/x86_64/setjmp.S: Likewise.
41479
41480 2014-08-13  Joseph Myers  <joseph@codesourcery.com>
41481
41482         [BZ #17263]
41483         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Include
41484         <stdint.h>.
41485         (__get_clockfreq): Use uint64_t instead of hp_timing_t in
41486         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK call.
41487
41488 2014-08-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
41489
41490         * sysdeps/x86/fpu/bits/mathinline.h: Fix typo in comment.
41491
41492         [BZ #17262]
41493         * sysdeps/x86/fpu/bits/mathinline.h: Check both __SSE2_MATH__
41494         and __x86_64__ when disabling x87 inline functions.
41495
41496 2014-08-12  H.J. Lu  <hongjiu.lu@intel.com>
41497
41498         [BZ #17259]
41499         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Replace cpuid
41500         asm statement with __cpuid_count.
41501
41502 2014-08-12  Mike Frysinger  <vapier@gentoo.org>
41503
41504         * configure.ac: Change __ehdr_start code to dereference the struct.
41505         Run readelf on the output to look for relocations.
41506         * configure: Regenerated.
41507
41508 2014-08-12  Joseph Myers  <joseph@codesourcery.com>
41509
41510         [BZ #17261]
41511         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_enabled_env): Change
41512         value to 0.
41513         (__fe_nonieee_env): Define as an alias for __fe_dfl_env.
41514
41515 2014-08-12  Roland McGrath  <roland@hack.frob.com>
41516
41517         * NEWS: Mention x86-64 ld.so use of Intel MPX instructions.
41518
41519 2014-08-12  Bernard Ogden  <bernie.ogden@linaro.org>
41520
41521         [BZ #16892]
41522         * sysdeps/nptl/lowlevellock.h (__lll_timedlock): Use
41523         atomic_compare_and_exchange_bool_acq rather than atomic_exchange_acq.
41524
41525 2014-08-12  Sean Anderson  <seanga2@gmail.com>
41526
41527         * malloc/malloc.c: Fix typo in comment.
41528
41529 2014-08-09  Allan McRae  <allan@archlinux.org>
41530
41531         * Regenerate libc.po.
41532
41533 2014-08-08  Mike Frysinger  <vapier@gentoo.org>
41534
41535         * intl/tst-gettext2.sh: Check every lang file for creation.
41536
41537 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
41538
41539         * sysdeps/aarch64/fpu/math_private.h
41540         (libc_feholdsetround_noex_aarch64_ctx): New function.
41541
41542 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
41543
41544         * sysdeps/arm/armv6/strcpy.S (strcpy):
41545         Fix performance issue in misaligned cases.
41546
41547 2014-08-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41548
41549         * sysdeps/unix/sysv/linux/powerpc/bits/ioctl-types.h (struct winsize):
41550         Move definition from termios.h.
41551         (struct termio): Likewise.
41552         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
41553         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
41554         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
41555         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
41556         Likewise.
41557         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct winsize):
41558         Move definition to ioctl-types.h
41559         (struct termio): Likewise.
41560         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
41561         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
41562         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
41563         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
41564         Likewise.
41565
41566 2014-08-05  Richard Henderson  <rth@redhat.com>
41567
41568         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Always raise
41569         exceptions.
41570         * sysdeps/alpha/soft-fp/Makefile [soft-fp] (sysdep_routines):
41571         Add fraiseexcpt.
41572         * sysdeps/alpha/soft-fp/sfp-machine.h (FP_HANDLE_EXCEPTIONS):
41573         Use __feraiseexcept.
41574         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (feraiseexcept):
41575         Protect libm symbols with IS_IN_libm.
41576
41577         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Remove file.
41578
41579 2014-08-04  Bernard Ogden  <bernie.ogden@linaro.org>
41580
41581         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Remove file.
41582
41583 2014-08-04  Will Newton  <will.newton@linaro.org>
41584
41585         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Remove
41586         file.
41587
41588 2014-08-04  Mike Frysinger  <vapier@gentoo.org>
41589
41590         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Add nocancel
41591         variants for each function.
41592
41593 2014-08-04  Roland McGrath  <roland@hack.frob.com>
41594
41595         * sysdeps/unix/sysv/linux/ia64/nptl/Makefile: File removed, contents
41596         appended ...
41597         * sysdeps/unix/sysv/linux/ia64/Makefile: ... here.
41598         * sysdeps/unix/sysv/linux/ia64/nptl/Versions: File removed, contents
41599         appended ...
41600         * sysdeps/unix/sysv/linux/ia64/Versions: ... here.
41601         * sysdeps/unix/sysv/linux/ia64/nptl/__ia64_longjmp.S: Moved ...
41602         * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: ... here.
41603         * sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c: Moved ...
41604         * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: ... here.
41605         * sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data: Moved ...
41606         * sysdeps/unix/sysv/linux/ia64/c++-types.data: ... here.
41607         * sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h: Moved ...
41608         * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: ... here.
41609         * sysdeps/unix/sysv/linux/ia64/nptl/ld.abilist: Moved ...
41610         * sysdeps/unix/sysv/linux/ia64/ld.abilist: ... here.
41611         * sysdeps/unix/sysv/linux/ia64/nptl/libBrokenLocale.abilist: Moved ...
41612         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: ... here.
41613         * sysdeps/unix/sysv/linux/ia64/nptl/libanl.abilist: Moved ...
41614         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: ... here.
41615         * sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist: Moved ...
41616         * sysdeps/unix/sysv/linux/ia64/libc.abilist: ... here.
41617         * sysdeps/unix/sysv/linux/ia64/nptl/libcrypt.abilist: Moved ...
41618         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: ... here.
41619         * sysdeps/unix/sysv/linux/ia64/nptl/libdl.abilist: Moved ...
41620         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: ... here.
41621         * sysdeps/unix/sysv/linux/ia64/nptl/libm.abilist: Moved ...
41622         * sysdeps/unix/sysv/linux/ia64/libm.abilist: ... here.
41623         * sysdeps/unix/sysv/linux/ia64/nptl/libnsl.abilist: Moved ...
41624         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: ... here.
41625         * sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist: Moved ...
41626         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: ... here.
41627         * sysdeps/unix/sysv/linux/ia64/nptl/libresolv.abilist: Moved ...
41628         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: ... here.
41629         * sysdeps/unix/sysv/linux/ia64/nptl/librt.abilist: Moved ...
41630         * sysdeps/unix/sysv/linux/ia64/librt.abilist: ... here.
41631         * sysdeps/unix/sysv/linux/ia64/nptl/libthread_db.abilist: Moved ...
41632         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: ... here.
41633         * sysdeps/unix/sysv/linux/ia64/nptl/libutil.abilist: Moved ...
41634         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: ... here.
41635         * sysdeps/unix/sysv/linux/ia64/nptl/localplt.data: Moved ...
41636         * sysdeps/unix/sysv/linux/ia64/localplt.data: ... here.
41637         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Moved ...
41638         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: ... here.
41639         * sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h: Moved ...
41640         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: ... here.
41641         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Moved ...
41642         * sysdeps/unix/sysv/linux/ia64/timer_create.c: ... here.
41643         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Moved ...
41644         * sysdeps/unix/sysv/linux/ia64/timer_delete.c: ... here.
41645         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Moved ...
41646         * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: ... here.
41647         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c: Moved ...
41648         * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: ... here.
41649         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c: Moved ...
41650         * sysdeps/unix/sysv/linux/ia64/timer_settime.c: ... here.
41651         * sysdeps/unix/sysv/linux/ia64/nptl/unwind-forcedunwind.c: Moved ...
41652         * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: ... here.
41653         Update #include.
41654         * sysdeps/unix/sysv/linux/ia64/nptl/unwind_longjmp.c: Moved ...
41655         * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: ... here.
41656
41657 2014-08-04  Roland McGrath  <roland@hack.frob.com>
41658
41659         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h: Moved ...
41660         * sysdeps/ia64/nptl/bits/pthreadtypes.h: ... here.
41661         * sysdeps/unix/sysv/linux/ia64/nptl/bits/semaphore.h: Moved ...
41662         * sysdeps/ia64/nptl/bits/semaphore.h: ... here.
41663         * sysdeps/unix/sysv/linux/ia64/nptl/bits/local_lim.h: Moved ...
41664         * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: ... here.
41665
41666 2014-08-04  Roland McGrath  <roland@hack.frob.com>
41667
41668         * nptl/sysdeps/pthread/createthread.c: Include <arch-fork.h>.
41669         * sysdeps/unix/sysv/linux/ia64/arch-fork.h (ARCH_CLONE): New macro.
41670         * sysdeps/ia64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
41671         * sysdeps/unix/sysv/linux/ia64/nptl/createthread.c: File removed.
41672
41673 2014-08-04  Roland McGrath  <roland@hack.frob.com>
41674
41675         * sysdeps/unix/sysv/linux/ia64/nptl/vfork.S: Moved ...
41676         * sysdeps/unix/sysv/linux/ia64/vfork.S: ... here.
41677         (__libc_vfork): Define function under this name.
41678         (__vfork): Define as an alias.
41679         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
41680         * sysdeps/unix/sysv/linux/ia64/nptl/pt-vfork.S: File removed.
41681
41682 2014-08-04  Roland McGrath  <roland@hack.frob.com>
41683
41684         * sysdeps/unix/sysv/linux/ia64/clone2.S: Deconditionalize the code
41685         that was previously under [RESET_PID].
41686         * sysdeps/unix/sysv/linux/ia64/nptl/clone2.S: File removed.
41687
41688 2014-08-04  Andreas Schwab  <schwab@suse.de>
41689
41690         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <math_private.h>.
41691
41692 2014-08-03  Mike Frysinger  <vapier@gentoo.org>
41693
41694         * stdlib/tst-setcontext.c (test_stack): Fix coding style.
41695         (main): Likewise.
41696
41697 2014-08-01  Roland McGrath  <roland@hack.frob.com>
41698
41699         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: File removed.
41700
41701 2014-08-01  Richard Henderon  <rth@redhat.com>
41702
41703         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval before
41704         feclearexcept; use math_opt_barrier instead of open-coded asm; fix
41705         typo in exact zero test.
41706         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
41707         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
41708         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
41709
41710 2014-08-01  Roland McGrath  <roland@hack.frob.com>
41711
41712         * sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE_LOAD, PTR_MANGLE)
41713         (PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Move these macros...
41714         * sysdeps/arm/sysdep.h: ... here.
41715         [!__ASSEMBLER__]: Include <stdint.h>.
41716
41717 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
41718
41719         * include/libc-symbols.h (HAVE_LIBINTL_H): Define macro.
41720         (HAVE_WCTYPE_H): Likewise.
41721         (HAVE_ISWCTYPE): Likewise.
41722         (ENABLE_NLS): Likewise.
41723         * posix/regex_internal.h [(defined MB_CUR_MAX && HAVE_WCTYPE_H
41724         && HAVE_ISWCTYPE) || _LIBC]: Sync up with gnulib.
41725
41726         * posix/regex_internal.c: Check if DEBUG is defined and is
41727         set.
41728
41729         * include/libc-symbols.h (HAVE_MBSTATE_T): Define macro.
41730         (HAVE_MBSRTOWCS): Likewise.
41731         * posix/fnmatch.c: Include string.h unconditionally.
41732
41733 2014-08-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
41734
41735         * NEWS: Explain the s390 jmp_buf / ucontext_t ABI change
41736         reversal.
41737
41738 2014-07-31  Roland McGrath  <roland@hack.frob.com>
41739
41740         * sysdeps/generic/safe-fatal.h: New file.
41741         * sysdeps/unix/sysv/linux/safe-fatal.h: New file.
41742         * nptl/forward.c: Include it.
41743         (__pthread_unwind): Use __safe_fatal as default action, rather
41744         than a bogus use of INTERNAL_SYSCALL that could never work.
41745
41746         * config.h.in (HAVE_BUILTIN_TRAP): New #define to 0.
41747         * configure.ac (libc_cv_builtin_trap): New test.
41748         * configure: Regenerated.
41749         * sysdeps/generic/abort-instr.h [HAVE_BUILTIN_TRAP]
41750         (ABORT_INSTRUCTION): Define using __builtin_trap.
41751
41752         * nptl/pthreadP.h (SIGCANCEL, SIGTIMER, SIGSETXID, __xidcmd): Moved ...
41753         * sysdeps/unix/sysv/linux/nptl-signals.h: ... to this new file.
41754         * sysdeps/nptl/nptl-signals.h: New file.
41755         * nptl/pthreadP.h: Include <nptl-signals.h>.
41756
41757 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
41758
41759         * sysdeps/s390/s390-64/utf16-utf32-z9.c
41760         (ONE_DIRECTION): Define.
41761         * sysdeps/s390/s390-64/utf8-utf16-z9.c
41762         (ONE_DIRECTION): Define.
41763         * sysdeps/s390/s390-64/utf8-utf32-z9.c
41764         (ONE_DIRECTION): Define.
41765
41766 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
41767
41768         * sysdeps/s390/Makefile: Delete file.
41769         * sysdeps/s390/Versions (GLIBC_2.19): Remove __setjmp.
41770         * sysdeps/s390/__longjmp.c: Delete file.
41771         * sysdeps/s390/bits/setjmp.h (__s390_jmp_buf):
41772         Remove fields __flags and __reserved.
41773         * sysdeps/s390/longjmp.c: Include setjmp/longjmp.c
41774         and add versioning.
41775         * sysdeps/s390/rtld-__longjmp.c: Delete file.
41776         * sysdeps/s390/rtld-global-offsets.sym: Likewise.
41777         * sysdeps/s390/rtld-setjmp.S: Likewise.
41778         * sysdeps/s390/s390-32/__longjmp-common.c: Move to ...
41779         * sysdeps/s390/s390-32/__longjmp.c: ... here.
41780         * sysdeps/s390/s390-32/setjmp-common.S: Move to ...
41781         * sysdeps/s390/s390-32/setjmp.S: ... here.
41782         Add versioning.
41783         (__sigsetjmp): Remove setting __flags field.
41784         * sysdeps/s390/s390-64/__longjmp-common.c:Move to ...
41785         * sysdeps/s390/s390-64/__longjmp.c: ... here.
41786         * sysdeps/s390/s390-64/setjmp-common.S: Move to ...
41787         * sysdeps/s390/s390-64/setjmp.S: ... here.
41788         Add versioning.
41789         (__sigsetjmp): Remove setting __flags field.
41790         * sysdeps/s390/setjmp.S: Delete file.
41791         * sysdeps/s390/sigjmp.c: Likewise.
41792         * sysdeps/s390/v1-longjmp.c: Likewise.
41793         * sysdeps/s390/v1-setjmp.h: Likewise.
41794         * sysdeps/s390/v1-sigjmp.c: Likewise.
41795         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines):
41796         Remove v1-longjmp_chk.
41797         * sysdeps/unix/sysv/linux/s390/getcontext.S: Delete file.
41798         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c:
41799         Include debug/longjmp_chk.c and add versioning.
41800         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c:
41801         Include nptl/pt-longjmp.c and add versioning.
41802         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: Delete file.
41803         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c:
41804         Include __longjmp.c.
41805         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
41806         Move to ...
41807         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: ... here.
41808         (__getcontext): Remove setting __flags field.
41809         Add versioning.
41810         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
41811         Don't restore upper high grps.
41812         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S:
41813         Likewise.
41814         (__swapcontext): Remove setting uc_flags field.
41815         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym:
41816         Delete file.
41817         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
41818         Include __longjmp.c.
41819         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
41820         Move to ...
41821         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: ... here.
41822         (__getcontext): Remove setting __flags field.
41823         Add versioning.
41824         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S:
41825         (__swapcontext): Remove setting uc_flags field.
41826         * unix/sysv/linux/s390/s390-64/ucontext_i.sym: Delete file.
41827         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (ucontext):
41828         Remove fields uc_high_gprs and __reserved.
41829         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym:
41830         New file with reverted content.
41831         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: Delete file.
41832         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist:
41833         Regenerated.
41834         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist:
41835         Regenerated.
41836
41837 2014-07-31  Andreas Schwab  <schwab@suse.de>
41838
41839         * config.h.in (HAVE_IFUNC): Define to 0.
41840         * rt/clock-compat.c [HAVE_IFUNC]: Check for value, not
41841         definedness.
41842
41843 2014-07-30  Ling Ma  <ling.ml@alibaba-inc.com>
41844
41845         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
41846         memmove-avx-unaligned, memcpy-avx-unaligned and
41847         mempcpy-avx-unaligned.
41848         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
41849         Add tests for AVX memcpy functions.
41850         * sysdeps/x86_64/multiarch/memcpy.S: Add support for AVX memcpy.
41851         * sysdeps/x86_64/multiarch/memcpy_chk.S: Add support for AVX
41852         memcpy_chk.
41853         * sysdeps/x86_64/multiarch/memmove.c: Add support for AVX memmove.
41854         * sysdeps/x86_64/multiarch/memmove_chk.c: Add support for AVX
41855         memmove_chk.
41856         * sysdeps/x86_64/multiarch/mempcpy.S: Add support for AVX mempcpy.
41857         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Add support for AVX
41858         mempcpy_chk.
41859         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: New file.
41860         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: New file.
41861         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: New file.
41862
41863 2013-07-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41864
41865         [BZ #17213]
41866         * sysdeps/powerpc/powerpc64/entry.h: Fix TEXT_START definition for
41867         powerpc64le.
41868
41869 2014-07-29  Jeff Layton  <jlayton@poochiereds.net>
41870
41871         [BZ #16839]
41872         * manual/llio.texi: Add section about open file description locks.
41873         * manual/examples/ofdlocks.c: Example of open file description
41874         lock usage.
41875         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Define F_OFD_GETLK,
41876         F_OFD_SETLK, and F_OFD_SETLKW.
41877
41878 2014-07-23  Allan McRae  <allan@archlinux.org>
41879
41880         * po/es.po: Update Spanish translation from translation project.
41881
41882 2014-07-18  Andreas Schwab  <schwab@linux-m68k.org>
41883
41884         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Removed.
41885
41886 2014-07-17  Maciej W. Rozycki  <macro@codesourcery.com>
41887
41888         [BZ #17078]
41889         * sysdeps/arm/dl-machine.h (elf_machine_rela)
41890         [RESOLVE_CONFLICT_FIND_MAP]: Handle R_ARM_TLS_DESC relocation.
41891         (elf_machine_lazy_rel): Handle prelinked R_ARM_TLS_DESC entries.
41892
41893 2014-07-17  Joseph Myers  <joseph@codesourcery.com>
41894
41895         [BZ #17088]
41896         * math/fesetenv.c (__fesetenv)
41897         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Return 1 for FE_NOMASK_ENV.
41898         * math/feupdateenv.c (__feupdateenv)
41899         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Likewise.
41900
41901         * sysdeps/unix/sysv/linux/s390/kernel-features.h: New file.
41902         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
41903         (__ASSUME_SOCKETCALL): Do not define.
41904
41905         * sysdeps/unix/sysv/linux/sh/kernel-features.h: New file.
41906         * sysdeps/unix/sysv/linux/kernel-features.h [__sh__]
41907         (__ASSUME_SOCKETCALL): Do not define.
41908         (__ASSUME_ST_INO_64_BIT): Define unconditionally.
41909         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
41910         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
41911         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
41912         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
41913         [__LINUX_KERNEL_VERSION >= 0x030000 && __sh__]
41914         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
41915         [__sh__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
41916
41917         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: New file.
41918         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]
41919         (__ASSUME_SOCKETCALL): Do not define.
41920         (__ASSUME_IPC64): Define unconditionally.
41921         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
41922         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
41923         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
41924         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
41925         [__LINUX_KERNEL_VERSION >= 0x030000 && __powerpc__]
41926         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
41927         [__powerpc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL):
41928         Likewise.
41929
41930         * sysdeps/unix/sysv/linux/sparc/kernel-features.h: New file.
41931         * sysdeps/unix/sysv/linux/kernel-features.h [__sparc__]
41932         (__ASSUME_SOCKETCALL): Do not define.
41933         (__ASSUME_SET_ROBUST_LIST): Define unconditionally.
41934         (__ASSUME_FUTEX_LOCK_PI): Likewise.
41935         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL): Do not define.
41936         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
41937         (__ASSUME_REQUEUE_PI): Define unconditionally.
41938         [__LINUX_KERNEL_VERSION >= 0x020621 && __sparc__]
41939         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
41940         [__sparc__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
41941         [__LINUX_KERNEL_VERSION >= 0x030000 && __sparc__]
41942         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
41943         [__sparc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
41944
41945         * sysdeps/unix/sysv/linux/i386/kernel-features.h: New file.
41946         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__]
41947         (__ASSUME_SOCKETCALL): Do not define.
41948         [__LINUX_KERNEL_VERSION >= 0x020621 && __i386__]
41949         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
41950         [__i386__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
41951         [__LINUX_KERNEL_VERSION >= 0x030000 && __i386__]
41952         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
41953         [__i386__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
41954
41955         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h: New file.
41956         * sysdeps/unix/sysv/linux/kernel-features.h [__x86_64__]
41957         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
41958         [__LINUX_KERNEL_VERSION >= 0x020621 && __x86_64__]
41959         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
41960         [__LINUX_KERNEL_VERSION >= 0x030000 && __x86_64__]
41961         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
41962         [__x86_64__ && __LINUX_KERNEL_VERSION >= 0x030100]
41963         (__ASSUME_GETCPU_SYSCALL): Likewise.
41964
41965         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): New macro.
41966         * sysdeps/gnu/configure.ac: Use LIBC_SLIBDIR_RTLDDIR.  Remove
41967         cases for individual architectures.
41968         * sysdeps/gnu/configure: Regenerated.
41969         * sysdeps/unix/sysv/linux/aarch64/configure.ac: Use
41970         LIBC_SLIBDIR_RTLDDIR.
41971         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerated.
41972         * sysdeps/unix/sysv/linux/mips/configure.ac: Use
41973         LIBC_SLIBDIR_RTLDDIR.
41974         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
41975         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: Use
41976         LIBC_SLIBDIR_RTLDDIR.
41977         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
41978         Regenerated.
41979         * sysdeps/unix/sysv/linux/s390/s390-64/configure.ac: New file.
41980         * sysdeps/unix/sysv/linux/s390/s390-64/configure: New generated
41981         file.
41982         * sysdeps/unix/sysv/linux/sparc/sparc64/configure.ac: New file.
41983         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: New generated
41984         file.
41985         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac: New file.
41986         * sysdeps/unix/sysv/linux/x86_64/64/configure: New generated file.
41987         * sysdeps/unix/sysv/linux/x86_64/x32/configure.ac: New file.
41988         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Generate.
41989
41990         * sysdeps/aarch64/shlib-versions: Move to ...
41991         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: ... here.
41992         * sysdeps/alpha/shlib-versions: Move to ...
41993         * sysdeps/unix/sysv/linux/alpha/shlib-versions: ... here.
41994         * sysdeps/arm/shlib-versions: Move to ...
41995         * sysdeps/unix/sysv/linux/arm/shlib-versions: ... here.
41996         * sysdeps/hppa/shlib-versions: Move all contents except for
41997         libgcc_s entry to ...
41998         * sysdeps/unix/sysv/linux/hppa/shlib-versions: ... here.  Merge in
41999         entry from ...
42000         * sysdeps/hppa/nptl/shlib-versions: ... here.  Remove file.
42001         * sysdeps/ia64/shlib-versions: Move to ...
42002         * sysdeps/unix/sysv/linux/ia64/shlib-versions: ... here.  Merge in
42003         entry from ...
42004         * sysdeps/ia64/nptl/shlib-versions: ... here.  Remove file.
42005         * sysdeps/m68k/coldfire/shlib-versions: Move to ...
42006         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: ... here.
42007         * sysdeps/microblaze/shlib-versions: Move to ...
42008         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: ... here.
42009         * sysdeps/mips/shlib-versions: Move to ...
42010         * sysdeps/unix/sysv/linux/mips/shlib-versions: ... here.  Merge in
42011         entry from ...
42012         * sysdeps/mips/nptl/shlib-versions: ... here.  Remove file.
42013         * sysdeps/tile/shlib-versions: Move to ...
42014         * sysdeps/unix/sysv/linux/tile/shlib-versions: ... here.
42015         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Merge in entry
42016         from ...
42017         * sysdeps/x86_64/64/shlib-versions: ... here.  Remove file.
42018         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Merge in
42019         entry from ...
42020         * sysdeps/x86_64/x32/shlib-versions: ... here.  Remove file.
42021
42022 2014-07-17  Will Newton  <will.newton@linaro.org>
42023
42024         * sysdeps/arm/bits/atomic.h
42025         (__arch_compare_and_exchange_bool_8_int): Evaluate to zero.
42026         (__arch_compare_and_exchange_bool_16_int): Likewise.
42027         (__arch_compare_and_exchange_bool_64_int): Likewise.
42028
42029         * iconv/loop.c: Move definition of LOOPFCT and gconv_btowc
42030         into an #else block.
42031
42032 2014-07-16  Roland McGrath  <roland@hack.frob.com>
42033
42034         * sysdeps/arm/preconfigure.ac: Apply EABI sanity check to arm*, not
42035         just Linux configurations.  Test empirically that the compiler sets
42036         __ARM_EABI__, rather than using the tuple to decide.
42037         * sysdeps/arm/preconfigure: Regenerated.
42038         * sysdeps/unix/sysv/linux/arm/configure: File removed.
42039         * sysdeps/unix/sysv/linux/arm/configure.ac: File removed,
42040         contents appended ...
42041         * sysdeps/arm/configure.ac: ... here.
42042         * sysdeps/arm/configure: Regenerated.
42043
42044 2014-07-15  Roland McGrath  <roland@hack.frob.com>
42045
42046         * nptl/pthread_kill.c: New file.
42047         * nptl/pthread_sigmask.c: New file.
42048         * nptl/pthread_sigqueue.c: New file.
42049
42050         * sysdeps/nptl/lowlevellock.h: New file.
42051         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: New file.
42052         * sysdeps/nptl/lowlevellock-futex.h: New file.
42053
42054         * nptl/pthreadP.h (__current_sigrtmin, __current_sigrtmax):
42055         Remove dead declarations.
42056
42057 2014-07-14  H.J. Lu  <hongjiu.lu@intel.com>
42058
42059         * config.h.in (HAVE_AVX2_SUPPORT): New #undef.
42060         * sysdeps/i386/configure.ac: Set HAVE_AVX2_SUPPORT and
42061         config-cflags-avx2.
42062         * sysdeps/x86_64/configure.ac: Likewise.
42063         * sysdeps/i386/configure: Regenerated.
42064         * sysdeps/x86_64/configure: Likewise.
42065         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
42066         memset-avx2 only if config-cflags-avx2 is yes.
42067         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
42068         Tests for memset_chk and memset only if HAVE_AVX2_SUPPORT is
42069         defined.
42070         * sysdeps/x86_64/multiarch/memset.S: Define multiple versions
42071         only if HAVE_AVX2_SUPPORT is defined.
42072         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
42073
42074 2014-07-14  Alan Modra  <amodra@gmail.com>
42075
42076         [BZ #17153]
42077         * elf/elf.h (DT_PPC64_NUM): Correct value.
42078         * NEWS: Add to fixed bug list.
42079
42080 2014-07-13  Jim Meyering  <meyering@fb.com>
42081
42082         [BZ 17150]
42083         regex: don't deref NULL upon heap allocation failure
42084         * posix/regcomp.c: (parse_dup_op): Handle duplicate_tree
42085         failure in one more place.
42086         To trigger the segfault, configure grep -with-included-regex,
42087         build it, and run these commands:
42088         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
42089
42090 2014-07-13  Andreas Schwab  <schwab@linux-m68k.org>
42091
42092         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
42093
42094 2014-07-11  Richard Henderson  <rth@redhat.com>
42095
42096         * sysdeps/aarch64/libm-test-ulps: Update.
42097
42098 2014-07-10  Florian Weimer  <fweimer@redhat.com>
42099
42100         [BZ #17135]
42101         * nptl/pthreadP.h (__nptl_setxid_error): Declare function.
42102         * nptl/allocatestack.c (__nptl_setxid_error): New function.
42103         (__nptl_setxid): Initialize error member.  Call
42104         __nptl_setxid_error.
42105         * nptl/nptl-init.c (sighandler_setxid): Call __nptl_setxid_error.
42106         * nptl/descr.h (struct xid_command): Add error member.
42107         * nptl/tst-setuid3.c: New file.
42108         * nptl/Makefile (tests): Add it.
42109
42110 2014-07-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42111
42112         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_base_trylock):
42113         New define.
42114         (__lll_trylock): Use __lll_base_trylock.
42115         (__lll_cond_trylock): Likewise.
42116
42117 2014-07-10  Roland McGrath  <roland@hack.frob.com>
42118
42119         * nptl/pthread_create.c (start_thread): Use atomic_or and
42120         lll_futex_wake directly rather than lll_robust_dead.
42121         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
42122         (lll_robust_dead): Macro removed.
42123         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Likewise.
42124         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
42125         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
42126         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
42127         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
42128         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
42129         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
42130         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
42131         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
42132         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
42133         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
42134         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
42135         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
42136         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
42137         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
42138
42139         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
42140         Use atomic_compare_and_exchange_val_acq directly rather than
42141         lll_robust_trylock.
42142         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
42143         (__lll_robust_trylock, lll_robust_trylock): Removed.
42144         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
42145         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
42146         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
42147         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
42148         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
42149         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
42150         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
42151         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
42152         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
42153         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
42154         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
42155         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
42156         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
42157         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
42158
42159 2014-07-02  Florian Weimer  <fweimer@redhat.com>
42160
42161         * manual/locale.texi (Locale Names): New section documenting
42162         locale name syntax.  Adjust menu and node chaining accordingly.
42163         (Choosing Locale): Reference Locale Names, Locale Categories.
42164         Mention setting LC_ALL=C.  Reflect that name syntax is now
42165         documented.
42166         (Locale Categories): New section title.  Reference Locale Names.
42167         LC_ALL is an environment variable, but not a category.
42168         (Setting the Locale): Remove "locale -a" invocation and LOCPATH
42169         description, now in Locale Name.  Reference that section.  Locale
42170         name syntax is now documented.
42171
42172 2014-07-02  Florian Weimer  <fweimer@redhat.com>
42173
42174         [BZ #17137]
42175         * locale/findlocale.c (name_present, valid_locale_name): New
42176         functions.
42177         (_nl_find_locale): Use the loc_name variable to store name
42178         candidates.  Call name_present and valid_locale_name to check and
42179         validate locale names.  Return an error if the locale is invalid.
42180
42181 2014-07-02  Florian Weimer  <fweimer@redhat.com>
42182
42183         * locale/setlocale.c (setlocale): Use strdup for allocating
42184         composite name copy.
42185
42186 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
42187
42188         Sync up with gnulib.
42189         * misc/error.c: Use !_LIBC instead of HAVE_CONFIG_H.
42190         [!_LIBC && ENABLE_NLS]: Include gettext.h.
42191         [_LIBC]: Define USE_UNLOCKED_IO, _GL_ATTRIBUTE_FORMAT_PRINTF
42192         and _GL_ARG_NONNULL.
42193         [USE_UNLOCKED_IO]: Include unlocked-io.h.
42194         [!_LIBC]: Include code for Windows and Cygwin.
42195         [!_LIBC && !HAVE_DECL_STRERROR_R && !STRERROR_R_CHAR_P]:
42196         Include prototype for int strerror_r.
42197         [!_LIBC] (is_open): New function.
42198         (flush_stdout): New function.
42199         (print_errno_message): Use it.
42200         (error): Likewise.
42201         (error_at_line): Likewise.
42202         (error_tail) Add function attribute macros.  Use
42203         __builtin_expect.
42204
42205         * time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R.
42206
42207         * time/strftime_l.c [_LIBC]: Define HAVE_STRFTIME.
42208
42209         * io/ftw.c: Include sys/param.h unconditionally.
42210
42211         * locale/programs/simple-hash.c [!HAVE_OBSTACK]: Remove code.
42212
42213         [BZ #17125]
42214         * sysdeps/unix/sysv/linux/check_pf.c (cache): Don't use
42215         libc_freeres_ptr.
42216         (freecache): New function to free CACHE on exit.
42217
42218         * sunrpc/xdr.c (xdr_string): Add comment about SIZE
42219         initialization.
42220
42221 2014-07-09  David S. Miller  <davem@davemloft.net>
42222
42223         * sysdeps/sparc/fpu/libm-test-ulps: Update.
42224
42225         * sysdeps/sparc/nptl/internaltypes.h: Delete.
42226         * sysdeps/sparc/nptl/sparc-nptl.h: New file.
42227         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Include it.
42228         * sysdeps/sparc/nptl/pthread_barrier_init.c: Likewise.
42229         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Likewise.
42230         * sysdeps/sparc/nptl/sem_init.c: Likewise.
42231         * sysdeps/sparc/nptl/sem_post.c: Likewise.
42232         * sysdeps/sparc/nptl/sem_timedwait.c: Likewise.
42233         * sysdeps/sparc/nptl/sem_wait.c: Likewise.
42234         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Likewise.
42235         * sysdeps/sparc/sparc32/nptl/sem_post.c: Likewise.
42236         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Likewise.
42237         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Likewise.
42238
42239 2014-07-09  Andreas Schwab  <schwab@suse.de>
42240
42241         * sysdeps/powerpc/test-gettimebase.c (do_test): Add newline to
42242         output.
42243         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c
42244         (do_test): Likewise.
42245
42246         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
42247
42248 2014-07-09  Will Newton  <will.newton@linaro.org>
42249
42250         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
42251         * sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
42252         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
42253         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
42254         * sysdeps/hppa/start.S (_start): Likewise.
42255
42256 2014-07-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
42257
42258         * sunrpc/xdr.c (xdr_string): Initialize SIZE to 0.
42259
42260         * sysdeps/generic/unwind-pe.h: Only check if __cplusplus is
42261         defined.
42262
42263 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
42264
42265         * resolv/res_query.c (__libc_res_nsearch): Dereference resplen2
42266         after checking that it is non-NULL.
42267
42268         * sysdeps/i386/dl-machine.h: Define ELF_MACHINE_NO_REL.
42269
42270 2014-07-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42271
42272         * sysdeps/powerpc/memmove.c: Remove file.
42273         * sysdeps/powerpc/powerpc32/power4/memcopy.h
42274         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Define it to 1.
42275         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
42276         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Remove define.
42277         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c:
42278         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Likewise.
42279         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Include default
42280         string memmove instead of removed powerpc one.
42281
42282         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
42283         [weak_alias]: Fix compiler warning due trailing data.
42284         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S:
42285         [weak_alias]: Likewise.
42286         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Fix compile
42287         warnigs due missing definition of __strcpy_power7 and __strlen_power7.
42288
42289         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
42290         (__libc_ifunc_impl_list): Add memmove functions.
42291
42292 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
42293
42294         * localedata/tests-mbwc/dat_iswalnum.c [SHOJI_IS_RIGHT]:
42295         Remove code.
42296         * localedata/tests-mbwc/dat_iswalpha.c [SHOJI_IS_RIGHT]:
42297         Likewise.
42298         * localedata/tests-mbwc/dat_iswctype.c [SHOJI_IS_RIGHT]:
42299         Likewise.
42300         * localedata/tests-mbwc/dat_iswgraph.c [SHOJI_IS_RIGHT]:
42301         Likewise.
42302         * localedata/tests-mbwc/dat_iswprint.c [SHOJI_IS_RIGHT]:
42303         Likewise.
42304         * localedata/tests-mbwc/dat_iswpunct.c [SHOJI_IS_RIGHT]:
42305         Likewise.
42306         * localedata/tests-mbwc/dat_mbrlen.c [SHOJI_IS_RIGHT]:
42307         Likewise.
42308         * localedata/tests-mbwc/dat_mbstowcs.c [SHOJI_IS_RIGHT]:
42309         Likewise.
42310         * localedata/tests-mbwc/dat_mbtowc.c [SHOJI_IS_RIGHT]:
42311         Likewise.
42312         * localedata/tests-mbwc/dat_strcoll.c [SHOJI_IS_RIGHT]:
42313         Likewise.
42314         * localedata/tests-mbwc/dat_swscanf.c [SHOJI_IS_RIGHT]:
42315         Likewise.
42316         * localedata/tests-mbwc/dat_towctrans.c [SHOJI_IS_RIGHT]:
42317         Likewise.
42318         * localedata/tests-mbwc/dat_wcscoll.c [SHOJI_IS_RIGHT]:
42319         Likewise.
42320         * localedata/tests-mbwc/dat_wcswidth.c [SHOJI_IS_RIGHT]:
42321         Likewise.
42322         * localedata/tests-mbwc/dat_wctob.c [SHOJI_IS_RIGHT]:
42323         Likewise.
42324         * localedata/tests-mbwc/dat_wcwidth.c [SHOJI_IS_RIGHT]:
42325         Likewise.
42326         * localedata/tests-mbwc/tst_towctrans.c [SHOJI_IS_RIGHT]:
42327         Likewise.
42328
42329 2014-07-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42330
42331         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Align VSX copies to 16B
42332         to avoid alignment traps in non-cacheable memory.
42333         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
42334
42335         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memmove
42336         multiarch objects.
42337         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c: New
42338         file: multiarch power7 memmove.
42339         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c: New file:
42340         multiarch default memmove.
42341         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: New file:
42342         multiarch memove for powerpc32/power4.
42343
42344         * string/bcopy.c: Use full path to include memmove.c.
42345         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memmove and bcopy
42346         multiarch objects.
42347         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c: New file: default
42348         bcopy for powerpc64.
42349         * sysdeps/powerpc/powerpc64/multiarch/bcopy.c: New file: multiarch
42350         bcopy for powerpc64.
42351         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add bcopy
42352         and memmove implementations.
42353         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: New file:
42354         optimized multiarch memmove for POWER7/powerpc64.
42355         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: New file:
42356         default multiarch memmove for powerpc64.
42357         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: New file: memmove
42358         multiarch for powerpc64.
42359         * sysdeps/powerpc/powerpc64/power7/bcopy.c: New file: optimized bcopy
42360         for POWER7/powerpc64.
42361         * sysdeps/powerpc/powerpc64/power7/memmove.S: New file: optimized
42362         memmove for POWER7/powerpc64.
42363
42364         * sysdeps/powerpc/memmove.c (memmove): Cleanup impplementation to use
42365         glibc default one.
42366
42367         * sysdeps/powerpc/bits/link.h [_CALL_ELF]: Guard check for
42368         __ELF_NATIVE_CLASS equal to 64.
42369
42370 2014-07-07  Roland McGrath  <roland@hack.frob.com>
42371
42372         * sysdeps/nptl/lowlevellock.h: File removed.
42373
42374         * NEWS: NPTL is no longer an add-on!
42375         * nptl/internaltypes.h: Moved ...
42376         * sysdeps/nptl/internaltypes.h: ... here.
42377         * sysdeps/nptl/aio_misc.h: Use <nptl/pthreadP.h> in #include.
42378         * sysdeps/nptl/fork.c: Likewise.
42379         * sysdeps/nptl/gai_misc.h: Likewise.
42380         * sysdeps/nptl/librt-cancellation.c: Likewise.
42381         * sysdeps/nptl/jmp-unwind.c: Likewise.
42382         * sysdeps/nptl/setxid.h: Likewise.
42383         * sysdeps/unix/sysv/linux/aarch64/Implies: New file.
42384         * sysdeps/unix/sysv/linux/alpha/Implies: Add alpha/nptl.
42385         * sysdeps/unix/sysv/linux/arm/Implies: New file.
42386         * sysdeps/unix/sysv/linux/hppa/Implies: New file.
42387         * sysdeps/unix/sysv/linux/i386/Implies: Add i386/nptl.
42388         * sysdeps/unix/sysv/linux/i386/i686/Implies: New file.
42389         * sysdeps/unix/sysv/linux/ia64/Implies: Add ia64/nptl.
42390         * sysdeps/unix/sysv/linux/m68k/Implies: New file.
42391         * sysdeps/unix/sysv/linux/microblaze/Implies: New file.
42392         * sysdeps/unix/sysv/linux/mips/Implies: New file.
42393         * sysdeps/unix/sysv/linux/powerpc/Implies: New file.
42394         * sysdeps/unix/sysv/linux/s390/Implies: Add s390/nptl.
42395         * sysdeps/unix/sysv/linux/sh/Implies: New file.
42396         * sysdeps/unix/sysv/linux/sparc/Implies: New file.
42397         * sysdeps/unix/sysv/linux/tile/Implies: New file.
42398         * sysdeps/unix/sysv/linux/x86_64/Implies: Add x86_64/nptl.
42399         * sysdeps/unix/sysv/linux/x86_64/x32/Implies: New file.
42400         * nptl/Makeconfig: Moved ...
42401         * sysdeps/nptl/Makeconfig: ... here.
42402         * nptl/configure: File removed.
42403         * nptl/ANNOUNCE: File removed.
42404         * sysdeps/unix/sysv/linux/configure.ac: Remove nptl sanity check.
42405         * sysdeps/unix/sysv/linux/configure: Regenerated.
42406
42407         * nptl/Makefile (routines): Add libc_pthread_init,
42408         libc_multiple_threads, register-atfork and unregister-atfork.
42409         (libpthread-routines): Add pthread_mutex_cond_lock and pt-fork here.
42410         (gen-as-const-headers): Add lowlevelcond.sym, lowlevelrwlock.sym,
42411         lowlevelbarrier.sym, unwindbuf.sym, lowlevelrobustlock.sym,
42412         pthread-pi-defines.sym, structsem.sym.
42413         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = posix]
42414         (CFLAGS-fork.c, CFLAGS-getpid.o, CFLAGS-getpid.os): New variables.
42415         [$(subdir) = nptl] (tests): Add tst-setgetname.
42416         * nptl/sysdeps/unix/sysv/linux/Makefile: File removed.
42417         * sysdeps/unix/sysv/linux/sigaction.c: Just include
42418         <nptl/sigaction.c> directly here, instead of WRAPPER_INCLUDE.
42419         [!LIBC_SIGACTION]: Remove aliases.
42420         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
42421         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
42422         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
42423         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
42424         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
42425         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
42426         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
42427         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
42428         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
42429         * nptl/Versions (libc: GLIBC_2.3.2): Add __register_atfork.
42430         (libc: GLIBC_PRIVATE): Add __libc_pthread_init,
42431         __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
42432         __libc_allocate_rtsig_private.
42433         * nptl/sysdeps/unix/sysv/linux/Versions: File removed.
42434         * sysdeps/unix/sysv/linux/sigtimedwait.c: Include <nptl/pthreadP.h>.
42435         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
42436         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
42437         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
42438         * nptl/sysdeps/unix/sysv/linux/sigwait.c: File removed.
42439         * nptl/sysdeps/unix/sysv/linux/sigtimedwait.c: File removed.
42440         * nptl/sysdeps/unix/sysv/linux/sigwaitinfo.c: File removed.
42441         * nptl/sysdeps/unix/sysv/linux/sleep.c: File removed.
42442         * nptl/sysdeps/unix/sysv/linux/createthread.c: File removed.
42443         * sysdeps/unix/sysv/linux/ia64/fork.S: File removed.
42444         * nptl/sysdeps/unix/sysv/linux/internaltypes.h: Moved ...
42445         * nptl/internaltypes.h: ... here.
42446         * nptl/sysdeps/unix/sysv/linux/jmp-unwind.c: Moved ...
42447         * sysdeps/nptl/jmp-unwind.c: ... here.
42448         * nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c: Moved ...
42449         * nptl/libc-lowlevellock.c: ... here.
42450         * nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c: Moved ...
42451         * nptl/libc_multiple_threads.c: ... here.
42452         * nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c: Moved ...
42453         * nptl/libc_pthread_init.c: ... here.
42454         * nptl/sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Moved ...
42455         * nptl/lowlevelbarrier.sym: ... here.
42456         * nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym: Moved ...
42457         * nptl/lowlevelcond.sym: ... here.
42458         * nptl/sysdeps/unix/sysv/linux/lowlevellock.c: Moved ...
42459         * nptl/lowlevellock.c: ... here.
42460         * nptl/lowlevellock.h: Moved ...
42461         * sysdeps/nptl/lowlevellock.h: ... here.
42462         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Moved ...
42463         * nptl/lowlevelrobustlock.c: ... here.
42464         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: Moved ...
42465         * nptl/lowlevelrobustlock.sym: ... here.
42466         * nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Moved ...
42467         * nptl/lowlevelrwlock.sym: ... here.
42468         * nptl/sysdeps/unix/sysv/linux/pt-fork.c: Moved ...
42469         * nptl/pt-fork.c: ... here.
42470         * nptl/sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Moved ...
42471         * nptl/pthread-pi-defines.sym: ... here.
42472         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Moved ...
42473         * nptl/pthread_attr_getaffinity.c: ... here.
42474         * nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Moved ...
42475         * nptl/pthread_attr_setaffinity.c: ... here.
42476         * nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Moved ...
42477         * nptl/pthread_mutex_cond_lock.c: ... here.
42478         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
42479         Update #include.
42480         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
42481         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: Moved ...
42482         * nptl/pthread_once.c: ... here, replacing old file.
42483         * nptl/sysdeps/unix/sysv/linux/pthread_yield.c: Moved ...
42484         * nptl/pthread_yield.c: ... here.
42485         * nptl/sysdeps/unix/sysv/linux/register-atfork.c: Moved ...
42486         * nptl/register-atfork.c: ... here.
42487         * nptl/sysdeps/unix/sysv/linux/sem_post.c: Moved ...
42488         * nptl/sem_post.c: ... here.
42489         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Update #include.
42490         * nptl/sysdeps/unix/sysv/linux/sem_timedwait.c: Moved ...
42491         * nptl/sem_timedwait.c: ... here.
42492         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Moved ...
42493         * nptl/sem_trywait.c: ... here.
42494         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Update #include.
42495         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Moved ...
42496         * nptl/sem_wait.c: ... here.
42497         * nptl/sysdeps/unix/sysv/linux/structsem.sym: Moved ...
42498         * nptl/structsem.sym: ... here.
42499         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Moved ...
42500         * sysdeps/unix/sysv/linux/mq_notify.c: ... here, replacing old file.
42501         * nptl/sysdeps/unix/sysv/linux/unregister-atfork.c: Moved ...
42502         * nptl/unregister-atfork.c: ... here.
42503         * nptl/sysdeps/unix/sysv/linux/unwindbuf.sym: Moved ...
42504         * nptl/unwindbuf.sym: ... here.
42505         * nptl/sysdeps/unix/sysv/linux/fork.c: Moved ...
42506         * sysdeps/nptl/fork.c: ... here.
42507         * nptl/sysdeps/unix/sysv/linux/fork.h: Moved ...
42508         * sysdeps/nptl/fork.h: ... here.
42509         * sysdeps/unix/sysv/linux/syscalls.list: Remove fork.
42510         * nptl/sysdeps/unix/sysv/linux/aio_misc.h: Moved ...
42511         * sysdeps/unix/sysv/linux/aio_misc.h: ... here.
42512         * nptl/sysdeps/unix/sysv/linux/allocrtsig.c: Moved ...
42513         * sysdeps/unix/sysv/linux/allocrtsig.c: ... here.
42514         * nptl/sysdeps/unix/sysv/linux/getpid.c: Moved ...
42515         * sysdeps/unix/sysv/linux/getpid.c: ... here.
42516         * nptl/sysdeps/unix/sysv/linux/kernel-posix-timers.h: Moved ...
42517         * sysdeps/unix/sysv/linux/kernel-posix-timers.h: ... here.
42518         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Moved ...
42519         * sysdeps/unix/sysv/linux/pt-raise.c: ... here.
42520         * nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c: Moved ...
42521         * sysdeps/unix/sysv/linux/pthread_getaffinity.c: ... here.
42522         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Moved ...
42523         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: ... here.
42524         * nptl/sysdeps/unix/sysv/linux/pthread_getname.c: Moved ...
42525         * sysdeps/unix/sysv/linux/pthread_getname.c: ... here.
42526         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Moved ...
42527         * sysdeps/unix/sysv/linux/pthread_kill.c: ... here.
42528         * nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c: Moved ...
42529         * sysdeps/unix/sysv/linux/pthread_setaffinity.c: ... here.
42530         * nptl/sysdeps/unix/sysv/linux/pthread_setname.c: Moved ...
42531         * sysdeps/unix/sysv/linux/pthread_setname.c: ... here.
42532         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Moved ...
42533         * sysdeps/unix/sysv/linux/pthread_sigqueue.c: ... here.
42534         * nptl/sysdeps/unix/sysv/linux/raise.c: Moved ...
42535         * sysdeps/unix/sysv/linux/raise.c: ... here.
42536         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Moved ...
42537         * sysdeps/unix/sysv/linux/timer_create.c: ... here.
42538         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Moved ...
42539         * sysdeps/unix/sysv/linux/timer_delete.c: ... here.
42540         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Moved ...
42541         * sysdeps/unix/sysv/linux/timer_getoverr.c: ... here.
42542         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Moved ...
42543         * sysdeps/unix/sysv/linux/timer_gettime.c: ... here.
42544         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Moved ...
42545         * sysdeps/unix/sysv/linux/timer_routines.c: ... here.
42546         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Moved ...
42547         * sysdeps/unix/sysv/linux/timer_settime.c: ... here.
42548         * nptl/sysdeps/unix/sysv/linux/tst-setgetname.c: Moved ...
42549         * sysdeps/unix/sysv/linux/tst-setgetname.c: ... here.
42550         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Update #include.
42551
42552 2014-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
42553
42554         * sysdeps/generic/memcopy.h: Add comment for
42555         MEMCPY_OK_FOR_FWD_MEMMOVE.
42556
42557 2014-07-04  Will Newton  <will.newton@linaro.org>
42558
42559         * string/memchr.c: Merge from gnulib.
42560         [_LIBC]: Remove conditionals.
42561         (__ptr_t): Remove define.
42562         (LONG_MAX_32_BITS): Likewise.
42563         (LONG_MAX): Likewise.
42564         (MEMCHR): Use ANSI prototype and optimize algorithm.
42565
42566         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_REL): Define.
42567
42568 2014-07-03  Roland McGrath  <roland@hack.frob.com>
42569
42570         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
42571         (lll_futex_timed_wait_bitset): Fix syscall argument count.
42572
42573         * sysdeps/nptl/configure.ac (libc_cv_forced_unwind):
42574         Use -Dinhibit_libc=1 for unwind.h check to prevent false failure
42575         in a bare environment with no <stdlib.h> installed.
42576         * sysdeps/nptl/configure: Regenerated.
42577
42578         * sysdeps/alpha/fpu/s_nearbyint.c: Include <math_ldbl_opt.h>.
42579
42580         * sysdeps/unix/sysv/linux/configure.ac: Use AC_TRY_COMPILE rather than
42581         AC_EGREP_CPP for kernel header checks, so they only succeed if
42582         including <linux/version.h> actually works right.
42583         * sysdeps/unix/sysv/linux/configure: Regenerated.
42584
42585         * sysdeps/s390/nptl/tls.h (THREAD_SET_POINTER_GUARD): Refer to the
42586         value so it's not diagnosed as unused.
42587
42588         * sysdeps/pthread/Makefile: Conditionalize tst-timer bits (the only
42589         thing) with "ifeq ($(subdir),rt)".
42590
42591 2014-07-03  Richard Henderson  <rth@redhat.com>
42592
42593         * sysdeps/alpha/fpu/s_nearbyintf.c: Remove file.
42594         * sysdeps/alpha/fpu/s_nearbyint.c (__nearbyint): Remove;
42595         include sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c.
42596
42597         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): New.
42598         (math_force_eval): New.
42599
42600         * sysdeps/alpha/fpu/s_lround.c: Add 0.5 with chopped rounding.
42601         * sysdeps/alpha/fpu/s_lroundf.c: Likewise.
42602
42603         * sysdeps/alpha/fpu/s_round.c: Remove file.
42604         * sysdeps/alpha/fpu/s_roundf.c: Remove file.
42605
42606         * elf/dl-support.c (HP_TIMING_AVAIL): Do not redefine.
42607         (_dl_non_dynamic_init): Check HP_SMALL_TIMING_AVAIL instead.
42608         * elf/rtld.c (HP_TIMING_AVAIL): Do not redefine.
42609         (_dl_start_final): Check HP_SMALL_TIMING_AVAIL instead.
42610         (_dl_start, print_statistics): Likewise.
42611         * sysdeps/generic/ldsodefs.h (struct rtld_global): Only check
42612         HP_SMALL_TIMING_AVAIL in defining _dl_cpuclock_offset.
42613
42614         * sysdeps/aarch64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
42615         * sysdeps/generic/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
42616         * sysdeps/i386/i686/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
42617         * sysdeps/ia64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
42618         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
42619         (HP_SMALL_TIMING_AVAIL): Define.
42620         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
42621         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
42622         (HP_SMALL_TIMING_AVAIL): Define.
42623         * sysdeps/sparc/sparc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
42624         * sysdeps/x86_64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
42625
42626         * sysdeps/aarch64/hp-timing.h: New file.
42627
42628         * sysdeps/generic/hp-timing.h: Remove dead comment.
42629         * sysdeps/generic/hp-timing-common.h: New file.
42630         * sysdeps/alpha/hp-timing.h: Include it.
42631         (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT, HP_TIMING_PRINT): Remove.
42632         * sysdeps/i386/i686/hp-timing.h: Likewise.
42633         * sysdeps/ia64/hp-timing.h: Likewise.
42634         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
42635         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
42636         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
42637         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
42638         * sysdeps/x86_64/hp-timing.h: Don't include the i686 version.
42639         (HP_TIMING_AVAIL, HP_TIMING_INLINE): Define.
42640         (hp_timing_t): New.
42641
42642         * benchtests/bench-string.h (_dl_hp_timing_overhead): Remove.
42643         * benchtests/bench-timing.h (_dl_hp_timing_overhead): Remove.
42644         (TIMING_INIT): Remove call to HP_TIMING_DIFF_INIT.
42645         * elf/rtld.c (_dl_start_final): Likewise.
42646         * sysdeps/generic/ldsodefs.h (_dl_hp_timing_overhead): Remove.
42647         * sysdeps/alpha/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
42648         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
42649         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
42650         * sysdeps/ia64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
42651         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
42652         (HP_TIMING_DIFF_INIT): Remove.
42653         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
42654         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
42655         (HP_TIMING_DIFF_INIT): Remove.
42656         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
42657         * sysdeps/i386/i686/hp-timing.c: Remove file.
42658         * sysdeps/x86_64/hp-timing.c: Remove file.
42659         * sysdeps/ia64/hp-timing.c: Remove file.
42660         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Remove file.
42661         * sysdeps/powerpc/powerpc64/hp-timing.c: Remove file.
42662         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Remove file.
42663         * sysdeps/sparc/sparc64/hp-timing.c: Remove file.
42664
42665         * sysdeps/alpha/hp-timing.h (HP_TIMING_ACCUM): Remove.
42666         * sysdeps/generic/hp-timing.h (HP_TIMING_ACCUM): Remove.
42667         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Remove.
42668         * sysdeps/ia64/hp-timing.h (HP_TIMING_ACCUM): Remove.
42669         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
42670         (HP_TIMING_ACCUM): Remove.
42671         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
42672         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ACCUM): Remove.
42673         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
42674
42675         * sysdeps/alpha/hp-timing.h (HP_TIMING_ZERO): Remove.
42676         * sysdeps/generic/hp-timing.h (HP_TIMING_ZERO): Remove.
42677         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ZERO): Remove.
42678         * sysdeps/ia64/hp-timing.h (HP_TIMING_ZERO): Remove.
42679         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_ZERO): Remove.
42680         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ZERO): Remove.
42681         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ZERO): Remove.
42682         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ZERO): Remove.
42683
42684         * sysdeps/powerpc/powerpc32/hp-timing.h: Remove file.
42685
42686 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
42687
42688         * stdlib/tst-strtod-overflow.c (TIMEOUT): Bump up to 30.
42689
42690 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
42691
42692         Sync up with gettext.
42693         * intl/loadmsgcat.c: Define O_BINARY if not defined.
42694         [_MSC_VER]: Include malloc.h
42695         [_LIBC]: Define PRI_MACROS_BROKEN if it is not defined.
42696         (get_sysdep_segment_value) [!__UCLIBC__]: Return "I" flag.
42697         (_nl_load_domain): Open DOMAIN_FILE in binary mode.  Don't use
42698         TEMP_FAILURE_RETRY.  Cast return of alloca.
42699         [!_LIBC] Call gl_rwlock_init.
42700         [IN_LIBGLOCALE]: Call _nl_find_msg with one less argument.
42701
42702 2014-07-02  Roland McGrath  <roland@hack.frob.com>
42703
42704         * misc/sys/cdefs.h: Check if __STDC_VERSION__ is defined
42705         before checking its value.
42706
42707 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
42708
42709         * intl/loadmsgcat.c (_nl_load_domain): Use __builtin_expect.
42710
42711         * debug/memcpy_chk.c: Don't include pagecopy.h.
42712         * debug/mempcpy_chk.c: Likewise.
42713         * string/memcpy.c: Likewise.
42714         * string/memmove.c: Likewise.
42715         * sysdeps/powerpc/memmove.c: Likewise.
42716         * sysdeps/generic/memcopy.h: Include pagecopy.h.  Move
42717         definition of PAGE_COPY_FWD_MAYBE here...
42718         * sysdeps/generic/pagecopy.h: ... from here.
42719         * sysdeps/mach/pagecopy.h: Don't include generic pagecopy.h.
42720
42721 2014-07-02  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
42722             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42723
42724         * sysdeps/powerpc/strcat.c: Using macro to redefine symbol name.
42725         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcat multiarch
42726         optimizations.
42727         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
42728         (__libc_ifunc_impl_list): Likewise.
42729         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: New file:
42730         multiarch strcat for PPC64.
42731         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: New file/
42732         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: New file.
42733
42734 2014-07-02  Roland McGrath  <roland@hack.frob.com>
42735
42736         * sysdeps/unix/sysv/linux/dl-sysdep.c: Include <sys/param.h>.
42737
42738 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
42739
42740         * intl/loadmsgcat.c: Remove declaration of
42741         get_sysdep_segment_value.
42742         (get_sysdep_segment_value): Use ISO C style.
42743         (_nl_load_domain): Use ISO C style.  Get rid of redundant
42744         semicolon.  Fix typo and formatting in comment.
42745         (_nl_unload_domain): Use ISO C style.
42746
42747         * sysdeps/posix/sysconf.c (__sysconf): Fix typo in macro name.
42748
42749 2014-07-02  Will Newton  <will.newton@linaro.org>
42750
42751         * malloc/obstack.c: Merge from gnulib master.
42752         [HAVE_CONFIG_H]: Remove conditional code.
42753         [!_LIBC]: Include config.h.
42754         [!ELIDE_CODE]: Don't include inttypes.h, include
42755         stdint.h unconditionally.
42756         (print_and_abort): Mark as _Noreturn.
42757         (_obstack_allocated_p): Mark as __attribute_pure__.
42758         (obstack_free): Rename to __obstack_free.
42759         [!__attribute__]: Remove conditional code.
42760         * malloc/obstack.h: Merge from gnulib master.
42761         [__cplusplus]: Move conditional down.
42762         [!__attribute_pure__]: Define __attribute_pure__ here
42763         if it is not already defined.
42764         (_obstack_memory_used): Mark as __attribute_pure__.
42765         [!__obstack_free]: Define as obstack_free.
42766         [__GNUC__]: Remove check for ancient NeXT gcc.
42767
42768 2014-07-02  Will Newton  <will.newton@linaro.org>
42769             Paul Eggert  <eggert@cs.ucla.edu>
42770
42771         * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers.
42772
42773 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
42774
42775         * resolv/gethnamaddr.c: Add comment warning that the file is
42776         not maintained.
42777
42778 2014-07-01  Carlos O'Donell  <carlos@redhat.com>
42779
42780         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Remove GLIBC_2.3
42781         entries.
42782
42783         * sysdeps/unix/sysv/linux/hppa/Versions: Remove librt GLIBC_2.3
42784         entry for aio_cancel and aio_cancel64.
42785         * sysdeps/unix/sysv/linux/hppa/ld.abilist: New file.
42786         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: New file.
42787         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: New file.
42788         * sysdeps/unix/sysv/linux/hppa/libc.abilist: New file.
42789         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: New file.
42790         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: New file.
42791         * sysdeps/unix/sysv/linux/hppa/libm.abilist: New file.
42792         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: New file.
42793         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: New file.
42794         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: New file.
42795         * sysdeps/unix/sysv/linux/hppa/librt.abilist: New file.
42796         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: New file.
42797         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: New file.
42798
42799 2014-07-01  Roland McGrath  <roland@hack.frob.com>
42800
42801         * sysdeps/unix/sysv/linux/sysconf.c: Include <sys/param.h>.
42802         * nptl/pthread_mutex_lock.c: Likewise.
42803         * nptl/pthread_mutex_timedlock.c: Likewise.
42804         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Likewise.
42805
42806 2014-07-01  Richard henderson  <rth@redhat.com>
42807
42808         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanf): Remove.
42809         (__isnan, __isnanl): Remove.
42810         * sysdeps/alpha/fpu/s_isnan.c (__isnan): Use integer arithmetic.
42811
42812         * sysdeps/alpha/fpu/libm-test-ulps: Update.
42813
42814 2014-07-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
42815
42816         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
42817
42818 2014-07-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
42819
42820         * resolv/nss_dns/dns-host.c (getanswer_r)
42821         [MULTI_PTRS_ARE_ALIASES]: Remove code.
42822
42823 2014-07-01  Joseph Myers  <joseph@codesourcery.com>
42824
42825         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
42826         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not
42827         undefine.
42828         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise.
42829         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise.
42830
42831 2014-07-01  Roland McGrath <roland@hack.frob.com>
42832
42833         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: New file.
42834         * sysdeps/unix/sysv/linux/microblaze/nptl/fork.c: File removed.
42835
42836         * sysdeps/microblaze/nptl/tls.h: Define TLS_DEFINE_INIT_TP.
42837         * sysdeps/unix/sysv/linux/microblaze/nptl/createthread.c: File removed.
42838
42839         * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Moved ...
42840         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h:
42841         ... here.
42842         * sysdeps/microblaze/nptl/bits/semaphore.h: Moved ...
42843         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/semaphore.h: ... here.
42844
42845         * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Moved ...
42846         * sysdeps/unix/sysv/linux/microblaze/nptl/pt-vfork.S: ... here.
42847         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Moved ...
42848         * sysdeps/unix/sysv/linux/microblaze/vfork.S: ... here.
42849
42850         * sysdeps/unix/sysv/linux/microblaze/c++-types.data: Moved ...
42851         * sysdeps/unix/sysv/linux/microblaze/nptl/c++-types.data: ... here.
42852         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Moved ...
42853         * sysdeps/unix/sysv/linux/microblaze/nptl/ld.abilist: ... here.
42854         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist:
42855         Moved ...
42856         * sysdeps/unix/sysv/linux/microblaze/nptl/libBrokenLocale.abilist:
42857         ... here.
42858         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Moved ...
42859         * sysdeps/unix/sysv/linux/microblaze/nptl/libanl.abilist: ... here.
42860         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Moved ...
42861         * sysdeps/unix/sysv/linux/microblaze/nptl/libc.abilist: ... here.
42862         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Moved ...
42863         * sysdeps/unix/sysv/linux/microblaze/nptl/libcrypt.abilist: ... here.
42864         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Moved ...
42865         * sysdeps/unix/sysv/linux/microblaze/nptl/libdl.abilist: ... here.
42866         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Moved ...
42867         * sysdeps/unix/sysv/linux/microblaze/nptl/libm.abilist: ... here.
42868         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Moved ...
42869         * sysdeps/unix/sysv/linux/microblaze/nptl/libnsl.abilist: ... here.
42870         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Moved ...
42871         * sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist: ... here.
42872         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Moved ...
42873         * sysdeps/unix/sysv/linux/microblaze/nptl/libresolv.abilist: ... here.
42874         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Moved ...
42875         * sysdeps/unix/sysv/linux/microblaze/nptl/librt.abilist: ... here.
42876         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Moved ...
42877         * sysdeps/unix/sysv/linux/microblaze/nptl/libthread_db.abilist:
42878         ... here.
42879         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Moved ...
42880         * sysdeps/unix/sysv/linux/microblaze/nptl/libutil.abilist: ... here.
42881         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Moved ...
42882         * sysdeps/unix/sysv/linux/microblaze/nptl/localplt.data: ... here.
42883         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Moved ...
42884         * sysdeps/unix/sysv/linux/microblaze/nptl/lowlevellock.h: ... here.
42885         * sysdeps/unix/sysv/linux/microblaze/nptl/pthread_once.c: Moved ...
42886         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: ... here.
42887
42888 2014-07-01  David Holsgrove  <david.holsgrove@xilinx.com>
42889
42890         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: New file.
42891         * sysdeps/unix/sysv/linux/microblaze/socket.S: Update SINGLE_THREAD_P use.
42892         * sysdeps/unix/sysv/linux/microblaze/Makefile(libpthread-routines):
42893         Add sysdep.
42894
42895 2014-06-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42896
42897         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
42898
42899 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
42900
42901         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
42902         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
42903
42904         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
42905
42906         * sysdeps/arm/libm-test-ulps: Regenerated.
42907
42908 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
42909             Roland McGrath <roland@hack.frob.com>
42910
42911         * test-skeleton.c (signal_handler): Kill the whole process group
42912         before killing the child individually.
42913         (main): Report any failure on `setpgid'.
42914
42915 2014-06-30  Roland McGrath  <roland@hack.frob.com>
42916
42917         * sysdeps/arm/nptl/tls.h: Rename the multiple inclusion guard
42918         from _TLS_H to _ARM_NPTL_TLS_H.
42919         (TLS_INIT_TP): Move macro, and #include of <sysdep.h>, to ...
42920         * sysdeps/unix/sysv/linux/arm/tls.h: ... this new file.
42921
42922 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
42923
42924         [BZ #16539]
42925         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <float.h>.
42926         (__expm1l): Return argument unchanged when small but not
42927         subnormal.
42928
42929         * soft-fp/op-1.h (_FP_UNPACK_RAW_1): Rename local variables to
42930         include macro name.
42931         (_FP_UNPACK_RAW_1_P): Likewise.
42932         (_FP_PACK_RAW_1): Likewise.
42933         (_FP_PACK_RAW_1_P): Likewise.
42934         (_FP_MUL_MEAT_1_wide): Likewise.
42935         (_FP_MUL_MEAT_DW_1_hard): Likewise.
42936         (_FP_MUL_MEAT_1_hard): Likewise.
42937         (_FP_DIV_MEAT_1_imm): Likewise.
42938         (_FP_DIV_MEAT_1_udiv_norm): Likewise.
42939         (_FP_DIV_MEAT_1_udiv): Likewise.
42940         * soft-fp/op-2.h (__FP_FRAC_DEC_2): Likewise.
42941         (_FP_UNPACK_RAW_2): Likewise.
42942         (_FP_UNPACK_RAW_2_P): Likewise.
42943         (_FP_PACK_RAW_2): Likewise.
42944         (_FP_PACK_RAW_2_P): Likewise.
42945         (_FP_MUL_MEAT_DW_2_wide): Likewise.
42946         (_FP_MUL_MEAT_2_wide): Likewise.
42947         (_FP_MUL_MEAT_DW_2_wide_3mul): Likewise.
42948         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
42949         (_FP_MUL_MEAT_DW_2_gmp): Likewise.
42950         (_FP_MUL_MEAT_2_gmp): Likewise.
42951         (_FP_DIV_MEAT_2_udiv): Likewise.
42952         * soft-fp/op-4.h (_FP_FRAC_SLL_4): Likewise.
42953         (_FP_FRAC_SRL_4): Likewise.
42954         (_FP_FRAC_SRST_4): Likewise.
42955         (_FP_FRAC_SRS_4): Likewise.
42956         (_FP_UNPACK_RAW_4): Likewise.
42957         (_FP_UNPACK_RAW_4_P): Likewise.
42958         (_FP_PACK_RAW_4): Likewise.
42959         (_FP_PACK_RAW_4_P): Likewise.
42960         (_FP_MUL_MEAT_DW_4_wide): Likewise.
42961         (_FP_MUL_MEAT_4_wide): Likewise.
42962         (_FP_MUL_MEAT_4_gmp): Likewise.
42963         (umul_ppppmnnn): Likewise.
42964         (_FP_DIV_MEAT_4_udiv): Likewise.
42965         (__FP_FRAC_ADD_4): Likewise.
42966         (__FP_FRAC_SUB_3): Likewise.
42967         (__FP_FRAC_SUB_4): Likewise.
42968         (__FP_FRAC_DEC_3): Likewise.
42969         (__FP_FRAC_DEC_4): Likewise.
42970         (__FP_FRAC_ADDI_4): Likewise.
42971         * soft-fp/op-8.h (_FP_FRAC_SLL_8): Likewise.
42972         (_FP_FRAC_SRL_8): Likewise.
42973         (_FP_FRAC_SRS_8): Likewise.
42974
42975         * soft-fp/extended.h (FP_UNPACK_RAW_E): Rename local variables to
42976         include macro name.
42977         (FP_UNPACK_RAW_EP): Likewise.
42978         (FP_PACK_RAW_E): Likewise.
42979         (FP_PACK_RAW_EP): Likewise.
42980         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Likewise.
42981         (_FP_ISSIGNAN): Likewise.
42982         (_FP_ADD_INTERNAL): Likewise.
42983         (_FP_FMA): Likewise.
42984         (_FP_CMP): Likewise.
42985         (_FP_SQRT): Likewise.
42986         (_FP_TO_INT): Likewise.
42987         (_FP_FROM_INT): Likewise.
42988         (FP_EXTEND): Likewise.
42989         (_FP_DIV_MEAT_N_loop): Likewise.
42990
42991 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
42992
42993         * sysdeps/unix/sysv/linux/bits/socket.h: Adjust macro formatting
42994         throughout.
42995
42996 2014-06-29  Joseph Myers  <joseph@codesourcery.com>
42997
42998         [BZ #17097]
42999         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Return
43000         result with correct sign in case of exponents that produce
43001         overflow except for X very close to 1.
43002
43003 2014-06-28  Paul Eggert  <eggert@cs.ucla.edu>
43004
43005         mktime: merge #if/#ifdef usage from glibc
43006         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
43007         as that works with both Glibc's and Gnulib's style.
43008         See thread starting at Siddhesh Poyarekar's bug report at:
43009         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
43010
43011 2014-06-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
43012
43013         * sysdeps/generic/memcopy.h: Define MEMCPY_OK_FOR_FWD_MEMMOVE.
43014         * sysdeps/tile/memcopy.h: Redefine MEMCPY_OK_FOR_FWD_MEMMOVE.
43015         * sysdeps/tile/tilegx/memmove.c: Remove file.
43016
43017 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
43018
43019         * Makeconfig ($(common-objpfx)soversions.mk): Do not generate
43020         abi-name definition.
43021         * scripts/soversions.awk: Do not handle or generate ABI lines.
43022         * shlib-versions: Remove ABI entries.
43023         * sysdeps/powerpc/nofpu/shlib-versions: Remove file.
43024         * sysdeps/x86_64/x32/shlib-versions: Remove ABI entry.
43025
43026 2014-06-27  Roland McGrath  <roland@hack.frob.com>
43027
43028         * sysdeps/unix/sysv/linux/mips/mips32/nptl/c++-types.data: Moved ...
43029         * sysdeps/unix/sysv/linux/mips/mips32/c++-types.data: ... here.
43030         * sysdeps/unix/sysv/linux/mips/mips32/fpu/nptl/libc.abilist: Moved ...
43031         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: ... here.
43032         * sysdeps/unix/sysv/linux/mips/mips32/nptl/ld.abilist: Moved ...
43033         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: ... here.
43034         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libBrokenLocale.abilist:
43035         Moved ...
43036         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
43037         ... here.
43038         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libanl.abilist: Moved ...
43039         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: ... here.
43040         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcidn.abilist: Moved ...
43041         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: ... here.
43042         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcrypt.abilist: Moved ...
43043         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: ... here.
43044         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libdl.abilist: Moved ...
43045         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: ... here.
43046         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libm.abilist: Moved ...
43047         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: ... here.
43048         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnsl.abilist: Moved ...
43049         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: ... here.
43050         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_compat.abilist:
43051         Moved ...
43052         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: ... here.
43053         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_db.abilist: Moved ...
43054         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: ... here.
43055         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_dns.abilist: Moved ...
43056         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: ... here.
43057         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_files.abilist:
43058         Moved ...
43059         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: ... here.
43060         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_hesiod.abilist:
43061         Moved ...
43062         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: ... here.
43063         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nis.abilist: Moved ...
43064         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: ... here.
43065         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nisplus.abilist:
43066         Moved ...
43067         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: ... here.
43068         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist: Moved ...
43069         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: ... here.
43070         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libresolv.abilist: Moved ...
43071         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: ... here.
43072         * sysdeps/unix/sysv/linux/mips/mips32/nptl/librt.abilist: Moved ...
43073         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: ... here.
43074         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libthread_db.abilist:
43075         Moved ...
43076         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: ... here.
43077         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libutil.abilist: Moved ...
43078         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: ... here.
43079         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/nptl/libc.abilist:
43080         Moved ...
43081         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: ... here.
43082         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/c++-types.data:
43083         Moved ...
43084         * sysdeps/unix/sysv/linux/mips/mips64/n32/c++-types.data: ... here.
43085         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/ld.abilist: Moved ...
43086         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: ... here.
43087         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libBrokenLocale.abilist:
43088         Moved ...
43089         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
43090         ... here.
43091         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libBrokenLocale.abilist:
43092         Identical file removed.
43093         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libanl.abilist:
43094         Moved ...
43095         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: ... here.
43096         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libanl.abilist:
43097         Identical file removed.
43098         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libc.abilist: Moved ...
43099         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: ... here.
43100         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libcrypt.abilist:
43101         Moved ...
43102         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: ... here.
43103         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libcrypt.abilist:
43104         Identical file removed.
43105         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libdl.abilist: Moved ...
43106         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: ... here.
43107         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libdl.abilist:
43108         Identical file removed.
43109         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libm.abilist: Moved ...
43110         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: ... here.
43111         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libm.abilist:
43112         Identical file removed.
43113         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libnsl.abilist: Moved ...
43114         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: ... here.
43115         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libnsl.abilist:
43116         Identical file removed.
43117         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist:
43118         Moved ...
43119         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: ... here.
43120         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist:
43121         Identical file removed.
43122         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libresolv.abilist:
43123         Moved ...
43124         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: ... here.
43125         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/librt.abilist: Moved ...
43126         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: ... here.
43127         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/librt.abilist:
43128         Identical file removed.
43129         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libthread_db.abilist:
43130         Moved ...
43131         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist:
43132         ... here.
43133         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libthread_db.abilist:
43134         Identical file removed.
43135         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libutil.abilist:
43136         Moved ...
43137         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: ... here.
43138         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libutil.abilist:
43139         Identical file removed.
43140         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/c++-types.data:
43141         Moved ...
43142         * sysdeps/unix/sysv/linux/mips/mips64/n64/c++-types.data: ... here.
43143         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/ld.abilist: Moved ...
43144         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: ... here.
43145         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libc.abilist: Moved ...
43146         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: ... here.
43147         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libresolv.abilist:
43148         Moved ...
43149         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: ... here.
43150         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h: Moved ...
43151         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: ... here.
43152
43153         * sysdeps/unix/sysv/linux/mips/vfork.S: Incorporate
43154         SAVE_PID and RESTORE_PID blocks from nptl/pt-vfork.S.
43155         * sysdeps/unix/sysv/linux/mips/nptl/vfork.S: File removed.
43156         * sysdeps/unix/sysv/linux/mips/nptl/pt-vfork.S: File removed.
43157         * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
43158
43159 2014-06-27  Arjun Shankar  <arjun.is@lostca.se>
43160
43161         [BZ #17092]
43162         * nscd/nscd.c (monitor_child): Return exit status of child
43163         instead of return value from wait syscall.
43164
43165 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
43166
43167         * configure.ac (libc_commonpagesize): Remove variable.
43168         (libc_relro_required): Likewise.
43169         (libc_cv_z_relro): Remove configure test.
43170         * configure: Regenerated.
43171         * sysdeps/aarch64/preconfigure (libc_commonpagesize): Do not set
43172         variable.
43173         (libc_relro_required): Likewise.
43174         * sysdeps/alpha/preconfigure (libc_commonpagesize): Likewise.
43175         (libc_relro_required): Likewise.
43176         * sysdeps/arm/preconfigure.ac (libc_commonpagesize): Likewise.
43177         (libc_relro_required): Likewise.
43178         * sysdeps/arm/preconfigure: Regenerated.
43179         * sysdeps/ia64/preconfigure: Remove file.
43180         * sysdeps/tile/preconfigure (libc_commonpagesize): Do not set
43181         variable.
43182         (libc_relro_required): Likewise.
43183
43184         [BZ #16561]
43185         [BZ #16562]
43186         * sysdeps/ieee754/dbl-64/e_jn.c: Include <float.h>.
43187         (__ieee754_yn): Set FE_TONEAREST mode internally and then
43188         recompute overflowing results in original rounding mode.
43189         * sysdeps/ieee754/flt-32/e_jnf.c: Include <float.h>.
43190         (__ieee754_ynf): Set FE_TONEAREST mode internally and then
43191         recompute overflowing results in original rounding mode.
43192         * sysdeps/ieee754/ldbl-128/e_jnl.c: Include <float.h>.
43193         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
43194         recompute overflowing results in original rounding mode.
43195         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Include <float.h>.
43196         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
43197         recompute overflowing results in original rounding mode.
43198         * sysdeps/ieee754/ldbl-96/e_jnl.c: Include <float.h>.
43199         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
43200         recompute overflowing results in original rounding mode.
43201         * sysdeps/i386/fpu/fenv_private.h [!__SSE2_MATH__]
43202         (libc_feholdsetround_ctx): New macro.
43203         * math/libm-test.inc (yn_test): Use ALL_RM_TEST.
43204         * sysdeps/i386/fpu/libm-test-ulps: Update.
43205         * sysdeps/x86_64/fpu/libm-test-ulps : Likewise.
43206
43207 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
43208
43209         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
43210         [__PIC__] (PSEUDO): Use name of _nocancel entry point in
43211         corresponding .cpsetup call.
43212
43213 2014-06-26  Roland McGrath  <roland@hack.frob.com>
43214
43215         * sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: Moved ...
43216         * sysdeps/arm/libc-aeabi_read_tp.S: ... here.
43217         * sysdeps/arm/Makefile [$(subdir) = csu]
43218         (aeabi_routines): Add aeabi_read_tp and libc-aeabi_read_tp here.
43219         (static-only-routines): Add aeabi_read_tp here.
43220         (shared-only-routines): Add libc-aeabi_read_tp here.
43221         (CFLAGS-libc-start.c): Add -fexceptions here.
43222         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = csu]
43223         (sysdep_routines, static-only-routines, shared-only-routines):
43224         Don't add to these here.
43225         (CFLAGS-libc-start.c): Likewise.
43226
43227         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: Moved ...
43228         * sysdeps/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
43229         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: Moved ...
43230         * sysdeps/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
43231         * sysdeps/arm/Makefile [$(subdir) = rt]
43232         (librt-sysdep_routines, librt-shared-only-routines):
43233         Append rt-aeabi_unwind_cpp_pr1 here.
43234         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = rt]
43235         (librt-sysdep_routines, librt-shared-only-routines): Don't do it here.
43236         * sysdeps/arm/nptl/Makefile [$(subdir) = nptl]
43237         (libpthread-sysdep_routines, libpthread-shared-only-routines):
43238         Append nptl-aeabi_unwind_cpp_pr1 here.
43239         (tests): Filter out tst-cleanupx4 here.
43240         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = nptl]
43241         (libpthread-sysdep_routines, libpthread-shared-only-routines, tests):
43242         Don't do those here.
43243
43244 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
43245
43246         * scripts/list-sources.sh: Do not handle ports specially.
43247
43248 2014-06-26  Roland McGrath  <roland@hack.frob.com>
43249
43250         * sysdeps/arm/fesetenv.c: Include <fpu_control.h>.
43251         * sysdeps/arm/feupdateenv.c: Likewise.
43252
43253         * posix/spawn_faction_addopen.c: Include <stdlib.h> for free decl.
43254
43255 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
43256
43257         * manual/texinfo.tex: Update to version 2014-05-05.10 with
43258         trailing whitespace removed.
43259         * scripts/config.guess: Update to version 2014-03-23.
43260         * scripts/config.sub: Update to version 2014-05-01
43261         * scripts/install-sh: Update to version 2013-12-25.23.
43262         * scripts/move-if-change: Update from gnulib.
43263
43264 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
43265
43266         * debug/memmove_chk.c: Remove pagecopy.h include.
43267
43268 2014-06-26  Paul Eggert  <eggert@cs.ucla.edu>
43269
43270         * time/mktime.c (leapyear): Remove inline keyword.  The code is now
43271         identical to gnulib mktime.
43272
43273 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
43274
43275         * configure.ac: Do not test for machine being rs6000.  Do not test
43276         for powerpc*-*soft.
43277         * configure: Regenerated.
43278
43279         [BZ #11505]
43280         * configure.ac (libc_cv_asm_cfi_directives): Remove configure
43281         test.
43282         * configure: Regenerated.
43283         * config.h.in (HAVE_ASM_CFI_DIRECTIVES): Remove macro undefine.
43284         * sysdeps/arm/configure.ac (libc_cv_asm_cfi_directive_sections):
43285         Remove configure test.
43286         * sysdeps/arm/configure: Regenerated.
43287         * sysdeps/nptl/configure.ac: Do not check
43288         libc_cv_asm_cfi_directives.
43289         * sysdeps/nptl/configure: Regenerated.
43290         * sysdeps/x86_64/nptl/configure.ac: Remove file.
43291         * sysdeps/x86_64/nptl/configure: Remove generated file.
43292         * b/sysdeps/generic/sysdep.h [HAVE_ASM_CFI_DIRECTIVES]: Make code
43293         unconditional.
43294         [!HAVE_ASM_CFI_DIRECTIVES]: Remove conditional code.
43295
43296 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
43297
43298         * posix/fnmatch.c: Define WIDE_CHAR_VERSION.
43299         * posix/fnmatch_loop.c: Undefine WIDE_CHAR_VERSION.
43300         (FCT): Check value of WIDE_CHAR_VERSION instead of checking if
43301         it is defined.
43302
43303         * elf/dl-runtime.c: Check for value of ELF_MACHINE_NO_RELA
43304         instead of whether it is defined.
43305         * sysdeps/aarch64/dl-machine.h: Define ELF_MACHINE_NO_RELA.
43306         * sysdeps/hppa/dl-machine.h: Likewise.
43307         * sysdeps/ia64/dl-machine.h: Likewise.
43308         * sysdeps/m68k/dl-machine.h: Likewise.
43309         * sysdeps/microblaze/dl-machine.h: Likewise.
43310         * sysdeps/mips/dl-machine.: Likewise.
43311         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
43312         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
43313         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
43314         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
43315         * sysdeps/sh/dl-machine.h: Likewise.
43316         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
43317         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
43318         * sysdeps/tile/dl-machine.h: Likewise.
43319         * sysdeps/x86_64/dl-machine.h: Likewise.
43320
43321         * nscd/connections.c (enum usekey) [SEPARATE_KEY]: Remove
43322         code.
43323         (verify_persistent_db): Likewise.
43324
43325 2014-06-26  Roland McGrath  <roland@hack.frob.com>
43326
43327         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data: Moved ...
43328         * sysdeps/unix/sysv/linux/s390/s390-32/c++-types.data: ... here.
43329         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Moved ...
43330         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: ... here.
43331         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
43332         Moved ...
43333         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
43334         ... here.
43335         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: Moved ...
43336         * sysdeps/unix/sysv/linux/s390/libanl.abilist: ... here.
43337         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist:
43338         Identical file removed.
43339         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Moved ...
43340         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: ... here.
43341         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: Moved ...
43342         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: ... here.
43343         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: Moved ...
43344         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: ... here.
43345         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Moved ...
43346         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: ... here.
43347         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: Moved ...
43348         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: ... here.
43349         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
43350         Moved ...
43351         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: ... here.
43352         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: Moved ...
43353         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: ... here.
43354         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Moved ...
43355         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: ... here.
43356         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
43357         Moved ...
43358         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: ... here.
43359         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Moved ...
43360         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: ... here.
43361         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data: Moved ...
43362         * sysdeps/unix/sysv/linux/s390/localplt.data: ... here.
43363         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
43364         Identical file removed.
43365         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data: Moved ...
43366         * sysdeps/unix/sysv/linux/s390/s390-64/c++-types.data: ... here.
43367         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Moved ...
43368         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: ... here.
43369         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
43370         Moved ...
43371         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
43372         ... here.
43373         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Moved ...
43374         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: ... here.
43375         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: Moved ...
43376         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: ... here.
43377         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: Moved ...
43378         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: ... here.
43379         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Moved ...
43380         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: ... here.
43381         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: Moved ...
43382         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: ... here.
43383         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
43384         Moved ...
43385         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: ... here.
43386         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist:
43387         Moved ...
43388         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: ... here.
43389         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: Moved ...
43390         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: ... here.
43391         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
43392         Moved ...
43393         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: ... here.
43394         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: Moved ...
43395         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: ... here.
43396
43397         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: File removed, contents
43398         folded into ...
43399         * sysdeps/unix/sysv/linux/s390/Makefile [$(subdir) = nptl]: ... here.
43400         * sysdeps/unix/sysv/linux/s390/Versions
43401         (libpthread: GLIBC_2.19): New version set.
43402         * nptl/sysdeps/unix/sysv/linux/s390/Versions: File removed.
43403         * sysdeps/unix/sysv/linux/s390/s390-64/Versions
43404         (librt: GLIBC_2.3.3): New version set.
43405         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/Versions: File removed.
43406         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: Moved ...
43407         * sysdeps/unix/sysv/linux/s390/elision-conf.c: ... here.
43408         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Moved ...
43409         * sysdeps/unix/sysv/linux/s390/elision-conf.h: ... here.
43410         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Moved ...
43411         * sysdeps/unix/sysv/linux/s390/elision-lock.c: ... here.
43412         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Moved ...
43413         * sysdeps/unix/sysv/linux/s390/elision-timed.c: ... here.
43414         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Moved ...
43415         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: ... here.
43416         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Moved ...
43417         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: ... here.
43418         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Moved ...
43419         * sysdeps/unix/sysv/linux/s390/force-elision.h: ... here.
43420         * nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Moved ...
43421         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: ... here.
43422         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h: Moved ...
43423         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: ... here.
43424         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Moved ...
43425         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: ... here.
43426         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Moved ...
43427         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: ... here.
43428         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: Moved ...
43429         * sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: ... here.
43430         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: Moved ...
43431         * sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: ... here.
43432         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: Moved ...
43433         * sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: ... here.
43434         * nptl/sysdeps/unix/sysv/linux/s390/pthread_once.c: Moved ...
43435         * sysdeps/unix/sysv/linux/s390/pthread_once.c: ... here.
43436         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Moved ...
43437         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: ... here.
43438         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Moved ...
43439         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: ... here.
43440         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Moved ...
43441         * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: ... here.
43442         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Moved ...
43443         * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: ... here.
43444         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Moved ...
43445         * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: ... here.
43446         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Moved ...
43447         * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: ... here.
43448         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Moved ...
43449         * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: ... here.
43450
43451         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Moved ...
43452         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: ... here.
43453         (__libc_vfork): Define the function under this name.
43454         [!NOT_IN_libc] (__vfork): Make this an alias.
43455         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
43456         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Moved ...
43457         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: ... here.
43458         (__libc_vfork): Define the function under this name.
43459         [!NOT_IN_libc] (__vfork): Make this an alias.
43460         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
43461         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: New file.
43462         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: File removed.
43463         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: File removed.
43464         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Remove vfork.
43465         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
43466
43467         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Deconditionalize the
43468         code that was previously under [RESET_PID].
43469         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
43470         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S: File removed.
43471         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S: File removed.
43472
43473         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h: Moved ...
43474         * sysdeps/aarch64/nptl/bits/pthreadtypes.h: ... here.
43475         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/semaphore.h: Moved ...
43476         * sysdeps/aarch64/nptl/bits/semaphore.h: ... here.
43477         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/local_lim.h: Moved ...
43478         * sysdeps/unix/sysv/linux/aarch64/bits/local_lim.h: ... here.
43479         * sysdeps/unix/sysv/linux/aarch64/nptl/c++-types.data: Moved ...
43480         * sysdeps/unix/sysv/linux/aarch64/c++-types.data: ... here.
43481         * sysdeps/unix/sysv/linux/aarch64/nptl/ld.abilist: Moved ...
43482         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: ... here.
43483         * sysdeps/unix/sysv/linux/aarch64/nptl/libBrokenLocale.abilist:
43484         Moved ...
43485         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: ... here.
43486         * sysdeps/unix/sysv/linux/aarch64/nptl/libanl.abilist: Moved ...
43487         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: ... here.
43488         * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist: Moved ...
43489         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: ... here.
43490         * sysdeps/unix/sysv/linux/aarch64/nptl/libcrypt.abilist: Moved ...
43491         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: ... here.
43492         * sysdeps/unix/sysv/linux/aarch64/nptl/libdl.abilist: Moved ...
43493         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: ... here.
43494         * sysdeps/unix/sysv/linux/aarch64/nptl/libm.abilist: Moved ...
43495         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: ... here.
43496         * sysdeps/unix/sysv/linux/aarch64/nptl/libnsl.abilist: Moved ...
43497         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: ... here.
43498         * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: Moved ...
43499         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: ... here.
43500         * sysdeps/unix/sysv/linux/aarch64/nptl/libresolv.abilist: Moved ...
43501         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: ... here.
43502         * sysdeps/unix/sysv/linux/aarch64/nptl/librt.abilist: Moved ...
43503         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: ... here.
43504         * sysdeps/unix/sysv/linux/aarch64/nptl/libthread_db.abilist: Moved ...
43505         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: ... here.
43506         * sysdeps/unix/sysv/linux/aarch64/nptl/libutil.abilist: Moved ...
43507         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: ... here.
43508         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data: Moved ...
43509         * sysdeps/unix/sysv/linux/aarch64/localplt.data: ... here.
43510         * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h: Moved ...
43511         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: ... here.
43512         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Moved ...
43513         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: ... here.
43514
43515 2014-06-25  Roland McGrath  <roland@hack.frob.com>
43516
43517         * sysdeps/unix/sysv/linux/mips/clone.S: Deconditionalize the code
43518         that was previously under [RESET_PID].
43519         * sysdeps/unix/sysv/linux/mips/nptl/clone.S: File removed.
43520
43521 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
43522
43523         * sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do
43524         not undefine and redefine.
43525         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs)
43526         [O_CLOEXEC]: Make code unconditional.
43527         (__get_nprocs) [!O_CLOEXEC]: Remove conditional code.
43528         * sysdeps/unix/sysv/linux/shm_open.c: Do not include
43529         <kernel-features.h>.
43530         [O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove
43531         conditional variable definition.
43532         (shm_open) [O_CLOEXEC]: Make code unconditional.
43533         (shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional
43534         code.
43535
43536         * configure.ac (USE_REGPARMS): Don't define here.
43537         * configure: Regenerated.
43538         * sysdeps/i386/configure.ac (USE_REGPARMS): Define here.
43539         * sysdeps/i386/configure: Regenerated.
43540
43541         * nptl/createthread.c: Don't include kernel-features.h.
43542         * nptl/pthread_cancel.c: Likewise.
43543         * nptl/pthread_condattr_setclock.c: Likewise.
43544         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
43545         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Likewise.
43546         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
43547         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Likewise.
43548         * nptl/sysdeps/unix/sysv/linux/raise.c: Likewise.
43549         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Likewise.
43550         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
43551         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Likewise.
43552         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
43553         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Likewise.
43554         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Likewise.
43555         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Likewise.
43556         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Likewise.
43557         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Likewise.
43558         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Likewise.
43559         * nscd/gai.c: Likewise.
43560         * nss/nss_db/db-open.c: Likewise.
43561         * sysdeps/generic/ldsodefs.h: Likewise.
43562         * sysdeps/sh/nptl/tls.h: Likewise.
43563         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
43564         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h: Likewise.
43565         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Likewise.
43566         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
43567         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
43568         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
43569         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
43570         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
43571         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
43572         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
43573         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
43574         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
43575         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
43576         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
43577         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
43578         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
43579         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
43580         * sysdeps/unix/sysv/linux/generic/poll.c: Likewise.
43581         * sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c: Likewise.
43582         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
43583         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
43584         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
43585         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Likewise.
43586         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
43587         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
43588         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
43589         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Likewise.
43590         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
43591         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
43592         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
43593         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
43594         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
43595         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
43596         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
43597         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
43598         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
43599         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
43600         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
43601         * sysdeps/unix/sysv/linux/ia64/system.c: Likewise.
43602         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
43603         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
43604         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
43605         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
43606         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
43607         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
43608         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Likewise.
43609         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Likewise.
43610         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
43611         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
43612         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
43613         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
43614         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
43615         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
43616         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
43617         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
43618         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
43619         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
43620         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
43621         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
43622         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: Likewise.
43623         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
43624         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
43625         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
43626         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
43627         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
43628         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
43629         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
43630         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
43631         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
43632         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Likewise.
43633         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
43634         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
43635         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
43636         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
43637         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
43638         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
43639         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
43640         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
43641         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
43642         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
43643         * sysdeps/unix/sysv/linux/pread.c: Likewise.
43644         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
43645         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
43646         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
43647         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
43648         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
43649         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
43650         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
43651         * sysdeps/unix/sysv/linux/sh/pread.c: Likewise.
43652         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
43653         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
43654         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
43655         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
43656         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
43657         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
43658         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
43659         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
43660         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
43661         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
43662         * sysdeps/unix/sysv/linux/system.c: Likewise.
43663         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
43664         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
43665         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
43666         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
43667         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
43668         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
43669         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
43670
43671         * configure.ac (libc_cv_c_asmcr0_bug): Remove configure test.
43672         * configure: Regenerated.
43673         * config.h.in (BROKEN_PPC_ASM_CR0): Remove macro.
43674
43675         * configure.ac (base_machine): Do not set specially for particular
43676         machines here.
43677         * configure: Regenerated.
43678         * sysdeps/powerpc/preconfigure: Move machine and base_machine
43679         settings from configure.ac.
43680         * sysdeps/i386/preconfigure: New file.
43681         * sysdeps/s390/preconfigure: Likewise.
43682         * sysdeps/sh/preconfigure: Likewise.
43683         * sysdeps/sparc/preconfigure: Likewise.
43684
43685 2014-06-25  Roland McGrath  <roland@hack.frob.com>
43686
43687         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: Moved ...
43688         * sysdeps/sparc/sparc64/cpu_relax.S: ... here.
43689         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: Moved ...
43690         * sysdeps/sparc/sparc64/pthread_spin_init.c: ... here.
43691         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: Moved ...
43692         * sysdeps/sparc/sparc64/pthread_spin_lock.S: ... here.
43693         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: Moved ...
43694         * sysdeps/sparc/sparc64/pthread_spin_trylock.S: ... here.
43695         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: Moved ...
43696         * sysdeps/sparc/sparc64/pthread_spin_unlock.S: ... here.
43697         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: Moved ...
43698         * sysdeps/sparc/sparc64/pthreaddef.h: ... here.
43699         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Update #include.
43700         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Likewise.
43701         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
43702         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Likewise.
43703         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Likewise.
43704         * sysdeps/sparc/sparc64/nptl/Makefile: File removed, its contents ...
43705         * sysdeps/sparc/sparc64/Makefile: ... appended here.
43706
43707         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: Moved ...
43708         * sysdeps/sparc/sparc32/lowlevellock.c: ... here.
43709         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Moved ...
43710         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: ... here.
43711         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: Moved ...
43712         * sysdeps/sparc/sparc32/pthread_spin_lock.S: ... here.
43713         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: Moved ...
43714         * sysdeps/sparc/sparc32/pthread_spin_trylock.S: ... here.
43715         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: Moved ...
43716         * sysdeps/sparc/sparc32/pthreaddef.h: ... here.
43717         * sysdeps/sparc/sparc32/nptl/sem_post.c: Moved ...
43718         * sysdeps/sparc/sparc32/sem_post.c: ... here.
43719         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Moved ...
43720         * sysdeps/sparc/sparc32/sem_timedwait.c: ... here.
43721         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: Moved ...
43722         * sysdeps/sparc/sparc32/sem_trywait.c: ... here.
43723         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Moved ...
43724         * sysdeps/sparc/sparc32/sem_wait.c: ... here.
43725         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: Moved ...
43726         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: ... here.
43727         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: Moved ...
43728         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: ... here.
43729         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: Moved ...
43730         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: ... here.
43731         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: Moved ...
43732         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: ... here.
43733         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: Moved ...
43734         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: ... here.
43735         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Moved ...
43736         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: ... here.
43737         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: Moved ...
43738         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: ... here.
43739         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: Moved ...
43740         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: ... here.
43741         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: Moved ...
43742         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: ... here.
43743         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: Moved ...
43744         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: ... here.
43745
43746         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data: Moved ...
43747         * sysdeps/unix/sysv/linux/sparc/sparc32/c++-types.data: ... here.
43748         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: Moved ...
43749         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: ... here.
43750         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
43751         Moved ...
43752         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
43753         ... here.
43754         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: Moved ...
43755         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: ... here.
43756         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Moved ...
43757         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: ... here.
43758         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist:
43759         Moved ...
43760         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: ... here.
43761         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: Moved ...
43762         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: ... here.
43763         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: Moved ...
43764         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: ... here.
43765         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: Moved ...
43766         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: ... here.
43767         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
43768         Moved ...
43769         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: ... here.
43770         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
43771         Moved ...
43772         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: ... here.
43773         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: Moved ...
43774         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: ... here.
43775         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
43776         Moved ...
43777         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: ... here.
43778         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: Moved ...
43779         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: ... here.
43780         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data: Moved ...
43781         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: ... here.
43782         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data: Moved ...
43783         * sysdeps/unix/sysv/linux/sparc/sparc64/c++-types.data: ... here.
43784         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: Moved ...
43785         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: ... here.
43786         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
43787         Moved ...
43788         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
43789         ... here.
43790         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: Moved ...
43791         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: ... here.
43792         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Moved ...
43793         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: ... here.
43794         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist:
43795         Moved ...
43796         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: ... here.
43797         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: Moved ...
43798         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: ... here.
43799         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: Moved ...
43800         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: ... here.
43801         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: Moved ...
43802         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: ... here.
43803         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
43804         Moved ...
43805         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: ... here.
43806         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
43807         Moved ...
43808         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: ... here.
43809         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: Moved ...
43810         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: ... here.
43811         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
43812         Moved ...
43813         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: ... here.
43814         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: Moved ...
43815         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: ... here.
43816         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data: Moved ...
43817         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: ... here.
43818
43819 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
43820
43821         * timezone/checktab.awk: Update from tzcode 2014e.
43822         * timezone/private.h: Likewise.
43823         * timezone/tzfile.h: Likewise.
43824         * timezone/zdump.c: Likewise.
43825         * timezone/zic.c: Likewise.
43826
43827         * sysdeps/unix/sysv/linux/kernel-features.h
43828         (__ASSUME_XFS_RESTRICTED_CHOWN): Remove macro.
43829         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_chown_restricted)
43830         [__ASSUME_XFS_RESTRICTED_CHOWN]: Make code unconditional.
43831         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
43832         Remove conditional code.
43833
43834 2014-06-25  Will Newton  <will.newton@linaro.org>
43835
43836         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
43837         (_dl_arm_cap_flags): Add HWCAP2 values.
43838         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h
43839         (_DL_HWCAP_COUNT): Increase to 37.
43840         (_DL_HWCAP_LAST): New define.
43841         (_DL_HWCAP2_LAST): New define.
43842         (_dl_procinfo): Add support for printing
43843         AT_HWCAP2 entries.
43844         (_dl_string_hwcap): Use _dl_hwcap_string.
43845
43846 2014-06-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43847
43848         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
43849
43850 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
43851
43852         * README: Do not mention ports directory.
43853
43854         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMENSAT):
43855         Remove macro.
43856         * sysdeps/unix/sysv/linux/futimes.c: Do not include
43857         <kernel-features.h>.
43858         [__NR_utimensat && !__ASSUME_UTIMENSAT] (miss_utimensat): Remove
43859         conditional variable definition.
43860         (__futimes): Update comment.
43861         (__futimes) [__ASSUME_UTIMENSAT]: Make code unconditional.
43862         (__futimes) [!__ASSUME_UTIMENSAT]: Remove conditional code.
43863
43864         [BZ #16560]
43865         * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for
43866         arguments close to 0.
43867         * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l):
43868         Likewise.
43869         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l):
43870         Likewise.
43871         * math/auto-libm-test-in: Add more tests of exp10.
43872         * math/auto-libm-test-out: Regenerated.
43873         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
43874
43875         * sysdeps/unix/sysv/linux/kernel-features.h
43876         (__ASSUME_COMPLETE_READV_WRITEV): Remove macro.
43877         * sysdeps/unix/sysv/linux/readv.c: Do not include
43878         <kernel-features.h>.
43879         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
43880         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
43881         (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
43882         unconditional.
43883         (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
43884         conditional code.
43885         * sysdeps/unix/sysv/linux/writev.c: Do not include
43886         <kernel-features.h>.
43887         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
43888         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
43889         (__libc_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
43890         unconditional.
43891         (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
43892         conditional code.
43893
43894 2014-06-25  Will Newton  <will.newton@linaro.org>
43895
43896         * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic
43897         comment changes throughout the file.  Remove checks
43898         for HAVE_*_H definitions that are not required.
43899         (__gen_tempname): Call abort if an unknown kind value is
43900         passed.
43901
43902 2014-06-25  Andreas Schwab  <schwab@suse.de>
43903
43904         [BZ #17086]
43905         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for
43906         scalbln, scalblnf, scalblnl in libc.
43907
43908 2014-06-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
43909
43910         [BZ #17086]
43911         * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so.
43912         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
43913         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
43914
43915 2014-06-24  Roland McGrath  <roland@hack.frob.com>
43916
43917         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ...
43918         * sysdeps/i386/i486/pthread_spin_trylock.S: ... here.
43919         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ...
43920         * sysdeps/i386/i586/pthread_spin_trylock.S: ... here.
43921         Update #include.
43922         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ...
43923         * sysdeps/i386/i686/pthread_spin_trylock.S: ... here.
43924         Update #include.
43925         * sysdeps/x86_64/64/nptl/shlib-versions: Moved ...
43926         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here.
43927         * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ...
43928         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here.
43929         * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ...
43930         * sysdeps/x86/bits/pthreadtypes.h: ... here.
43931         * sysdeps/x86/nptl/bits/semaphore.h: Moved ...
43932         * sysdeps/x86/bits/semaphore.h: ... here.
43933         * sysdeps/x86/nptl/elide.h: Moved ...
43934         * sysdeps/x86/elide.h: ... here.
43935         * sysdeps/x86_64/nptl/Implies: File removed.
43936         * sysdeps/i386/nptl/Implies: File removed.
43937
43938 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
43939
43940         [BZ #16539]
43941         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just
43942         return the argument for normal arguments with exponent below -64.
43943         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
43944         Likewise.
43945         * math/auto-libm-test-in: Add another test of expm1.
43946         * math/auto-libm-test-out: Regenerated.
43947
43948         [BZ #16287]
43949         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
43950         calling __erfcl for arguments at least 16.
43951         * math/auto-libm-test-in: Add more tests of erf.
43952         * math/auto-libm-test-out: Regenerated.
43953
43954         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
43955         individual architectures.
43956         * sysdeps/unix/sysv/linux/configure: Regenerated.
43957         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
43958         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
43959         * sysdeps/unix/sysv/linux/powerpc/configure.ac
43960         (ldd_rewrite_script): Define variable.
43961         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
43962         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
43963         file.
43964         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
43965         generated file.
43966         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
43967         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
43968         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
43969         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
43970         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
43971         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
43972         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
43973         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
43974
43975 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
43976
43977         [BZ #17084]
43978         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
43979         Rename member __data.d to __data.__elision_data.
43980
43981 2014-06-24  Wilco  <wdijkstr@arm.com>
43982
43983         * NEWS: Add 16918 to fixed bug list.
43984
43985 2014-06-24  Wilco  <wdijkstr@arm.com>
43986
43987         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
43988
43989 2014-06-24  Wilco  <wdijkstr@arm.com>
43990
43991         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
43992         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
43993         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
43994         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
43995         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
43996         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
43997         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
43998         Use _FPU_MASK_RM.
43999
44000 2014-06-24  Wilco  <wdijkstr@arm.com>
44001
44002         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
44003
44004 2014-06-24  Wilco  <wdijkstr@arm.com>
44005
44006         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
44007         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
44008         * sysdeps/arm/fesetround.c (fesetround): Remove space.
44009         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
44010
44011 2014-06-24  Wilco  <wdijkstr@arm.com>
44012
44013         [BZ #16918]
44014         * sysdeps/arm/feupdateenv.c (feupdateenv):
44015         Rewrite to reduce FPSCR accesses and fix return value.
44016
44017 2014-06-24  Wilco  <wdijkstr@arm.com>
44018
44019         * sysdeps/arm/fclrexcpt.c (feclearexcept):
44020         Optimize to avoid unnecessary FPSCR writes.
44021         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
44022         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
44023         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
44024         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
44025
44026 2014-06-24  Wilco  <wdijkstr@arm.com>
44027
44028         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
44029         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
44030         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
44031         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
44032         Call libc_fetestexcept_vfp.
44033         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
44034         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
44035         __SOFTFP__ ifdef so that they can be built for softfp.
44036
44037 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
44038
44039         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
44040         argument type signed char.
44041
44042         * Makerules (check-abi): Dump diff of symlist if the test
44043         fails.
44044
44045 2014-06-23  Roland McGrath  <roland@hack.frob.com>
44046
44047         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
44048         using abort.
44049
44050         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
44051         Remove unused variable ST.
44052
44053 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
44054
44055         [BZ #16354]
44056         [BZ #17061]
44057         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
44058         small arguments before calling __expm1.
44059         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
44060         small arguments before calling __expm1f.
44061         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
44062         small arguments before calling __expm1l.
44063         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
44064         Likewise.
44065         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
44066         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
44067         spurious underflow for some cosh tests.
44068         * math/auto-libm-test-out: Regenerated.
44069         * sysdeps/i386/fpu/libm-test-ulps: Update.
44070
44071         [BZ #17050]
44072         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
44073         (__ieee754_y1): Set errno if return value overflows.
44074         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
44075         (__ieee754_y1f): Set errno if return value overflows.
44076         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
44077         (__ieee754_y1l): Set errno if return value overflows.
44078         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
44079         (__ieee754_y1l): Set errno if return value overflows.
44080         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
44081         * math/auto-libm-test-out: Regenerated.
44082
44083         * math/gen-auto-libm-tests.c: Document use of
44084         ignore-zero-inf-sign.
44085         (input_flag_type): Add value flag_ignore_zero_inf_sign.
44086         (input_flags): Add ignore-zero-inf-sign.
44087         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
44088         * math/gen-libm-test.pl (generate_testfile): Handle
44089         ignore-zero-inf-sign.
44090         * math/auto-libm-test-in: Mark some cpow tests with
44091         ignore-zero-inf-sign and some with xfail-rounding.
44092         * math/auto-libm-test-out: Regenerated.
44093         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
44094         * sysdeps/i386/fpu/libm-test-ulps: Update.
44095         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44096
44097         [BZ #16315]
44098         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
44099         overflowing or underflowing operations take place with sign of
44100         result.
44101         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
44102         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
44103         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
44104         (__ieee754_pow): Recompute overflowing and underflowing results in
44105         original rounding mode.
44106         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
44107         (__powl_helper): Allow negative argument X and scale negated value
44108         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
44109         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
44110         overflowing or underflowing operations take place with sign of
44111         result.
44112         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
44113         Include <math.h>.
44114         * math/auto-libm-test-in: Add more tests of pow.
44115         * math/auto-libm-test-out: Regenerated.
44116         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
44117         (pow_tonearest_test_data): Remove.
44118         (pow_test_tonearest): Likewise.
44119         (pow_towardzero_test_data): Likewise.
44120         (pow_test_towardzero): Likewise.
44121         (pow_downward_test_data): Likewise.
44122         (pow_test_downward): Likewise.
44123         (pow_upward_test_data): Likewise.
44124         (pow_test_upward): Likewise.
44125         (main): Don't call removed functions.
44126         * sysdeps/i386/fpu/libm-test-ulps: Update.
44127         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44128
44129 2014-06-23  Roland McGrath  <roland@hack.frob.com>
44130
44131         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
44132         Moved ...
44133         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
44134         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
44135         Moved ...
44136         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
44137         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
44138         Moved ...
44139         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
44140         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
44141         Moved ...
44142         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
44143         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
44144         File removed.
44145         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
44146         File removed.
44147         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
44148         File removed.
44149         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
44150         File removed.
44151         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
44152         File removed.
44153         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
44154         File removed.
44155         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
44156         File removed.
44157         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
44158         File removed.
44159         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
44160         File removed.
44161         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
44162         File removed.
44163         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
44164         File removed.
44165         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
44166         File removed.
44167         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
44168         Moved ...
44169         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
44170         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
44171         Moved ...
44172         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
44173         ... here.
44174         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
44175         Moved ...
44176         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
44177         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
44178         Moved ...
44179         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
44180         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
44181         Moved ...
44182         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
44183         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
44184         Moved ...
44185         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
44186         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
44187         Moved ...
44188         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
44189         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
44190         Moved ...
44191         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
44192         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
44193         Moved ...
44194         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
44195         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
44196         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
44197         ... here.
44198         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
44199         Moved ...
44200         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
44201         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
44202         Moved ...
44203         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
44204         ... here.
44205         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
44206         Moved ...
44207         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
44208         ... here.
44209         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
44210         Moved ...
44211         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
44212         ... here.
44213         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
44214         Moved ...
44215         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
44216         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
44217         Moved ...
44218         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
44219         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
44220         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
44221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
44222         Moved ...
44223         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
44224         ... here.
44225         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
44226         Moved ...
44227         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
44228         ... here.
44229         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
44230         Moved ...
44231         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
44232         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
44233         Moved ...
44234         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
44235         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
44236         Moved ...
44237         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
44238         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
44239         Moved ...
44240         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
44241         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
44242         Moved ...
44243         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
44244         ... here.
44245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
44246         Moved ...
44247         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
44248         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
44249         Moved ...
44250         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
44251         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
44252         Moved ...
44253         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
44254         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
44255         Moved ...
44256         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
44257         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
44258         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
44259         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
44260         Moved ...
44261         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
44262         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
44263         Moved ...
44264         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
44265         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
44266         Moved ...
44267         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
44268         ... here.
44269         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
44270         Moved ...
44271         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
44272         ... here.
44273         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
44274         Moved ...
44275         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
44276         ... here.
44277         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
44278         Moved ...
44279         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
44280         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
44281         Moved ...
44282         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
44283         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
44284         Moved ...
44285         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
44286         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
44287         Moved ...
44288         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
44289         ... here.
44290         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
44291         Moved ...
44292         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
44293         ... here.
44294         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
44295         Moved ...
44296         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
44297         ... here.
44298         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
44299         Moved ...
44300         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
44301         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
44302         Moved ...
44303         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
44304
44305 2014-06-23  Will Newton  <will.newton@linaro.org>
44306             Wilco  <wdijkstr@arm.com>
44307
44308         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
44309         implementation.  Include get-rounding-mode.h.
44310         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
44311         [!libc_feholdsetround_noex_ctx]: Define
44312         libc_feholdsetround_noex_ctx.
44313         [!libc_feholdsetround_noexf_ctx]: Define
44314         libc_feholdsetround_noexf_ctx.
44315         [!libc_feholdsetround_noexl_ctx]: Define
44316         libc_feholdsetround_noexl_ctx.
44317         (libc_feholdsetround_ctx): New function.
44318         (libc_feresetround_ctx): New function.
44319         (libc_feholdsetround_noex_ctx): New function.
44320         (libc_feresetround_noex_ctx): New function.
44321
44322 2014-06-23  Roland McGrath  <roland@hack.frob.com>
44323
44324         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
44325         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
44326         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
44327         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
44328         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
44329         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
44330
44331         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
44332         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
44333         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
44334         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
44335         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
44336         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
44337         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
44338         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
44339         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
44340         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
44341         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
44342         Moved ...
44343         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
44344         ... here.
44345         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
44346         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
44347         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
44348         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
44349         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
44350         Moved ...
44351         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
44352         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
44353         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
44354         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
44355         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
44356         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
44357         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
44358         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
44359         Moved ...
44360         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
44361         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
44362         Moved ...
44363         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
44364         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
44365         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
44366         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
44367         Moved ...
44368         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
44369         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
44370         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
44371         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
44372         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
44373         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
44374         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
44375         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
44376         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
44377         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
44378         Moved ...
44379         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
44380         ... here.
44381         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
44382         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
44383         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
44384         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
44385         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
44386         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
44387         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
44388         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
44389         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
44390         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
44391         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
44392         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
44393         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
44394         Moved ...
44395         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
44396         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
44397         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
44398         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
44399         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
44400         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
44401         Moved ...
44402         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
44403         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
44404         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
44405         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
44406         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
44407
44408         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
44409         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
44410         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
44411         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
44412         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
44413         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
44414         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
44415         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
44416         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
44417         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
44418         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
44419         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
44420         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
44421         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
44422         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
44423         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
44424         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
44425         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
44426         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
44427         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
44428         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
44429         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
44430         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
44431         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
44432         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
44433         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
44434         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
44435         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
44436
44437 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
44438
44439         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
44440         (FALLOC_FL_COLLAPSE_RANGE): New macro.
44441         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
44442         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
44443         (IPV6_PMTUDISC_INTERFACE): Likewise.
44444         (IPV6_PMTUDISC_OMIT): Likewise.
44445
44446 2014-06-23  Andreas Schwab  <schwab@suse.de>
44447
44448         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
44449         Remove unused errout label.
44450
44451 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44452
44453         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
44454         macro: hardware supports Vector Crypto instructions.
44455
44456 2014-06-23  Will Newton  <will.newton@linaro.org>
44457
44458         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
44459         rather than __builtin_expect.
44460
44461         * elf/dl-lookup.c (undefined_msg): Remove variable.
44462         (_dl_lookup_symbol_x): Replace undefined_msg with string
44463         literal.
44464
44465         * elf/dl-lookup.c (do_lookup_unique): New function.
44466         (do_lookup_x): Move STB_GNU_UNIQUE handling code
44467         to a separate function.
44468
44469 2014-06-23  Andreas Schwab  <schwab@suse.de>
44470
44471         [BZ #17079]
44472         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
44473         before reading the next line.
44474
44475 2014-06-23  Will Newton  <will.newton@linaro.org>
44476
44477         * test-skeleton.c (signal_handler): Use printf and %m
44478         rather than perror.  Use printf rather than fprintf to
44479         stderr.  Use puts rather than fputs to stderr.
44480         (main): Likewise.
44481
44482 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
44483
44484         * nscd/nscd.c (thread_info_t): Remove typedef.
44485         (thread_info): Remove variable.
44486
44487 2014-06-21  Allan McRae  <allan@archlinux.org>
44488
44489         * NEWS: Mention CVE-2014-4043.
44490
44491 2014-06-20  Roland McGrath  <roland@hack.frob.com>
44492
44493         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
44494         * nptl/smp.h: ... here.
44495
44496         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
44497
44498         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
44499         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
44500         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
44501         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
44502
44503         * nptl/allocatestack.c: Include <stack-aliasing.h>.
44504         * nptl/stack-aliasing.h: New file.
44505         * sysdeps/i386/i686/stack-aliasing.h: New file.
44506         * sysdeps/i386/i686/nptl/Makefile: File removed.
44507         * sysdeps/x86_64/stack-aliasing.h: New file.
44508         * sysdeps/x86_64/nptl/Makefile
44509         (CFLAGS-pthread_create.c): Variable removed.
44510
44511         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
44512         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
44513         old file.
44514         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
44515         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
44516         old file.
44517
44518 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
44519
44520         * sysdeps/unix/sysv/linux/arm/kernel-features.h
44521         (__ASSUME_SIGFRAME_V2): Remove macro.
44522         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
44523         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
44524         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
44525         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
44526         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
44527         Declare as function.  Remove conditional macro definitions.
44528         (__default_rt_sa_restorer): Likewise.
44529         (__default_sa_restorer_v1): Remove declaration.
44530         (__default_sa_restorer_v2): Likewise.
44531         (__default_rt_sa_restorer_v1): Likewise.
44532         (__default_rt_sa_restorer_v2): Likewise.
44533         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
44534         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
44535         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
44536
44537 2014-06-20  Roland McGrath  <roland@hack.frob.com>
44538
44539         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
44540         (libpthread-routines): Add sysdep.
44541         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
44542         * sysdeps/unix/sysv/linux/sparc/Versions
44543         (libpthread: GLIBC_2.3.3): New version set.
44544         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
44545         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
44546         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
44547         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
44548         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
44549         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
44550         Moved ...
44551         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
44552         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
44553         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
44554         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
44555         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
44556         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
44557         * sysdeps/sparc/nptl/sem_init.c: ... here.
44558         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
44559         * sysdeps/sparc/nptl/sem_post.c: ... here.
44560         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
44561         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
44562         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
44563         * sysdeps/sparc/nptl/sem_wait.c: ... here.
44564         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
44565         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
44566         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
44567         (libpthread-routines): Add cpu_relax.
44568         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
44569         File removed.
44570         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
44571         (librt: GLIBC_2.3.3): New version set.
44572         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
44573         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
44574         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
44575         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
44576         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
44577         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
44578         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
44579         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
44580         Moved ...
44581         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
44582         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
44583         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
44584         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
44585         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
44586         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
44587         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
44588         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
44589         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
44590         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
44591         Moved ...
44592         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
44593         Update #include.
44594         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
44595         Moved ...
44596         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
44597         Update #include.
44598         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
44599         Moved ...
44600         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
44601         Update #include.
44602         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
44603         Moved ...
44604         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
44605         Update #include.
44606         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
44607         Moved ...
44608         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
44609         Update #include.
44610         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
44611         Moved ...
44612         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
44613         Update #include.
44614         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
44615         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
44616         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
44617         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
44618         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
44619         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
44620         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
44621         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
44622         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
44623         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
44624         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
44625         Moved ...
44626         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
44627         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
44628         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
44629         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
44630         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
44631
44632 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
44633
44634         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
44635         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
44636         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
44637         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
44638         * nscd/nscd.c: Likewise.
44639         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
44640         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
44641         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
44642         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
44643
44644         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
44645         <kernel-features.h>.
44646         (init_mq_netlink): Remove conditional have_sock_cloexec
44647         definitions.  Remove code conditional on have_sock_cloexec < 0.
44648         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
44649         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
44650         * sysdeps/unix/sysv/linux/opensock.c: Do not include
44651         <kernel-features.h>.
44652         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
44653         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
44654
44655 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
44656
44657         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
44658         Add tests for memset_chk and memset.
44659
44660         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
44661         with AVX2_Usable.
44662
44663 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
44664
44665         [BZ #16046]
44666         * elf/tst-dl-iter-static.c: New file.
44667         * elf/Makefile (tests-static): Add tst-dl-iter-static.
44668
44669         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
44670         error.
44671
44672 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
44673
44674         * sysdeps/unix/sysv/linux/kernel-features.h
44675         (__ASSUME_F_GETOWN_EX): Remove macro.
44676         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
44677         <kernel-features.h>.
44678         (miss_F_GETOWN_EX): Remove variable or macro.
44679         (do_fcntl): Do not check miss_F_GETOWN_EX.
44680         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
44681
44682         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
44683         Remove macro.
44684         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
44685         [!__ASSUME_AT_RANDOM]: Remove conditional code.
44686         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
44687
44688         * sysdeps/unix/sysv/linux/kernel-features.h
44689         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
44690         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
44691         [ADJ_OFFSET_SS_READ]: Make code unconditional.
44692         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
44693
44694 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
44695
44696         [BZ #17075]
44697         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
44698         Fix calculation of the symbol's value.
44699         * sysdeps/arm/tst-armtlsdescloc.c: New file.
44700         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
44701         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
44702         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
44703         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
44704         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
44705         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
44706         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
44707         (modules-names): Add `tst-armtlsdescmod',
44708         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
44709         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
44710         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
44711         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
44712         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
44713         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
44714         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
44715         ($(objpfx)tst-armtlsdescloc): New dependency.
44716         ($(objpfx)tst-armtlsdescextnow): Likewise.
44717         ($(objpfx)tst-armtlsdescextlazy): Likewise.
44718         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
44719         TLS scheme support.
44720         * sysdeps/arm/configure: Regenerate.
44721
44722 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
44723
44724         * include/fcntl.h (__atfct_seterrno): Remove prototype.
44725         (__atfct_seterrno_2): Likewise.
44726         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
44727         <kernel-features.h>.
44728         (__ASSUME_ATFCTS): Do not undefine and redefine.
44729         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
44730         (__have_atfcts): Remove conditional definition.
44731         (__fxstatat([__NR_fstatat64]: Make code unconditional.
44732         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
44733         unreachable if [__ASSUME_ATFCTS].
44734         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
44735         not undefine and redefine.
44736         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
44737         <kernel-features.h>.
44738         (faccessat) [__NR_faccessat]: Make code unconditional.
44739         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
44740         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
44741         <kernel-features.h>.
44742         (fchmodat) [__NR_fchmodat]: Make code unconditional.
44743         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
44744         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
44745         <kernel-features.h>.
44746         (fchownat) [__NR_fchownat]: Make code unconditional.
44747         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
44748         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
44749         <kernel-features.h>.
44750         (futimesat) [__NR_futimesat]: Make code unconditional.
44751         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
44752         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
44753         <kernel-features.h>.
44754         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
44755         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
44756         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
44757         <kernel-features.h>.
44758         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
44759         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
44760         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
44761         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
44762         <kernel-features.h>.
44763         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
44764         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
44765         * sysdeps/unix/sysv/linux/linkat.c: Do not include
44766         <kernel-features.h>.
44767         (linkat) [__NR_linkat]: Make code unconditional.
44768         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
44769         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
44770         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
44771         <kernel-features.h>.
44772         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
44773         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
44774         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
44775         <kernel-features.h>.
44776         (mkdirat) [__NR_mkdirat]: Make code unconditional.
44777         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
44778         * sysdeps/unix/sysv/linux/openat.c: Do not include
44779         <kernel-features.h>.
44780         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
44781         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
44782         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
44783         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
44784         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
44785         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
44786         <kernel-features.h>.
44787         (readlinkat) [__NR_readlinkat]: Make code unconditional.
44788         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
44789         result of INLINE_SYSCALL directly, not via int variable.
44790         * sysdeps/unix/sysv/linux/renameat.c: Do not include
44791         <kernel-features.h>.
44792         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
44793         (renameat) [__NR_renameat]: Make code unconditional.
44794         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
44795         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
44796         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
44797         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
44798         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
44799         (__ASSUME_ATFCTS): Do not undefine and redefine.
44800         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
44801         <kernel-features.h>.
44802         (symlinkat) [__NR_symlinkat]: Make code unconditional.
44803         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
44804         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
44805         <kernel-features.h>.
44806         (unlinkat) [__NR_unlinkat]: Make code unconditional.
44807         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
44808         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
44809         (__ASSUME_ATFCTS): Do not undefine and redefine.
44810         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
44811         <kernel-features.h>.
44812         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
44813         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
44814         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
44815         <kernel-features.h>.
44816         (__xmknodat) [__NR_mknodat]: Make code unconditional.
44817         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
44818
44819 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
44820
44821         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
44822
44823 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
44824
44825         [BZ #17069]
44826         * posix/regcomp.c (parse_reg_exp): Deallocate partially
44827         constructed tree before returning error.
44828         * posix/bug-regexp36.c: Expand test case.
44829
44830 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
44831
44832         [BZ #6803]
44833         * math/libm-test.inc (scalbln_test_date):
44834         Add errno expectations.
44835         * math/w_scalblnf.c: New File.
44836         Add wrapper which checks for setting errno to ERANGE.
44837         Add weak_alias for corresponding scalbln function.
44838         * math/w_scalbln.c: Likewise.
44839         * math/w_scalblnl.c: Likewise.
44840         * math/Makefile (libm-calls): Add w_scalbln.
44841         * sysdeps/ieee754/flt-32/s_scalblnf.c:
44842         Remove weak_alias for corresponding scalbln function.
44843         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
44844         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
44845         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
44846         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
44847         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
44848         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
44849         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
44850         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
44851         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
44852         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
44853         Remove long_double_symbol for scalblnl function in libm, libc.
44854         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
44855         Add wrapper which checks for setting errno to ERANGE.
44856         Add long_double_symbol for scalblnl function in libm, libc.
44857         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
44858         Remove long_double_symbol for scalblnl in libm.
44859         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
44860         Add wrapper which checks for setting errno to ERANGE.
44861         Add long_double_symbol for scalblnl function in libm.
44862         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
44863         Do not use wrapper because of own implementation.
44864
44865 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
44866
44867         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
44868         3 bytes for __pad1 for x32.
44869         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
44870
44871 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
44872             H.J. Lu  <hongjiu.lu@intel.com>
44873
44874         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
44875         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
44876         * sysdeps/x86_64/multiarch/memset.S: Likewise.
44877         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
44878         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
44879
44880 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
44881
44882         [BZ #17069]
44883         * posix/regcomp.c (parse_expression): Deallocate partially
44884         constructed tree before returning error.
44885         * posix/Makefile.c (tests): Add bug-regex36.
44886         (generated): Add bug-regex36.mtrace.
44887         (tests-special): Add $(objpfx)bug-regex36-mem.out
44888         (bug-regex36-ENV): New variable.
44889         ($(objpfx)bug-regex36-mem.out): New rule.
44890         * posix/bug-regex36.c: New file.
44891
44892 2014-06-19  Will Newton  <will.newton@linaro.org>
44893
44894         * malloc/malloc.c (systrim): If extra is zero then return
44895         early.
44896
44897 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
44898
44899         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
44900
44901 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
44902
44903         * sysdeps/aarch64/strchr.S: New file.
44904
44905 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
44906
44907         [BZ #17022]
44908         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
44909         from arguments -2 or below.
44910         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
44911         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
44912
44913 2014-06-18  Andreas Schwab  <schwab@suse.de>
44914
44915         [BZ #17062]
44916         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
44917         of a bracket expr not to run off the end of the string.
44918         * posix/Makefile (tests): Add tst-fnmatch3.
44919         * posix/tst-fnmatch3.c: New file.
44920
44921 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
44922
44923         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
44924         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
44925         [$(cross-compiling) = no]: Likewise.
44926         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
44927         [$(cross-compiling) = no]: Likewise.
44928
44929 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
44930
44931         [BZ #17031]
44932         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
44933         double, adjusted for any remainder from the high double.
44934         * math/libm-test.inc (nearbyint): Add tests.
44935         (rint): Likewise.
44936
44937 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44938
44939         * nptl/sysdeps/powerpc/Makefile: Moved ...
44940         * sysdeps/powerpc/nptl/Makefile: ... here.
44941         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
44942         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
44943         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
44944         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
44945         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
44946         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
44947         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
44948         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
44949         * nptl/sysdeps/powerpc/tls.h: Moved ...
44950         * sysdeps/powerpc/nptl/tls.h: ... here.
44951
44952 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
44953
44954         [BZ #16681]
44955         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
44956         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
44957         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
44958         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
44959         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
44960         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
44961         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
44962         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
44963         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
44964
44965 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
44966
44967         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
44968
44969 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
44970
44971         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
44972         defined operator.
44973
44974         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
44975         $TIMEOUTFACTOR.
44976
44977 2014-06-16  Florian Weimer  <fweimer@redhat.com>
44978
44979         [BZ #17058]
44980         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
44981         non-executed part of the test.
44982
44983 2014-06-16  Andreas Schwab  <schwab@suse.de>
44984
44985         * string/bits/string2.h (strdup, strndup): Update feature guard.
44986
44987 2014-06-14  David S. Miller  <davem@davemloft.net>
44988
44989         * sysdeps/sparc/fpu/libm-test-ulps: Update.
44990
44991 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
44992
44993         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
44994         that was previously under [RESET_PID].
44995         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
44996
44997         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
44998         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
44999         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
45000         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
45001         (__libc_vfork): New strong alias.
45002         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
45003
45004 2014-06-14 Andi Kleen  <ak@linux.intel.com>
45005
45006         * sysdeps/generic/elide.h: New file.
45007
45008 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
45009
45010         * Makefile (installed-headers): Adjust path of pthread.h header.
45011
45012 2014-06-13  Roland McGrath  <roland@hack.frob.com>
45013
45014         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
45015         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
45016         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
45017         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
45018
45019         * nptl/sysdeps/s390/Makefile: Moved ...
45020         * sysdeps/s390/nptl/Makefile: ... here.
45021         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
45022         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
45023         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
45024         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
45025         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
45026         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
45027         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
45028         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
45029         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
45030         * sysdeps/s390/nptl/pthreaddef.h: ... here.
45031         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
45032         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
45033         * nptl/sysdeps/s390/tls.h: Moved ...
45034         * sysdeps/s390/nptl/tls.h: ... here.
45035
45036         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
45037         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
45038
45039 2014-06-13  David S. Miller  <davem@davemloft.net>
45040
45041         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
45042         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
45043         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
45044         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
45045         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
45046         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
45047         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
45048         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
45049         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
45050         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
45051         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
45052         Remove RESET_PID cpp guards.
45053         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
45054         Remove RESET_PID cpp guards.
45055         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
45056
45057 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
45058
45059         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
45060         __sp to uintptr_t.
45061
45062 2014-06-13  Andi Kleen  <ak@linux.intel.com>
45063
45064         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
45065         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
45066         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
45067         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
45068         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
45069         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
45070         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
45071         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
45072         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
45073         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
45074         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
45075         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
45076         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
45077         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
45078         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
45079         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
45080         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
45081         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
45082         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
45083         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
45084
45085         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
45086         (pthread_rwlock_rdlock): Add elision.
45087         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
45088         (pthread_rwlock_wrlock): Add elision.
45089         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
45090         (pthread_rwlock_trywrlock): Add elision.
45091         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
45092         (pthread_rwlock_tryrdlock): Add elision.
45093         * nptl/pthread_rwlock_unlock.c: Include elide.h.
45094         (pthread_rwlock_tryrdlock): Add elision unlock.
45095         * nptl/sysdeps/pthread/pthread.h:
45096         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
45097         (PTHREAD_RWLOCK_INITIALIZER,
45098         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
45099         Handle new elision field.
45100         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
45101         * sysdeps/arm/nptl/bits/pthreadtypes.h
45102         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
45103         * sysdeps/sh/nptl/bits/pthreadtypes.h
45104         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
45105         * sysdeps/tile/nptl/bits/pthreadtypes.h
45106         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
45107         * sysdeps/a/nptl/bits/pthreadtypes.h
45108         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
45109         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
45110         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
45111         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
45112         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
45113         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
45114         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
45115         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
45116         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
45117         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
45118         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
45119         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
45120         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
45121         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
45122         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
45123         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
45124         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
45125         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
45126         (elision_init): Set try_xbegin to zero when no RTM.
45127         * sysdeps/x86/nptl/bits/pthreadtypes.h
45128         (pthread_rwlock_t): Change __pad1 to __rwelision.
45129         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
45130
45131 2014-06-13  Andi Kleen  <ak@linux.intel.com>
45132
45133         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
45134         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
45135         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
45136         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
45137
45138 2014-06-13  Meador Inge  <meadori@codesourcery.com>
45139
45140         [BZ #16996]
45141         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
45142         that the cached result has been set before returning it.
45143
45144 2014-06-12  Roland McGrath  <roland@hack.frob.com>
45145
45146         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
45147         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
45148         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
45149         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
45150         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
45151         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
45152
45153         * nptl/sysdeps/sparc/Makefile: Moved ...
45154         * sysdeps/sparc/nptl/Makefile: ... here.
45155         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
45156         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
45157         * nptl/sysdeps/sparc/tls.h: Moved ...
45158         * sysdeps/sparc/nptl/tls.h: ... here.
45159         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
45160         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
45161         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
45162         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
45163         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
45164         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
45165         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
45166         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
45167         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
45168         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
45169         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
45170         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
45171         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
45172         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
45173         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
45174         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
45175         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
45176         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
45177         Update #include.
45178         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
45179         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
45180         Update #include.
45181         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
45182         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
45183         Update #include.
45184         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
45185         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
45186         Update #include.
45187
45188         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
45189
45190         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
45191         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
45192
45193         * sysdeps/pthread/posix-timer.h: Include <list.h>.
45194         (struct list_links): Type removed.
45195         (struct thread_node, struct timer_node): Replace struct list_links
45196         with struct list_head.
45197         (list_unlink_ip): Likewise.
45198         * sysdeps/pthread/timer_routines.c
45199         (timer_free_list, thread_free_list, thread_active_list): Likewise.
45200         (list_append, list_insbefore): Likewise.
45201         (list_init): Function removed.
45202         (thread_init, init_module): Use INIT_LIST_HEAD instead.
45203         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
45204         * sysdeps/pthread/Makefile: ... here, new file.
45205
45206         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
45207         * sysdeps/nptl/Implies: ... here.
45208         * sysdeps/unix/sysv/linux/Implies: Add nptl.
45209         * nptl/sysdeps/pthread/list.h: Moved ...
45210         * include/list.h: ... here.
45211         * nptl/sysdeps/pthread/createthread.c: Moved ...
45212         * nptl/createthread.c: ... here.
45213         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
45214         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
45215         * nptl/pt-longjmp.c: ... here.
45216         * nptl/sysdeps/pthread/Makefile: Moved ...
45217         * sysdeps/nptl/Makefile: ... here.
45218         * nptl/sysdeps/pthread/Subdirs: Moved ...
45219         * sysdeps/nptl/Subdirs: ... here.
45220         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
45221         * sysdeps/nptl/aio_misc.h: ... here.
45222         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
45223         * sysdeps/nptl/bits/libc-lock.h: ... here.
45224         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
45225         * sysdeps/nptl/bits/libc-lockP.h: ... here.
45226         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
45227         * sysdeps/nptl/bits/stdio-lock.h: ... here.
45228         * nptl/sysdeps/pthread/configure: Moved ...
45229         * sysdeps/nptl/configure: ... here.
45230         * nptl/sysdeps/pthread/configure.ac: Moved ...
45231         * sysdeps/nptl/configure.ac: ... here.
45232         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
45233         * sysdeps/nptl/gai_misc.h: ... here.
45234         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
45235         * sysdeps/nptl/librt-cancellation.c: ... here.
45236         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
45237         * sysdeps/nptl/malloc-machine.h: ... here.
45238         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
45239         * sysdeps/nptl/pthread-functions.h: ... here.
45240         * nptl/sysdeps/pthread/pthread.h: Moved ...
45241         * sysdeps/nptl/pthread.h: ... here.
45242         * nptl/sysdeps/pthread/setxid.h: Moved ...
45243         * sysdeps/nptl/setxid.h: ... here.
45244         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
45245         * sysdeps/nptl/sigfillset.c: ... here.
45246         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
45247         * sysdeps/nptl/tcb-offsets.h: ... here.
45248         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
45249         * sysdeps/nptl/tst-mqueue8x.c: ... here.
45250         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
45251         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
45252         * nptl/sysdeps/pthread/allocalim.h: Moved ...
45253         * sysdeps/pthread/allocalim.h: ... here.
45254         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
45255         * sysdeps/pthread/bits/sigthread.h: ... here.
45256         * nptl/sysdeps/pthread/flockfile.c: Moved ...
45257         * sysdeps/pthread/flockfile.c: ... here.
45258         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
45259         * sysdeps/pthread/ftrylockfile.c: ... here.
45260         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
45261         * sysdeps/pthread/funlockfile.c: ... here.
45262         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
45263         * sysdeps/pthread/posix-timer.h: ... here.
45264         * nptl/sysdeps/pthread/timer_create.c: Moved ...
45265         * sysdeps/pthread/timer_create.c: ... here.
45266         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
45267         * sysdeps/pthread/timer_delete.c: ... here.
45268         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
45269         * sysdeps/pthread/timer_getoverr.c: ... here.
45270         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
45271         * sysdeps/pthread/timer_gettime.c: ... here.
45272         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
45273         * sysdeps/pthread/timer_routines.c: ... here.
45274         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
45275         * sysdeps/pthread/timer_settime.c: ... here.
45276         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
45277         * sysdeps/pthread/tst-timer.c: ... here.
45278         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
45279         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
45280
45281         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
45282         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
45283
45284         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
45285         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
45286         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
45287         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
45288         Update #include target.
45289         * nptl/sysdeps/i386/i686/Makefile: Moved ...
45290         * sysdeps/i386/i686/nptl/Makefile: ... here.
45291         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
45292         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
45293         Update #include target.
45294         * nptl/sysdeps/i386/i686/tls.h: Moved ...
45295         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
45296         * nptl/sysdeps/i386/Makefile: Moved ...
45297         * sysdeps/i386/nptl/Makefile: ... here.
45298         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
45299         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
45300         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
45301         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
45302         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
45303         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
45304         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
45305         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
45306         * sysdeps/i386/nptl/pthreaddef.h: ... here.
45307         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
45308         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
45309         * nptl/sysdeps/i386/tls.h: Moved ...
45310         * sysdeps/i386/nptl/tls.h: ... here.
45311
45312         * sysdeps/sh/Makefile [$(subdir) = csu]
45313         (gen-as-const-headers): Add tcb-offsets.sym.
45314         * nptl/sysdeps/sh/Makefile: File removed.
45315         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
45316         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
45317         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
45318         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
45319         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
45320         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
45321         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
45322         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
45323         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
45324         * sysdeps/sh/nptl/pthreaddef.h: ... here.
45325         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
45326         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
45327         * nptl/sysdeps/sh/tls.h: Moved ...
45328         * sysdeps/sh/nptl/tls.h: ... here.
45329         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
45330         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
45331         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
45332         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
45333         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
45334         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
45335         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
45336         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
45337         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
45338         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
45339         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
45340         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
45341         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
45342         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
45343         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
45344         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
45345         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
45346         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
45347         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
45348         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
45349         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
45350         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
45351         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
45352         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
45353         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
45354         Moved ...
45355         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
45356         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
45357         Moved ...
45358         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
45359         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
45360         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
45361         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
45362         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
45363         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
45364         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
45365         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
45366         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
45367         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
45368         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
45369         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
45370         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
45371         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
45372         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
45373         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
45374         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
45375         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
45376         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
45377
45378 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
45379
45380         * posix/spawn_faction_addopen.c: Include string.h.
45381
45382 2014-06-11  Roland McGrath  <roland@hack.frob.com>
45383
45384         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
45385         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
45386         * nptl/sysdeps/x86_64/Makefile: Moved ...
45387         * sysdeps/x86_64/nptl/Makefile: ... here.
45388         * nptl/sysdeps/x86_64/configure: Moved ...
45389         * sysdeps/x86_64/nptl/configure: ... here.
45390         * nptl/sysdeps/x86_64/configure.ac: Moved ...
45391         * sysdeps/x86_64/nptl/configure.ac: ... here.
45392         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
45393         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
45394         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
45395         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
45396         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
45397         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
45398         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
45399         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
45400         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
45401         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
45402         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
45403         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
45404         * nptl/sysdeps/x86_64/tls.h: Moved ...
45405         * sysdeps/x86_64/nptl/tls.h: ... here.
45406         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
45407         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
45408         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
45409         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
45410
45411         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
45412
45413 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45414
45415         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
45416
45417 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
45418
45419         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
45420         type.
45421         [POSIX] (off_t): Likewise.
45422         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
45423         [POSIX] (S_ISBLK): Require macro.
45424         [POSIX] (S_ISCHR): Likewise.
45425         [POSIX] (S_ISDIR): Likewise.
45426         [POSIX] (S_ISFIFO): Likewise.
45427         [POSIX] (S_ISREG): Likewise.
45428         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
45429         optional-macro.
45430         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
45431         type.
45432         [POSIX] (time_t): Likewise.
45433         [POSIX] (timer_t): Likewise.
45434
45435 2014-06-11  Florian Weimer  <fweimer@redhat.com>
45436
45437         [BZ #17048]
45438         * posix/spawn_int.h (struct __spawn_action): Make the path string
45439         non-const to support deallocation.
45440         * posix/spawn_faction_addopen.c
45441         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
45442         * posix/spawn_faction_destroy.c
45443         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
45444         path in all spawn_do_open actions.
45445         * posix/tst-spawn.c (do_test): Exercise the copy operation in
45446         posix_spawn_file_actions_addopen.
45447
45448 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
45449
45450         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
45451         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
45452         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
45453         conditional code always true.
45454         (__libc_vfork): New alias.
45455
45456 2014-06-11  Roland McGrath  <roland@hack.frob.com>
45457
45458         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
45459         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
45460
45461         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
45462
45463         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
45464         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
45465
45466         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
45467         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
45468
45469         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
45470         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
45471
45472 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
45473
45474         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
45475         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
45476         multiarch strcmp for PPC64.
45477         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
45478         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
45479         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
45480         multiarch optimizations.
45481         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
45482         (__libc_ifunc_impl_list): Likewise.
45483
45484 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45485
45486         * benchtests/scripts/validate_benchout.py: New script.
45487         * benchtests/Makefile (bench-func): Call it.
45488         * benchtests/scripts/benchout.schema.json: New file.
45489
45490 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
45491
45492         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
45493         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
45494         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
45495         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
45496         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
45497         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
45498         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
45499         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
45500         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
45501         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
45502         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
45503         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
45504         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
45505         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
45506         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
45507         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
45508         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
45509         Moved ...
45510         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
45511         ... here.
45512         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
45513         Moved ...
45514         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
45515         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
45516         Moved ...
45517         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
45518         ... here.
45519         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
45520         Moved ...
45521         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
45522         ... here.
45523         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
45524         Moved ...
45525         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
45526         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
45527         Moved ...
45528         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
45529         ... here.
45530         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
45531         Moved ...
45532         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
45533         ... here.
45534         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
45535         Moved ...
45536         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
45537         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
45538         Moved ...
45539         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
45540         ... here.
45541         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
45542         Moved ...
45543         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
45544         ... here.
45545         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
45546         Moved ...
45547         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
45548         ... here.
45549         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
45550         Moved ...
45551         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
45552         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
45553         Moved ...
45554         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
45555         ... here.
45556         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
45557         Moved ...
45558         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
45559         ... here.
45560         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
45561         Moved ...
45562         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
45563         ... here.
45564         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
45565         Moved ...
45566         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
45567         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
45568         Moved ...
45569         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
45570         ... here.
45571         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
45572         Moved ...
45573         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
45574         ... here.
45575         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
45576         Moved ...
45577         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
45578         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
45579         Moved ...
45580         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
45581         ... here.
45582         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
45583         Moved ...
45584         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
45585         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
45586         Moved ...
45587         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
45588         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
45589         Moved ...
45590         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
45591         ... here.
45592         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
45593         Moved ...
45594         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
45595         ... here.
45596         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
45597         Moved ...
45598         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
45599         ... here.
45600         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
45601         Moved ...
45602         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
45603         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
45604         Moved ...
45605         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
45606         ... here.
45607         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
45608         Moved ...
45609         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
45610         ... here.
45611         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
45612         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
45613         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
45614         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
45615         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
45616         Moved ...
45617         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
45618         ... here.
45619         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
45620         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
45621         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
45622         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
45623         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
45624         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
45625         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
45626         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
45627         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
45628         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
45629         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
45630         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
45631         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
45632         Moved ...
45633         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
45634         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
45635         Moved ...
45636         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
45637         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
45638         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
45639         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
45640         Moved ...
45641         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
45642         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
45643         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
45644         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
45645         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
45646         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
45647         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
45648
45649 2014-06-10  Wilco  <wdijkstr@arm.com>
45650
45651         * math/test-fenv-return.c: New file.
45652         * math/Makefile: Add new test test-fenv-return.
45653
45654 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
45655
45656         [BZ #17042]
45657         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
45658         when x - 1 is zero.
45659         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
45660         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
45661         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
45662         0.0L for an argument of 1.0L.
45663         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
45664         Likewise.
45665         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
45666         value when x - 1 is zero.
45667         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
45668         * sysdeps/i386/fpu/libm-test-ulps: Update.
45669         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45670
45671 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
45672
45673         [BZ #15119]
45674         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
45675
45676 2014-06-09  Roland McGrath  <roland@hack.frob.com>
45677
45678         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
45679         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
45680
45681 2014-06-09  Roland McGrath  <roland@hack.frob.com>
45682
45683         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
45684         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
45685
45686         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
45687         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
45688
45689         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
45690         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
45691
45692         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
45693         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
45694
45695         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
45696         if not already defined.
45697         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
45698         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
45699         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
45700         (TLS_INIT_TP): Use it.
45701         (TLS_DEFINE_INIT_TP): New macro.
45702         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
45703
45704 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
45705
45706         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
45707         constant.
45708         [POSIX] (IXANY): Likewise.
45709         [POSIX] (OLCUC): Likewise.
45710         [POSIX || POSIX2008] (CBAUD): Do not allow.
45711         [POSIX || POSIX2008] (DEFECHO): Likewise.
45712         [POSIX || POSIX2008] (ECHOCTL): Likewise.
45713         [POSIX || POSIX2008] (ECHOKE): Likewise.
45714         [POSIX || POSIX2008] (ECHOPRT): Likewise.
45715         [POSIX || POSIX2008] (EXTA): Likewise.
45716         [POSIX || POSIX2008] (EXTB): Likewise.
45717         [POSIX || POSIX2008] (FLUSHO): Likewise.
45718         [POSIX || POSIX2008] (LOBLK): Likewise.
45719         [POSIX || POSIX2008] (PENDIN): Likewise.
45720         [POSIX || POSIX2008] (SWTCH): Likewise.
45721         [POSIX || POSIX2008] (VDISCARD): Likewise.
45722         [POSIX || POSIX2008] (VDSUSP): Likewise.
45723         [POSIX || POSIX2008] (VLNEXT): Likewise.
45724         [POSIX || POSIX2008] (VREPRINT): Likewise.
45725         [POSIX || POSIX2008] (VSTATUS): Likewise.
45726         [POSIX || POSIX2008] (VWERASE): Likewise.
45727         (B*): Change to B[0123456789]*.
45728         * conform/data/time.h-data [POSIX || UNIX98]
45729         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
45730         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
45731         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
45732         [POSIX] (tm_*): Do not allow.
45733
45734 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
45735
45736         * Makefile (install): Don't set LANGUAGE.
45737         * Makefile.in (install): Likewise.
45738         * assert/Makefile (test-assert-ENV): Remove variable.
45739         (test-assert-perr-ENV): Likewise.
45740         * elf/Makefile (neededtest4-ENV): Likewise.
45741         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
45742         [$(cross-compiling) = no]: Don't set LANGUAGE.
45743         * io/ftwtest-sh (LANG): Remove variable.
45744         * libio/Makefile (tst-widetext-ENV): Likewise.
45745         * manual/install.texi (Running make install): Don't refer to
45746         environment settings for make install.
45747         * INSTALL: Regenerated.
45748         * nptl/tst-tls6.sh: Don't set LANG.
45749         * posix/globtest.sh (LANG): Remove variable.
45750         * string/Makefile (tester-ENV): Likewise.
45751         (inl-tester-ENV): Likewise.
45752         (noinl-tester-ENV): Likewise.
45753         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
45754         [$(cross-compiling) = no]: Don't set LANGUAGE.
45755         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
45756         without explicit environment settings.
45757
45758 2014-06-06  Roland McGrath  <roland@hack.frob.com>
45759
45760         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
45761         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
45762         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
45763         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
45764
45765 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
45766
45767         * crypt/crypt-private.h [DOS]: Add some includes taken from the
45768         other files in the crypt directory.
45769         * crypt/crypt.c: Remove duplicate includes.
45770         * crypt/crypt-entry.c: Likewise.
45771         * crypt/crypt_util.c: Likewise.
45772
45773 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
45774
45775         * Makeconfig (run-program-env): New variable.
45776         (run-program-prefix-before-env): Likewise.
45777         (run-program-prefix-after-env): Likewise.
45778         (run-program-prefix): Define in terms of new variables.
45779         (built-program-cmd-before-env): New variable.
45780         (built-program-cmd-after-env): Likewise.
45781         (built-program-cmd): Define in terms of new variables.
45782         (test-program-prefix-before-env): New variable.
45783         (test-program-prefix-after-env): Likewise.
45784         (test-program-prefix): Define in terms of new variables.
45785         (test-program-cmd-before-env): New variable.
45786         (test-program-cmd-after-env): Likewise.
45787         (test-program-cmd): Define in terms of new variables.
45788         * Rules (make-test-out): Use $(run-program-env).
45789         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
45790         (help): Do not mention environment variables.  Mention
45791         --timeoutfactor option.
45792         (timeoutfactor): New variable.
45793         (blacklist_exports): Remove function.
45794         (exports): Remove variable.
45795         (command): Do not include ${exports}.
45796         * manual/install.texi (Configuring and compiling): Do not mention
45797         test wrappers preserving environment variables.  Mention that last
45798         assignment to a variable must take precedence.
45799         * INSTALL: Regenerated.
45800         * benchtests/Makefile (run-bench): Use $(run-program-env).
45801         * catgets/Makefile ($(objpfx)test1.cat): Use
45802         $(built-program-cmd-before-env), $(run-program-env) and
45803         $(built-program-cmd-after-env).
45804         ($(objpfx)test2.cat): Do not specify environment variables
45805         explicitly.
45806         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
45807         $(run-program-env) and $(built-program-cmd-after-env).
45808         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
45809         $(run-program-env) and $(test-program-cmd-after-env).
45810         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
45811         explicitly.
45812         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
45813         run_program_env and test_program_cmd_after_env arguments.
45814         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
45815         * elf/tst-pathopt.sh: Use run_program_env argument.
45816         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
45817         $(test-wrapper-env) and $(run-program-env).
45818         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
45819         run_program_env arguments.
45820         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
45821         * intl/Makefile ($(objpfx)tst-gettext.out): Use
45822         $(test-program-prefix-before-env), $(run-program-env) and
45823         $(test-program-prefix-after-env).
45824         ($(objpfx)tst-gettext2.out): Likewise.
45825         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
45826         run_program_env and test_program_prefix_after_env arguments.
45827         * intl/tst-gettext2.sh: Likewise.
45828         * intl/tst-gettext4.sh: Do not set environment variables
45829         explicitly.
45830         * intl/tst-gettext6.sh: Likewise.
45831         * intl/tst-translit.sh: Likewise.
45832         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
45833         $(test-program-prefix-before-env), $(run-program-env) and
45834         $(test-program-prefix-after-env).
45835         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
45836         run_program_env and test_program_prefix_after_env arguments.
45837         * math/Makefile (run-regen-ulps): Use $(run-program-env).
45838         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
45839         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
45840         explicitly with each use of ${test_wrapper_env}.
45841         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
45842         $(test-program-prefix-before-env), $(run-program-env) and
45843         $(test-program-prefix-after-env).
45844         * posix/tst-getconf.sh: Do not set environment variables
45845         explicitly.
45846         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
45847         run_program_env and test_program_prefix_after_env arguments.
45848         * stdio-common/tst-printf.sh: Do not set environment variables
45849         explicitly.
45850         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
45851         $(test-program-prefix-before-env), $(run-program-env) and
45852         $(test-program-prefix-after-env).
45853         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
45854         run_program_env and test_program_prefix_after_env arguments.
45855         Split $test calls into $test_pre and $test.
45856         * timezone/Makefile (build-testdata): Use
45857         $(built-program-cmd-before-env), $(run-program-env) and
45858         $(built-program-cmd-after-env).
45859
45860 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45861
45862         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
45863         strlen for non SHARED builds.
45864
45865 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
45866
45867         * nptl/allocatestack.c (check_list): Inlined function...
45868         (__reclaim_stacks): ... here.
45869
45870 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
45871
45872         [BZ #15698]
45873         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
45874         memory overrun.
45875
45876 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
45877
45878         * Rules (make-test-out): Include
45879         LOCPATH=$(common-objpfx)localedata in default environment.
45880         * debug/Makefile (tst-chk1-ENV): Remove variable.
45881         (tst-chk2-ENV): Likewise.
45882         (tst-chk3-ENV): Likewise.
45883         (tst-chk4-ENV): Likewise.
45884         (tst-chk5-ENV): Likewise.
45885         (tst-chk6-ENV): Likewise.
45886         (tst-lfschk1-ENV): Likewise.
45887         (tst-lfschk2-ENV): Likewise.
45888         (tst-lfschk3-ENV): Likewise.
45889         (tst-lfschk4-ENV): Likewise.
45890         (tst-lfschk5-ENV): Likewise.
45891         (tst-lfschk6-ENV): Likewise.
45892         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
45893         (tst-iconv7-ENV): Likewise.
45894         * intl/Makefile (LOCPATH-ENV): Likewise.
45895         (tst-codeset-ENV): Likewise.
45896         (tst-gettext3-ENV): Likewise.
45897         (tst-gettext5-ENV): Likewise.
45898         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
45899         (tst-fopenloc-ENV): Likewise.
45900         (tst-fgetws-ENV): Remove variable.
45901         (tst-ungetwc1-ENV): Likewise.
45902         (tst-ungetwc2-ENV): Likewise.
45903         (bug-ungetwc2-ENV): Likewise.
45904         (tst-swscanf-ENV): Likewise.
45905         (bug-ftell-ENV): Likewise.
45906         (tst-fgetwc-ENV): Likewise.
45907         (tst-fseek-ENV): Likewise.
45908         (tst-ftell-partial-wide-ENV): Likewise.
45909         (tst-ftell-active-handler-ENV): Likewise.
45910         (tst-ftell-append-ENV): Likewise.
45911         * posix/Makefile (tst-fnmatch-ENV): Likewise.
45912         (tst-regexloc-ENV): Likewise.
45913         (bug-regex1-ENV): Likewise.
45914         (tst-regex-ENV): Likewise.
45915         (tst-regex2-ENV): Likewise.
45916         (bug-regex5-ENV): Likewise.
45917         (bug-regex6-ENV): Likewise.
45918         (bug-regex17-ENV): Likewise.
45919         (bug-regex18-ENV): Likewise.
45920         (bug-regex19-ENV): Likewise.
45921         (bug-regex20-ENV): Likewise.
45922         (bug-regex22-ENV): Likewise.
45923         (bug-regex23-ENV): Likewise.
45924         (bug-regex25-ENV): Likewise.
45925         (bug-regex26-ENV): Likewise.
45926         (bug-regex30-ENV): Likewise.
45927         (bug-regex32-ENV): Likewise.
45928         (bug-regex33-ENV): Likewise.
45929         (bug-regex34-ENV): Likewise.
45930         (bug-regex35-ENV): Likewise.
45931         (tst-rxspencer-ENV): Likewise.
45932         (tst-rxspencer-no-utf8-ENV): Likewise.
45933         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
45934         (tst-sscanf-ENV): Likewise.
45935         (tst-swprintf-ENV): Likewise.
45936         (tst-swscanf-ENV): Likewise.
45937         (test-vfprintf-ENV): Likewise.
45938         (scanf13-ENV): Likewise.
45939         (bug14-ENV): Likewise.
45940         (tst-grouping-ENV): Likewise.
45941         * stdlib/Makefile (tst-strtod-ENV): Likewise.
45942         (tst-strtod3-ENV): Likewise.
45943         (tst-strtod4-ENV): Likewise.
45944         (tst-strtod5-ENV): Likewise.
45945         (testmb2-ENV): Likewise./
45946         * string/Makefile (tst-strxfrm-ENV): Likewise.
45947         (tst-strxfrm2-ENV): Likewise.
45948         (bug-strcoll1-ENV): Likewise.
45949         (test-strcasecmp-ENV): Likewise.
45950         (test-strncasecmp-ENV): Likewise.
45951         * time/Makefile (tst-strptime-ENV): Likewise.
45952         (tst-ftime_l-ENV): Likewise.
45953         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
45954         (tst-mbrtowc-ENV): Likewise.
45955         (tst-wcrtomb-ENV): Likewise.
45956         (tst-mbrtowc2-ENV): Likewise.
45957         (tst-c16c32-1-ENV): Likewise.
45958         (tst-mbsnrtowcs-ENV): Likewise.
45959
45960 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
45961
45962         * manual/resource.texi (How to get information about the memory
45963         subsystem?): Fix typo.
45964         Reported by Peon de la Parra Ivan <peon@keba.com>
45965
45966 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
45967
45968         [BZ #16882]
45969         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
45970         (pthread_spin_lock): Branch out of spin loop to proper location.
45971         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
45972         (pthread_spin_lock): Likewise.
45973
45974         * nptl/tst-spin4.c: New test.
45975         * nptl/Makefile (tests): Add tst-spin4.
45976
45977 2014-06-03  Andreas Schwab  <schwab@suse.de>
45978
45979         [BZ #15946]
45980         * resolv/res_send.c (send_dg): Reload file descriptor after
45981         calling reopen.
45982
45983 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
45984
45985         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
45986
45987 2014-06-03  Richard Henderson  <rth@redhat.com>
45988
45989         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
45990         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
45991         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
45992         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
45993         in the SAVE_PID block.
45994         (__libc_vfork): New alias.
45995         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
45996
45997         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
45998         child in registers, not on the stack.  Remove RESET_PID conditionals.
45999         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
46000
46001 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
46002
46003         * sysdeps/aarch64/libm-test-ulps: Regenerate.
46004
46005 2014-06-03  Wilco  <wdijkstr@arm.com>
46006
46007         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
46008         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
46009         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
46010         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
46011         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
46012         Likewise.
46013
46014 2014-06-03  Wilco  <wdijkstr@arm.com>
46015
46016         * sysdeps/aarch64/fpu/math_private.h
46017         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
46018         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
46019         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
46020         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
46021         Fix declarations.
46022
46023 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
46024
46025         * crypt/crypt-private.h: Include ufc-crypt.h.
46026         (__b64_from_24bit): Declare extern.
46027         * crypt/crypt_util.c(__b64_from_24bit): New function.
46028         (b64t): New static const variable.
46029         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
46030         (b64t): Remove variable.
46031         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
46032         * crypt/sha256-crypt.c: Include crypt-private.h.
46033         (b64t): Remove variable.
46034         (__sha256_crypt_r): Remove b64_from_24bit and replace
46035         with __b64_from_24bit.
46036         * crypt/sha512-crypt.c: Likewise.
46037
46038 2014-06-02  Roland McGrath  <roland@hack.frob.com>
46039
46040         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
46041         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
46042         Label the code __libc_vfork rather than __vfork.
46043         [!NOT_IN_libc] (vfork): Define as weak alias.
46044         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
46045         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
46046         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
46047
46048 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
46049
46050         * malloc/malloc.c (malloc_info): Fix format specifier for
46051         n_mmaps.
46052
46053 2014-06-02  Wilco  <wdijkstr@arm.com>
46054
46055         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
46056         FPCR write.
46057
46058 2014-06-02  Wilco  <wdijkstr@arm.com>
46059
46060         [BZ #17009]
46061         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
46062         Rewrite to reduce FPCR/FPSR accesses.
46063
46064 2014-06-01  David S. Miller  <davem@davemloft.net>
46065
46066         * sysdeps/sparc/fpu/libm-test-ulps: Update.
46067
46068 2014-05-31  David S. Miller  <davem@davemloft.net>
46069
46070         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
46071         to occur in round to nearest mode when |x| >= 2.0
46072
46073 2014-05-30  Richard Henderson  <rth@twiddle.net>
46074
46075         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
46076         (PSEUDO_RET_NOERRNO): Remove.
46077         (ret): Don't redefine.
46078         (ret_NOERRNO): Define in terms of ret.
46079         (ret_ERRVAL): Likewise.
46080
46081         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
46082         use of PSEUDO_RET; perform the error check directly.
46083
46084 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
46085
46086         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
46087         with __int128_t.
46088
46089 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
46090
46091         * malloc/malloc (malloc_info): Fix formatting.
46092
46093 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
46094             Roland McGrath  <roland@hack.frob.com>
46095
46096         * malloc/malloc (malloc_info): Also print mmapped statistics.
46097
46098 2014-05-30  Roland McGrath  <roland@hack.frob.com>
46099
46100         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
46101         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
46102
46103 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
46104
46105         * malloc/malloc.c (malloc_info): Inline mi_arena.
46106
46107 2014-05-29  Richard Henderson  <rth@twiddle.net>
46108
46109         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
46110         Remove comma before expanding ASM_ARGS_##nr.
46111         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
46112         Make _x0 a strict output; make _x8 a strict input; adjust expansion
46113         of ASM_ARGS_##nr.
46114         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
46115         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
46116         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
46117         (ASM_ARGS_1): Add leading comma.
46118
46119         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
46120         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
46121         to __errno_location.
46122         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
46123         Remove the expected plt for __errno_location.
46124
46125         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
46126         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
46127         call to __read_tp.
46128
46129         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
46130         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
46131         it and break it down.
46132         (DOCARGS_0, DOCARGS_1): Do nothing.
46133         (DOCARGS_2): Update to store into the new stack frame.
46134         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
46135         (UNDOCARGS_1): Update to restore from the new stack frame.
46136         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
46137         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
46138
46139         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
46140         (SINGLE_THREAD_P): New parameter for result regno.
46141         (PSEUDO): Update to match; use cbz instead of beq.
46142
46143         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
46144         Use ENTRY to define the _nocancel entry point.  Share the syscall
46145         and syscall error check paths with the cancel path.
46146         (PSEUDO_END): New.
46147
46148         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
46149         whitespace; tabs before and after asm mnemonics.
46150
46151 2014-05-29  Eric Wong  <normalperson@yhbt.net>
46152
46153         [BZ #15132]
46154         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
46155         Call fstat64 or stat64 internally, depending on arguments passed.
46156         Replace stat buffer argument with file descriptor argument.
46157         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
46158         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
46159         Pass fd to __internal_statvfs instead of calling fstat64.
46160         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
46161         Pass fd to __internal_statvfs64 instead of calling fstat64.
46162         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
46163         Pass -1 to __internal_statvfs instead of calling stat64.
46164         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
46165         Pass -1 to __internal_statvfs64 instead of calling stat64.
46166
46167 2014-05-28  Roland McGrath  <roland@hack.frob.com>
46168
46169         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
46170         that was previously under [RESET_PID].
46171         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
46172
46173         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
46174         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
46175
46176 2014-05-27  Roland McGrath  <roland@hack.frob.com>
46177
46178         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
46179
46180         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
46181         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
46182
46183 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
46184
46185         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
46186
46187 2014-05-27  Andreas Schwab  <schwab@suse.de>
46188
46189         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
46190         TLS_INIT_TP macro.
46191         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
46192         * elf/rtld.c (init_tls, dl_main): Likewise.
46193         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
46194         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
46195         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
46196         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
46197         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
46198         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
46199         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
46200         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
46201         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
46202         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
46203         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
46204         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
46205         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
46206         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
46207         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
46208         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
46209         * sysdeps/generic/tls.h: Update description.
46210
46211 2014-05-27  Will Newton  <will.newton@linaro.org>
46212
46213         [BZ #16990]
46214         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
46215         and restore r2 rather than just restoring.
46216
46217 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
46218
46219         [BZ #16724]
46220         * libio/tst-ftell-append.c: New test case.
46221         * libio/Makefile (tests): Add test case.
46222         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
46223         append mode.
46224         * libio/wfileops.c (do_ftell_wide): Likewise.
46225
46226 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46227
46228         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
46229
46230         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
46231         ...
46232         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
46233         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
46234         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
46235         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
46236         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
46237         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
46238         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
46239         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
46240         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
46241         Moved ...
46242         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
46243         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
46244         Moved ...
46245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
46246         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
46247         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
46248         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
46249         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
46250         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
46251         ...
46252         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
46253         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
46254         Moved ...
46255         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
46256         here.
46257         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
46258         ...
46259         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
46260         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
46261         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
46262
46263         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
46264         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
46265         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
46266         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
46267
46268         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
46269         merge into ...
46270         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
46271         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
46272         ...
46273         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
46274         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
46275         ...
46276         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
46277         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
46278         Moved ...
46279         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
46280         here.
46281         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
46282         Moved ...
46283         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
46284         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
46285         Moved ...
46286         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
46287
46288         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
46289         conditional [RESET_PID].
46290         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
46291         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
46292         removed.
46293         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
46294         removed.
46295
46296         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
46297         <tcb-offsets.h>.
46298         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
46299         (__libc_vfork): New strong alias.
46300         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
46301         removed.
46302         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
46303         Removed.
46304
46305         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
46306         <tcb-offsets.h>.
46307         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
46308         (__libc_vfork): New strong alias.
46309         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
46310         removed.
46311         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
46312         removed.
46313
46314 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
46315
46316         * malloc/malloc.c (mi_arena): New function.
46317         (malloc_info): Remove nested function mi_arena. Call non-nosted
46318         function mi_arena.
46319
46320 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46321
46322         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
46323         by insrwi.
46324         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
46325         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
46326         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
46327         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
46328         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
46329         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
46330         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
46331
46332 2014-05-26  Andreas Schwab  <schwab@suse.de>
46333
46334         [BZ #16984]
46335         * locale/programs/repertoire.c (repertoire_read): Add slash
46336         between I18NPATH element and file name.
46337         * locale/programs/locfile.c (locfile_read): Likewise.
46338
46339 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
46340
46341         * nptl/pthread_mutexattr_settype.c
46342         (__pthread_mutexattr_settype):
46343         Disable lock elision for PTHREAD_MUTEX_NORMAL.
46344
46345 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
46346
46347         * nptl/tst-mutex5 (do_test):
46348         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
46349
46350 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
46351
46352         * benchtests/README: Document 'init' directive.
46353         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
46354         BENCH_INIT.
46355         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
46356         (parse_file): Recognize 'init' directive.
46357
46358 2014-05-26  Kyle McMartin  <kyle@redhat.com>
46359
46360         [BZ #16796]
46361         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
46362         alignment of struct pthread.
46363
46364 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
46365
46366         [BZ #16878]
46367         * nscd/netgroupcache.c (addgetnetgrentX): Look for
46368         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
46369         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
46370         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
46371
46372 2014-05-25  Richard Henderson  <rth@twiddle.net>
46373
46374         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
46375         (SINGLE_THREAD_P_PIC): Remove.
46376         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
46377         (SINGLE_THREAD_P_PIC): Remove.
46378
46379         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
46380         branch to syscall error ...
46381         (PSEUDO): ... here.
46382         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
46383         from __local_syscall_error to .Lsyscall_error.
46384         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
46385         (SYSCALL_ERROR): Update label name.
46386
46387         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
46388         Do not use DOARGS/UNDOARGS.
46389         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
46390         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
46391         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
46392         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
46393         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
46394
46395         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
46396         block comment.
46397
46398         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
46399         define if !NOT_IN_libc.
46400         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
46401         define with non-default symbol versions.
46402
46403 2014-05-23  Richard Henderson  <rth@twiddle.net>
46404
46405         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
46406         (vfork, __vfork): Define via compat_symbol.
46407
46408         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
46409         [!HAVE_IFUNC] (vfork_compat): Remove.
46410         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
46411
46412 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
46413
46414         [BZ #16978]
46415         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
46416         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
46417         variable.
46418
46419 2014-05-23  Richard Henderson  <rth@twiddle.net>
46420
46421         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
46422         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
46423         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
46424         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
46425
46426         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
46427         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
46428         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
46429         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
46430         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
46431         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
46432         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
46433         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
46434         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
46435         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
46436         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
46437         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
46438         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
46439         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
46440         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
46441         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
46442         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
46443         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
46444         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
46445         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
46446         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
46447         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
46448         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
46449         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
46450         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
46451         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
46452         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
46453         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
46454         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
46455         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
46456         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
46457         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
46458         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
46459         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
46460         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
46461         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
46462         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
46463         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
46464         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
46465         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
46466         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
46467         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
46468         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
46469         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
46470         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
46471         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
46472         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
46473         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
46474         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
46475         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
46476         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
46477         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
46478         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
46479         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
46480         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
46481         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
46482
46483         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
46484         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
46485         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
46486         before exiting on error.
46487         (__libc_vfork): New strong alias.
46488         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
46489         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
46490
46491         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
46492         that was previously under [RESET_PID].
46493         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
46494
46495         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
46496
46497 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
46498
46499         [BZ #16977]
46500         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
46501         value when x - 1 is zero.
46502         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
46503         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
46504         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
46505         0.0L for an argument of 1.0L.
46506         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
46507         Likewise.
46508         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
46509         value when x - 1 is zero.
46510         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
46511         * sysdeps/i386/fpu/libm-test-ulps: Update.
46512         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46513
46514 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
46515
46516         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
46517         alphasort and versionsort.
46518
46519 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46520
46521         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
46522         macro.
46523         [copysignf]: Likewise.
46524
46525 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
46526
46527         * crypt/md5-crypt.c: Fix formatting.
46528
46529 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
46530
46531         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
46532         (b64_from_24bit): New function.
46533
46534 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46535
46536         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
46537         libc_hidden_builtin_def to ifunc.
46538         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
46539         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
46540
46541 2014-05-21  Roland McGrath  <roland@hack.frob.com>
46542
46543         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
46544         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
46545
46546 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
46547
46548         * nscd/Depend (linuxthreads): Remove.
46549         (nptl): Add.
46550         * resolv/Depend (linuxthreads): Remove.
46551         * rt/Depend (linuxthreads): Remove.
46552
46553         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
46554         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
46555         $(common-objpfx)elf/.
46556         (link-libc-before-gnulib): Likewise.
46557         (elfobjdir): Remove variable.
46558         * Makefile (install): Use $(elf-objpfx) instead of
46559         $(common-objpfx)elf/.
46560         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
46561         $(elfobjdir)/.
46562         (link-libc-deps): Likewise.
46563         ($(common-objpfx)libc.so): Likewise.
46564         ($(common-objpfx)linkobj/libc.so): Likewise.
46565         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
46566         instead of $(common-objpfx)elf/.
46567         (symbolic-link-list): Likewise.
46568         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
46569         [$(cross-compiling) = no]: Likewise.
46570         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
46571         $(elfobjdir)/.
46572         (static-gnulib-arch): Likewise.
46573         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
46574         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
46575         $(common-objpfx)elf/.
46576
46577 2014-05-21  Richard Henderson  <rth@redhat.com>
46578
46579         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
46580         (SINGLE_THREAD_P): Use the correct width load.  Fold
46581         into the ldr offset.
46582
46583         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
46584         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
46585
46586 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
46587
46588         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
46589         (libgcc_s_resume): Use __attribute_used__.
46590         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
46591         Likewise.
46592
46593 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46594
46595         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
46596         optimization when used with float constants.
46597
46598         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
46599
46600 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
46601
46602         [BZ #16915]
46603         * locale/nl_langinfo_l.c: Make direct reference to every
46604         _nl_current_CATEGORY symbol.
46605         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
46606         (tests-static): Add tst-langinfo-static.
46607         (tests-special): Add tst-langinfo-static.out.
46608         ($(objpfx)tst-langinfo.out): Redirect output.
46609         ($(objpfx)tst-langinfo-static.out): New.
46610         * localedata/tst-langinfo.sh: Send output to stdout.
46611         * localedata/tst-langinfo-static.c: New file.
46612
46613         [BZ #16965]
46614         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
46615         when the shift amount is modulo the limb size.
46616
46617 2014-05-20  Richard Henderson  <rth@redhat.com>
46618
46619         [BZ #16967]
46620         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
46621         Change type of sa_flags from unsigned int to int.
46622
46623         [BZ #16966]
46624         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
46625
46626         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
46627
46628 2014-05-20  Will Newton  <will.newton@linaro.org>
46629
46630         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
46631         Test the return value of the system call in the nocancel case.
46632
46633 2014-05-20  Will Newton  <will.newton@linaro.org>
46634             Yvan Roux  <yvan.roux@linaro.org>
46635
46636         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
46637         #include of asm/ptrace.h.
46638         (PTRACE_GET_THREAD_AREA): Remove #undef.
46639         (PTRACE_GETHBPREGS): Likewise.
46640         (PTRACE_SETHBPREGS): Likewise.
46641         (struct user_regs_struct): New structure.
46642         (struct user_fpsimd_struct): New structure.
46643         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
46644         #include of asm/ptrace.h and second #include of sys/user.h.
46645         (PTRACE_GET_THREAD_AREA): Remove #undef.
46646         (PTRACE_GETHBPREGS): Likewise.
46647         (PTRACE_SETHBPREGS): Likewise.
46648         (ELF_NGREG): Use new struct user_regs_struct.
46649         (elf_fpregset_t): Use new struct user_fpsimd_struct.
46650
46651 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46652
46653         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
46654         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
46655
46656 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
46657
46658         [BZ #16958]
46659         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
46660         membar to avoid block loads/stores to overlap previous stores.
46661
46662 2014-05-17  Richard Henderson  <rth@redhat.com>
46663
46664         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
46665         Create the __##syscall_name##_nocancel entry point.
46666         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
46667         Remove; let the sysdep-cancel.h code create it.
46668
46669 2014-05-17  David S. Miller  <davem@davemloft.net>
46670
46671         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
46672         Protect with __USE_GNU.
46673         (TIOCSET_TEMPT): Likewise.
46674         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
46675         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
46676         these are already provided in bits/ioctl-types.h
46677
46678 2014-05-16  Roland McGrath  <roland@hack.frob.com>
46679
46680         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
46681         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
46682
46683         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
46684         Use wait4 regardless of [__NR_waitpid].
46685
46686 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
46687
46688         PR libgcc/60166
46689         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
46690         (_FP_NANSIGN_Q): Set the quiet bit.
46691
46692 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
46693
46694         * benchtests/Makefile
46695         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
46696         not $(common-objpfx)math/libm.so.
46697         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
46698         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
46699         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
46700         $(common-objpfx)dlfcn/libdl.so.
46701         ($(objpfx)tst-audit8): Depend on $(libm), not
46702         $(common-objpfx)math/libm.so.
46703         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
46704         not $(common-objpfx)dlfcn/libdl.so.
46705         * math/Makefile
46706         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
46707         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
46708         [$(build-shared) = yes].
46709         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
46710         $(common-objpfx)nptl/libpthread.so.
46711         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
46712         $(common-objpfx)math/libm.so$(libm.so-version) or
46713         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
46714         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
46715         $(common-objpfx)dlfcn/libdl.so.
46716         * setjmp/Makefile (link-libm): Remove variable.
46717         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
46718         * stdio-common/Makefile (link-libm): Remove variable.
46719         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
46720         * stdlib/Makefile (link-libm): Remove variable.
46721         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
46722         ($(objpfx)tst-strtod-round): Likewise.
46723         ($(objpfx)tst-tininess): Likewise.
46724         ($(objpfx)tst-strtod-underflow): Likewise.
46725         ($(objpfx)tst-strtod6): Likewise.
46726         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
46727         $(libdl), not $(common-objpfx)nptl/libpthread.so and
46728         $(common-objpfx)dlfcn/libdl.so.
46729
46730 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46731
46732         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
46733         BSD terminal modes definitions.
46734
46735 2014-05-16  Roland McGrath  <roland@hack.frob.com>
46736
46737         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
46738         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
46739
46740         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
46741         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
46742         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
46743         Don't do #include_next.
46744         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
46745         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
46746         Don't do #include_next.
46747         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
46748         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
46749         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
46750         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
46751
46752 2014-05-16  Allan McRae  <allan@archlinux.org>
46753
46754         * po/sv.po: Update Swedish translation from translation project.
46755
46756         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
46757         in sed expression.
46758
46759 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
46760
46761         [BZ #16917]
46762         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
46763         errno if the TIOCGPTN ioctl fails with an error different than
46764         EINVAL.
46765         * login/tst-ptsname.c: New file.
46766         * login/Makefile (tests): Add tst-ptsname.
46767
46768         [BZ #16943]
46769         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
46770         and prlimit64.
46771
46772 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
46773
46774         [BZ #16849]
46775         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
46776         herrno to return EAI_AGAIN.
46777
46778 2014-05-14  Roland McGrath  <roland@hack.frob.com>
46779
46780         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
46781         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
46782         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
46783         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
46784         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
46785         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
46786         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
46787         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
46788         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
46789         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
46790         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
46791         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
46792         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
46793         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
46794         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
46795         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
46796         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
46797         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
46798         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
46799         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
46800         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
46801         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
46802         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
46803         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
46804         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
46805         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
46806         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
46807         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
46808         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
46809         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
46810         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
46811         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
46812         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
46813         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
46814         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
46815         Moved ...
46816         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
46817         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
46818         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
46819         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
46820         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
46821         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
46822         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
46823         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
46824         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
46825         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
46826         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
46827         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
46828         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
46829         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
46830         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
46831         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
46832         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
46833         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
46834         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
46835         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
46836         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
46837         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
46838         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
46839         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
46840         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
46841         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
46842         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
46843         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
46844         Moved ...
46845         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
46846         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
46847         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
46848         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
46849         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
46850         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
46851         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
46852         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
46853         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
46854         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
46855         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
46856         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
46857         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
46858         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
46859         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
46860         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
46861         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
46862         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
46863         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
46864         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
46865         Moved ...
46866         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
46867         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
46868         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
46869
46870         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
46871         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
46872         (libpthread-sysdep_routines): Add elision-related stuff here instead.
46873         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
46874         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
46875         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
46876         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
46877         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
46878         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
46879         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
46880         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
46881         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
46882         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
46883         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
46884         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
46885         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
46886         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
46887         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
46888         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
46889         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
46890         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
46891         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
46892         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
46893         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
46894         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
46895         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
46896         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
46897         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
46898         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
46899         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
46900         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
46901
46902         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
46903         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
46904
46905         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
46906         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
46907         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
46908         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
46909         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
46910         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
46911         Moved ...
46912         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
46913         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
46914         Moved ...
46915         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
46916         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
46917         Moved ...
46918         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
46919         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
46920         Moved ...
46921         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
46922         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
46923         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
46924         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
46925         Moved ...
46926         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
46927         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
46928         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
46929         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
46930         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
46931         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
46932         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
46933         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
46934         Moved ...
46935         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
46936         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
46937         Moved ...
46938         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
46939         ... here.
46940         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
46941         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
46942         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
46943         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
46944         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
46945         Moved ...
46946         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
46947         ... here.
46948         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
46949         Moved ...
46950         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
46951         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
46952         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
46953         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
46954         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
46955         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
46956         Moved ...
46957         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
46958         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
46959         Moved ...
46960         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
46961         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
46962         Moved ...
46963         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
46964         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
46965         Moved ...
46966         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
46967         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
46968         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
46969         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
46970         Moved ...
46971         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
46972         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
46973         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
46974         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
46975         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
46976         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
46977         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
46978         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
46979         Moved ...
46980         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
46981         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
46982         Moved ...
46983         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
46984         ... here.
46985         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
46986         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
46987         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
46988         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
46989         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
46990         Moved ...
46991         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
46992         ... here.
46993         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
46994         Moved ...
46995         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
46996         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
46997         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
46998         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
46999         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
47000         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
47001         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
47002         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
47003         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
47004         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
47005         Moved ...
47006         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
47007         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
47008         Moved ...
47009         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
47010         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
47011         Moved ...
47012         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
47013         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
47014         Moved ...
47015         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
47016         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
47017         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
47018         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
47019         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
47020         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
47021         Moved ...
47022         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
47023         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
47024         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
47025         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
47026         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
47027         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
47028         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
47029         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
47030         Moved ...
47031         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
47032         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
47033         Moved ...
47034         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
47035         ... here.
47036         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
47037         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
47038         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
47039         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
47040         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
47041         Moved ...
47042         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
47043         ... here.
47044         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
47045         Moved ...
47046         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
47047         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
47048         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
47049         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
47050         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
47051         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
47052         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
47053         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
47054         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
47055         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
47056         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
47057
47058         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
47059         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
47060
47061         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
47062         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
47063
47064         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
47065         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
47066         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
47067         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
47068         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
47069         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
47070         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
47071         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
47072         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
47073         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
47074         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
47075         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
47076         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
47077         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
47078         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
47079         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
47080         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
47081         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
47082         Moved ...
47083         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
47084         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
47085         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
47086         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
47087         Moved ...
47088         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
47089         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
47090         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
47091         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
47092         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
47093         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
47094         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
47095         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
47096         Moved ...
47097         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
47098         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
47099         Moved ...
47100         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
47101         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
47102         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
47103         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
47104         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
47105         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
47106         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
47107         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
47108         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
47109         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
47110         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
47111         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
47112         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
47113         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
47114         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
47115         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
47116         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
47117
47118         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
47119         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
47120         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
47121         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
47122         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
47123
47124         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
47125         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
47126         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
47127         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
47128         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
47129         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
47130         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
47131         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
47132         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
47133         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
47134
47135         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
47136         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
47137
47138         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
47139         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
47140         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
47141         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
47142         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
47143         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
47144         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
47145         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
47146         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
47147         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
47148         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
47149         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
47150         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
47151         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
47152         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
47153         Update #include.
47154         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
47155         Likewise.
47156         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
47157         Likewise.
47158         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
47159         Likewise.
47160         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
47161         Likewise.
47162         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
47163         Likewise.
47164         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
47165         Likewise.
47166         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
47167         Likewise.
47168         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
47169         Likewise.
47170         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
47171         Likewise.
47172         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
47173         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
47174         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
47175         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
47176         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
47177         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
47178         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
47179         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
47180         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
47181         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
47182         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
47183         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
47184         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
47185         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
47186         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
47187
47188         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
47189         that was previously under [RESET_PID].
47190         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
47191         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
47192         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
47193
47194         * sysdeps/i386/nptl/Implies: New file.
47195         * sysdeps/x86_64/nptl/Implies: New file.
47196         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
47197         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
47198         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
47199         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
47200
47201         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
47202         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
47203         (__libc_vfork): New strong alias.
47204         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
47205         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
47206
47207         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
47208         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
47209         (__libc_vfork): New strong alias.
47210         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
47211         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
47212
47213         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
47214         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
47215         (__libc_vfork): New strong alias.
47216         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
47217         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
47218         * nptl/pt-vfork.c: New file.
47219         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
47220         (libpthread: GLIBC_2.20): New version set (empty).
47221
47222 2014-05-14  Will Newton  <will.newton@linaro.org>
47223
47224         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
47225         rather than #if.
47226
47227 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
47228
47229         [BZ #16564]
47230         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
47231         arguments with exponent 65 or above.
47232         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
47233         arguments 0x1p113L or above.
47234         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
47235         to arguments 0x1p107L or above.
47236         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
47237         positive arguments with exponent 65 or above.
47238         * math/auto-libm-test-in: Add more tests of log1p.
47239         * math/auto-libm-test-out: Regenerated.
47240
47241         [BZ #16928]
47242         * math/s_cacos.c (__cacos): Ensure zero real part of result from
47243         non-finite arguments is +0.
47244         * math/s_cacosf.c (__cacosf): Likewise.
47245         * math/s_cacosl.c (__cacosl): Likewise.
47246         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
47247         * sysdeps/i386/fpu/libm-test-ulps: Update.
47248         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47249
47250         [BZ #16927]
47251         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
47252         value.
47253         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
47254         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
47255         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
47256         for explicit high bit of mantissa when testing for argument equal
47257         to 1.
47258         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
47259         * sysdeps/i386/fpu/libm-test-ulps: Update.
47260         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47261
47262         [BZ #16516]
47263         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
47264         (__erf): Scale by 16 instead of 8 in potentially underflowing
47265         case.  Ensure exception if result actually underflows.
47266         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
47267         (__erff): Scale by 16 instead of 8 in potentially underflowing
47268         case.  Ensure exception if result actually underflows.
47269         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
47270         (efx8): Remove variable.
47271         (__erfl): Scale by 16 instead of 8 in potentially underflowing
47272         case.  Ensure exception if result actually underflows.
47273         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
47274         (efx8): Remove variable.
47275         (__erfl): Scale by 16 instead of 8 in potentially underflowing
47276         case.  Ensure exception if result actually underflows.
47277         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
47278         (efx8): Remove variable.
47279         (__erfl): Scale by 16 instead of 8 in potentially underflowing
47280         case.  Ensure exception if result actually underflows.
47281         * math/auto-libm-test-in: Add more tests of erf.
47282         * math/auto-libm-test-out: Regenerated.
47283
47284 2014-05-14  Andreas Schwab  <schwab@suse.de>
47285
47286         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
47287         Remove code conditionalized on USE___THREAD.
47288
47289         * config.h.in (HAVE_PT_CHOWN): Define as 0.
47290         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
47291         not definedness.
47292
47293 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
47294
47295         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
47296         Define unconditionally.
47297         (__ASSUME_O_CLOEXEC): Likewise.
47298         (__ASSUME_SOCK_CLOEXEC): Likewise.
47299         (__ASSUME_IN_NONBLOCK): Likewise.
47300         (__ASSUME_PIPE2): Likewise.
47301         (__ASSUME_EVENTFD2): Likewise.
47302         (__ASSUME_SIGNALFD4): Likewise.
47303         (__ASSUME_DUP3): Likewise.
47304         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
47305         (__ASSUME_DUP3): Do not define.
47306         (__ASSUME_EVENTFD2): Likewise.
47307         (__ASSUME_IN_NONBLOCK): Likewise.
47308         (__ASSUME_O_CLOEXEC): Likewise.
47309         (__ASSUME_PIPE2): Likewise.
47310         (__ASSUME_SIGNALFD4): Likewise.
47311         (__ASSUME_SOCK_CLOEXEC): Likewise.
47312         (__ASSUME_UTIMES): Undefine.
47313         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
47314         (__ASSUME_UTIMES): Do not define.
47315         (__ASSUME_O_CLOEXEC): Likewise.
47316         (__ASSUME_SOCK_CLOEXEC): Likewise.
47317         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
47318         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
47319         0x020621].
47320         (__ASSUME_PIPE2): Likewise.
47321         (__ASSUME_EVENTFD2): Likewise.
47322         (__ASSUME_SIGNALFD4): Likewise.
47323         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
47324         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
47325         Do not define.
47326         (__ASSUME_EVENTFD2): Likewise.
47327         (__ASSUME_SIGNALFD4): Likewise.
47328         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
47329         (__ASSUME_32BITUIDS): Likewise.
47330         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
47331         (__ASSUME_IPC64): Likewise.
47332         (__ASSUME_ST_INO_64_BIT): Likewise.
47333         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
47334         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
47335         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
47336         (__ASSUME_UTIMES): Do not define.
47337         (__ASSUME_PSELECT): Likewise.
47338         (__ASSUME_PPOLL): Likewise.
47339         (__ASSUME_O_CLOEXEC): Likewise.
47340         (__ASSUME_SOCK_CLOEXEC): Likewise.
47341         (__ASSUME_IN_NONBLOCK): Likewise.
47342         (__ASSUME_PIPE2): Likewise.
47343         (__ASSUME_EVENTFD2): Likewise.
47344         (__ASSUME_SIGNALFD4): Likewise.
47345         (__ASSUME_DUP3): Likewise.
47346         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
47347         (__ASSUME_UTIMES): Likewise.
47348         (__ASSUME_O_CLOEXEC): Likewise.
47349         (__ASSUME_SOCK_CLOEXEC): Likewise.
47350         (__ASSUME_IN_NONBLOCK): Likewise.
47351         (__ASSUME_PIPE2): Likewise.
47352         (__ASSUME_EVENTFD2): Likewise.
47353         (__ASSUME_SIGNALFD4): Likewise.
47354         (__ASSUME_DUP3): Likewise.
47355         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
47356         (__ASSUME_UTIMES): Likewise.
47357         (__ASSUME_O_CLOEXEC): Likewise.
47358         (__ASSUME_SOCK_CLOEXEC): Likewise.
47359         (__ASSUME_IN_NONBLOCK): Likewise.
47360         (__ASSUME_PIPE2): Likewise.
47361         (__ASSUME_EVENTFD2): Likewise.
47362         (__ASSUME_SIGNALFD4): Likewise.
47363         (__ASSUME_DUP3): Likewise.
47364         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
47365         Likewise.
47366         (__ASSUME_UTIMES): Likewise.
47367         (__ASSUME_EVENTFD2): Likewise.
47368         (__ASSUME_SIGNALFD4): Likewise.
47369         * sysdeps/unix/sysv/linux/tile/kernel-features.h
47370         (__ASSUME_O_CLOEXEC): Likewise.
47371         (__ASSUME_SOCK_CLOEXEC): Likewise.
47372         (__ASSUME_IN_NONBLOCK): Likewise.
47373         (__ASSUME_PIPE2): Likewise.
47374         (__ASSUME_EVENTFD2): Likewise.
47375         (__ASSUME_SIGNALFD4): Likewise.
47376         (__ASSUME_DUP3): Likewise.
47377         (__ASSUME_UTIMES): Undefine.
47378
47379         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
47380         feclearexcept.  Remove symbol versioning code.
47381         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
47382         symbol versioning code.
47383         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
47384         symbol versioning code.
47385         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
47386         feupdateenv.  Remove symbol versioning code.
47387         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
47388         fegetexceptflag.  Remove symbol versioning code.
47389         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
47390         fesetexceptflag.  Remove symbol versioning code.
47391         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
47392         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
47393         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
47394         (__posix_fadvise64_l32): Remove prototype.
47395         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
47396         code.
47397
47398 2014-05-13  Roland McGrath  <roland@hack.frob.com>
47399
47400         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
47401         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
47402         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
47403         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
47404
47405 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
47406
47407         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
47408         current working directory
47409
47410 2014-05-13  Roland McGrath  <roland@hack.frob.com>
47411
47412         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
47413         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
47414         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
47415         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
47416         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
47417         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
47418         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
47419         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
47420         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
47421         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
47422         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
47423         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
47424         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
47425         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
47426         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
47427         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
47428         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
47429         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
47430         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
47431         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
47432         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
47433         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
47434         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
47435         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
47436         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
47437         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
47438         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
47439         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
47440         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
47441         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
47442         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
47443         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
47444         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
47445         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
47446         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
47447         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
47448         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
47449         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
47450         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
47451         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
47452         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
47453         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
47454
47455         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
47456         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
47457
47458         * sysdeps/unix/sysv/linux/arm/Makefile
47459         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
47460         Add rt-aeabi_unwind_cpp_pr1.
47461         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
47462         Add nptl-aeabi_unwind_cpp_pr1.
47463         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
47464         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
47465         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
47466         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
47467         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
47468         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
47469
47470         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
47471         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
47472         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
47473         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
47474
47475         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
47476         Deconditionalize the code that was previously under [RESET_PID].
47477         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
47478
47479         * sysdeps/generic/exit-thread.h: New file.
47480         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
47481         * include/unistd.h (__exit_thread): Remove declaration.
47482         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
47483         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
47484         * csu/libc-start.c: Include <exit-thread.h>.
47485         (LIBC_START_MAIN): Pass no argument to __exit_thread.
47486         * nptl/pthread_create.c: Include <exit-thread.h>.
47487         (start_thread): Call __exit_thread in place of __exit_thread_inline.
47488         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
47489         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
47490         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
47491         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
47492         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
47493         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
47494         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
47495         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
47496         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
47497         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
47498         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
47499         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
47500         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
47501         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
47502         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
47503         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
47504
47505 2014-05-13  Andreas Schwab  <schwab@suse.de>
47506
47507         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
47508
47509 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
47510
47511         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
47512         (__ASSUME_UTIMES): Do not condition on kernel version.
47513         (__ASSUME_PSELECT): Define unconditionally.
47514         (__ASSUME_PPOLL): Likewise.
47515         (__ASSUME_ATFCTS): Likewise.
47516         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
47517         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
47518         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
47519         (__ASSUME_UTIMENSAT): Define unconditionally.
47520         (__ASSUME_PRIVATE_FUTEX): Likewise.
47521         (__ASSUME_FALLOCATE): Likewise.
47522         (__ASSUME_O_CLOEXEC): Likewise.
47523         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
47524         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
47525         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
47526         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
47527         (__ASSUME_IN_NONBLOCK): Likewise.
47528         (__ASSUME_PIPE2): Likewise.
47529         (__ASSUME_EVENTFD2): Likewise.
47530         (__ASSUME_SIGNALFD4): Likewise.
47531         (__ASSUME_DUP3): Likewise.
47532         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
47533         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
47534         (__ASSUME_AT_RANDOM): Likewise.
47535         (__ASSUME_PREADV): Likewise.
47536         (__ASSUME_PWRITEV): Likewise.
47537         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
47538         (__ASSUME_F_GETOWN_EX): Define unconditionally.
47539         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
47540         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
47541         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
47542         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
47543         (__ASSUME_O_CLOEXEC): Define unconditionally.
47544         (__ASSUME_PSELECT): Do not undefine conditionally.
47545         (__ASSUME_PPOLL): Likewise.
47546         (__ASSUME_ATFCTS): Likewise.
47547         (__ASSUME_SET_ROBUST_LIST): Likewise.
47548         (__ASSUME_UTIMENSAT): Likewise.
47549         (__ASSUME_FDATASYNC): Define unconditionally.
47550         * sysdeps/unix/sysv/linux/arm/kernel-features.h
47551         (__ASSUME_SIGFRAME_V2): Likewise.
47552         )__ASSUME_EVENTFD2): Likewise.
47553         (__ASSUME_SIGNALFD4): Likewise.
47554         (__ASSUME_PSELECT): Do not undefine conditionally.
47555         (__ASSUME_PPOLL): Likewise.
47556         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
47557         (__ASSUME_PSELECT): Define unconditionally.
47558         (__ASSUME_PPOLL): Likewise.
47559         (__ASSUME_O_CLOEXEC): Likewise.
47560         (__ASSUME_SOCK_CLOEXEC): Likewise.
47561         (__ASSUME_IN_NONBLOCK): Likewise.
47562         (__ASSUME_PIPE2): Likewise.
47563         (__ASSUME_EVENTFD2): Likewise.
47564         (__ASSUME_SIGNALFD4): Likewise.
47565         (__ASSUME_DUP3): Likewise.
47566         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
47567         (__ASSUME_O_CLOEXEC): Likewise.
47568         (__ASSUME_SOCK_CLOEXEC): Likewise.
47569         (__ASSUME_IN_NONBLOCK): Likewise.
47570         (__ASSUME_PIPE2): Likewise.
47571         (__ASSUME_EVENTFD2): Likewise.
47572         (__ASSUME_SIGNALFD4): Likewise.
47573         (__ASSUME_DUP3): Likewise.
47574         * sysdeps/unix/sysv/linux/mips/kernel-features.h
47575         (__ASSUME_EVENTFD2): Likewise.
47576         (__ASSUME_SIGNALFD4): Likewise.
47577         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
47578
47579 2014-05-12  Andreas Schwab  <schwab@suse.de>
47580
47581         [BZ #16932]
47582         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
47583         (_nss_nis_gethostbyname4_r): Return error if item length is larger
47584         than maximum RPC packet size.
47585         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
47586         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
47587         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
47588         (_nss_nis_getservbyport_r): Likewise.
47589
47590 2014-05-12  Will Newton  <will.newton@linaro.org>
47591
47592         * malloc/Makefile (tests): Add tst-mallopt.
47593         * malloc/tst-mallopt.c: New file.
47594
47595 2014-05-09  Roland McGrath  <roland@hack.frob.com>
47596
47597         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
47598         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
47599
47600 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47601
47602         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
47603         (tst-tlsmod6.so): Likewise.
47604
47605 2014-05-09  Roland McGrath  <roland@hack.frob.com>
47606
47607         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
47608
47609 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
47610
47611         [BZ #16064]
47612         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
47613         and <dl-procinfo.h>.
47614         (__fegetenv): Save SSE state in envp->__eip if supported.
47615         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
47616         envp->__eip if supported.
47617         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
47618         and <dl-procinfo.h>.
47619         (__fesetenv): Always set __eip, __cs_selector, __opcode,
47620         __data_offset and __data_selector in environment to 0.  Set SSE
47621         state if supported.
47622         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
47623         test-fenv-sse.
47624         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
47625         -mfpmath=sse.
47626         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
47627
47628 2014-05-09  Will Newton  <will.newton@linaro.org>
47629
47630         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
47631         and libc_relro_required for ARM.
47632         * sysdeps/arm/preconfigure: Regenerate.
47633
47634 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
47635             Stefan Liebler  <stli@linux.vnet.ibm.com>
47636
47637         * config.make.in (enable-lock-elision): New Makefile variable.
47638         * configure.ac: Likewise.
47639         * configure: Regenerate.
47640         * sysdeps/s390/configure.ac:
47641         Add check for gcc transactions support.
47642         * sysdeps/s390/configure: Regenerate.
47643         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
47644         Build elision files if enabled.
47645         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
47646         Add lock elision support for s390.
47647         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
47648         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
47649         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
47650         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
47651         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
47652         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
47653         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
47654         Likewise.
47655         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
47656         Likewise.
47657         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
47658         Likewise.
47659         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
47660         Likewise.
47661         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
47662         (__lll_timedlock_elision, __lll_lock_elision)
47663         (__lll_unlock_elision, __lll_trylock_elision)
47664         (lll_timedlock_elision, lll_lock_elision)
47665         (lll_unlock_elision, lll_trylock_elision): Add.
47666         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
47667         (pthread_mutex_t): Add lock elision support for s390.
47668
47669 2014-05-14  Wilco  <wdijkstr@arm.com>
47670
47671         * sysdeps/arm/fclrexcpt.c: Cleanup.
47672         * sysdeps/arm/fedisblxcpt.c: Cleanup.
47673         * sysdeps/arm/feenablxcpt.c: Cleanup.
47674         * sysdeps/arm/fegetenv.c: Cleanup.
47675         * sysdeps/arm/fegetexcept.c: Cleanup.
47676         * sysdeps/arm/fegetround.c: Cleanup.
47677         * sysdeps/arm/feholdexcpt.c: Cleanup.
47678         * sysdeps/arm/fesetenv.c: Cleanup.
47679         * sysdeps/arm/fesetround.c: Cleanup.
47680         * sysdeps/arm/feupdateenv.c: Cleanup.
47681         * sysdeps/arm/fgetexcptflg.c: Cleanup.
47682         * sysdeps/arm/fraiseexcpt.c: Cleanup.
47683         * sysdeps/arm/fsetexcptflg.c: Cleanup.
47684         * sysdeps/arm/ftestexcept.c: Cleanup.
47685         * sysdeps/arm/get-rounding-mode.h: Cleanup.
47686         * sysdeps/arm/setfpucw.c: Cleanup.
47687
47688 2014-05-09  Will Newton  <will.newton@linaro.org>
47689
47690         * sysdeps/arm/armv7/strcmp.S: New file.
47691         * NEWS: Mention addition of ARMv7 optimized strcmp.
47692
47693 2014-05-08  Roland McGrath  <roland@hack.frob.com>
47694
47695         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
47696         look for %.ac rather than %.in.
47697
47698         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
47699         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
47700         * sysdeps/mach/hurd/configure: Regenerated.
47701         * sysdeps/unix/sysv/linux/configure: Regenerated.
47702
47703         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
47704
47705 2014-05-07  Steve Ellcey  <sellcey@mips.com>
47706
47707         [BZ #16922]
47708         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
47709         (LONG_SUB): Ditto.
47710         (PTR_SUB): Ditto.
47711
47712 2014-05-07  Andreas Schwab  <schwab@suse.de>
47713
47714         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
47715         when skipping over non-matching result from nscd.
47716
47717 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
47718
47719         [BZ #16876]
47720         * nptl/sockperf.c (client): Check socket return value.
47721
47722         [BZ #16877]
47723         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
47724         nscd security class.
47725
47726 2014-05-06  Roland McGrath  <roland@hack.frob.com>
47727
47728         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
47729         * sysdeps/arm/unwind.h: ... here.
47730
47731 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
47732
47733         [BZ #16916]
47734         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
47735         Define.
47736
47737 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
47738
47739         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
47740         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
47741         multiarch strncpy for PPC64.
47742         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
47743         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
47744         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
47745         multiarch optimizations.
47746         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
47747         (__libc_ifunc_impl_list): Likewise.
47748         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
47749         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
47750         multiarch stpncpy for PPC64.
47751         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
47752         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
47753
47754 2014-05-06  Andreas Schwab  <schwab@suse.de>
47755
47756         [BZ #16912]
47757         * gmon/mcount.c (_MCOUNT_DECL): Use
47758         atomic_compare_and_exchange_bool_acq instead of
47759         catomic_compare_and_exchange_bool_acq.
47760
47761 2014-05-05  Roland McGrath  <roland@hack.frob.com>
47762
47763         * elf/Makefile (others, install-bin): Remove pldd.
47764         (pldd-modules): Variable removed.
47765         ($(objpfx)pldd): Target removed.
47766         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
47767         (others, install-bin): Append pldd here.
47768         ($(objpfx)pldd): New target.
47769
47770         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
47771         to 0, so the first #if test emitted later doesn't see it undefined.
47772         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
47773         * sysdeps/gnu/errlist.c: Regenerated.
47774
47775 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47776
47777         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
47778         [libc_hidden_builtin_def]: Define to empty value.
47779         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
47780         [libc_hidden_builtin_def]: Likewise.
47781         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
47782         [libc_hidden_builtin_def]: Likewise.
47783         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
47784         [libc_hidden_builtin_def]: Likewise.
47785         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
47786         __redirect_memcpy and define ifunc as default hidden symbol.
47787         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
47788         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
47789
47790 2014-05-04  Adam Conrad  <adconrad@0c3.net>
47791
47792         * locale/iso-4217.def: Reintroduce XDR currency.
47793
47794 2014-05-04  Allan McRae  <allan@archlinux.org>
47795
47796         * po/eo.po: Update Esperanto translation from translation project.
47797
47798 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
47799
47800         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
47801         and FEATURE_INDEX_MAX to 1.
47802         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
47803
47804 2014-05-01  Steve Ellcey  <sellcey@mips.com>
47805
47806         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
47807         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
47808         * iconvdata/big5.c (ONE_DIRECTION): Define.
47809         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
47810         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
47811         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
47812         * iconvdata/cp932.c (ONE_DIRECTION): Define.
47813         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
47814         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
47815         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
47816         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
47817         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
47818         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
47819         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
47820         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
47821         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
47822         * iconvdata/gbk.c (ONE_DIRECTION): Define.
47823         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
47824         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
47825         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
47826         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
47827         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
47828         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
47829         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
47830         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
47831         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
47832         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
47833         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
47834         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
47835         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
47836         * iconvdata/iso646.c (ONE_DIRECTION): Define.
47837         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
47838         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
47839         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
47840         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
47841         * iconvdata/johab.c (ONE_DIRECTION): Define.
47842         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
47843         * iconvdata/sjis.c (ONE_DIRECTION): Define.
47844         * iconvdata/t.61.c (ONE_DIRECTION): Define.
47845         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
47846         * iconvdata/tscii.c (ONE_DIRECTION): Define.
47847         * iconvdata/uhc.c (ONE_DIRECTION): Define.
47848         * iconvdata/unicode.c (ONE_DIRECTION): Define.
47849         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
47850         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
47851         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
47852
47853 2014-05-01  Roland McGrath  <roland@hack.frob.com>
47854
47855         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
47856         (_IO_JUMPS_OFFSET): Define to 0.
47857
47858         * nptl/sysdeps/pthread/bits/libc-lock.h
47859         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
47860         (__libc_lock_define_initialized_recursive): Always define using
47861         initializer.  Modern compilers treat uninitialized (implicit zero) and
47862         explicit zero initializers the same (i.e. put the datum in bss).
47863
47864 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
47865
47866         * nscd/nscd-client.h: Include <string.h>.
47867
47868 2014-05-01  David S. Miller  <davem@davemloft.net>
47869
47870         [BZ #16885]
47871         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
47872         multiple zero bytes exist at the end of a string.
47873         Reported by Aurelien Jarno <aurelien@aurel32.net>
47874
47875         * string/test-strcmp.c (check): Add explicit test for situations where
47876         there are multiple zero bytes after the first.
47877
47878 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
47879
47880         [BZ #16890]
47881         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
47882         when compiling wprintf.
47883         * stdio-common/tstdiomisc.c (t3): New function.
47884         (main): Call it.
47885
47886 2014-05-01  Steve Ellcey  <sellcey@mips.com>
47887
47888         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
47889         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
47890         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
47891         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
47892
47893 2014-05-01  Steve Ellcey  <sellcey@mips.com>
47894
47895         * stdlib/longlong.h: Updated from GCC.
47896
47897 2014-05-01  Will Newton  <will.newton@linaro.org>
47898             Bernard Ogden  <bernie.ogden@linaro.org>
47899
47900         * NEWS: Update fixed bug list.
47901
47902         [BZ #15119]
47903         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
47904
47905 2014-04-30  David S. Miller  <davem@davemloft.net>
47906
47907         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
47908         (libc_feholdexcept_setround_sparc_ctx): New function.
47909         (libc_fesetenv_sparc_ctx): Likewise.
47910         (libc_feupdateenv_sparc_ctx): Likewise.
47911         (libc_feholdsetround_sparc_ctx): Likewise.
47912         (libc_feholdexcept_setround_ctx): Define.
47913         (libc_feholdexcept_setroundf_ctx): Likewise.
47914         (libc_feholdexcept_setroundl_ctx): Likewise.
47915         (libc_fesetenv_ctx): Likewise.
47916         (libc_fesetenvf_ctx): Likewise.
47917         (libc_fesetenvl_ctx): Likewise.
47918         (libc_feupdateenv_ctx): Likewise.
47919         (libc_feupdateenvf_ctx): Likewise.
47920         (libc_feupdateenvl_ctx): Likewise.
47921         (libc_feresetround_ctx): Likewise.
47922         (libc_feresetroundf_ctx): Likewise.
47923         (libc_feresetroundl_ctx): Likewise.
47924         (libc_feholdsetround_ctx): Likewise.
47925         (libc_feholdsetroundf_ctx): Likewise.
47926         (libc_feholdsetroundl_ctx): Likewise.
47927
47928         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
47929         with __USE_GNU instead of XOPEN cpp guards.
47930
47931         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
47932         0.
47933
47934         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
47935         with XOPEN cpp guards.
47936
47937 2014-04-30  Julian Brown  <julian@codesourcery.com>
47938
47939         [BZ #16888]
47940         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
47941         handling.
47942
47943 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
47944
47945         [BZ #9894]
47946         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
47947         Change to 2.6.32.
47948         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
47949         * sysdeps/unix/sysv/linux/configure: Regenerated.
47950         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
47951         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
47952         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
47953         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
47954         * README: Update reference to required Linux kernel version.
47955         * manual/install.texi (Linux): Update reference to required Linux
47956         kernel headers version.
47957         * INSTALL: Regenerated.
47958
47959         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
47960         header inclusion.
47961         [POSIX] (limits.h): Likewise.
47962         [POSIX] (math.h): Likewise.
47963         [POSIX] (sys/wait.h): Likewise.
47964         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
47965         function.
47966         [POSIX] (stddef.h): Do not allow header inclusion.
47967
47968 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47969
47970         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
47971
47972 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
47973
47974         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
47975         Return immediately after lll_futex_wake.
47976
47977 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
47978
47979         [BZ #16791]
47980         * nscd/nscd-client.h (datahead_init_common): Initialize entire
47981         structure.
47982         (datahead_init_pos): Call datahead_init_common early.
47983         (datahead_init_neg): Likewise.
47984
47985         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
47986         datahead_init_neg): New functions.
47987         * nscd/aicache.c (addhstaiX): Use them.
47988         * nscd/grpcache.c (cache_addgr): Likewise.
47989         * nscd/hstcache.c (cache_addhst): Likewise.
47990         * nscd/initgrcache.c (addinitgroupsX): Likewise.
47991         * nscd/netgroupcache.c (do_notfound): Likewise.
47992         (addgetnetgrentX): Likewise.
47993         (addinnetgrX): Likewise.
47994         * nscd/pwdcache.c (cache_addpw): Likewise.
47995         * nscd/servicescache.c (cache_addserv): Likewise.
47996
47997 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
47998             Atsushi Onoe  <atsushi@onoe.org>
47999
48000         [BZ #14308]
48001         [BZ #12994]
48002         [BZ #13651]
48003         * resolv/res_query.c (__libc_res_nsearch): Return if at least
48004         one response is valid.
48005         * resolv/res_send.c (send_dg): Check for validity of other
48006         response if the current response is a referral.
48007
48008 2014-04-29  Steve Ellcey  <sellcey@mips.com>
48009
48010         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
48011
48012 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
48013
48014         [BZ #16823]
48015         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
48016         Always divide by positive zero when computing -Inf result.
48017         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
48018         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
48019
48020 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48021
48022         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
48023         FPSCR if value do not change.
48024         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
48025         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
48026         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
48027         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
48028         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
48029         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
48030         function.
48031
48032 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
48033
48034         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
48035         * sysdeps/unix/sysv/linux/hppa: Move directory from
48036         ports/systeps/unix/sysv/linux/hppa.
48037         * README: Update listing for hppa-*-linux-gnu.
48038
48039 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
48040
48041         [BZ #16754]
48042         * manual/stdio.texi (Hook functions): Fix types of stream hook
48043         functions.
48044         [BZ #16854]
48045         * socket/sys/socket.h: Fix typo in comment.
48046
48047 2014-04-28  Wilco  <wdijkstr@arm.com>
48048
48049         * sysdeps/arm/fenv_private.h: New file.
48050         * sysdeps/arm/math_private.h: New file.
48051         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
48052
48053 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
48054
48055         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
48056         with __int128_t.
48057         (La_x86_64_retval): Likewise.
48058
48059 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
48060
48061         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
48062         fpsr if value didn't change.
48063         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
48064         to fpcr if value didn't change.
48065         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
48066         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
48067         fpsr or fpcr if value didn't change.
48068         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
48069         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
48070         fpcr if value didn't change.
48071         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
48072         to fpsr if value didn't change.
48073
48074 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
48075
48076         * nptl/tst-sem3.c: Use test-skeleton.c
48077         (main): Rename to do_test.  Use return instead of
48078         exit.
48079         * nptl/tst-sem4.c: Use test-skeleton.c
48080         (main): Rename to do_test.
48081
48082 2014-04-22  David S. Miller  <davem@davemloft.net>
48083
48084         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
48085         (struct sigaction): New struct member __glibc_reserved0, change
48086         type of sa_flags to int.
48087
48088 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
48089
48090         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
48091         (COUNT_LEADING_ZEROS_0): Define for AArch64.
48092
48093 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
48094
48095         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
48096         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
48097
48098 2014-04-22  Will Newton  <will.newton@linaro.org>
48099             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
48100
48101         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
48102         (__longjmp): Add longjmp and longjmp_target SystemTap
48103         probes.
48104         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
48105         (__sigsetjmp): Add setjmp SystemTap probe.
48106
48107 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
48108
48109         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
48110         match manual order.
48111
48112 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48113
48114         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
48115
48116         * sysdeps/powerpc/fpu/fenv_private.h
48117         (libc_feholdexcept_setroundl_ctx): Define to
48118         libc_feholdexcept_setround_ppc_ctx.
48119         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
48120         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
48121         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
48122         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
48123
48124 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
48125
48126         * sysdeps/aarch64/math-tests.h: New file.
48127
48128 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
48129
48130         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
48131         New.
48132         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
48133         Check and set bit_AVX2_Usable.
48134         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
48135         macro.
48136         (bit_AVX2): Likewise.
48137         (index_AVX2_Usable): Likewise.
48138         (CPUID_AVX2): Likewise.
48139         (HAS_AVX2): Likewise.
48140
48141 2014-04-17  Will Newton  <will.newton@linaro.org>
48142
48143         * manual/setjmp.texi (System V contexts): Add note that
48144         calling setcontext on a context created by a call to a
48145         signal handler is undefined.  Update text to note that
48146         setcontext from a signal handler is possible but not
48147         recommended.
48148
48149         [BZ #16629]
48150         * stdlib/tst-setcontext.c: Include signal.h.
48151         (main): Check that the signal stack before and
48152         after swapcontext is the same.
48153
48154         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
48155         Re-implement to restore registers in user code and avoid
48156         rt_sigreturn system call.
48157
48158 2014-04-17  Wilco  <wdijkstr@arm.com>
48159
48160         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
48161         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
48162         * math/test-fenv.c: Skip exception trap tests on targets which only
48163         support non-stop mode.
48164
48165 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
48166             Wilco Dijkstra  <wilco.dijkstra@arm.com>
48167
48168         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
48169         (libc_feholdsetround_aarch64_ctx)
48170         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
48171         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
48172         (libc_feresetround_ctx, libc_feresetroundf_ctx)
48173         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
48174         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
48175         (libc_feresetround_noexl_ctx): Define.
48176
48177 2014-04-16  Richard Henderson  <rth@redhat.com>
48178
48179         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
48180
48181         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
48182         unwind tables.
48183
48184         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
48185         const from the non-libc, non-ldso copy.
48186
48187         * sysdeps/alpha/libm-test-ulps: Regenerate.
48188
48189 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
48190             Wilco Dijkstra  <wilco.dijkstra@arm.com>
48191
48192         * sysdeps/aarch64/fpu/math_private.h: New file.
48193
48194 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
48195
48196         * sysdeps/aarch64/libm-test-ulps: Regenerate.
48197
48198 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
48199
48200         [BZ #16275]
48201         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
48202         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
48203         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
48204         Intel MPX bound registers before _dl_profile_fixup.
48205         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
48206         registers after _dl_profile_fixup.  Save and restore bound
48207         registers bnd0/bnd1 when calling _dl_call_pltexit.
48208         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
48209         (LR_BND_OFFSET): Likewise.
48210         (LRV_BND0_OFFSET): Likewise.
48211         (LRV_BND1_OFFSET): Likewise.
48212
48213 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
48214
48215         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
48216         to...
48217         * sysdeps/mach/hurd/i386/tls.h: ... here.
48218         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
48219         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
48220         fields.
48221
48222 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
48223
48224         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
48225
48226 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
48227
48228         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
48229
48230 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
48231
48232         [BZ #14770]
48233         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
48234         * sysdeps/s390/configure: Regenerate.
48235
48236         [BZ #16824]
48237         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
48238         Set round-to-nearest internally to reduce error accumulation.
48239
48240 2014-04-16  Alan Modra  <amodra@gmail.com>
48241
48242         [BZ #16740]
48243         [BZ #16619]
48244         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
48245         * math/libm-test.inc (frexp_test_data): Add tests.
48246         * NEWS: Update fixed bug list.
48247
48248 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
48249
48250         * benchtests/Makefile: Depend on libraries in build directory.
48251         (bench-math): Separate out math tests.
48252         (bench-pthread): Separate out pthread tests.
48253         (bench): Include math and pthread tests.
48254
48255 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
48256
48257         [BZ #16831]
48258         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
48259         _dl_debug_initialize.
48260
48261         * configure.ac: Remove SELinux header check.
48262         * configure: Regenerate.
48263         * nscd/selinux.c (perms): Array of const char* to permission names.
48264         (nscd_request_avc_has_perm): Call security_deny_unknown to find
48265         default policy. Call string_to_security_class and string_to_av_perm to
48266         translate strings. Enforce default policy and call avs_has_perm with
48267         results of translated strings.
48268
48269 2014-04-13  David S. Miller  <davem@davemloft.net>
48270
48271         * sysdeps/sparc/fpu/libm-test-ulps: Update.
48272
48273 2014-04-12  Allan McRae  <allan@archlinux.org>
48274
48275         [BZ #16838]
48276         * manual/string.texi (Collation Functions): Fix qsort argument
48277         order in example.
48278         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
48279
48280 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
48281
48282         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
48283         Make the test a no-op if there are no exceptions defined.
48284
48285 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
48286
48287         * elf/Makefile (tests): make tst-dlopen-aout conditional on
48288         enable-hardcoded-path-in-tests
48289
48290 2014-04-11  Will Newton  <will.newton@linaro.org>
48291
48292         * benchtests/Makefile (extra-objs): Add json-lib.o.
48293         (bench-func): Tidy up JSON output.
48294         * benchtests/bench-skeleton.c: Include json-lib.h.
48295         (main): Use JSON library functions to do output of
48296         benchmark results.
48297         * benchtests/bench-timing-type.c (main): Output the
48298         timing type simply, leaving formatting to the user.
48299         * benchtests/json-lib.c: New file.
48300         * benchtests/json-lib.h: Likewise.
48301
48302 2014-04-11  Torvald Riegel  <triegel@redhat.com>
48303
48304         [BZ #15215]
48305         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
48306         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
48307         memory barriers.  Add comments.
48308         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
48309         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
48310         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
48311         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
48312         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
48313         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
48314
48315 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
48316
48317         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
48318         * sysdeps/s390/s390-64/configure.ac: ... this ...
48319         * sysdeps/s390/configure.ac: ... to here.
48320         * sysdeps/s390/s390-32/configure: Delete file.
48321         * sysdeps/s390/s390-64/configure: Delete file.
48322         * sysdeps/s390/configure: Regenerate.
48323
48324 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
48325
48326         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
48327
48328 2014-04-11  Will Newton  <will.newton@linaro.org>
48329
48330         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
48331         to zero if it is not defined elsewhere.  (mtrim): Test
48332         the value of MALLOC_DEBUG with #if rather than #ifdef.
48333
48334 2014-04-10 Torvald Riegel  <triegel@redhat.com>
48335
48336         * benchtests/pthread_once-inputs: New file.
48337         * benchtests/pthread_once-source.c: New file.
48338         * benchtests/README: Update documentation.
48339
48340 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
48341             H.J. Lu  <hongjiu.lu@intel.com>
48342
48343         [BZ #16275]
48344         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
48345         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
48346         * sysdeps/x86_64/configure: Regenerated.
48347         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
48348         macro.
48349         (REGISTER_SAVE_RAX): Likewise.
48350         (REGISTER_SAVE_RCX): Likewise.
48351         (REGISTER_SAVE_RDX): Likewise.
48352         (REGISTER_SAVE_RSI): Likewise.
48353         (REGISTER_SAVE_RDI): Likewise.
48354         (REGISTER_SAVE_R8): Likewise.
48355         (REGISTER_SAVE_R9): Likewise.
48356         (REGISTER_SAVE_BND0): Likewise.
48357         (REGISTER_SAVE_BND1): Likewise.
48358         (REGISTER_SAVE_BND2): Likewise.
48359         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
48360         bound registers when calling _dl_fixup.
48361
48362 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48363
48364         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
48365         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
48366         of its definition.
48367         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
48368         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
48369         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
48370         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
48371         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
48372         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
48373         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
48374
48375 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
48376
48377         [BZ #15514]
48378         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
48379         pathconf(_PC_NAME_MAX).
48380
48381 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48382
48383         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
48384         Remove macro usage.
48385         (__PTHREAD_SPINS): Move definition to ...
48386         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
48387         (__PTHREAD_SPINS): ... here.
48388         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
48389         (__PTHREAD_SPIN): Likewise.
48390         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
48391         (__PTHREAD_SPIN): Likewise.
48392         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
48393         (__PTHREAD_SPIN): Likewise.
48394         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
48395         (__PTHREAD_SPIN): Likewise.
48396         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
48397         (__PTHREAD_SPIN): Likewise.
48398         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
48399         (__PTHREAD_SPIN): Likewise.
48400         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
48401         (__PTHREAD_SPIN): Likewise.
48402         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
48403         (__PTHREAD_SPIN): Likewise.
48404         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
48405         (__PTHREAD_SPIN): Likewise.
48406         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
48407         (__PTHREAD_SPIN): Likewise.
48408         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
48409         (__PTHREAD_SPIN): Likewise.
48410         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
48411         (__PTHREAD_SPIN): Likewise.
48412
48413         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
48414         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
48415         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
48416         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
48417         imply folder.
48418         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
48419         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
48420         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
48421         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
48422         correct imply path.
48423         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
48424         strlen symbol for non multi-arch builds.
48425         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
48426         missing hidden_def and weak_alias.
48427
48428 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
48429
48430         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
48431
48432 2014-04-07  Will Newton  <will.newton@linaro.org>
48433
48434         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
48435         and contents.  [!_LIBC] Remove #ifndef and contents.
48436         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
48437         * string/memccpy.c (__memccpy): Use ANSI prototype.
48438         * string/memfrob.c (memfrob): Likewise.
48439         * string/strcoll.c (STRCOLL): Likewise.
48440         * string/strlen.c (strlen): Likewise.
48441         * string/strtok.c (STRTOK): Likewise.
48442         * string/strcat.c: Remove unused #include of memcopy.h.
48443         (strcat): Use ANSI prototype.
48444         * string/strchr.c: Remove unused #include of memcopy.h.
48445         (strchr): Use ANSI prototype.
48446         * string/strcmp.c: Remove unused #include of memcopy.h.
48447         (strcmp): Use ANSI prototype.
48448         * string/strcpy.c: Remove unused #include of memcopy.h.
48449         (strcpy): Use ANSI prototype.
48450
48451 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48452
48453         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
48454         * config.make.in (config-extra-cppflags): Set it from
48455         libc_extra_cppflags.
48456         * configure.ac (libc_extra_cflags): Make it accumulate over
48457         configure fragments.
48458         (libc_extra_cppflags): New flag.
48459         * configure. Regenerate.
48460         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
48461         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
48462         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
48463         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
48464
48465         [BZ #16815]
48466         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
48467         result for FE_DOWNWARD rounding mode.
48468         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
48469         Likewise.
48470         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48471
48472 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
48473
48474         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
48475         in function argument name.
48476
48477 2014-04-03  David Svoboda  <svoboda@cert.org>
48478
48479         [BZ #5666]
48480         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
48481         explicitly.
48482
48483 2014-04-03  Roland McGrath  <roland@hack.frob.com>
48484
48485         * elf/dl-unmap-segments.h: New file.
48486         * sysdeps/generic/ldsodefs.h
48487         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
48488         * elf/dl-close.c: Include <dl-unmap-segments.h>.
48489         * elf/dl-fptr.c: Likewise.
48490         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
48491         * sysdeps/aarch64/tlsdesc.c: Likewise.
48492         * sysdeps/arm/tlsdesc.c: Likewise.
48493         * sysdeps/i386/tlsdesc.c: Likewise.
48494         * sysdeps/tile/dl-runtime.c: Likewise.
48495         * sysdeps/x86_64/tlsdesc.c: Likewise.
48496         * elf/dl-load.h: New file.
48497         * elf/dl-load.c: Include it.
48498         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
48499         Macros moved to dl-load.h.
48500         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
48501         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
48502         Use _dl_unmap_segments in place of __munmap.
48503         Break out segment-mapping loop into ...
48504         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
48505
48506 2014-04-03  Will Newton  <will.newton@linaro.org>
48507
48508         * elf/dl-lookup.c (do_lookup_x): Remove comment
48509         referring to nested function and move variable
48510         declarations down to before first use.
48511
48512 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
48513
48514         [BZ #16799]
48515         [BZ #16800]
48516         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
48517         with 0 numerator.
48518         * math/s_catanf.c (__catanf): Likewise.
48519         * math/s_catanh.c (__catanh): Likewise.
48520         * math/s_catanhf.c (__catanhf): Likewise.
48521         * math/s_catanhl.c (__catanhl): Likewise.
48522         * math/s_catanl.c (__catanl): Likewise.
48523         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
48524         by positive zero when computing -Inf result.
48525         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
48526         (catanh_test): Likewise.
48527         * sysdeps/i386/fpu/libm-test-ulps: Update.
48528         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48529
48530         [BZ #16789]
48531         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
48532         instead of using underflowing value in computing result.
48533         * math/s_clog10.c (__clog10): Likewise.
48534         * math/s_clog10f.c (__clog10f): Likewise.
48535         * math/s_clog10l.c (__clog10l): Likewise.
48536         * math/s_clogf.c (__clogf): Likewise.
48537         * math/s_clogl.c (__clogl): Likewise.
48538         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
48539         (clog10_test): Likewise.
48540         * sysdeps/i386/fpu/libm-test-ulps: Update.
48541         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48542
48543 2014-04-02  Alan Modra  <amodra@gmail.com>
48544
48545         [BZ #16739]
48546         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
48547         output when value is near a power of two.  Use int64_t for lx and
48548         remove casts.  Use decimal rather than hex exponent constants.
48549         Don't use long double multiplication when double will suffice.
48550         * math/libm-test.inc (nextafter_test_data): Add tests.
48551         * NEWS: Add 16739 and 16786 to bug list.
48552
48553         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
48554
48555         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
48556
48557 2014-04-01  Will Newton  <will.newton@linaro.org>
48558
48559         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
48560         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
48561
48562 2014-04-01  Florian Weimer  <fweimer@redhat.com>
48563
48564         [BZ #13347]
48565         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
48566         * nptl/tst-setuid2.c: New file.
48567         * nptl/Makefile (xtests): Add tst-setuid2.
48568
48569 2014-04-01  Alan Modra  <amodra@gmail.com>
48570
48571         [BZ #16786]
48572         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
48573
48574 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
48575
48576         [BZ #6803]
48577         [BZ #6804]
48578         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
48579         set errno as appropriate.
48580         * math/w_scalbf.c (__scalbf): Likewise.
48581         * math/w_scalbl.c (__scalbl): Likewise.
48582         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
48583         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
48584         * math/libm-test.inc (scalb_test_data): Add errno expectations.
48585         Add more NaN tests.
48586
48587         [BZ #16349]
48588         * math/w_atan2.c: Include <errno.h>.
48589         (__atan2): Set errno for result underflowing to zero.
48590         * math/w_atan2f.c: Include <errno.h>.
48591         (__atan2f): Set errno for result underflowing to zero.
48592         * math/w_atan2l.c: Include <errno.h>.
48593         (__atan2l): Set errno for result underflowing to zero.
48594         * math/auto-libm-test-in: Don't allow missing errno for some atan2
48595         tests.
48596         * math/auto-libm-test-out: Regenerated.
48597
48598 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48599
48600         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
48601         Encode instruction correctly in little endian.
48602         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
48603         Likewise.
48604         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
48605         Likewise.
48606         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
48607         Likewise.
48608         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
48609         Likewise.
48610
48611 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
48612
48613         [BZ #9894]
48614         * sysdeps/unix/sysv/linux/kernel-features.h
48615         [__sparc__ && !__arch64__ && !__sparc_v9__]
48616         (__ASSUME_SET_ROBUST_LIST): Do not define.
48617         [__sparc__ && !__arch64__ && !__sparc_v9__]
48618         (__ASSUME_FUTEX_LOCK_PI): Likewise.
48619         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
48620         Likewise.
48621         * sysdeps/unix/sysv/linux/arm/kernel-features.h
48622         (__ASSUME_FUTEX_LOCK_PI): Undefine.
48623         (__ASSUME_REQUEUE_PI): Likewise.
48624         (__ASSUME_SET_ROBUST_LIST): Likewise.
48625         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
48626         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
48627         Undefine.
48628         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
48629         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
48630         Likewise.
48631         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
48632         Likewise.
48633         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
48634         Likewise.
48635         * sysdeps/unix/sysv/linux/mips/kernel-features.h
48636         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
48637         Undefine.
48638         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
48639         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
48640         Likewise.
48641
48642         [BZ #16648]
48643         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
48644         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
48645         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
48646
48647 2014-03-31  Will Newton  <will.newton@linaro.org>
48648
48649         * benchtests/Makefile (bench): Add ffs and ffsll to list
48650         of tests.
48651         * benchtests/ffs-inputs: New file.
48652         * benchtests/ffsll-inputs: Likewise.
48653
48654 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
48655
48656         [BZ #16770]
48657         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
48658         too large before casting to int.
48659         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
48660         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
48661         * math/libm-test.inc (scalb_test_data): Add more tests.
48662
48663 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
48664
48665         * benchtests/Makefile (DETAILED_OPT): New make option.
48666         (bench-func): Run benchmark program with -d if DETAILED_OPT is
48667         set.
48668         * benchtests/bench-skeleton.c: Include stdbool.h.
48669         (main): Store and print timings per input.
48670         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
48671         member to each argument value.
48672         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
48673         (_print_arg_data): Initialize per-input timing to 0.
48674
48675         * benchtests/Makefile (timing-type): New binary.
48676         (bench-clean): Also remove bench-timing-type.
48677         (bench): New target for timing-type.
48678         (bench-func): Print output in JSON format.
48679         * benchtests/bench-skeleton.c (main): Print output in JSON
48680         format.
48681         * benchtests/bench-timing-type.c: New file.
48682         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
48683         (TIMING_PRINT_STATS): Remove.
48684         * benchtests/scripts/bench.py (_print_arg_data): Store variant
48685         name separately.
48686
48687         * benchtests/bench-modf.c: Remove.
48688         * benchtests/modf-inputs: New inputs file.
48689
48690 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
48691
48692         [BZ #16362]
48693         * math/s_clog10.c (M_PI_LOG10E): New macro.
48694         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
48695         imaginary parts are 0.
48696         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
48697         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
48698         imaginary parts are 0.
48699         * math/s_clog10l.c (M_PI_LOG10El): New macro.
48700         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
48701         imaginary parts are 0.
48702         * math/libm-test.inc (clog10_test_data): Update expected results
48703         for when real and imaginary parts are 0.
48704
48705 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
48706
48707         * elf/dl-load.c: Finish conversion of __builtin_expect into
48708         __glibc_{un}likely.
48709
48710 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
48711
48712         [BZ #16348]
48713         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
48714         1+x for argument with exponent below -67.
48715         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
48716         Likewise.
48717         * math/auto-libm-test-in: Add more tests of exp.
48718         * math/auto-libm-test-out: Regenerated.
48719
48720 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
48721
48722         [BZ #16759]
48723         * inet/getnetgrent_r.c (get_nonempty_val): New function.
48724         (nscd_getnetgrent): Use it.
48725
48726         [BZ #16760]
48727         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
48728         of stpcpy.
48729
48730 2014-03-27  Andi Kleen  <ak@linux.intel.com>
48731
48732         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
48733         (lll_robust_lock, lll_cond_lock, lll_timedlock)
48734         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
48735         (lll_robust_unlock): Remove out of line section. Use cfi
48736         intrinsics.
48737         (LLL_STUB_UNWIND_INFO*): Remove.
48738         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
48739         (lll_robust_lock, lll_cond_lock, lll_timedlock)
48740         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
48741         (lll_robust_unlock): Remove out of line section. Use cfi
48742         intrinsics.
48743         (LLL_STUB_UNWIND_INFO*): Remove.
48744
48745 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
48746
48747         [BZ #16758]
48748         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
48749         blank values.
48750
48751 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
48752
48753         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
48754
48755 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
48756
48757         [BZ #16198]
48758         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
48759         fnstenv.
48760         * math/test-fenv-preserve.c: New file.
48761         * math/Makefile (tests): Add test-fenv-preserve.
48762
48763 2014-03-26  Will Newton <will.newton@linaro.org>
48764
48765         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
48766
48767 2014-03-25  Roland McGrath  <roland@hack.frob.com>
48768
48769         * scripts/versionlist.awk: Partition the version sets and emit all
48770         GLIBC_* (sorted) before all others (sorted).
48771
48772 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
48773
48774         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
48775         GLIBC_2.2.5 version.
48776
48777 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48778
48779         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
48780         calls.
48781
48782         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
48783         previous change.
48784
48785         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48786
48787 2014-03-25  Andreas Schwab  <schwab@suse.de>
48788
48789         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
48790         label to be used after in6ailist is initialized.
48791
48792 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48793
48794         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
48795         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
48796
48797 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
48798
48799         [BZ #16357]
48800         [BZ #16599]
48801         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
48802         min_plus_half.
48803         (fp_formats): Update initializers.
48804         (init_fp_formats): Initialize new field.
48805         (output_for_one_input_case): Allow underflow for results up to
48806         min_plus_half.
48807         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
48808         * math/auto-libm-test-in: Don't mark some underflows from asin and
48809         atanh as spurious.
48810         * math/auto-libm-test-out: Regenerated.
48811         * sysdeps/i386/fpu/libm-test-ulps: Update.
48812         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48813
48814 2014-03-25  Andreas Schwab  <schwab@suse.de>
48815
48816         * libio/Makefile (tst-ftell-partial-wide-ENV)
48817         (tst-ftell-active-handler-ENV): Define.
48818
48819 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
48820
48821         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
48822
48823 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
48824
48825         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
48826
48827 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
48828
48829         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
48830         * sysdeps/x86_64/fpu/multiarch/e_exp.c
48831         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
48832
48833 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
48834
48835         [BZ #16634]
48836         * elf/dl-load.c (open_verify): Add mode parameter.
48837         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
48838         (open_path): Change from boolean 'secure' to complete flag 'mode'
48839         (_dl_map_object): Adjust.
48840         * elf/Makefile (tests): Add tst-dlopen-aout.
48841         * elf/tst-dlopen-aout.c: New test.
48842
48843 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
48844
48845         [BZ #16714]
48846         * sysdeps/unix/sysv/linux/s390/bits/stat.h
48847         (struct stat): Rename member pad0 to __glibc_reserved0.
48848
48849         [BZ #16712]
48850         * sysdeps/s390/s390-32/bits/wordsize.h
48851         (__WORDSIZE32_SIZE_ULONG): New define.
48852         * sysdeps/s390/s390-64/bits/wordsize.h
48853         (__WORDSIZE32_SIZE_ULONG): Likewise.
48854         * sysdeps/generic/stdint.h (SIZE_MAX):
48855         Define as UL if __WORDSIZE32_SIZE_ULONG.
48856
48857         [BZ #16713]
48858         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
48859         (__glibc_reserved0): New variable.
48860         (sa_flags): Change type to int.
48861
48862         * posix/Makefile (before-compile): Use += before-compile instead
48863         of a :=.
48864
48865         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
48866         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
48867
48868 2014-03-20  Andreas Schwab  <schwab@suse.de>
48869
48870         [BZ #16743]
48871         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
48872         non-matching result from nscd.
48873
48874 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
48875
48876         * scripts/bench.py: Moved to ...
48877         * benchtests/scripts/bench.py: ... here.
48878         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
48879
48880 2014-03-24  Andreas Schwab  <schwab@suse.de>
48881
48882         [BZ #16002]
48883         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
48884         alloca_account and account alloca use for struct in6ailist.
48885
48886 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
48887
48888         [BZ #16284]
48889         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
48890         rounding mode to recompute results that overflow to infinity or
48891         underflow to zero.
48892         * math/auto-libm-test-in: Don't mark tests as expected to fail for
48893         bug 16284.
48894         * math/auto-libm-test-out: Regenerated.
48895         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
48896         (ccosh_test): Likewise.
48897         (csin_test_data): Use plus_oflow.
48898         (csin_test): Use ALL_RM_TEST.
48899         (csinh_test_data): Use plus_oflow.
48900         (csinh_test): Use ALL_RM_TEST.
48901         * sysdeps/i386/fpu/libm-test-ulps: Update.
48902         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48903
48904 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
48905
48906         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
48907         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
48908         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
48909
48910         [BZ #16731]
48911         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
48912         when x - 1 is zero.
48913         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
48914         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
48915         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
48916         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
48917         argument is 1.
48918         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
48919         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
48920         zero.
48921         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
48922         * sysdeps/i386/fpu/libm-test-ulps: Update.
48923         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48924
48925 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
48926
48927         * scripts/bench.pl: Remove file.
48928         * scripts/bench.py: New benchmark script.
48929         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
48930         * benchtests/README: Mention python dependency.
48931         * scripts/pylintrc: New file.
48932         * scripts/pylint: New file.
48933
48934         * bits/mathdef.h: Use #ifdef instead of #if.
48935         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
48936         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
48937         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
48938         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
48939         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
48940         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
48941
48942 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48943             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
48944
48945         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
48946         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
48947         and strpbrk-ppc64 objects.
48948         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
48949         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
48950         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
48951         multiarch strpbrk for POWER7.
48952         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
48953         multiarch strpbrk for PPC64.
48954         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
48955         ifunc selector.
48956         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
48957         strpbrk for POWER7.
48958
48959 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
48960
48961         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
48962         (atan_test): Likewise.
48963         (atanh_test_data): Use NO_TEST_INLINE for two tests.
48964         (atanh_test): Use ALL_RM_TEST.
48965         (atan2_test_data): Likewise.
48966         (cabs_test): Likewise.
48967         (cacosh_test): Likewise.
48968         (carg_test): Likewise.
48969         (casin_test): Likewise.
48970         (casinh_test): Likewise.
48971         (cbrt_test): Likewise.
48972         (csqrt_test): Likewise.
48973         (erf_test): Likewise.
48974         (erfc_test): Likewise.
48975         (pow10_test): Likewise.
48976         (exp2_test): Likewise.
48977         (hypot_test): Likewise.
48978         (j0_test): Likewise.
48979         (j1_test): Likewise.
48980         (lgamma_test): Likewise.
48981         (gamma_test): Likewise.
48982         (sincos_test): Likewise.
48983         (tanh_test): Likewise.
48984         (y0_test): Likewise.
48985         (y1_test): Likewise.
48986         * sysdeps/i386/fpu/libm-test-ulps: Update.
48987         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48988
48989 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48990
48991         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
48992         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
48993         and strcspn-ppc64 objects.
48994         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
48995         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
48996         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
48997         multiarch strcspn for POWER7.
48998         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
48999         multiarch strcspn for PPC64.
49000         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
49001         ifunc selector.
49002         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
49003         strcspn for POWER7.
49004
49005 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
49006
49007         * math/gen-libm-test.pl (generate_testfile): Expect only function
49008         name as argument to AUTO_TESTS_* and pass results for all rounding
49009         modes to parse_args.
49010         (parse_auto_input): Separate inputs of automatic tests from
49011         outputs before storing in %auto_tests.
49012         * math/libm-test.inc (acos_test_data): Update call to
49013         AUTO_TESTS_f_f.
49014         (acos_test): Use ALL_RM_TEST.
49015         (acos_tonearest_test_data): Remove.
49016         (acos_test_tonearest): Likewise.
49017         (acos_towardzero_test_data): Likewise.
49018         (acos_test_towardzero): Likewise.
49019         (acos_downward_test_data): Likewise.
49020         (acos_test_downward): Likewise.
49021         (acos_upward_test_data): Likewise.
49022         (acos_test_upward): Likewise.
49023         (acosh_test_data): Update call to AUTO_TESTS_f_f.
49024         (asin_test_data): Likewise.
49025         (asin_test): Use ALL_RM_TEST.
49026         (asin_tonearest_test_data): Remove.
49027         (asin_test_tonearest): Likewise.
49028         (asin_towardzero_test_data): Likewise.
49029         (asin_test_towardzero): Likewise.
49030         (asin_downward_test_data): Likewise.
49031         (asin_test_downward): Likewise.
49032         (asin_upward_test_data): Likewise.
49033         (asin_test_upward): Likewise.
49034         (asinh_test_data): Update call to AUTO_TESTS_f_f.
49035         (atan_test_data): Likewise.
49036         (atanh_test_data): Likewise.
49037         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
49038         (cabs_test_data): Update call to AUTO_TESTS_c_f.
49039         (carg_test_data): Likewise.
49040         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
49041         (ccos_test_data): Update call to AUTO_TESTS_c_c.
49042         (ccosh_test_data): Likewise.
49043         (cexp_test_data): Likewise.
49044         (clog_test_data): Likewise.
49045         (clog10_test_data): Likewise.
49046         (cos_test_data): Update call to AUTO_TESTS_f_f.
49047         (cos_test): Use ALL_RM_TEST.
49048         (cos_tonearest_test_data): Remove.
49049         (cos_test_tonearest): Likewise.
49050         (cos_towardzero_test_data): Likewise.
49051         (cos_test_towardzero): Likewise.
49052         (cos_downward_test_data): Likewise.
49053         (cos_test_downward): Likewise.
49054         (cos_upward_test_data): Likewise.
49055         (cos_test_upward): Likewise.
49056         (cosh_test_data): Update call to AUTO_TESTS_f_f.
49057         (cosh_test): Use ALL_RM_TEST.
49058         (cosh_tonearest_test_data): Remove.
49059         (cosh_test_tonearest): Likewise.
49060         (cosh_towardzero_test_data): Likewise.
49061         (cosh_test_towardzero): Likewise.
49062         (cosh_downward_test_data): Likewise.
49063         (cosh_test_downward): Likewise.
49064         (cosh_upward_test_data): Likewise.
49065         (cosh_test_upward): Likewise.
49066         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
49067         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
49068         (ctan_test_data): Likewise.
49069         (ctan_test): Use ALL_RM_TEST.
49070         (ctan_tonearest_test_data): Remove.
49071         (ctan_test_tonearest): Likewise.
49072         (ctan_towardzero_test_data): Likewise.
49073         (ctan_test_towardzero): Likewise.
49074         (ctan_downward_test_data): Likewise.
49075         (ctan_test_downward): Likewise.
49076         (ctan_upward_test_data): Likewise.
49077         (ctan_test_upward): Likewise.
49078         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
49079         (ctanh_test): Use ALL_RM_TEST.
49080         (ctanh_tonearest_test_data): Remove.
49081         (ctanh_test_tonearest): Likewise.
49082         (ctanh_towardzero_test_data): Likewise.
49083         (ctanh_test_towardzero): Likewise.
49084         (ctanh_downward_test_data): Likewise.
49085         (ctanh_test_downward): Likewise.
49086         (ctanh_upward_test_data): Likewise.
49087         (ctanh_test_upward): Likewise.
49088         (erf_test_data): Update call to AUTO_TESTS_f_f.
49089         (erfc_test_data): Likewise.
49090         (exp_test_data): Likewise.
49091         (exp_test): Use ALL_RM_TEST.
49092         (exp_tonearest_test_data): Remove.
49093         (exp_test_tonearest): Likewise.
49094         (exp_towardzero_test_data): Likewise.
49095         (exp_test_towardzero): Likewise.
49096         (exp_downward_test_data): Likewise.
49097         (exp_test_downward): Likewise.
49098         (exp_upward_test_data): Likewise.
49099         (exp_test_upward): Likewise.
49100         (exp10_test_data): Update call to AUTO_TESTS_f_f.
49101         (exp10_test): Use ALL_RM_TEST.
49102         (exp10_tonearest_test_data): Remove.
49103         (exp10_test_tonearest): Likewise.
49104         (exp10_towardzero_test_data): Likewise.
49105         (exp10_test_towardzero): Likewise.
49106         (exp10_downward_test_data): Likewise.
49107         (exp10_test_downward): Likewise.
49108         (exp10_upward_test_data): Likewise.
49109         (exp10_test_upward): Likewise.
49110         (exp2_test_data): Update call to AUTO_TESTS_f_f.
49111         (expm1_test_data): Likewise.
49112         (expm1_test): Use ALL_RM_TEST.
49113         (expm1_tonearest_test_data): Remove.
49114         (expm1_test_tonearest): Likewise.
49115         (expm1_towardzero_test_data): Likewise.
49116         (expm1_test_towardzero): Likewise.
49117         (expm1_downward_test_data): Likewise.
49118         (expm1_test_downward): Likewise.
49119         (expm1_upward_test_data): Likewise.
49120         (expm1_test_upward): Likewise.
49121         (fma_test_data): Update call to AUTO_TESTS_fff_f.
49122         (fma_test): Use ALL_RM_TEST.
49123         (fma_towardzero_test_data): Remove.
49124         (fma_test_towardzero): Likewise.
49125         (fma_downward_test_data): Likewise.
49126         (fma_test_downward): Likewise.
49127         (fma_upward_test_data): Likewise.
49128         (fma_test_upward): Likewise.
49129         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
49130         (j0_test_data): Update call to AUTO_TESTS_f_f.
49131         (j1_test_data): Likewise.
49132         (jn_test_data): Update call to AUTO_TESTS_if_f.
49133         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
49134         (log_test_data): Update call to AUTO_TESTS_f_f.
49135         (log10_test_data): Likewise.
49136         (log1p_test_data): Likewise.
49137         (log2_test_data): Likewise.
49138         (pow_test_data): Update call to AUTO_TESTS_ff_f.
49139         (pow_tonearest_test_data): Likewise.
49140         (sin_test_data): Update call to AUTO_TESTS_f_f.
49141         (sin_test): Use ALL_RM_TEST.
49142         (sin_tonearest_test_data): Remove.
49143         (sin_test_tonearest): Likewise.
49144         (sin_towardzero_test_data): Likewise.
49145         (sin_test_towardzero): Likewise.
49146         (sin_downward_test_data): Likewise.
49147         (sin_test_downward): Likewise.
49148         (sin_upward_test_data): Likewise.
49149         (sin_test_upward): Likewise.
49150         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
49151         (sinh_test_data): Update call to AUTO_TESTS_f_f.
49152         (sinh_test): Use ALL_RM_TEST.
49153         (sinh_tonearest_test_data): Remove.
49154         (sinh_test_tonearest): Likewise.
49155         (sinh_towardzero_test_data): Likewise.
49156         (sinh_test_towardzero): Likewise.
49157         (sinh_downward_test_data): Likewise.
49158         (sinh_test_downward): Likewise.
49159         (sinh_upward_test_data): Likewise.
49160         (sinh_test_upward): Likewise.
49161         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
49162         (sqrt_test): Use ALL_RM_TEST.
49163         (sqrt_tonearest_test_data): Remove.
49164         (sqrt_test_tonearest): Likewise.
49165         (sqrt_towardzero_test_data): Likewise.
49166         (sqrt_test_towardzero): Likewise.
49167         (sqrt_downward_test_data): Likewise.
49168         (sqrt_test_downward): Likewise.
49169         (sqrt_upward_test_data): Likewise.
49170         (sqrt_test_upward): Likewise.
49171         (tan_test_data): Update call to AUTO_TESTS_f_f.
49172         (tan_test): Use ALL_RM_TEST.
49173         (tan_tonearest_test_data): Remove.
49174         (tan_test_tonearest): Likewise.
49175         (tan_towardzero_test_data): Likewise.
49176         (tan_test_towardzero): Likewise.
49177         (tan_downward_test_data): Likewise.
49178         (tan_test_downward): Likewise.
49179         (tan_upward_test_data): Likewise.
49180         (tan_test_upward): Likewise.
49181         (tanh_test_data): Update call to AUTO_TESTS_f_f.
49182         (tgamma_test_data): Likewise.
49183         (y0_test_data): Likewise.
49184         (y1_test_data): Likewise.
49185         (yn_test_data): Update call to AUTO_TESTS_if_f.
49186         (main): Do not call removed functions.
49187
49188 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
49189
49190         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
49191         (ldexp_test_data): Remove.
49192         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
49193         scalbn_test_data.
49194         (scalb_test): Use ALL_RM_TEST.
49195
49196 2014-03-19  Andreas Schwab  <schwab@suse.de>
49197
49198         * nscd/nscd.service: Also invalidate netgroup cache on reload.
49199
49200 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
49201
49202         [BZ #16649]
49203         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
49204         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
49205         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
49206         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
49207         (__ASSUME_PREADV): Undefine.
49208         (__ASSUME_PWRITEV): Likewise.
49209
49210 2014-03-18  Roland McGrath  <roland@hack.frob.com>
49211
49212         * bits/mman-linux.h: Add comment about non-Linux use.
49213         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
49214         bits/mman-linux.h resting place.
49215
49216         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
49217         * bits/mman-linux.h: ... here.
49218
49219 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49220
49221         * conform/conformtest.pl: Add standard definition when calling C
49222         preprocessor on data files.
49223         (checknamespace): Remove unused variable.
49224
49225 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
49226
49227         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
49228         minus_oflow, plus_uflow and minus_uflow in expected results.
49229         * math/libm-test.inc (scalbn_test_data): Add more tests of
49230         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
49231         minus_uflow.
49232         (scalbn_test): Use ALL_RM_TEST.
49233         (scalbln_test_data): Add more tests of negative arguments.  Use
49234         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
49235         (scalbln_test): Use ALL_RM_TEST.
49236
49237 2014-03-18  Roland McGrath  <roland@hack.frob.com>
49238
49239         * scripts/abilist.awk: Ignore symbols marked with .hidden.
49240
49241 2014-03-18  Will Newton  <will.newton@linaro.org>
49242
49243         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
49244         inaccurate comment.
49245
49246 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
49247
49248         * Makerules [!subdir] (check-abi): Exit with error status if a
49249         test failed.
49250
49251 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
49252
49253         * math/libm-test.inc (nearbyint_test_data): Include all tests used
49254         for rint.  Include results for all rounding modes.
49255         (nearbyint_test): Use ALL_RM_TEST.
49256         (rint_test_data): Include all tests used for nearbyint.
49257
49258 2014-03-17  Will Newton  <will.newton@linaro.org>
49259
49260         * nptl/sysdeps/pthread/pthread.h: Revert previous
49261         change.
49262
49263         * sysdeps/generic/ldsodefs.h: Revert previous
49264         change.
49265
49266         * libio/genops.c: Revert previous change.
49267         * libio/libioP.h: Likewise.
49268         * stdio-common/vfprintf.c: Likewise.
49269
49270         * sysdeps/generic/math_private.h: Revert previous
49271         change.
49272
49273         * sysdeps/generic/math_private.h: Check whether
49274         HAVE_RM_CTX is defined with #ifdef rather
49275         than #if.
49276
49277         * argp/argp-fmtstream.h: Check whether
49278         __STRICT_ANSI__ is defined with #ifdef rather
49279         than #if.
49280         * argp/argp.h: Likewise.
49281
49282         * libio/genops.c: Check whether
49283         _IO_JUMPS_OFFSET is defined with #ifdef rather
49284         than #if.
49285         * libio/libioP.h: Likewise.
49286         * stdio-common/vfprintf.c: Likewise.
49287
49288         * sysdeps/generic/ldsodefs.h: Check whether
49289         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
49290         than #if.
49291
49292         * nptl/sysdeps/pthread/pthread.h: Check
49293         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
49294         its value.
49295
49296 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
49297
49298         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
49299         setting O_APPEND.
49300         * libio/tst-ftell-active-handler.c (do_append_test): Add a
49301         test case.
49302
49303         [BZ #16680]
49304         * libio/fileops.c (_IO_file_open): Seek to end of file but
49305         don't cache the offset.
49306         (get_file_offset): Remove function.
49307         (do_ftell): Use cached offset when available.
49308         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
49309         don't cache the offset.
49310         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
49311         case.
49312         (do_one_test): Call it.
49313         (do_ftell_test): Fix up expected old offset for a+ mode.
49314         * libio/wfileops.c (do_ftell_wide): Used cached offset when
49315         available.
49316
49317         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
49318         up test status with function return status.
49319         (do_write_test): Likewise.
49320         (do_append_test): Likewise.
49321
49322         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
49323         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
49324         Remove.
49325
49326 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
49327
49328         * math/gen-libm-test.pl (parse_args): Handle results specified for
49329         each rounding mode separately.
49330         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
49331         tests and results from lrint_tonearest_test_data,
49332         lrint_towardzero_test_data, lrint_downward_test_data and
49333         lrint_upward_test_data.
49334         (lrint_test): Use ALL_RM_TEST.
49335         (lrint_tonearest_test_data): Remove.
49336         (lrint_test_tonearest): Likewise.
49337         (lrint_towardzero_test_data): Likewise.
49338         (lrint_test_towardzero): Likewise.
49339         (lrint_downward_test_data): Likewise.
49340         (lrint_test_downward): Likewise.
49341         (lrint_upward_test_data): Likewise.
49342         (lrint_test_upward): Likewise.
49343         (llrint_test_data): Merge in per-rounding-mode tests and results
49344         from llrint_tonearest_test_data, llrint_towardzero_test_data,
49345         llrint_downward_test_data and llrint_upward_test_data.
49346         (llrint_test): Use ALL_RM_TEST.
49347         (llrint_tonearest_test_data): Remove.
49348         (llrint_test_tonearest): Likewise.
49349         (llrint_towardzero_test_data): Likewise.
49350         (llrint_test_towardzero): Likewise.
49351         (llrint_downward_test_data): Likewise.
49352         (llrint_test_downward): Likewise.
49353         (llrint_upward_test_data): Likewise.
49354         (llrint_test_upward): Likewise.
49355         (rint_test_data): Merge in per-rounding-mode tests and results
49356         from rint_tonearest_test_data, rint_towardzero_test_data,
49357         rint_downward_test_data and rint_upward_test_data.  Add
49358         per-rounding-mode results for tests not in those arrays.
49359         (rint_test): Use ALL_RM_TEST.
49360         (rint_tonearest_test_data): Remove.
49361         (rint_test_tonearest): Likewise.
49362         (rint_towardzero_test_data): Likewise.
49363         (rint_test_towardzero): Likewise.
49364         (rint_downward_test_data): Likewise.
49365         (rint_test_downward): Likewise.
49366         (rint_upward_test_data): Likewise.
49367         (rint_test_upward): Likewise.
49368         (main): Don't call removed functions.
49369
49370 2014-03-14  Roland McGrath  <roland@hack.frob.com>
49371
49372         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
49373         "Compiled on ..." crapola.  It is anti-useful.
49374
49375 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
49376
49377         * scripts/evaluate-test.sh: Handle fourth argument to determine
49378         whether test run should stop on failure.
49379         * Makeconfig (stop-on-test-failure): New variable.
49380         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
49381         $(stop-on-test-failure).
49382         * Makefile (tests): Give a summary of results from testing and
49383         exit with failure status if they include an ERROR or FAIL.
49384         (xtests): Likewise.
49385         * manual/install.texi (Configuring and compiling): Mention
49386         stop-on-test-failure=y.
49387         * INSTALL: Regenerated.
49388
49389 2014-03-14  Roland McGrath  <roland@hack.frob.com>
49390
49391         * scripts/versionlist.awk: New file.
49392         * Makerules [$(build-shared) = yes]
49393         (postclean-generated): Add Versions.def, not Versions.def.v and
49394         Versions.def.v.i.
49395         ($(common-objpfx)Versions.def.v.i): Target removed.
49396         ($(common-objpfx)Versions.def): New target.
49397         ($(common-objpfx)Versions.all): Depend on that rather that
49398         $(common-objpfx)Versions.def.v.
49399         * Versions.def: File removed.
49400
49401         * Makeconfig (+gccwarn): Add -Wundef.
49402         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
49403         a dl-sysdep.h breaking its contract.
49404         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
49405         * include/stackinfo.h: New file.
49406         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
49407         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
49408         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
49409         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
49410         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
49411         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
49412         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
49413         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
49414         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
49415         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
49416         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
49417         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
49418         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
49419         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
49420         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
49421
49422 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49423
49424         [BZ #16707]
49425         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
49426         implementation.
49427         * math/libm-test.inc (round_test_data): Add more tests.
49428
49429         [BZ #16706]
49430         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
49431         implementation.
49432         * math/libm-test.inc (nearbyint_test_data): Add more tests.
49433
49434         [BZ #16701]
49435         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
49436         implementation.
49437         * math/libm-test.inc (ceil_test_data): Add more tests.
49438
49439         * math/libm-test.inc (trunc_test_data): Add more tests related to
49440         BZ#16414.
49441
49442 2014-03-14  Roland McGrath  <roland@hack.frob.com>
49443
49444         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
49445         with #if rather than #ifdef.
49446         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
49447
49448 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
49449
49450         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
49451         first.  Disable AVX-512 GCC support if assembler doesn't support
49452         it.
49453         * sysdeps/x86_64/configure: Regenerated.
49454
49455 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
49456
49457         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
49458         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
49459         (__old_pthread_attr_setstack): Likewise.
49460         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
49461         [!_STACK_GROWS_DOWN]: Likewise.
49462
49463 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
49464
49465         * config.make.in (have-bash2): Delete.
49466         * configure.ac (libc_cv_have_bash2): Delete.
49467         * configure: Regenerate.
49468         * elf/Makefile (common-ldd-rewrite): Rename to ...
49469         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
49470         (sh-ldd-rewrite): Delete.
49471         (bash-ldd-rewrite): Delete.
49472         (have-bash2): Delete checks.
49473         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
49474         ldd-rewrite.
49475
49476         * config.make.in (have-ksh): Delete.
49477         (KSH): Delete.
49478         * configure.ac (libc_cv_have_ksh): Delete.
49479         * configure: Regenerate.
49480
49481         * elf/Makefile: Delete $(have-ksh) check.
49482         ($(objpfx)sotruss): Change KSH to BASH.
49483         * elf/sotruss.ksh: Rename to ...
49484         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
49485         function style to match POSIX.  Drop ksh vim mode setting.
49486
49487         * manual/time.texi (Specifying the Time Zone with TZ): Change
49488         Tuesday to Thursday.
49489
49490         * debug/tst-longjmp_chk2.c: Update header comment.
49491         (stackoverflow_handler): Add comment.  Call assert on pass value.
49492
49493 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
49494
49495         [BZ #16194]
49496         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
49497         (HAVE_AVX512_ASM_SUPPORT): Likewise.
49498         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
49499         (La_x86_64_vector): Add zmm.
49500         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
49501         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
49502         ($(objpfx)tst-audit10): New target.
49503         ($(objpfx)tst-audit10.out): Likewise.
49504         (tst-audit10-ENV): New.
49505         (AVX512-CFLAGS): Likewise.
49506         (CFLAGS-tst-audit10.c): Likewise.
49507         (CFLAGS-tst-auditmod10a.c): Likewise.
49508         (CFLAGS-tst-auditmod10b.c): Likewise.
49509         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
49510         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
49511         * sysdeps/x86_64/configure: Regenerated.
49512         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
49513         AVX-512 zmm register support.
49514         (_dl_x86_64_save_sse): Likewise.
49515         (_dl_x86_64_restore_sse): Likewise.
49516         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
49517         size vector registers.
49518         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
49519         (ZMM_SIZE): Likewise.
49520         * sysdeps/x86_64/tst-audit10.c: New file.
49521         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
49522         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
49523
49524 2014-03-13  Roland McGrath  <roland@hack.frob.com>
49525
49526         * configure.ac (HAVE_EHDR_START): New check.
49527         * configure: Regenerated.
49528         * config.h.in (HAVE_EHDR_START): New #undef.
49529         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
49530         assuming the lowest-addressed segment maps the start of the file.
49531
49532 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
49533
49534         * INSTALL: Regenerated.
49535
49536 2014-03-13  Will Newton  <will.newton@linaro.org>
49537
49538         * manual/setjmp.texi (System V contexts): Improve
49539         clarity and grammar of documentation.
49540
49541 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
49542
49543         [BZ #16381]
49544         * elf/Makefile (tests): Add tst-pie2.
49545         (tests-pie): Add tst-pie2.
49546         * elf/tst-pie2.c: New file.
49547         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
49548         for ET_EXEC.
49549         * elf/rtld.c (map_doit): Load executable as lt_executable.
49550         (dl_main): Likewise.
49551
49552 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
49553
49554         [BZ #16642]
49555         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
49556         (__ASSUME_PSELECT): Undefine.
49557
49558 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49559
49560         [BZ #16689]
49561         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
49562         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
49563         static build.
49564         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
49565         selector for static builds.
49566
49567 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
49568
49569         [BZ #16695]
49570         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
49571         key in the buffer.
49572
49573 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49574
49575         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
49576         IFUNC selector for static builds.
49577
49578 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
49579
49580         * sysdeps/mips/math_private.h [__mips_hard_float]
49581         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
49582         libc_feresetround_mips_ctx.
49583         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
49584         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
49585         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
49586
49587         [BZ #16677]
49588         * math/s_nextafter.c (__nextafter): Do not return value from
49589         overflowing computation.
49590         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
49591         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
49592         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
49593         Likewise.
49594         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
49595         Likewise.
49596         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
49597         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
49598
49599 2014-03-11  Roland McGrath  <roland@hack.frob.com>
49600
49601         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
49602         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
49603         Move sfi_sp use from the load-multiple (that no longer sets sp) to
49604         the new mov targetting sp.
49605
49606 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49607
49608         [BZ #16683]
49609         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
49610         Define it for static builds as well.
49611         (NO_BZERO_IMPL): Likewise.
49612
49613 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
49614
49615         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
49616         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
49617         multiarch strspn for PPC64.
49618         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
49619         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
49620         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
49621         (__libc_ifunc_impl_list): Likewise.
49622         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
49623         multiarch optimizations
49624         * string/strspn.c (strspn): Using macro to redefine symbol name.
49625
49626 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
49627             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49628
49629         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
49630         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
49631         multiarch strncat for PPC64.
49632         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
49633         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
49634         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
49635         (__libc_ifunc_impl_list): Likewise.
49636         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
49637         multiarch optimizations
49638
49639 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
49640
49641         [BZ #16639]
49642         * nscd/nscd.service: Make service type forking.
49643
49644 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49645
49646         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
49647         sign in non default rounding modes.
49648         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
49649
49650 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
49651
49652         * math/libm-test.inc (ALL_RM_TEST): New macro.
49653         (ceil_test): Use ALL_RM_TEST.
49654         (cimag_test): Likewise.
49655         (conj_test): Likewise.
49656         (copysign_test): Likewise.
49657         (cproj_test): Likewise.
49658         (creal_test): Likewise.
49659         (fabs_test): Likewise.
49660         (floor_test): Likewise.
49661         (fmax_test): Likewise.
49662         (fmin_test): Likewise.
49663         (fmod_test): Likewise.
49664         (fpclassify_test): Likewise.
49665         (frexp_test): Likewise.
49666         (ilogb_test): Likewise.
49667         (isfinite_test): Likewise.
49668         (finite_test): Likewise.
49669         (isgreater_test): Likewise.
49670         (isgreaterequal_test): Likewise.
49671         (isinf_test): Likewise.
49672         (isless_test): Likewise.
49673         (islessequal_test): Likewise.
49674         (islessgreater_test): Likewise.
49675         (isnan_test): Likewise.
49676         (isnormal_test): Likewise.
49677         (issignaling_test): Likewise.
49678         (isunordered_test): Likewise.
49679         (logb_test): Likewise.
49680         (logb_downward_test_data): Remove.
49681         (logb_test_downward): Likewise.
49682         (lround_test): Use ALL_RM_TEST.
49683         (llround_test): Likewise.
49684         (modf_test): Likewise.
49685         (nexttoward_test): Likewise.
49686         (remainder_test): Likewise.
49687         (drem_test): Likewise.
49688         (remainder_tonearest_test_data): Likewise.
49689         (remainder_test_tonearest): Likewise.
49690         (drem_test_tonearest): Likewise.
49691         (remainder_towardzero_test_data): Likewise.
49692         (remainder_test_towardzero): Likewise.
49693         (drem_test_towardzero): Likewise.
49694         (remainder_downward_test_data): Likewise.
49695         (remainder_test_downward): Likewise.
49696         (drem_test_downward): Likewise.
49697         (remainder_upward_test_data): Likewise.
49698         (remainder_test_upward): Likewise.
49699         (drem_test_upward): Likewise.
49700         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
49701         (round_test): Use ALL_RM_TEST.
49702         (signbit_test): Likewise.
49703         (trunc_test): Likewise.
49704         (significand_test): Likewise.
49705         (main): Don't call removed functions.
49706
49707 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
49708
49709         [BZ #16674]
49710         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
49711         || __USE_XOPEN2K8].
49712         (ILL_ILLOPN): Likewise.
49713         (ILL_ILLADR): Likewise.
49714         (ILL_ILLTRP): Likewise.
49715         (ILL_PRVOPC): Likewise.
49716         (ILL_PRVREG): Likewise.
49717         (ILL_COPROC): Likewise.
49718         (ILL_BADSTK): Likewise.
49719         (FPE_INTDIV): Likewise.
49720         (FPE_INTOVF): Likewise.
49721         (FPE_FLTDIV): Likewise.
49722         (FPE_FLTOVF): Likewise.
49723         (FPE_FLTUND): Likewise.
49724         (FPE_FLTRES): Likewise.
49725         (FPE_FLTINV): Likewise.
49726         (FPE_FLTSUB): Likewise.
49727         (SEGV_MAPERR): Likewise.
49728         (SEGV_ACCERR): Likewise.
49729         (BUS_ADRALN): Likewise.
49730         (BUS_ADRERR): Likewise.
49731         (BUS_OBJERR): Likewise.
49732         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49733         (TRAP_TRACE): Likewise.
49734         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49735         __USE_XOPEN2K8].
49736         (CLD_KILLED): Likewise.
49737         (CLD_DUMPED): Likewise.
49738         (CLD_TRAPPED): Likewise.
49739         (CLD_STOPPED): Likewise.
49740         (CLD_CONTINUED): Likewise.
49741         (POLL_IN): Likewise.
49742         (POLL_OUT): Likewise.
49743         (POLL_MSG): Likewise.
49744         (POLL_ERR): Likewise.
49745         (POLL_PRI): Likewise.
49746         (POLL_HUP): Likewise.
49747         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
49748         Likewise.
49749         (ILL_ILLOPN): Likewise.
49750         (ILL_ILLADR): Likewise.
49751         (ILL_ILLTRP): Likewise.
49752         (ILL_PRVOPC): Likewise.
49753         (ILL_PRVREG): Likewise.
49754         (ILL_COPROC): Likewise.
49755         (ILL_BADSTK): Likewise.
49756         (FPE_INTDIV): Likewise.
49757         (FPE_INTOVF): Likewise.
49758         (FPE_FLTDIV): Likewise.
49759         (FPE_FLTOVF): Likewise.
49760         (FPE_FLTUND): Likewise.
49761         (FPE_FLTRES): Likewise.
49762         (FPE_FLTINV): Likewise.
49763         (FPE_FLTSUB): Likewise.
49764         (SEGV_MAPERR): Likewise.
49765         (SEGV_ACCERR): Likewise.
49766         (BUS_ADRALN): Likewise.
49767         (BUS_ADRERR): Likewise.
49768         (BUS_OBJERR): Likewise.
49769         (BUS_MCEERR_AR): Likewise.
49770         (BUS_MCEERR_AO): Likewise.
49771         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49772         (TRAP_TRACE): Likewise.
49773         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49774         __USE_XOPEN2K8].
49775         (CLD_KILLED): Likewise.
49776         (CLD_DUMPED): Likewise.
49777         (CLD_TRAPPED): Likewise.
49778         (CLD_STOPPED): Likewise.
49779         (CLD_CONTINUED): Likewise.
49780         (POLL_IN): Likewise.
49781         (POLL_OUT): Likewise.
49782         (POLL_MSG): Likewise.
49783         (POLL_ERR): Likewise.
49784         (POLL_PRI): Likewise.
49785         (POLL_HUP): Likewise.
49786         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
49787         (ILL_ILLOPN): Likewise.
49788         (ILL_ILLADR): Likewise.
49789         (ILL_ILLTRP): Likewise.
49790         (ILL_PRVOPC): Likewise.
49791         (ILL_PRVREG): Likewise.
49792         (ILL_COPROC): Likewise.
49793         (ILL_BADSTK): Likewise.
49794         (FPE_INTDIV): Likewise.
49795         (FPE_INTOVF): Likewise.
49796         (FPE_FLTDIV): Likewise.
49797         (FPE_FLTOVF): Likewise.
49798         (FPE_FLTUND): Likewise.
49799         (FPE_FLTRES): Likewise.
49800         (FPE_FLTINV): Likewise.
49801         (FPE_FLTSUB): Likewise.
49802         (SEGV_MAPERR): Likewise.
49803         (SEGV_ACCERR): Likewise.
49804         (BUS_ADRALN): Likewise.
49805         (BUS_ADRERR): Likewise.
49806         (BUS_OBJERR): Likewise.
49807         (BUS_MCEERR_AR): Likewise.
49808         (BUS_MCEERR_AO): Likewise.
49809         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49810         (TRAP_TRACE): Likewise.
49811         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49812         __USE_XOPEN2K8].
49813         (CLD_KILLED): Likewise.
49814         (CLD_DUMPED): Likewise.
49815         (CLD_TRAPPED): Likewise.
49816         (CLD_STOPPED): Likewise.
49817         (CLD_CONTINUED): Likewise.
49818         (POLL_IN): Likewise.
49819         (POLL_OUT): Likewise.
49820         (POLL_MSG): Likewise.
49821         (POLL_ERR): Likewise.
49822         (POLL_PRI): Likewise.
49823         (POLL_HUP): Likewise.
49824         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
49825         Likewise.
49826         (ILL_ILLOPN): Likewise.
49827         (ILL_ILLADR): Likewise.
49828         (ILL_ILLTRP): Likewise.
49829         (ILL_PRVOPC): Likewise.
49830         (ILL_PRVREG): Likewise.
49831         (ILL_COPROC): Likewise.
49832         (ILL_BADSTK): Likewise.
49833         (ILL_BADIADDR): Likewise.
49834         (ILL_BREAK): Likewise.
49835         (FPE_INTDIV): Likewise.
49836         (FPE_INTOVF): Likewise.
49837         (FPE_FLTDIV): Likewise.
49838         (FPE_FLTOVF): Likewise.
49839         (FPE_FLTUND): Likewise.
49840         (FPE_FLTRES): Likewise.
49841         (FPE_FLTINV): Likewise.
49842         (FPE_FLTSUB): Likewise.
49843         (FPE_DECOVF): Likewise.
49844         (FPE_DECDIV): Likewise.
49845         (FPE_DECERR): Likewise.
49846         (FPE_INVASC): Likewise.
49847         (FPE_INVDEC): Likewise.
49848         (SEGV_MAPERR): Likewise.
49849         (SEGV_ACCERR): Likewise.
49850         (SEGV_PSTKOVF): Likewise.
49851         (BUS_ADRALN): Likewise.
49852         (BUS_ADRERR): Likewise.
49853         (BUS_OBJERR): Likewise.
49854         (BUS_MCEERR_AR): Likewise.
49855         (BUS_MCEERR_AO): Likewise.
49856         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49857         (TRAP_TRACE): Likewise.
49858         (TRAP_BRANCH): Likewise.
49859         (TRAP_HWBKPT): Likewise.
49860         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49861         __USE_XOPEN2K8].
49862         (CLD_KILLED): Likewise.
49863         (CLD_DUMPED): Likewise.
49864         (CLD_TRAPPED): Likewise.
49865         (CLD_STOPPED): Likewise.
49866         (CLD_CONTINUED): Likewise.
49867         (POLL_IN): Likewise.
49868         (POLL_OUT): Likewise.
49869         (POLL_MSG): Likewise.
49870         (POLL_ERR): Likewise.
49871         (POLL_PRI): Likewise.
49872         (POLL_HUP): Likewise.
49873         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
49874         (ILL_ILLOPN): Likewise.
49875         (ILL_ILLADR): Likewise.
49876         (ILL_ILLTRP): Likewise.
49877         (ILL_PRVOPC): Likewise.
49878         (ILL_PRVREG): Likewise.
49879         (ILL_COPROC): Likewise.
49880         (ILL_BADSTK): Likewise.
49881         (FPE_INTDIV): Likewise.
49882         (FPE_INTOVF): Likewise.
49883         (FPE_FLTDIV): Likewise.
49884         (FPE_FLTOVF): Likewise.
49885         (FPE_FLTUND): Likewise.
49886         (FPE_FLTRES): Likewise.
49887         (FPE_FLTINV): Likewise.
49888         (FPE_FLTSUB): Likewise.
49889         (SEGV_MAPERR): Likewise.
49890         (SEGV_ACCERR): Likewise.
49891         (BUS_ADRALN): Likewise.
49892         (BUS_ADRERR): Likewise.
49893         (BUS_OBJERR): Likewise.
49894         (BUS_MCEERR_AR): Likewise.
49895         (BUS_MCEERR_AO): Likewise.
49896         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49897         (TRAP_TRACE): Likewise.
49898         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49899         __USE_XOPEN2K8].
49900         (CLD_KILLED): Likewise.
49901         (CLD_DUMPED): Likewise.
49902         (CLD_TRAPPED): Likewise.
49903         (CLD_STOPPED): Likewise.
49904         (CLD_CONTINUED): Likewise.
49905         (POLL_IN): Likewise.
49906         (POLL_OUT): Likewise.
49907         (POLL_MSG): Likewise.
49908         (POLL_ERR): Likewise.
49909         (POLL_PRI): Likewise.
49910         (POLL_HUP): Likewise.
49911         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
49912         (ILL_ILLOPN): Likewise.
49913         (ILL_ILLADR): Likewise.
49914         (ILL_ILLTRP): Likewise.
49915         (ILL_PRVOPC): Likewise.
49916         (ILL_PRVREG): Likewise.
49917         (ILL_COPROC): Likewise.
49918         (ILL_BADSTK): Likewise.
49919         (FPE_INTDIV): Likewise.
49920         (FPE_INTOVF): Likewise.
49921         (FPE_FLTDIV): Likewise.
49922         (FPE_FLTOVF): Likewise.
49923         (FPE_FLTUND): Likewise.
49924         (FPE_FLTRES): Likewise.
49925         (FPE_FLTINV): Likewise.
49926         (FPE_FLTSUB): Likewise.
49927         (SEGV_MAPERR): Likewise.
49928         (SEGV_ACCERR): Likewise.
49929         (BUS_ADRALN): Likewise.
49930         (BUS_ADRERR): Likewise.
49931         (BUS_OBJERR): Likewise.
49932         (BUS_MCEERR_AR): Likewise.
49933         (BUS_MCEERR_AO): Likewise.
49934         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49935         (TRAP_TRACE): Likewise.
49936         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49937         __USE_XOPEN2K8].
49938         (CLD_KILLED): Likewise.
49939         (CLD_DUMPED): Likewise.
49940         (CLD_TRAPPED): Likewise.
49941         (CLD_STOPPED): Likewise.
49942         (CLD_CONTINUED): Likewise.
49943         (POLL_IN): Likewise.
49944         (POLL_OUT): Likewise.
49945         (POLL_MSG): Likewise.
49946         (POLL_ERR): Likewise.
49947         (POLL_PRI): Likewise.
49948         (POLL_HUP): Likewise.
49949         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
49950         (ILL_ILLOPN): Likewise.
49951         (ILL_ILLADR): Likewise.
49952         (ILL_ILLTRP): Likewise.
49953         (ILL_PRVOPC): Likewise.
49954         (ILL_PRVREG): Likewise.
49955         (ILL_COPROC): Likewise.
49956         (ILL_BADSTK): Likewise.
49957         (FPE_INTDIV): Likewise.
49958         (FPE_INTOVF): Likewise.
49959         (FPE_FLTDIV): Likewise.
49960         (FPE_FLTOVF): Likewise.
49961         (FPE_FLTUND): Likewise.
49962         (FPE_FLTRES): Likewise.
49963         (FPE_FLTINV): Likewise.
49964         (FPE_FLTSUB): Likewise.
49965         (SEGV_MAPERR): Likewise.
49966         (SEGV_ACCERR): Likewise.
49967         (BUS_ADRALN): Likewise.
49968         (BUS_ADRERR): Likewise.
49969         (BUS_OBJERR): Likewise.
49970         (BUS_MCEERR_AR): Likewise.
49971         (BUS_MCEERR_AO): Likewise.
49972         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49973         (TRAP_TRACE): Likewise.
49974         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49975         __USE_XOPEN2K8].
49976         (CLD_KILLED): Likewise.
49977         (CLD_DUMPED): Likewise.
49978         (CLD_TRAPPED): Likewise.
49979         (CLD_STOPPED): Likewise.
49980         (CLD_CONTINUED): Likewise.
49981         (POLL_IN): Likewise.
49982         (POLL_OUT): Likewise.
49983         (POLL_MSG): Likewise.
49984         (POLL_ERR): Likewise.
49985         (POLL_PRI): Likewise.
49986         (POLL_HUP): Likewise.
49987         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
49988         (ILL_ILLOPN): Likewise.
49989         (ILL_ILLADR): Likewise.
49990         (ILL_ILLTRP): Likewise.
49991         (ILL_PRVOPC): Likewise.
49992         (ILL_PRVREG): Likewise.
49993         (ILL_COPROC): Likewise.
49994         (ILL_BADSTK): Likewise.
49995         (ILL_DBLFLT): Likewise.
49996         (ILL_HARDWALL): Likewise.
49997         (FPE_INTDIV): Likewise.
49998         (FPE_INTOVF): Likewise.
49999         (FPE_FLTDIV): Likewise.
50000         (FPE_FLTOVF): Likewise.
50001         (FPE_FLTUND): Likewise.
50002         (FPE_FLTRES): Likewise.
50003         (FPE_FLTINV): Likewise.
50004         (FPE_FLTSUB): Likewise.
50005         (SEGV_MAPERR): Likewise.
50006         (SEGV_ACCERR): Likewise.
50007         (BUS_ADRALN): Likewise.
50008         (BUS_ADRERR): Likewise.
50009         (BUS_OBJERR): Likewise.
50010         (BUS_MCEERR_AR): Likewise.
50011         (BUS_MCEERR_AO): Likewise.
50012         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
50013         (TRAP_TRACE): Likewise.
50014         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
50015         __USE_XOPEN2K8].
50016         (CLD_KILLED): Likewise.
50017         (CLD_DUMPED): Likewise.
50018         (CLD_TRAPPED): Likewise.
50019         (CLD_STOPPED): Likewise.
50020         (CLD_CONTINUED): Likewise.
50021         (POLL_IN): Likewise.
50022         (POLL_OUT): Likewise.
50023         (POLL_MSG): Likewise.
50024         (POLL_ERR): Likewise.
50025         (POLL_PRI): Likewise.
50026         (POLL_HUP): Likewise.
50027         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
50028         (ILL_ILLOPN): Likewise.
50029         (ILL_ILLADR): Likewise.
50030         (ILL_ILLTRP): Likewise.
50031         (ILL_PRVOPC): Likewise.
50032         (ILL_PRVREG): Likewise.
50033         (ILL_COPROC): Likewise.
50034         (ILL_BADSTK): Likewise.
50035         (FPE_INTDIV): Likewise.
50036         (FPE_INTOVF): Likewise.
50037         (FPE_FLTDIV): Likewise.
50038         (FPE_FLTOVF): Likewise.
50039         (FPE_FLTUND): Likewise.
50040         (FPE_FLTRES): Likewise.
50041         (FPE_FLTINV): Likewise.
50042         (FPE_FLTSUB): Likewise.
50043         (SEGV_MAPERR): Likewise.
50044         (SEGV_ACCERR): Likewise.
50045         (BUS_ADRALN): Likewise.
50046         (BUS_ADRERR): Likewise.
50047         (BUS_OBJERR): Likewise.
50048         (BUS_MCEERR_AR): Likewise.
50049         (BUS_MCEERR_AO): Likewise.
50050         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
50051         (TRAP_TRACE): Likewise.
50052         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
50053         __USE_XOPEN2K8].
50054         (CLD_KILLED): Likewise.
50055         (CLD_DUMPED): Likewise.
50056         (CLD_TRAPPED): Likewise.
50057         (CLD_STOPPED): Likewise.
50058         (CLD_CONTINUED): Likewise.
50059         (POLL_IN): Likewise.
50060         (POLL_OUT): Likewise.
50061         (POLL_MSG): Likewise.
50062         (POLL_ERR): Likewise.
50063         (POLL_PRI): Likewise.
50064         (POLL_HUP): Likewise.
50065         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
50066         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
50067
50068         [BZ #16670]
50069         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
50070         before #include of <time.h>.
50071         [!__USE_XOPEN2K] (__need_timespec): Likewise.
50072         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
50073         (test-xfail-UNIX98/sched.h/conform): Likewise.
50074
50075 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
50076
50077         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
50078         error absence of trapping exception support.
50079         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
50080
50081 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
50082
50083         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
50084         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
50085         * timezone/Makefile (testdata): Move definition above include of
50086         Rules.
50087         (test-zones): New variable.
50088         (tests-special): Add zone files.
50089         (build-testdata): Use $(evaluate-test).
50090
50091         * elf/Makefile (tests-special): Rename tests to end with .out.
50092         ($(objpfx)noload-mem): Likewise.
50093         ($(objpfx)tst-leaks1-mem): Likewise.
50094         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
50095         * iconv/Makefile (xtests-special): Change test-iconvconfig to
50096         $(objpfx)test-iconvconfig.out.
50097         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
50098         set -e inside subshell and redirect output to file.
50099         * iconvdata/Makefile (generated): Rename tests to end with .out.
50100         Correct type.
50101         (tests-special): Rename tests to end with .out.
50102         ($(objpfx)mtrace-tst-loading): Likewise.
50103         * intl/Makefile (generated): Likewise.
50104         (tests-special): Likewise.
50105         ($(objpfx)mtrace-tst-gettext): Likewise.
50106         * misc/Makefile (generated): Likewise.
50107         (tests-special): Likewise.
50108         ($(objpfx)tst-error1-mem): Likewise.
50109         * nptl/Makefile (tests-special): Likewise.
50110         ($(objpfx)tst-stack3-mem): Likewise.
50111         (generated): Likewise.
50112         * posix/Makefile (generated): Likewise.
50113         (tests-special): Likewise.
50114         (xtests-special): Likewise.
50115         ($(objpfx)tst-fnmatch-mem): Likewise.
50116         ($(objpfx)bug-regex2-mem): Likewise.
50117         ($(objpfx)bug-regex14-mem): Likewise.
50118         ($(objpfx)bug-regex21-mem): Likewise.
50119         ($(objpfx)bug-regex31-mem): Likewise.
50120         ($(objpfx)tst-vfork3-mem): Likewise.
50121         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
50122         ($(objpfx)tst-pcre-mem): Likewise.
50123         ($(objpfx)tst-boost-mem): Likewise.
50124         ($(objpfx)bug-ga2-mem): Likewise.
50125         ($(objpfx)bug-glob2-mem): Likewise.
50126         * resolv/Makefile (generate): Likewise.
50127         (tests-special): Likewise.
50128         (xtests-special): Likewise.
50129         (generated): Likewise.
50130         ($(objpfx)mtrace-tst-leaks): Likewise.
50131         ($(objpfx)mtrace-tst-leaks2): Likewise.
50132
50133         * scripts/merge-test-results.sh: New file.
50134         * Makefile (tests-special-notdir): New variable.
50135         (tests): Run merge-test-results.sh.
50136         (xtests): Likewise.
50137         * Rules (tests-special-notdir): New variable.
50138         (xtests-special-notdir): Likewise.
50139         (tests): Run merge-test-results.sh
50140         (xtests): Likewise.
50141
50142         * Makeconfig (test-xfail-name): New variable.
50143         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
50144         compute variable name for expected failures.
50145         * conform/Makefile (conformtest-headers-data): New variable.
50146         (conformtest-standards): Likewise.
50147         (conformtest-headers-ISO): Likewise.
50148         (conformtest-headers-ISO99): Likewise.
50149         (conformtest-headers-ISO11): Likewise.
50150         (conformtest-headers-POSIX): Likewise.
50151         (conformtest-headers-XPG3): Likewise.
50152         (conformtest-headers-XPG4): Likewise.
50153         (conformtest-headers-UNIX98): Likewise.
50154         (conformtest-headers-XOPEN2K): Likewise.
50155         (conformtest-headers-POSIX2008): Likewise.
50156         (conformtest-headers-XOPEN2K8): Likewise.
50157         (conformtest-header-list-base): Likewise.
50158         (conformtest-header-list-tests): Likewise.
50159         (conformtest-header-base): Likewise.
50160         (conformtest-header-tests): Likewise.
50161         (tests-special): Add $(conformtest-header-list-tests).  If
50162         [$(fast-check) && !$(cross-compiling)], add
50163         $(conformtest-header-tests) instead of
50164         $(objpfx)run-conformtest.out.
50165         (generated): Add $(conformtest-header-list-base).  If
50166         [$(fast-check) && !$(cross-compiling)], add
50167         $(conformtest-header-base).  Remove previous setting.
50168         ($(conformtest-header-list-tests)): New target.
50169         (test-xfail-run-conformtest): Remove variable.
50170         ($(objpfx)run-conformtest.out): Remove target.
50171         (test-xfail-ISO11/complex.h/conform): New variable.
50172         (test-xfail-ISO11/stdalign.h/conform): Likewise.
50173         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
50174         (test-xfail-XPG3/varargs.h/conform): Likewise.
50175         (test-xfail-XPG4/varargs.h/conform): Likewise.
50176         (test-xfail-UNIX98/varargs.h/conform): Likewise.
50177         (test-xfail-XPG4/ndbm.h/conform): Likewise.
50178         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
50179         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
50180         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
50181         (test-xfail-XPG3/fcntl.h/conform): Likewise.
50182         (test-xfail-XPG3/ftw.h/conform): Likewise.
50183         (test-xfail-XPG3/grp.h/conform): Likewise.
50184         (test-xfail-XPG3/langinfo.h/conform): Likewise.
50185         (test-xfail-XPG3/limits.h/conform): Likewise.
50186         (test-xfail-XPG3/pwd.h/conform): Likewise.
50187         (test-xfail-XPG3/search.h/conform): Likewise.
50188         (test-xfail-XPG3/signal.h/conform): Likewise.
50189         (test-xfail-XPG3/stdio.h/conform): Likewise.
50190         (test-xfail-XPG3/stdlib.h/conform): Likewise.
50191         (test-xfail-XPG3/string.h/conform): Likewise.
50192         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
50193         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
50194         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
50195         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
50196         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
50197         (test-xfail-XPG3/sys/types.h/conform): Likewise.
50198         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
50199         (test-xfail-XPG3/termios.h/conform): Likewise.
50200         (test-xfail-XPG3/time.h/conform): Likewise.
50201         (test-xfail-XPG3/unistd.h/conform): Likewise.
50202         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
50203         (test-xfail-XPG4/fcntl.h/conform): Likewise.
50204         (test-xfail-XPG4/langinfo.h/conform): Likewise.
50205         (test-xfail-XPG4/netdb.h/conform): Likewise.
50206         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
50207         (test-xfail-XPG4/signal.h/conform): Likewise.
50208         (test-xfail-XPG4/stdio.h/conform): Likewise.
50209         (test-xfail-XPG4/stdlib.h/conform): Likewise.
50210         (test-xfail-XPG4/stropts.h/conform): Likewise.
50211         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
50212         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
50213         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
50214         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
50215         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
50216         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
50217         (test-xfail-XPG4/sys/time.h/conform): Likewise.
50218         (test-xfail-XPG4/sys/types.h/conform): Likewise.
50219         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
50220         (test-xfail-XPG4/termios.h/conform): Likewise.
50221         (test-xfail-XPG4/ucontext.h/conform): Likewise.
50222         (test-xfail-XPG4/unistd.h/conform): Likewise.
50223         (test-xfail-XPG4/utmpx.h/conform): Likewise.
50224         (test-xfail-POSIX/sched.h/conform): Likewise.
50225         (test-xfail-POSIX/signal.h/conform): Likewise.
50226         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
50227         (test-xfail-POSIX/tar.h/conform): Likewise.
50228         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
50229         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
50230         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
50231         (test-xfail-UNIX98/netdb.h/conform): Likewise.
50232         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
50233         (test-xfail-UNIX98/sched.h/conform): Likewise.
50234         (test-xfail-UNIX98/signal.h/conform): Likewise.
50235         (test-xfail-UNIX98/stdio.h/conform): Likewise.
50236         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
50237         (test-xfail-UNIX98/stropts.h/conform): Likewise.
50238         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
50239         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
50240         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
50241         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
50242         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
50243         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
50244         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
50245         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
50246         (test-xfail-UNIX98/unistd.h/conform): Likewise.
50247         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
50248         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
50249         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
50250         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
50251         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
50252         (test-xfail-XOPEN2K/math.h/conform): Likewise.
50253         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
50254         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
50255         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
50256         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
50257         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
50258         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
50259         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
50260         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
50261         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
50262         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
50263         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
50264         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
50265         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
50266         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
50267         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
50268         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
50269         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
50270         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
50271         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
50272         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
50273         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
50274         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
50275         (test-xfail-POSIX2008/signal.h/conform): Likewise.
50276         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
50277         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
50278         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
50279         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
50280         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
50281         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
50282         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
50283         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
50284         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
50285         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
50286         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
50287         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
50288         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
50289         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
50290         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
50291         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
50292         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
50293         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
50294         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
50295         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
50296         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
50297         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
50298         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
50299         (conformtest-cc-flags): Likewise.
50300         ($(conformtest-header-tests): New target.
50301         * conform/check-header-lists.sh: New file.
50302         * conform/run-conformtest.sh: Remove.
50303
50304         * conform/conformtest.pl: Allow ' and \ in values given for
50305         constants.
50306         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
50307         inclusion.
50308         [POSIX] (sys/types.h): Likewise.
50309         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
50310         inclusion.
50311         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
50312         inclusion.
50313         * conform/data/signal.h-data (SIGIO): Remove expectation.
50314         [XPG3] (SIGBUS): Do not expect.
50315         [POSIX || XPG3] (SIGPOLL): Likewise.
50316         [POSIX || XPG3] (SIGPROF): Likewise.
50317         [POSIX || XPG3] (SIGSYS): Likewise.
50318         [XPG3] (SIGTRAP): Likewise.
50319         [POSIX || XPG3] (SIGURG): Likewise.
50320         [POSIX || XPG3] (SIGVTALRM): Likewise.
50321         [POSIX || XPG3] (SIGXCPU): Likewise.
50322         [POSIX || XPG3] (SIGXFSZ): Likewise.
50323         [POSIX] (SA_SIGINFO): Expect.
50324         [XPG3] (siginfo_t): Do not expect type or contents.
50325         [POSIX] (si_pid): Do not expect element.
50326         [POSIX] (si_uid): Likewise.
50327         [POSIX] (si_addr): Likewise.
50328         [POSIX] (si_status): Likewise.
50329         [POSIX] (si_band): Likewise.
50330         [XPG4] (si_value): Likewise.
50331         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
50332         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
50333         [POSIX || XPG3] (ILL_ILLADR): Likewise.
50334         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
50335         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
50336         [POSIX || XPG3] (ILL_PRVREG): Likewise.
50337         [POSIX || XPG3] (ILL_COPROC): Likewise.
50338         [POSIX || XPG3] (ILL_BADSTK): Likewise.
50339         [POSIX || XPG3] (FPE_INTDIV): Likewise.
50340         [POSIX || XPG3] (FPE_INTOVF): Likewise.
50341         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
50342         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
50343         [POSIX || XPG3] (FPE_FLTUND): Likewise.
50344         [POSIX || XPG3] (FPE_FLTRES): Likewise.
50345         [POSIX || XPG3] (FPE_FLTINV): Likewise.
50346         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
50347         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
50348         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
50349         [POSIX || XPG3] (BUS_ADRALN): Likewise.
50350         [POSIX || XPG3] (BUS_ADRERR): Likewise.
50351         [POSIX || XPG3] (BUS_OBJERR): Likewise.
50352         [POSIX || XPG3] (CLD_EXITED): Likewise.
50353         [POSIX || XPG3] (CLD_KILLED): Likewise.
50354         [POSIX || XPG3] (CLD_DUMPED): Likewise.
50355         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
50356         [POSIX || XPG3] (CLD_STOPPED): Likewise.
50357         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
50358         [POSIX || XPG3] (POLL_IN): Likewise.
50359         [POSIX || XPG3] (POLL_OUT): Likewise.
50360         [POSIX || XPG3] (POLL_MSG): Likewise.
50361         [POSIX || XPG3] (POLL_ERR): Likewise.
50362         [POSIX || XPG3] (POLL_PRI): Likewise.
50363         [POSIX || XPG3] (POLL_HUP): Likewise.
50364         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
50365         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
50366         (SIG*): Do not allow.
50367         [XPG3] (si_*): Likewise.
50368         [XPG3] (SI_*): Likewise.
50369         [XPG3 || XPG4] (sigev_*): Likewise.
50370         [XPG3 || XPG4] (SIGEV_*): Likewise.
50371         [XPG3 || XPG4] (sival_*): Likewise.
50372         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
50373         [POSIX || XPG3] (BUS_*): Likewise.
50374         [POSIX || XPG3] (CLD_*): Likewise.
50375         [POSIX || XPG3] (FPE_*): Likewise.
50376         [POSIX || XPG3] (ILL_*): Likewise.
50377         [POSIX || XPG3] (POLL_*): Likewise.
50378         [POSIX || XPG3] (SEGV_*): Likewise.
50379         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
50380         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
50381         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
50382         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
50383         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
50384         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
50385         Specify type and value.
50386         (TVERSLEN): Likewise.
50387         (REGTYPE): Likewise.
50388         (AREGTYPE): Likewise.
50389         (LNKTYPE): Likewise.
50390         (SYMTYPE): Likewise.
50391         (CHRTYPE): Likewise.
50392         (BLKTYPE): Likewise.
50393         (DIRTYPE): Likewise.
50394         (FIFOTYPE): Likewise.
50395         (CONTTYPE): Likewise.
50396         (TSUID): Likewise.
50397         (TSGID): Likewise.
50398         (TSVTX): Likewise.
50399         (TUREAD): Likewise.
50400         (TUWRITE): Likewise.
50401         (TUEXEC): Likewise.
50402         (TGREAD): Likewise.
50403         (TGWRITE): Likewise.
50404         (TGEXEC): Likewise.
50405         (TOREAD): Likewise.
50406         (TOWRITE): Likewise.
50407         (TOEXEC): Likewise.
50408         [POSIX] (TSVTX): Expect constant.
50409
50410 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
50411
50412         * Makefile (tests): Change dependencies to ....
50413         (tests-special): ... additions to this variable.
50414         (tests): Depend on $(tests-special).
50415         * Makerules (check-abi-list): New variable.
50416         (check-abi): Depend on $(check-abi-list).
50417         [$(subdir) = elf] (tests-special): Add
50418         $(objpfx)check-abi-libc.out.
50419         [$(build-shared) = yes && subdir] (tests-special): Add
50420         $(check-abi-list).
50421         [$(build-shared) = yes && subdir] (tests): Do not depend on
50422         check-abi.
50423         * Rules (tests): Depend on $(tests-special).
50424         (xtests): Depend on $(xtests-special).
50425         * catgets/Makefile (tests): Change dependencies to ....
50426         (tests-special): ... additions to this variable.
50427         * conform/Makefile (tests): Change dependencies to ....
50428         (tests-special): ... additions to this variable.
50429         * elf/Makefile (tests): Change dependencies to ....
50430         (tests-special): ... additions to this variable.
50431         * grp/Makefile (tests): Change dependencies to ....
50432         (tests-special): ... additions to this variable.
50433         * iconv/Makefile (xtests): Change dependencies to ....
50434         (xtests-special): ... additions to this variable.
50435         * iconvdata/Makefile (tests): Change dependencies to ....
50436         (tests-special): ... additions to this variable.
50437         * intl/Makefile (tests): Change dependencies to ....
50438         (tests-special): ... additions to this variable.  Also add
50439         $(objpfx)tst-gettext.out.
50440         * io/Makefile (tests): Change dependencies to ....
50441         (tests-special): ... additions to this variable.
50442         * libio/Makefile (tests): Change dependencies to ....
50443         (tests-special): ... additions to this variable.
50444         * malloc/Makefile (tests): Change dependencies to ....
50445         (tests-special): ... additions to this variable.
50446         * misc/Makefile (tests): Change dependencies to ....
50447         (tests-special): ... additions to this variable.
50448         * nptl/Makefile (tests): Change dependencies to ....
50449         (tests-special): ... additions to this variable.
50450         * nptl_db/Makefile (tests): Change dependencies to ....
50451         (tests-special): ... additions to this variable.
50452         * posix/Makefile (tests): Change dependencies to ....
50453         (tests-special): ... additions to this variable.
50454         (xtests): Change dependencies to ....
50455         (xtests-special): ... additions to this variable.
50456         * resolv/Makefile (tests): Change dependencies to ....
50457         (tests-special): ... additions to this variable.
50458         (xtests): Change dependencies to ....
50459         (xtests-special): ... additions to this variable.
50460         * stdio-common/Makefile (tests): Change dependencies to ....
50461         (tests-special): ... additions to this variable.
50462         (do-tst-unbputc): Remove target.
50463         (do-tst-printf): Likewise.
50464         * stdlib/Makefile (tests): Change dependencies to ....
50465         (tests-special): ... additions to this variable.
50466         * string/Makefile (tests): Change dependencies to ....
50467         (tests-special): ... additions to this variable.
50468         * sysdeps/x86/Makefile (tests): Change dependencies to ....
50469         (tests-special): ... additions to this variable.
50470
50471         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
50472         whole file.
50473         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
50474         whole file.
50475         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
50476         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
50477
50478         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
50479         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
50480         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
50481         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
50482         * conform/data/libgen.h-data [XPG3]: Likewise.
50483         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
50484         * conform/data/ndbm.h-data [XPG3]: Likewise.
50485         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
50486         * conform/data/netdb.h-data [XPG3]: Likewise.
50487         * conform/data/netinet/in.h-data [XPG3]: Likewise.
50488         * conform/data/poll.h-data [XPG3]: Likewise.
50489         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
50490         * conform/data/strings.h-data [XPG3]: Likewise.
50491         * conform/data/stropts.h-data [XPG3]: Likewise.
50492         * conform/data/sys/mman.h-data [XPG3]: Likewise.
50493         * conform/data/sys/resource.h-data [XPG3]: Likewise.
50494         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
50495         Likewise.
50496         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
50497         * conform/data/sys/time.h-data [XPG3]: Likewise.
50498         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
50499         * conform/data/sys/uio.h-data [XPG3]: Likewise.
50500         * conform/data/sys/un.h-data [XPG3]: Likewise.
50501         * conform/data/syslog.h-data [XPG3]: Likewise.
50502         * conform/data/ucontext.h-data [XPG3]: Likewise.
50503         * conform/data/utmpx.h-data [XPG3]: Likewise.
50504         * conform/data/varargs.h-data [UNIX98]: Enable file.
50505
50506         * manual/Makefile (INSTALL_INFO): Remove variable setting.
50507
50508         * math/libm-test.inc (struct test_f_f_data): Move expected results
50509         into structure for each rounding mode.
50510         (struct test_ff_f_data): Likewise.
50511         (struct test_ff_f_data_nexttoward): Likewise.
50512         (struct test_fi_f_data): Likewise.
50513         (struct test_fl_f_data): Likewise.
50514         (struct test_if_f_data): Likewise.
50515         (struct test_fff_f_data): Likewise.
50516         (struct test_c_f_data): Likewise.
50517         (struct test_f_f1_data): Likewise.
50518         (struct test_fF_f1_data): Likewise.
50519         (struct test_ffI_f1_data): Likewise.
50520         (struct test_c_c_data): Likewise.
50521         (struct test_cc_c_data): Likewise.
50522         (struct test_f_i_data): Likewise.
50523         (struct test_ff_i_data): Likewise.
50524         (struct test_f_l_data): Likewise.
50525         (struct test_f_L_data): Likewise.
50526         (struct test_fFF_11_data): Likewise.
50527         (RM_): New macro.
50528         (RM_FE_DOWNWARD): Likewise.
50529         (RM_FE_TONEAREST): Likewise.
50530         (RM_FE_TOWARDZERO): Likewise.
50531         (RM_FE_UPWARD): Likewise.
50532         (RUN_TEST_LOOP_f_f): Update references to expected results.
50533         (RUN_TEST_LOOP_2_f): Likewise.
50534         (RUN_TEST_LOOP_fff_f): Likewise.
50535         (RUN_TEST_LOOP_c_f): Likewise.
50536         (RUN_TEST_LOOP_f_f1): Likewise.
50537         (RUN_TEST_LOOP_fF_f1): Likewise.
50538         (RUN_TEST_LOOP_fI_f1): Likewise.
50539         (RUN_TEST_LOOP_ffI_f1): Likewise.
50540         (RUN_TEST_LOOP_c_c): Likewise.
50541         (RUN_TEST_LOOP_cc_c): Likewise.
50542         (RUN_TEST_LOOP_f_i): Likewise.
50543         (RUN_TEST_LOOP_f_i_tg): Likewise.
50544         (RUN_TEST_LOOP_ff_i_tg): Likewise.
50545         (RUN_TEST_LOOP_f_b): Likewise.
50546         (RUN_TEST_LOOP_f_b_tg): Likewise.
50547         (RUN_TEST_LOOP_f_l): Likewise.
50548         (RUN_TEST_LOOP_f_L): Likewise.
50549         (RUN_TEST_LOOP_fFF_11): Likewise.
50550         * math/gen-libm-test.pl (parse_args): Output four copies of
50551         expected results for each test.
50552
50553         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
50554         (__ASSUME_UTIMES): Remove.
50555         * sysdeps/unix/sysv/linux/tile/kernel-features.h
50556         (__ASSUME_UTIMES): Likewise.
50557
50558         * math/gen-auto-libm-tests.c: Update comment on output format.
50559         (output_for_one_input_case): Generate before-rounding and
50560         after-rounding information as conditions on output flags not
50561         floating-point format.
50562         * math/auto-libm-test-out: Regenerated.
50563         * math/gen-libm-test.pl (cond_value): New function.
50564         (or_cond_value): Use cond_value.
50565         (generate_testfile): Handle conditional exceptions.
50566
50567 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
50568
50569         * math/libm-test.inc (max_valid_error): New variable.
50570         (init_max_error): Take new argument specifying whether function
50571         results are exactly determined.  Set max_valid_error and bound
50572         other variables for errors based on this argument.
50573         (set_max_error): Do not record results above max_valid_error.
50574         (check_float_internal): Only accept errors of up to 0.5ulps if
50575         also at most max_valid_error.
50576         (START): Take new argument EXACT and pass it to init_max_error.
50577         (acos_test): Update call to START.
50578         (acos_test_tonearest): Likewise.
50579         (acos_test_towardzero): Likewise.
50580         (acos_test_downward): Likewise.
50581         (acos_test_upward): Likewise.
50582         (acosh_test): Likewise.
50583         (asin_test): Likewise.
50584         (asin_test_tonearest): Likewise.
50585         (asin_test_towardzero): Likewise.
50586         (asin_test_downward): Likewise.
50587         (asin_test_upward): Likewise.
50588         (asinh_test): Likewise.
50589         (atan_test): Likewise.
50590         (atanh_test): Likewise.
50591         (atan2_test): Likewise.
50592         (cabs_test): Likewise.
50593         (cacos_test): Likewise.
50594         (cacosh_test): Likewise.
50595         (carg_test): Likewise.
50596         (casin_test): Likewise.
50597         (casinh_test): Likewise.
50598         (catan_test): Likewise.
50599         (catanh_test): Likewise.
50600         (cbrt_test): Likewise.
50601         (ccos_test): Likewise.
50602         (ccosh_test): Likewise.
50603         (ceil_test): Likewise.
50604         (cexp_test): Likewise.
50605         (cimag_test): Likewise.
50606         (clog_test): Likewise.
50607         (clog10_test): Likewise.
50608         (conj_test): Likewise.
50609         (copysign_test): Likewise.
50610         (cos_test): Likewise.
50611         (cos_test_tonearest): Likewise.
50612         (cos_test_towardzero): Likewise.
50613         (cos_test_downward): Likewise.
50614         (cos_test_upward): Likewise.
50615         (cosh_test): Likewise.
50616         (cosh_test_tonearest): Likewise.
50617         (cosh_test_towardzero): Likewise.
50618         (cosh_test_downward): Likewise.
50619         (cosh_test_upward): Likewise.
50620         (cpow_test): Likewise.
50621         (cproj_test): Likewise.
50622         (creal_test): Likewise.
50623         (csin_test): Likewise.
50624         (csinh_test): Likewise.
50625         (csqrt_test): Likewise.
50626         (ctan_test): Likewise.
50627         (ctan_test_tonearest): Likewise.
50628         (ctan_test_towardzero): Likewise.
50629         (ctan_test_downward): Likewise.
50630         (ctan_test_upward): Likewise.
50631         (ctanh_test): Likewise.
50632         (ctanh_test_tonearest): Likewise.
50633         (ctanh_test_towardzero): Likewise.
50634         (ctanh_test_downward): Likewise.
50635         (ctanh_test_upward): Likewise.
50636         (erf_test): Likewise.
50637         (erfc_test): Likewise.
50638         (exp_test): Likewise.
50639         (exp_test_tonearest): Likewise.
50640         (exp_test_towardzero): Likewise.
50641         (exp_test_downward): Likewise.
50642         (exp_test_upward): Likewise.
50643         (exp10_test): Likewise.
50644         (exp10_test_tonearest): Likewise.
50645         (exp10_test_towardzero): Likewise.
50646         (exp10_test_downward): Likewise.
50647         (exp10_test_upward): Likewise.
50648         (pow10_test): Likewise.
50649         (exp2_test): Likewise.
50650         (expm1_test): Likewise.
50651         (expm1_test_tonearest): Likewise.
50652         (expm1_test_towardzero): Likewise.
50653         (expm1_test_downward): Likewise.
50654         (expm1_test_upward): Likewise.
50655         (fabs_test): Likewise.
50656         (fdim_test): Likewise.
50657         (floor_test): Likewise.
50658         (fma_test): Likewise.
50659         (fma_test_towardzero): Likewise.
50660         (fma_test_downward): Likewise.
50661         (fma_test_upward): Likewise.
50662         (fmax_test): Likewise.
50663         (fmin_test): Likewise.
50664         (fmod_test): Likewise.
50665         (fpclassify_test): Likewise.
50666         (frexp_test): Likewise.
50667         (hypot_test): Likewise.
50668         (ilogb_test): Likewise.
50669         (isfinite_test): Likewise.
50670         (finite_test): Likewise.
50671         (isgreater_test): Likewise.
50672         (isgreaterequal_test): Likewise.
50673         (isinf_test): Likewise.
50674         (isless_test): Likewise.
50675         (islessequal_test): Likewise.
50676         (islessgreater_test): Likewise.
50677         (isnan_test): Likewise.
50678         (isnormal_test): Likewise.
50679         (issignaling_test): Likewise.
50680         (isunordered_test): Likewise.
50681         (j0_test): Likewise.
50682         (j1_test): Likewise.
50683         (jn_test): Likewise.
50684         (ldexp_test): Likewise.
50685         (lgamma_test): Likewise.
50686         (gamma_test): Likewise.
50687         (lrint_test): Likewise.
50688         (lrint_test_tonearest): Likewise.
50689         (lrint_test_towardzero): Likewise.
50690         (lrint_test_downward): Likewise.
50691         (lrint_test_upward): Likewise.
50692         (llrint_test): Likewise.
50693         (llrint_test_tonearest): Likewise.
50694         (llrint_test_towardzero): Likewise.
50695         (llrint_test_downward): Likewise.
50696         (llrint_test_upward): Likewise.
50697         (log_test): Likewise.
50698         (log10_test): Likewise.
50699         (log1p_test): Likewise.
50700         (log2_test): Likewise.
50701         (logb_test): Likewise.
50702         (logb_test_downward): Likewise.
50703         (lround_test): Likewise.
50704         (llround_test): Likewise.
50705         (modf_test): Likewise.
50706         (nearbyint_test): Likewise.
50707         (nextafter_test): Likewise.
50708         (nexttoward_test): Likewise.
50709         (pow_test): Likewise.
50710         (pow_test_tonearest): Likewise.
50711         (pow_test_towardzero): Likewise.
50712         (pow_test_downward): Likewise.
50713         (pow_test_upward): Likewise.
50714         (remainder_test): Likewise.
50715         (drem_test): Likewise.
50716         (remainder_test_tonearest): Likewise.
50717         (drem_test_tonearest): Likewise.
50718         (remainder_test_towardzero): Likewise.
50719         (drem_test_towardzero): Likewise.
50720         (remainder_test_downward): Likewise.
50721         (drem_test_downward): Likewise.
50722         (remainder_test_upward): Likewise.
50723         (drem_test_upward): Likewise.
50724         (remquo_test): Likewise.
50725         (rint_test): Likewise.
50726         (rint_test_tonearest): Likewise.
50727         (rint_test_towardzero): Likewise.
50728         (rint_test_downward): Likewise.
50729         (rint_test_upward): Likewise.
50730         (round_test): Likewise.
50731         (scalb_test): Likewise.
50732         (scalbn_test): Likewise.
50733         (scalbln_test): Likewise.
50734         (signbit_test): Likewise.
50735         (sin_test): Likewise.
50736         (sin_test_tonearest): Likewise.
50737         (sin_test_towardzero): Likewise.
50738         (sin_test_downward): Likewise.
50739         (sin_test_upward): Likewise.
50740         (sincos_test): Likewise.
50741         (sinh_test): Likewise.
50742         (sinh_test_tonearest): Likewise.
50743         (sinh_test_towardzero): Likewise.
50744         (sinh_test_downward): Likewise.
50745         (sinh_test_upward): Likewise.
50746         (sqrt_test): Likewise.
50747         (sqrt_test_tonearest): Likewise.
50748         (sqrt_test_towardzero): Likewise.
50749         (sqrt_test_downward): Likewise.
50750         (sqrt_test_upward): Likewise.
50751         (tan_test): Likewise.
50752         (tan_test_tonearest): Likewise.
50753         (tan_test_towardzero): Likewise.
50754         (tan_test_downward): Likewise.
50755         (tan_test_upward): Likewise.
50756         (tanh_test): Likewise.
50757         (tgamma_test): Likewise.
50758         (trunc_test): Likewise.
50759         (y0_test): Likewise.
50760         (y1_test): Likewise.
50761         (yn_test): Likewise.
50762         (significand_test): Likewise.
50763
50764         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
50765         individual tests in comment.
50766         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
50767         (prev_max_error): New variable.
50768         (prev_real_max_error): Likewise.
50769         (prev_imag_max_error): Likewise.
50770         (compare_ulp_data): Don't refer to test names in comment.
50771         (find_test_ulps): Remove function.
50772         (find_function_ulps): Likewise.
50773         (find_complex_function_ulps): Likewise.
50774         (init_max_error): Take function name as argument.  Look up ulps
50775         for that function.
50776         (print_ulps): Remove function.
50777         (print_max_error): Use prev_max_error instead of calling
50778         find_function_ulps.
50779         (print_complex_max_error): Use prev_real_max_error and
50780         prev_imag_max_error instead of calling find_complex_function_ulps.
50781         (check_float_internal): Take max_ulp parameter instead of calling
50782         find_test_ulps.  Don't call print_ulps.
50783         (check_float): Update call to check_float_internal.
50784         (check_complex): Update calls to check_float_internal.
50785         (START): Pass argument to init_max_error.
50786         * math/gen-libm-test.pl (%results): Don't include "kind"
50787         information.
50788         (parse_ulps): Don't handle ulps of individual tests.
50789         (print_ulps_file): Likewise.
50790         (output_ulps): Likewise.
50791         * math/README.libm-test: Update.
50792         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
50793         individual tests.
50794         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
50795         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
50796         * sysdeps/arm/libm-test-ulps: Likewise.
50797         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
50798         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
50799         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
50800         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
50801         * sysdeps/microblaze/libm-test-ulps: Likewise.
50802         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
50803         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
50804         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
50805         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
50806         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
50807         * sysdeps/sh/libm-test-ulps: Likewise.
50808         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
50809         * sysdeps/tile/libm-test-ulps: Likewise.
50810         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50811
50812 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
50813
50814         * math/libm-test.inc (print_complex_max_error): Check separately
50815         whether real and imaginary errors are within allowed range and
50816         pass 0 to print_complex_function_ulps instead of value within
50817         allowed range.
50818
50819 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
50820
50821         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
50822         formatting.
50823         (get_handles_fopen): Likewise.
50824         (do_write_test): Likewise.
50825
50826         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
50827
50828         * libio/fileops.c (do_ftell): Use cached offset when
50829         available.
50830         * libio/iofwide.c (do_ftell_wide): Likewise.
50831         * libio/iofdopen.c (_IO_new_fdopen): Don't use
50832         _IO_file_attach.
50833         * libio/wfileops.c (_IO_fwide): Don't cache offset.
50834
50835         [BZ #16532]
50836         * libio/libioP.h (get_file_offset): New function.
50837         * libio/fileops.c (get_file_offset): Likewise.
50838         (do_ftell): Likewise.
50839         (_IO_new_file_seekoff): Split out ftell logic.
50840         * libio/wfileops.c (do_ftell_wide): Likewise.
50841         (_IO_wfile_seekoff): Split out ftell logic.
50842         * libio/tst-ftell-active-handler.c: New test case.
50843         * libio/Makefile (tests): Add it.
50844
50845 2014-03-03  Roland McGrath  <roland@hack.frob.com>
50846
50847         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
50848         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
50849
50850 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
50851
50852         [BZ #16639]
50853         * nscd/connections.c (nscd_init): Call do_exit.
50854         (start_threads): Call do_exit and notify_parent.
50855         (begin_drop_privileges): Call do_exit.
50856         (finish_drop_privileges): Likewise.
50857         * nscd/selinux.c (preserve_capabilities): Likewise.
50858         (install_real_capabilities): Likewise.
50859         (nscd_selinux_enabled): Likewise.
50860         (avc_create_thread): Likewise.
50861         (avc_alloc_lock): Likewise.
50862         (nscd_avc_init): Likewise.
50863         * nscd/nscd.c (parent_fd): New static variable.
50864         (main): Create a pipe between parent and child processes.
50865         Skip closing parent_fd.
50866         (monitor_child): New function.
50867         (do_exit): Likewise.
50868         (notify_parent): Likewise.
50869         * nscd/nscd.h (notify_parent): Likewise.
50870         (do_exit): Likewise.
50871
50872 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
50873
50874         * malloc/malloc.c (__libc_calloc): Revert last change.
50875
50876 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50877
50878         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
50879
50880 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
50881
50882         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
50883         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
50884         implementation.
50885         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
50886         (__libc_ifunc_impl_list): Likewise.
50887         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
50888         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
50889         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
50890         * string/strrchr.c: Define STRRCHR.
50891
50892 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
50893
50894         * benchtest/bench-strtok.c (simple_strtok): Delete.
50895         (strtok_string): Use as benchmark.
50896         * string/strtok (STRTOK): New macro.
50897
50898 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
50899
50900         * manual/threads.texi: Add header and standard comments to all
50901         functions.
50902
50903         * elf/dl-lookup.c (check_match): New function.
50904         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
50905         (do_lookup_x): Remove nested function check_match. Use non-nested
50906         function check_match.
50907
50908 2014-02-28  Roland McGrath  <roland@hack.frob.com>
50909
50910         * csu/Makefile (generated, before-compile): Use += rather than =.
50911         * catgets/Makefile (generated, generated-dirs): Likewise.
50912         * debug/Makefile (generated): Likewise.
50913         * dlfcn/Makefile (generated): Likewise.
50914         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
50915         * iconvdata/Makefile (before-compile, generated): Likewise.
50916         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
50917         * libio/Makefile (generated): Likewise.
50918         * malloc/Makefile (generated): Likewise.
50919         * manual/Makefile (generated, generated-dirs): Likewise.
50920         * misc/Makefile (generated): Likewise.
50921         * posix/Makefile (generated): Likewise.
50922         * resolv/Makefile (generated): Likewise.
50923         * sunrpc/Makefile (generated, generated-dirs): Likewise.
50924         * timezone/Makefile (generated, generated-dirs): Likewise.
50925
50926         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
50927
50928 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50929
50930         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
50931         power8 implementation.
50932         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
50933         file: POWER8 llround ifunc implementation.
50934         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
50935         (__lllround): Add POWER8 implementation.
50936         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
50937         POWER8 llround implementation.
50938
50939         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
50940         power8 implementation.
50941         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
50942         file: POWER8 llrint ifunc implementation.
50943         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
50944         Add POWER8 implementation.
50945         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
50946         POWER8 llrint implementation.
50947
50948         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
50949         power8 implementation.
50950         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
50951         file: POWER8 finite ifunc implementation.
50952         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
50953         Add POWER8 implementation.
50954         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
50955         Likewise.
50956         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
50957         POWER8 finite implementation.
50958         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
50959
50960         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
50961         power8 implementation.
50962         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
50963         file: POWER8 isinf ifunc implementation.
50964         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
50965         POWER8 implementation.
50966         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
50967         Likewise.
50968         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
50969         isinf implementation.
50970         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
50971
50972         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
50973         (INIT_ARCH): Add hwcap2 initialization.
50974         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
50975         power8 implementation.
50976         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
50977         file: POWER8 isnan ifunc implementation.
50978         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
50979         POWER8 implementation.
50980         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
50981         Likewise.
50982         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
50983         isnan implementation.
50984         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
50985
50986 2014-02-27  Joey Ye  <joey.ye@arm.com>
50987
50988         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
50989         (_FP_NANFRAC_Q): Set to zero.
50990
50991 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
50992
50993         [BZ #16623]
50994         * math/auto-libm-test-in: New test inputs.
50995         * math/auto-libm-test-out: Regenerate.
50996         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
50997         and DA.
50998         (__cos): Likewise.
50999         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
51000
51001 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
51002
51003         * scripts/evaluate-test.sh: Take new argument indicating whether
51004         failure is expected.
51005         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
51006         indicating whether failure is expected.
51007         * conform/Makefile (test-xfail-run-conformtest): New variable.
51008         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
51009         level.
51010         * posix/Makefile (test-xfail-annexc): New variable.
51011         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
51012
51013 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
51014
51015         * argp/Makefile: Include Makeconfig immediately after defining
51016         subdir.
51017         * assert/Makefile: Likewise.
51018         * benchtests/Makefile: Likewise.
51019         * catgets/Makefile: Likewise.
51020         * conform/Makefile: Likewise.
51021         * crypt/Makefile: Likewise.
51022         * csu/Makefile: Likewise.
51023         (all): Remove target.
51024         * ctype/Makefile: Include Makeconfig immediately after defining
51025         subdir.
51026         * debug/Makefile: Likewise.
51027         * dirent/Makefile: Likewise.
51028         * dlfcn/Makefile: Likewise.
51029         * gmon/Makefile: Likewise.
51030         * gnulib/Makefile: Likewise.
51031         * grp/Makefile: Likewise.
51032         * gshadow/Makefile: Likewise.
51033         * hesiod/Makefile: Likewise.
51034         * hurd/Makefile: Likewise.
51035         (all): Remove target.
51036         * iconvdata/Makefile: Include Makeconfig immediately after
51037         defining subdir.
51038         * inet/Makefile: Likewise.
51039         * intl/Makefile: Likewise.
51040         * io/Makefile: Likewise.
51041         * libio/Makefile: Likewise.
51042         (all): Remove target.
51043         * locale/Makefile: Include Makeconfig immediately after defining
51044         subdir.
51045         * login/Makefile: Likewise.
51046         * mach/Makefile: Likewise.
51047         (all): Remove target.
51048         * malloc/Makefile: Include Makeconfig immediately after defining
51049         subdir.
51050         (all): Remove target.
51051         * manual/Makefile: Include Makeconfig immediately after defining
51052         subdir.
51053         * math/Makefile: Likewise.
51054         * misc/Makefile: Likewise.
51055         * nis/Makefile: Likewise.
51056         * nss/Makefile: Likewise.
51057         * po/Makefile: Likewise.
51058         (all): Remove target.
51059         * posix/Makefile: Include Makeconfig immediately after defining
51060         subdir.
51061         * pwd/Makefile: Likewise.
51062         * resolv/Makefile: Likewise.
51063         * resource/Makefile: Likewise.
51064         * rt/Makefile: Likewise.
51065         * setjmp/Makefile: Likewise.
51066         * shadow/Makefile: Likewise.
51067         * signal/Makefile: Likewise.
51068         * socket/Makefile: Likewise.
51069         * soft-fp/Makefile: Likewise.
51070         * stdio-common/Makefile: Likewise.
51071         * stdlib/Makefile: Likewise.
51072         * streams/Makefile: Likewise.
51073         * string/Makefile: Likewise.
51074         * sunrpc/Makefile: Likewise.
51075         (all): Remove target.
51076         * sysvipc/Makefile: Include Makeconfig immediately after defining
51077         subdir.
51078         * termios/Makefile: Likewise.
51079         * time/Makefile: Likewise.
51080         * timezone/Makefile: Likewise.
51081         (all): Remove target.
51082         * wcsmbs/Makefile: Include Makeconfig immediately after defining
51083         subdir.
51084         * wctype/Makefile: Likewise.
51085
51086 2014-02-26  Steve Ellcey  <sellcey@mips.com>
51087
51088         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
51089         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
51090         (libc_feholdexcept_setround_mips): Ditto.
51091         (libc_feholdsetround): New.
51092         (libc_feholdsetroundf): New.
51093         (libc_feholdsetroundl): New.
51094         (libc_feupdateenv_test_mips): New.
51095         (libc_feupdateenv_test): New.
51096         (libc_feupdateenv_testf): New.
51097         (libc_feupdateenv_testl): New.
51098         (libc_feresetround): New.
51099         (libc_feresetroundf): New.
51100         (libc_feresetroundl): New.
51101         (libc_fetestexcept_mips): New.
51102         (libc_fetestexcept): New.
51103         (libc_fetestexceptf): New.
51104         (libc_fetestexceptl): New.
51105         (HAVE_RM_CTX): New.
51106         (libc_feholdexcept_setround_mips_ctx): New.
51107         (libc_feholdexcept_setround_ctx): New.
51108         (libc_feholdexcept_setroundf_ctx): New.
51109         (libc_feholdexcept_setroundl_ctx): New.
51110         (libc_fesetenv_mips_ctx): New.
51111         (libc_fesetenv_ctx): New.
51112         (libc_fesetenv_ctxf): New.
51113         (libc_fesetenv_ctxl): New.
51114         (libc_feupdateenv_mips_ctx): New.
51115         (libc_feupdateenv_ctx): New.
51116         (libc_feupdateenvf_ctx): New.
51117         (libc_feupdateenvl_ctx): New.
51118         (libc_feholdsetround_mips_ctx): New.
51119         (libc_feholdsetround_ctx): New.
51120         (libc_feholdsetroundf_ctx): New.
51121         (libc_feholdsetroundl_ctx): New.
51122         (libc_feresetround_mips_ctx): New.
51123         (libc_feresetround_ctx): New.
51124         (libc_feresetroundf_ctx): New.
51125         (libc_feresetroundl_ctx): New.
51126
51127 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
51128
51129         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
51130
51131         * manual/ipc.texi: New file.
51132         * manual/Makefile (chapters): Add ipc.
51133         * manual/job.texi: Add "Inter-Process Communication" to next.
51134         * manual/process.texi: Add "Inter-Process Communication" to prev.
51135
51136 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51137
51138         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
51139
51140 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
51141
51142         * malloc/malloc.c (__libc_calloc): Simplify implementation.
51143
51144         * manual/arith.texi: Fix spaces after sentences.
51145         * manual/charset.texi: Likewise.
51146         * manual/errno.texi: Likewise.
51147         * manual/install.texi: Likewise.
51148         * manual/llio.texi: Likewise.
51149         * manual/locale.texi: Likewise.
51150         * manual/maint.texi: Likewise.
51151         * manual/math.texi: Likewise.
51152         * manual/memory.texi: Likewise.
51153         * manual/message.texi: Likewise.
51154         * manual/probes.texi: Likewise.
51155         * manual/resource.texi: Likewise.
51156         * manual/signal.texi: Likewise.
51157         * manual/socket.texi: Likewise.
51158         * manual/stdio.texi: Likewise.
51159         * manual/string.texi: Likewise.
51160         * manual/time.texi: Likewise.
51161         * manual/users.texi: Likewise.
51162
51163 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
51164
51165         [BZ #16632]
51166         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
51167         _DEFAULT_SOURCE is defined.
51168
51169 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
51170             Carlos O'Donell  <carlos@redhat.com>
51171
51172         [BZ #16613]
51173         * elf/dl-tls.c (_dl_count_modids): New function.
51174         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
51175         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
51176         audit library and increment generation counter.
51177         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
51178         * elf/tst-audit9.c: New file.
51179         * elf/tst-auditmod9a.c: New file.
51180         * elf/tst-auditmod9b.c: New file.
51181         * elf/Makefile: Add rules to build and run tst-audit9.
51182
51183 2014-02-25  Florian Weimer  <fweimer@redhat.com>
51184
51185         [BZ #15347]
51186         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
51187
51188 2014-02-25  Will Newton  <will.newton@linaro.org>
51189
51190         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
51191         (__longjmp): Restore sp and lr before restoring callee
51192         saved registers.  Add longjmp and longjmp_target
51193         SystemTap probe point.
51194         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
51195         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
51196         Define to zero to match jmpbuf layout.
51197         * sysdeps/arm/setjmp.S: Include stap-probe.h.
51198         (__sigsetjmp): Save sp and lr before saving callee
51199         saved registers.  Add setjmp SystemTap probe point.
51200
51201 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
51202
51203         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
51204
51205 2014-02-24  Andreas Schwab  <schwab@suse.de>
51206
51207         [BZ #15804]
51208         * elf/pldd.c (wait_for_ptrace_stop): New function.
51209         (main): Call it after attaching.
51210
51211 2014-02-22  Roland McGrath  <roland@hack.frob.com>
51212
51213         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
51214         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
51215         Versions files is now verboten.
51216         * hurd/Versions (libc: GLIBC_2.0):
51217         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
51218         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
51219         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
51220         * mach/Versions: Likewise.
51221
51222         * csu/Versions: Remove unused %include.
51223         * resolv/Versions: Likewise.
51224
51225 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
51226
51227         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
51228         ($(objpfx)check-local-headers.out): Likewise.
51229         ($(objpfx)begin-end-check.out): Likewise.
51230         * Makerules (check-abi-%.out): Likewise.
51231         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
51232         ($(objpfx)test2.cat): Likewise.
51233         ($(objpfx)de/libc.cat): Likewise.
51234         ($(objpfx)test-gencat.out): Likewise.
51235         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
51236         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
51237         ($(objpfx)noload-mem): Likewise.
51238         ($(objpfx)tst-pathopt.out): Likewise.
51239         ($(objpfx)tst-rtld-load-self.out): Likewise.
51240         ($(objpfx)tst-array1-cmp.out): Likewise.
51241         ($(objpfx)tst-array1-static-cmp.out): Likewise.
51242         ($(objpfx)tst-array2-cmp.out): Likewise.
51243         ($(objpfx)tst-array3-cmp.out): Likewise.
51244         ($(objpfx)tst-array4-cmp.out): Likewise.
51245         ($(objpfx)tst-array5-cmp.out): Likewise.
51246         ($(objpfx)tst-array5-static-cmp.out): Likewise.
51247         ($(objpfx)check-textrel.out): Likewise.
51248         ($(objpfx)check-execstack.out): Likewise.
51249         ($(objpfx)check-localplt.out): Likewise.
51250         ($(objpfx)order2-cmp.out): Likewise.
51251         ($(objpfx)tst-leaks1-mem): Likewise.
51252         ($(objpfx)tst-leaks1-static-mem): Likewise.
51253         ($(objpfx)tst-initorder-cmp.out): Likewise.
51254         ($(objpfx)tst-initorder2-cmp.out): Likewise.
51255         ($(objpfx)tst-unused-dep.out): Likewise.
51256         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
51257         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
51258         * iconv/Makefile (test-iconvconfig): Likewise.
51259         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
51260         ($(objpfx)iconv-test.out): Likewise.
51261         ($(objpfx)tst-tables.out): Likewise.
51262         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
51263         ($(objpfx)tst-gettext.out): Likewise.
51264         ($(objpfx)tst-translit.out): Likewise.
51265         ($(objpfx)tst-gettext2.out): Likewise.
51266         ($(objpfx)tst-gettext4.out): Likewise.
51267         ($(objpfx)tst-gettext6.out): Likewise.
51268         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
51269         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
51270         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
51271         ($(objpfx)tst-fopenloc-mem.out): Likewise.
51272         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
51273         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
51274         * posix/Makefile ($(objpfx)globtest.out): Likewise.
51275         ($(objpfx)wordexp-tst.out): Likewise.
51276         ($(objpfx)annexc.out): Likewise.
51277         ($(objpfx)tst-fnmatch-mem): Likewise.
51278         ($(objpfx)bug-regex2-mem): Likewise.
51279         ($(objpfx)bug-regex14-mem): Likewise.
51280         ($(objpfx)bug-regex21-mem): Likewise.
51281         ($(objpfx)bug-regex31-mem): Likewise.
51282         ($(objpfx)tst-vfork3-mem): Likewise.
51283         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
51284         ($(objpfx)tst-pcre-mem): Likewise.
51285         ($(objpfx)tst-boost-mem): Likewise.
51286         ($(objpfx)tst-getconf.out): Likewise.
51287         ($(objpfx)bug-ga2-mem): Likewise.
51288         ($(objpfx)bug-glob2-mem): Likewise.
51289         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
51290         ($(objpfx)mtrace-tst-leaks2): Likewise.
51291         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
51292         ($(objpfx)tst-printf.out): Likewise.
51293         ($(objpfx)tst-setvbuf1.out): Likewise.
51294         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
51295         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
51296         ($(objpfx)tst-fmtmsg.out): Likewise.
51297         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
51298         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
51299
51300         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
51301         * bits/sigaction.h [__USE_MISC]: Likewise.
51302         * bits/waitstatus.h: Update #endif comments.
51303         * ctype/ctype.h: Likewise.
51304         * dirent/dirent.h: Likewise.
51305         [__USE_MISC]: Remove redundant conditionals.
51306         * grp/grp.h: Update #endif comments.
51307         [__USE_GNU]: Remove redundant conditionals.
51308         [__USE_MISC]: Likewise.
51309         * inet/netinet/in.h [__USE_GNU]: Likewise.
51310         * io/sys/stat.h [__USE_MISC]: Likewise.
51311         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
51312         * libio/bits/stdio.h: Update #endif comments.
51313         [__USE_MISC]: Remove redundant conditionals.
51314         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
51315         * libio/stdio.h: Update #endif comments.
51316         [__USE_MISC]: Remove redundant conditionals.
51317         * math/bits/math-finite.h [__USE_MISC]: Likewise.
51318         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
51319         * math/math.h: Update #else and #endif comments.
51320         [__USE_MISC]: Remove redundant conditionals.
51321         * misc/sys/uio.h: Update #endif comments.
51322         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
51323         * posix/glob.h [__USE_MISC]: Likewise.
51324         * posix/sys/types.h: Update #endif comments.
51325         [__USE_MISC]: Remove redundant conditionals.
51326         * posix/sys/wait.h: Update #endif comments.
51327         [__USE_MISC]: Remove redundant conditionals.
51328         * posix/unistd.h: Update #endif comments.
51329         [__USE_MISC]: Remove redundant conditionals.
51330         * pwd/pwd.h [__USE_GNU]: Likewise.
51331         [__USE_MISC]: Likewise.
51332         * resolv/netdb.h [__USE_GNU]: Likewise.
51333         * signal/signal.h: Update #endif comments.
51334         [__USE_MISC]: Remove redundant conditionals.
51335         * stdlib/stdlib.h: Update #else and #endif comments.
51336         [__USE_MISC]: Remove redundant conditionals.
51337         [__USE_GNU]: Likewise.
51338         * string/bits/string2.h [__USE_MISC]: Likewise.
51339         * string/string.h: Update #endif comments.
51340         [__USE_MISC]: Remove redundant conditionals.
51341         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
51342         Likewise.
51343         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
51344         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
51345         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
51346         Likewise.
51347         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
51348         Likewise.
51349         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
51350         comments.
51351         [__USE_MISC]: Remove redundant conditionals.
51352         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
51353         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
51354         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
51355         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
51356         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
51357         Likewise.
51358         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
51359         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
51360         Likewise.
51361         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
51362         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
51363         Likewise.
51364         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
51365         Likewise.
51366         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
51367         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
51368         Likewise.
51369         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
51370         Likewise.
51371         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
51372         * sysdeps/x86/bits/string.h: Update #endif comments.
51373         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
51374         conditionals.
51375         * time/sys/time.h: Update #endif comments.
51376         * time/time.h: Likewise.
51377         [__USE_MISC]: Remove redundant conditionals.
51378
51379 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
51380
51381         [BZ #16600]
51382         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
51383
51384 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
51385
51386         * Versions.def (librt): Add GLIBC_2.17.
51387
51388 2014-02-21  Adam Conrad  <adconrad@0c3.net>
51389
51390         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
51391         synonym for _SYS_AUXV_H to allow direct inclusion.
51392         * sysdeps/sparc/bits/hwcap.h: Likewise.
51393         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
51394         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
51395         * sysdeps/sparc/sysdep.h: Likewise.
51396
51397 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
51398
51399         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
51400
51401 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
51402
51403         * benchtests/bench-strrchr.c: Print length instead of position.
51404
51405 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
51406
51407         [BZ #16611]
51408         * sysdeps/unix/sysv/linux/kernel-features.h
51409         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
51410         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
51411         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
51412         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
51413         Likewise.
51414         [__i386__ || __powerpc__ || __sh__ || __sparc__]
51415         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
51416         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
51417         (__ASSUME_SENDMMSG): Define instead of using previous
51418         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
51419         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
51420         (__ASSUME_SENDMMSG_SYSCALL): Define.
51421         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
51422         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
51423         Likewise.
51424         * sysdeps/unix/sysv/linux/arm/kernel-features.h
51425         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
51426         Likewise.
51427         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
51428         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
51429         Likewise.
51430         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
51431         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
51432         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
51433         [__ASSUME_SENDMMSG]: Change conditionals to
51434         [__ASSUME_SENDMMSG_SOCKETCALL].
51435         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
51436         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
51437         Define.
51438         * sysdeps/unix/sysv/linux/mips/kernel-features.h
51439         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
51440         Likewise.
51441         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
51442         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
51443         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
51444         [!__ASSUME_SENDMMSG]: Change conditional to
51445         [!__ASSUME_SENDMMSG_SOCKETCALL].
51446         * sysdeps/unix/sysv/linux/tile/kernel-features.h
51447         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
51448         Define.
51449
51450         [BZ #16610]
51451         * sysdeps/unix/sysv/linux/kernel-features.h
51452         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
51453         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
51454         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
51455         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
51456         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
51457         [__i386__ || __sparc__]
51458         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
51459         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
51460         (__ASSUME_RECVMMSG): Define instead of using previous
51461         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
51462         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
51463         (__ASSUME_RECVMMSG_SYSCALL): Define.
51464         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
51465         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
51466         Likewise.
51467         * sysdeps/unix/sysv/linux/arm/kernel-features.h
51468         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
51469         Likewise.
51470         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
51471         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
51472         Likewise.
51473         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
51474         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
51475         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
51476         [__ASSUME_RECVMMSG]: Change condition to
51477         [__ASSUME_RECVMMSG_SOCKETCALL].
51478         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
51479         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
51480         Define.
51481         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
51482         * sysdeps/unix/sysv/linux/mips/kernel-features.h
51483         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
51484         Likewise.
51485         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
51486         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
51487         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
51488         [!__ASSUME_RECVMMSG]: Change condition to
51489         [!__ASSUME_RECVMMSG_SOCKETCALL].
51490         * sysdeps/unix/sysv/linux/tile/kernel-features.h
51491         (__ASSUME_RECVMMSG_SYSCALL): Define.
51492
51493         [BZ #16609]
51494         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
51495         __powerpc__ || __s390__ || __sh__ || __sparc__]
51496         (__ASSUME_SOCKETCALL): Define.
51497         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
51498         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
51499         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
51500         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
51501         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
51502         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
51503         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
51504         (__ASSUME_ACCEPT4): Define instead of using previous
51505         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
51506         __powerpc__ || __sparc__ || __s390__)] condition.
51507         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
51508         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
51509         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
51510         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
51511         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
51512         [!__ASSUME_ACCEPT4]: Change condition to
51513         [!__ASSUME_ACCEPT4_SOCKETCALL].
51514         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
51515         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
51516         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
51517         * sysdeps/unix/sysv/linux/arm/kernel-features.h
51518         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
51519         __ASSUME_ACCEPT4_SYSCALL.
51520         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
51521         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
51522         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
51523         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
51524         __ASSUME_ACCEPT4_SYSCALL.
51525         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
51526         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
51527         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
51528         [__ASSUME_ACCEPT4]: Change condition to
51529         [__ASSUME_ACCEPT4_SOCKETCALL].
51530         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
51531         (__ASSUME_SOCKETCALL): Define.
51532         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
51533         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
51534         (__ASSUME_SOCKETCALL): Define.
51535         (__ASSUME_ACCEPT4): Remove.
51536         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
51537         Define.
51538         * sysdeps/unix/sysv/linux/mips/kernel-features.h
51539         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
51540         Likewise.
51541         * sysdeps/unix/sysv/linux/tile/kernel-features.h
51542         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
51543
51544         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
51545         macro.
51546         (HWCAP_ARM_LPAE): Likewise.
51547         (HWCAP_ARM_EVTSTRM): Likewise.
51548         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
51549         Add vpfd32, lpae and evtstrm.
51550         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
51551         Increase to 22.
51552
51553 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
51554
51555         * math/auto-libm-test-in: Add tests of clog10.
51556         * math/auto-libm-test-out: Regenerated.
51557         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
51558         * sysdeps/i386/fpu/libm-test-ulps: Update.
51559         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
51560
51561 2014-02-18  Andreas Schwab  <schwab@suse.de>
51562
51563         [BZ #16574]
51564         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
51565         Store non-zero if the second buffer was newly allocated.
51566         (send_dg): Likewise.
51567         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
51568         to send_vc and send_dg.
51569         (res_nsend): Pass NULL for ansp2_malloced.
51570         * resolv/res_query.c (__libc_res_nquery): Add parameter
51571         answerp2_malloced and pass it down to __libc_res_nsend.
51572         (res_nquery): Pass additional NULL to __libc_res_nquery.
51573         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
51574         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
51575         second answer buffer if answerp2_malloced was set.
51576         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
51577         (__libc_res_nquerydomain): Add parameter
51578         answerp2_malloced and pass it down to __libc_res_nquery.
51579         (res_nquerydomain): Pass additional NULL to
51580         __libc_res_nquerydomain.
51581         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
51582         additional NULL to __libc_res_nsend and __libc_res_nquery.
51583         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
51584         additional NULL to __libc_res_nsearch.
51585         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
51586         parameter of __libc_res_nsearch to check for separately allocated
51587         second buffer.
51588         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
51589         __libc_res_nquery.
51590         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
51591         additional NULL to __libc_res_nquery.
51592         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
51593         __libc_res_nsearch.
51594         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
51595         * include/resolv.h: Update prototypes of __libc_res_nquery,
51596         __libc_res_nsearch, __libc_res_nsend.
51597
51598 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
51599
51600         * math/auto-libm-test-in: Add tests of fma.
51601         * math/auto-libm-test-out: Regenerated.
51602         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
51603         (fma_towardzero_test_data): Likewise.
51604         (fma_downward_test_data): Likewise.
51605         (fma_upward_test_data): Likewise.
51606         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
51607         mpc_mode.
51608         (rounding_modes): Add values for new field.
51609         (func_calc_method): Add value mpfr_fff_f.
51610         (func_calc_desc): Add mpfr_fff_f union field.
51611         (test_function): Add field exact_args.
51612         (FUNC): Add macro argument EXACT_ARGS.
51613         (FUNC_mpfr_f_f): Update call to FUNC.
51614         (FUNC_mpfr_f_f): Likewise.
51615         (FUNC_mpfr_ff_f): Likewise.
51616         (FUNC_mpfr_if_f): Likewise.
51617         (FUNC_mpc_c_f): Likewise.
51618         (FUNC_mpc_c_c): Likewise.
51619         (test_functions): Add fma.  Update calls to FUNC.
51620         (handle_input_arg): Add argument exact_args.
51621         (add_test): Update call to handle_input_arg.
51622         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
51623         (output_for_one_input_case): Update call to calc_generic_results.
51624         Recalculate exact zero results in each rounding mode.
51625
51626         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
51627         non-negative before setting low bit.
51628         * math/auto-libm-test-in: Mark one asin test possibly having
51629         spurious underflow.
51630         * math/auto-libm-test-out: Regenerated.
51631         * sysdeps/i386/fpu/libm-test-ulps: Update.
51632         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
51633
51634 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
51635
51636         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
51637         * sysdeps/unix/sysv/linux/microblaze: Move directory from
51638         ports/sysdeps/unix/sysv/linux/microblaze.
51639         * README: Add missing listing for microblaze*-*-linux-gnu.
51640
51641 2014-02-16  Ondřej Bílka  <neleai@seznam.cz>
51642
51643         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Remove
51644         duplicate code
51645
51646 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
51647
51648         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
51649         * sysdeps/unix/sysv/linux/ia64: Move directory from
51650         ports/sysdeps/unix/sysv/linux/ia64.
51651         * README: Update listing for ia64-*-linux-gnu.
51652
51653 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
51654             Joseph Myers  <joseph@codesourcery.com>
51655
51656         * Makeconfig (test-name): New variable.
51657         (evaluate-test): Likewise.
51658         * Makerules (do-test-clean): Remove .test-result files.
51659         (common-mostlyclean): Likewise.
51660         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
51661         * scripts/evaluate-test.sh: New file.
51662
51663 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
51664
51665         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
51666         separate $(objpfx)tst-fopenloc-cmp.out and
51667         $(objpfx)tst-fopenloc-mem.out targets.
51668         (tests): Update dependencies.
51669         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
51670         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
51671         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
51672         (tst-rxspencer-no-utf8-ARGS): New variable.
51673         (tst-rxspencer-no-utf8-ENV): Likewise.
51674         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
51675         instead of $(objpfx)tst-rxspencer-mem.
51676         ($(objpfx)tst-rxspencer-mem): Change target to
51677         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
51678         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
51679         * posix/tst-rxspencer-no-utf8.c: New file.
51680
51681         * elf/Makefile ($(objpfx)order.out): Remove rule.
51682         [$(run-built-tests) = yes] (tests): Depend on
51683         $(objpfx)order-cmp.out.
51684         ($(objpfx)order-cmp.out): New rule.
51685         [$(run-built-tests) = yes] (tests): Depend on
51686         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
51687         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
51688         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
51689         $(objpfx)tst-array5-static-cmp.out.
51690         ($(objpfx)tst-array1.out): Remove rule.
51691         ($(objpfx)tst-array1-cmp.out): New rule.
51692         ($(objpfx)tst-array1-static.out): Remove rule.
51693         ($(objpfx)tst-array1-static-cmp.out): New rule.
51694         ($(objpfx)tst-array2.out): Remove rule.
51695         ($(objpfx)tst-array2-cmp.out): New rule.
51696         ($(objpfx)tst-array3.out): Remove rule.
51697         ($(objpfx)tst-array3-cmp.out): New rule.
51698         ($(objpfx)tst-array4.out): Remove rule.
51699         ($(objpfx)tst-array4-cmp.out): New rule.
51700         ($(objpfx)tst-array5.out): Remove rule.
51701         ($(objpfx)tst-array5-cmp.out): New rule.
51702         ($(objpfx)tst-array5-static.out): Remove rule.
51703         ($(objpfx)tst-array5-static-cmp.out): New rule.
51704         [$(run-built-tests) = yes] (tests): Depend on
51705         $(objpfx)order2-cmp.out.
51706         ($(objpfx)order2.out): Remove rule.
51707         ($(objpfx)order2-cmp.out): New rule.
51708         ($(objpfx)tst-initorder.out): Remove rule.
51709         [$(run-built-tests) = yes] (tests): Depend on
51710         $(objpfx)tst-initorder-cmp.out.
51711         ($(objpfx)tst-initorder-cmp.out): New rule.
51712         ($(objpfx)tst-initorder2.out): Remove rule.
51713         [$(run-built-tests) = yes] (tests): Depend on
51714         $(objpfx)tst-initorder2-cmp.out.
51715         ($(objpfx)tst-initorder2-cmp.out): New rule.
51716         [$(run-built-tests) = yes] (tests): Depend on
51717         $(objpfx)tst-unused-dep-cmp.out.
51718         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
51719         ($(objpfx)tst-unused-dep-cmp.out): New rule.
51720         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
51721         on $(objpfx)tst-setvbuf1-cmp.out.
51722         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
51723         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
51724         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
51725         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
51726         ($(objpfx)tst-svc.out): Remove rule.
51727         ($(objpfx)tst-svc-cmp.out): New rule.
51728
51729 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
51730
51731         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
51732         * ctype/ctype.h [__USE_MISC]: Likewise.
51733         * dirent/dirent.h [__USE_MISC]: Likewise.
51734         * grp/grp.h [__USE_MISC]: Likewise.
51735         * io/fcntl.h [__USE_MISC]: Likewise.
51736         * io/sys/stat.h [__USE_MISC]: Likewise.
51737         * libio/stdio.h [__USE_MISC]: Likewise.
51738         * posix/unistd.h [__USE_MISC]: Likewise.
51739         * pwd/pwd.h [__USE_MISC]: Likewise.
51740         * stdlib.h [__USE_MISC]: Likewise.
51741         * string/bits/string2.h [__USE_MISC]: Likewise.
51742         * string/string.h [__USE_MISC]: Likewise.
51743         * time/time.h [__USE_MISC]: Likewise.
51744
51745 2014-02-13  Andreas Schwab  <schwab@suse.de>
51746
51747         [BZ #16574]
51748         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
51749         second answer buffer if it was separately allocated.
51750
51751 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
51752
51753         * sysdeps/mips/math-tests.h: Include <features.h>.
51754         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
51755         (ROUNDING_TESTS_long_double): Do not define.
51756         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
51757         (EXCEPTION_TESTS_long_double): Likewise.
51758         * sysdeps/mips/mips64/libm-test-ulps: Update.
51759
51760         * include/features.h (__USE_BSD): Remove macro definitions.
51761         (__USE_SVID): Likewise.
51762         (_BSD_SOURCE): Likewise.
51763         (_SVID_SOURCE): Likewise.
51764         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
51765         from definition of _DEFAULT_SOURCE.
51766         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
51767         [_DEFAULT_SOURCE].
51768         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
51769         * bits/mman.h [__USE_BSD]: Likewise.
51770         * bits/termios.h [__USE_BSD]: Likewise.
51771         * bits/waitstatus.h [__USE_BSD]: Likewise.
51772         * ctype/ctype.h [__USE_SVID]: Likewise.
51773         * dirent/dirent.h [__USE_BSD]: Likewise.
51774         * grp/grp.h [__USE_SVID]: Likewise.
51775         [__USE_BSD]: Likewise.
51776         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
51777         * io/fcntl.h [__USE_BSD]: Likewise.
51778         * io/ftw.h [__USE_BSD]: Likewise.
51779         * io/sys/stat.h [__USE_BSD]: Likewise.
51780         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
51781         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
51782         * libio/stdio.h [__USE_SVID]: Likewise.
51783         [__USE_BSD]: Likewise.
51784         * math/math.h [__USE_SVID]: Likewise.
51785         [__USE_BSD]: Likewise.
51786         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
51787         * misc/bits/syslog.h [__USE_BSD]: Likewise.
51788         * misc/search.h [__USE_SVID]: Likewise.
51789         * misc/sys/mman.h [__USE_BSD]: Likewise.
51790         * misc/sys/syslog.h [__USE_BSD]: Likewise.
51791         * misc/sys/uio.h [__USE_BSD]: Likewise.
51792         * posix/bits/unistd.h [__USE_BSD]: Likewise.
51793         * posix/glob.h [__USE_BSD]: Likewise.
51794         * posix/regex.h [__USE_BSD]: Likewise.
51795         * posix/sys/types.h [__USE_BSD]: Likewise.
51796         [__USE_SVID]: Likewise.
51797         * posix/sys/utsname.h [__USE_SVID]: Likewise.
51798         * posix/sys/wait.h [__USE_BSD]: Likewise.
51799         [__USE_SVID]: Likewise.
51800         * posix/unistd.h [__USE_BSD]: Likewise.
51801         [__USE_SVID]: Likewise.
51802         * pwd/pwd.h [__USE_SVID]: Likewise.
51803         * resolv/netdb.h [__USE_BSD]: Likewise.
51804         * setjmp/setjmp.h [__USE_BSD]: Likewise.
51805         * signal/signal.h [__USE_BSD]: Likewise.
51806         [__USE_SVID]: Likewise.
51807         * socket/sys/socket.h [__USE_BSD]: Likewise.
51808         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
51809         * stdlib/stdlib.h [__USE_BSD]: Likewise.
51810         [__USE_SVID]: Likewise.
51811         * string/bits/string2.h [__USE_BSD]: Likewise.
51812         [__USE_SVID]: Likewise.
51813         * string/bits/string3.h [__USE_BSD]: Likewise.
51814         * string/endian.h [__USE_BSD]: Likewise.
51815         * string/string.h [__USE_SVID]: Likewise.
51816         [__USE_BSD]: Likewise.
51817         * string/strings.h [__USE_BSD]: Likewise.
51818         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
51819         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
51820         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
51821         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
51822         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
51823         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
51824         Likewise.
51825         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
51826         Likewise.
51827         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
51828         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
51829         Likewise.
51830         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
51831         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
51832         Likewise.
51833         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
51834         Likewise.
51835         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
51836         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
51837         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
51838         Likewise.
51839         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
51840         Likewise.
51841         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
51842         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
51843         * termios/termios.h [__USE_BSD]: Likewise.
51844         * time/sys/time.h [__USE_BSD]: Likewise.
51845         * time/time.h [__USE_BSD]: Likewise.
51846         [__USE_SVID]: Likewise.
51847
51848         * Makefile (subdir_targets): Remove subdir_lint.out.
51849
51850         * stdio-common/Makefile (do-tst-unbputc): Remove target.
51851         (do-tst-printf): Likewise.
51852         (tests): Depend directly on $(objpfx)tst-unbputc.out and
51853         $(objpfx)tst-printf.out.
51854
51855         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
51856
51857         * Makerules (check-abi-%): Change target to
51858         $(objpfx)check-abi-%.out.
51859         (check-abi target): Update dependencies.
51860         (check-abi-pattern variable): Redirect output of diff to $@.
51861         (check-abi variable): Likewise.
51862         * elf/Makefile (check-abi): Update dependencies.
51863
51864         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
51865         unused.
51866         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
51867         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
51868         subnormal range.
51869         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
51870         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
51871         value has largest subnormal exponent.
51872         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
51873         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
51874         * sysdeps/aarch64/soft-fp/sfp-machine.h
51875         (_FP_TININESS_AFTER_ROUNDING): New macro.
51876         * sysdeps/alpha/soft-fp/sfp-machine.h
51877         (_FP_TININESS_AFTER_ROUNDING): Likewise.
51878         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
51879         Likewise.
51880         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
51881         (_FP_TININESS_AFTER_ROUNDING): Likewise.
51882         * sysdeps/mips/soft-fp/sfp-machine.h
51883         (_FP_TININESS_AFTER_ROUNDING): Likewise.
51884         * sysdeps/powerpc/soft-fp/sfp-machine.h
51885         (_FP_TININESS_AFTER_ROUNDING): Likewise.
51886         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
51887         Likewise.
51888         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
51889         (_FP_TININESS_AFTER_ROUNDING): Likewise.
51890         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
51891         (_FP_TININESS_AFTER_ROUNDING): Likewise.
51892         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
51893         Likewise.
51894
51895 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
51896
51897         [BZ #16545]
51898         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
51899         model 1.
51900
51901 2014-02-12  Richard Henderson  <rth@redhat.com>
51902
51903         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
51904         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
51905         * sysdeps/unix/sysv/linux/alpha: Move directory from
51906         ports/sysdeps/unix/sysv/linux/alpha.
51907         * README: Update listing for alpha-*-linux-gnu.
51908
51909 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
51910
51911         * include/features.h: Update comment documenting feature test
51912         macros.
51913         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
51914         _DEFAULT_SOURCE.
51915         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
51916         (_SVID_SOURCE): Likewise.
51917         (_DEFAULT_SOURCE): Update description of default features.
51918         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
51919         with _GNU_SOURCE.
51920         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
51921         (S_ISVTX): Likewise.
51922         * manual/math.texi (Mathematical Constants): Likewise.
51923         * manual/signal.texi (Interrupted Primitives): Likewise.
51924         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
51925         * math/test-matherr.c (_SVID_SOURCE): Do not define.
51926         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
51927         Don't refer to _SVID_SOURCE in warning text.
51928
51929         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
51930
51931         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
51932         already defined.
51933         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
51934         * sysdeps/mips/dl-lookup.c: Remove.
51935         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
51936
51937 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
51938
51939         [BZ #16447]
51940         * math/auto-libm-test-in: Add testcase for expl.
51941         * math/auto-libm-test-out: Regenerate.
51942         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
51943         calculation of unsafe.
51944         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
51945
51946 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
51947
51948         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
51949         * sysdeps/unix/sysv/linux/aarch64: Move directory from
51950         ports/sysdeps/unix/sysv/linux/aarch64.
51951         * README: Update listing for aarch64*-*-linux-gnu.
51952
51953 2014-02-11  Will Newton  <will.newton@linaro.org>
51954
51955         * manual/probes.texi (Mathematical Function Probes): Use
51956         "triggered" instead of "hit".
51957
51958         * manual/probes.texi (Internal Probes): Add documentation
51959         of setjmp, longjmp and longjmp_target probes.
51960
51961         * include/stap-probe.h: Add comment about probe argument
51962         format.
51963
51964         * malloc/mtrace.c (attribute_hidden): Remove unused macro
51965         definition.  (tr_where, tr_freehook, tr_mallochook,
51966         tr_reallochook, tr_memalignhook): Use ANSI protoype.
51967
51968 2014-02-11  David S. Miller  <davem@davemloft.net>
51969
51970         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
51971         processing int_tests.
51972
51973 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
51974
51975         * sysdeps/mips: Move directory from ports/sysdeps/mips.
51976         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
51977         * sysdeps/unix/sysv/linux/mips: Move directory from
51978         ports/sysdeps/unix/sysv/linux/mips.
51979         * README: Update listing for mips-*-linux-gnu and
51980         mips64-*-linux-gnu.
51981
51982 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
51983
51984         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
51985         * sysdeps/unix/sysv/linux/m68k: Move directory from
51986         ports/sysdeps/unix/sysv/linux/m68k.
51987         * README: Update listing for m68k-*-linux-gnu.
51988
51989 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
51990
51991         * sysdeps/tile: Move directory from ports/sysdeps/tile.
51992         * sysdeps/unix/sysv/linux/generic: Move directory from
51993         ports/sysdeps/unix/sysv/linux/generic.
51994         * sysdeps/unix/sysv/linux/tile: Move directory from
51995         ports/sysdeps/unix/sysv/linux/tile.
51996         * README: Update listing for tile*-*-linux-gnu.
51997
51998 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
51999
52000         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
52001         __builtin_expect.
52002         * benchtests/bench-memmem.c (simple_memmem): Likewise.
52003         * catgets/open_catalog.c (__open_catalog): Likewise.
52004         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
52005         * debug/confstr_chk.c: Likewise.
52006         * debug/fread_chk.c (__fread_chk): Likewise.
52007         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
52008         * debug/getgroups_chk.c: Likewise.
52009         * debug/mbsnrtowcs_chk.c: Likewise.
52010         * debug/mbsrtowcs_chk.c: Likewise.
52011         * debug/mbstowcs_chk.c: Likewise.
52012         * debug/memcpy_chk.c: Likewise.
52013         * debug/memmove_chk.c: Likewise.
52014         * debug/mempcpy_chk.c: Likewise.
52015         * debug/memset_chk.c: Likewise.
52016         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
52017         * debug/strcat_chk.c (__strcat_chk): Likewise.
52018         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
52019         * debug/strncat_chk.c (__strncat_chk): Likewise.
52020         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
52021         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
52022         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
52023         * debug/wcpncpy_chk.c: Likewise.
52024         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
52025         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
52026         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
52027         * debug/wcsncpy_chk.c: Likewise.
52028         * debug/wcsnrtombs_chk.c: Likewise.
52029         * debug/wcsrtombs_chk.c: Likewise.
52030         * debug/wcstombs_chk.c: Likewise.
52031         * debug/wmemcpy_chk.c: Likewise.
52032         * debug/wmemmove_chk.c: Likewise.
52033         * debug/wmempcpy_chk.c: Likewise.
52034         * debug/wmemset_chk.c: Likewise.
52035         * dirent/scandirat.c (SCANDIRAT): Likewise.
52036         * dlfcn/dladdr1.c (dladdr1): Likewise.
52037         * dlfcn/dladdr.c (dladdr): Likewise.
52038         * dlfcn/dlclose.c (dlclose_doit): Likewise.
52039         * dlfcn/dlerror.c (__dlerror): Likewise.
52040         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
52041         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
52042         * dlfcn/dlopen.c (dlopen_doit): Likewise.
52043         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
52044         * dlfcn/dlsym.c (dlsym_doit): Likewise.
52045         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
52046         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
52047         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
52048         Likewise.
52049         * elf/dl-conflict.c: Likewise.
52050         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
52051         * elf/dl-dst.h: Likewise.
52052         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
52053         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
52054         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
52055         * elf/dl-init.c (call_init, _dl_init): Likewise.
52056         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
52057         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
52058         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
52059         Likewise.
52060         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
52061         Likewise.
52062         * elf/dl-minimal.c (__libc_memalign): Likewise.
52063         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
52064         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
52065         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
52066         * elf/dl-sym.c (do_sym): Likewise.
52067         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
52068         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
52069         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
52070         * elf/dl-writev.h (_dl_writev): Likewise.
52071         * elf/ldconfig.c (search_dir): Likewise.
52072         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
52073         (dl_main): Likewise.
52074         * elf/setup-vdso.h (setup_vdso): Likewise.
52075         * grp/compat-initgroups.c (compat_call): Likewise.
52076         * grp/fgetgrent.c (fgetgrent): Likewise.
52077         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
52078         * grp/putgrent.c (putgrent): Likewise.
52079         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
52080         Likewise.
52081         * hurd/hurdinit.c: Likewise.
52082         * iconvdata/8bit-gap.c (struct): Likewise.
52083         * iconvdata/ansi_x3.110.c : Likewise.
52084         * iconvdata/big5.c : Likewise.
52085         * iconvdata/big5hkscs.c : Likewise.
52086         * iconvdata/cp1255.c: Likewise.
52087         * iconvdata/cp1258.c : Likewise.
52088         * iconvdata/cp932.c : Likewise.
52089         * iconvdata/euc-cn.c: Likewise.
52090         * iconvdata/euc-jisx0213.c : Likewise.
52091         * iconvdata/euc-jp.c: Likewise.
52092         * iconvdata/euc-jp-ms.c : Likewise.
52093         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
52094         * iconvdata/gb18030.c : Likewise.
52095         * iconvdata/gbbig5.c (const): Likewise.
52096         * iconvdata/gbgbk.c: Likewise.
52097         * iconvdata/gbk.c : Likewise.
52098         * iconvdata/ibm1364.c : Likewise.
52099         * iconvdata/ibm930.c : Likewise.
52100         * iconvdata/ibm932.c: Likewise.
52101         * iconvdata/ibm933.c : Likewise.
52102         * iconvdata/ibm935.c : Likewise.
52103         * iconvdata/ibm937.c : Likewise.
52104         * iconvdata/ibm939.c : Likewise.
52105         * iconvdata/ibm943.c: Likewise.
52106         * iconvdata/iso_11548-1.c: Likewise.
52107         * iconvdata/iso-2022-cn.c : Likewise.
52108         * iconvdata/iso-2022-cn-ext.c : Likewise.
52109         * iconvdata/iso-2022-jp-3.c: Likewise.
52110         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
52111         * iconvdata/iso-2022-kr.c : Likewise.
52112         * iconvdata/iso646.c (gconv_end): Likewise.
52113         * iconvdata/iso_6937-2.c : Likewise.
52114         * iconvdata/iso_6937.c : Likewise.
52115         * iconvdata/iso8859-1.c: Likewise.
52116         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
52117         * iconvdata/shift_jisx0213.c : Likewise.
52118         * iconvdata/sjis.c : Likewise.
52119         * iconvdata/t.61.c : Likewise.
52120         * iconvdata/tcvn5712-1.c : Likewise.
52121         * iconvdata/tscii.c: Likewise.
52122         * iconvdata/uhc.c : Likewise.
52123         * iconvdata/unicode.c (gconv_end): Likewise.
52124         * iconvdata/utf-16.c (gconv_end): Likewise.
52125         * iconvdata/utf-32.c (gconv_end): Likewise.
52126         * iconvdata/utf-7.c (base64): Likewise.
52127         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
52128         * iconv/gconv_close.c (__gconv_close): Likewise.
52129         * iconv/gconv_open.c (__gconv_open): Likewise.
52130         * iconv/gconv_simple.c (internal_ucs4_loop_single)
52131         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
52132         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
52133         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
52134         (ucs4le_internal_loop_single): Likewise.
52135         * iconv/iconv.c (iconv): Likewise.
52136         * iconv/iconv_close.c: Likewise.
52137         * iconv/loop.c (SINGLE): Likewise.
52138         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
52139         * include/atomic.h: Likewise.
52140         * inet/inet6_option.c (option_alloc): Likewise.
52141         * intl/bindtextdom.c (set_binding_values): Likewise.
52142         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
52143         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
52144         * intl/localealias.c (read_alias_file): Likewise.
52145         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
52146         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
52147         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
52148         * libio/fmemopen.c (fmemopen): Likewise.
52149         * libio/iofgets.c (_IO_fgets): Likewise.
52150         * libio/iofgets_u.c (fgets_unlocked): Likewise.
52151         * libio/iofgetws.c (fgetws): Likewise.
52152         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
52153         * libio/iogetdelim.c (_IO_getdelim): Likewise.
52154         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
52155         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
52156         * locale/findlocale.c (_nl_find_locale): Likewise.
52157         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
52158         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
52159         Likewise.
52160         * locale/setlocale.c (setlocale): Likewise.
52161         * login/programs/pt_chown.c (main): Likewise.
52162         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
52163         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
52164         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
52165         (mmap, mmap64, mremap, munmap): Likewise.
52166         * math/e_exp2l.c: Likewise.
52167         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
52168         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
52169         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
52170         * math/s_catan.c (__catan): Likewise.
52171         * math/s_catanf.c (__catanf): Likewise.
52172         * math/s_catanh.c (__catanh): Likewise.
52173         * math/s_catanhf.c (__catanhf): Likewise.
52174         * math/s_catanhl.c (__catanhl): Likewise.
52175         * math/s_catanl.c (__catanl): Likewise.
52176         * math/s_ccosh.c (__ccosh): Likewise.
52177         * math/s_ccoshf.c (__ccoshf): Likewise.
52178         * math/s_ccoshl.c (__ccoshl): Likewise.
52179         * math/s_cexp.c (__cexp): Likewise.
52180         * math/s_cexpf.c (__cexpf): Likewise.
52181         * math/s_cexpl.c (__cexpl): Likewise.
52182         * math/s_clog10.c (__clog10): Likewise.
52183         * math/s_clog10f.c (__clog10f): Likewise.
52184         * math/s_clog10l.c (__clog10l): Likewise.
52185         * math/s_clog.c (__clog): Likewise.
52186         * math/s_clogf.c (__clogf): Likewise.
52187         * math/s_clogl.c (__clogl): Likewise.
52188         * math/s_csin.c (__csin): Likewise.
52189         * math/s_csinf.c (__csinf): Likewise.
52190         * math/s_csinh.c (__csinh): Likewise.
52191         * math/s_csinhf.c (__csinhf): Likewise.
52192         * math/s_csinhl.c (__csinhl): Likewise.
52193         * math/s_csinl.c (__csinl): Likewise.
52194         * math/s_csqrt.c (__csqrt): Likewise.
52195         * math/s_csqrtf.c (__csqrtf): Likewise.
52196         * math/s_csqrtl.c (__csqrtl): Likewise.
52197         * math/s_ctan.c (__ctan): Likewise.
52198         * math/s_ctanf.c (__ctanf): Likewise.
52199         * math/s_ctanh.c (__ctanh): Likewise.
52200         * math/s_ctanhf.c (__ctanhf): Likewise.
52201         * math/s_ctanhl.c (__ctanhl): Likewise.
52202         * math/s_ctanl.c (__ctanl): Likewise.
52203         * math/w_pow.c: Likewise.
52204         * math/w_powf.c: Likewise.
52205         * math/w_powl.c: Likewise.
52206         * math/w_scalb.c (sysv_scalb): Likewise.
52207         * math/w_scalbf.c (sysv_scalbf): Likewise.
52208         * math/w_scalbl.c (sysv_scalbl): Likewise.
52209         * misc/error.c (error_tail): Likewise.
52210         * misc/pselect.c (__pselect): Likewise.
52211         * nis/nis_callback.c (__nis_create_callback): Likewise.
52212         * nis/nis_call.c (__nisfind_server): Likewise.
52213         * nis/nis_creategroup.c (nis_creategroup): Likewise.
52214         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
52215         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
52216         * nis/nis_getservlist.c (nis_getservlist): Likewise.
52217         * nis/nis_lookup.c (nis_lookup): Likewise.
52218         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
52219         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
52220         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
52221         * nis/nis_xdr.c (xdr_endpoint): Likewise.
52222         * nis/nss_compat/compat-grp.c (getgrent_next_file)
52223         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
52224         * nis/nss_compat/compat-initgroups.c (add_group)
52225         (internal_getgrent_r): Likewise.
52226         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
52227         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
52228         * nis/nss_compat/compat-spwd.c (getspent_next_file)
52229         (internal_getspnam_r): Likewise.
52230         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
52231         (_nss_nis_getaliasbyname_r): Likewise.
52232         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
52233         (_nss_nis_getntohost_r): Likewise.
52234         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
52235         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
52236         (_nss_nis_getgrgid_r): Likewise.
52237         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
52238         (internal_nis_gethostent_r, internal_gethostbyname2_r)
52239         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
52240         (_nss_nis_gethostbyname4_r): Likewise.
52241         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
52242         (initgroups_netid): Likewise.
52243         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
52244         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
52245         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
52246         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
52247         (_nss_nis_getprotobynumber_r): Likewise.
52248         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
52249         (_nss_nis_getsecretkey): Likewise.
52250         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
52251         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
52252         (_nss_nis_getpwuid_r): Likewise.
52253         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
52254         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
52255         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
52256         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
52257         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
52258         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
52259         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
52260         Likewise.
52261         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
52262         (_nss_nisplus_getntohost_r): Likewise.
52263         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
52264         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
52265         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
52266         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
52267         Likewise.
52268         * nis/nss_nisplus/nisplus-initgroups.c
52269         (_nss_nisplus_initgroups_dyn): Likewise.
52270         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
52271         (_nss_nisplus_getnetbyaddr_r): Likewise.
52272         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
52273         (_nss_nisplus_getprotobynumber_r): Likewise.
52274         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
52275         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
52276         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
52277         Likewise.
52278         * nis/nss_nisplus/nisplus-service.c
52279         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
52280         (_nss_nisplus_getservbyport_r): Likewise.
52281         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
52282         (_nss_nisplus_getspnam_r): Likewise.
52283         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
52284         Likewise.
52285         * nscd/aicache.c (addhstaiX): Likewise.
52286         * nscd/cache.c (cache_search, prune_cache): Likewise.
52287         * nscd/connections.c (register_traced_file, send_ro_fd)
52288         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
52289         (main_loop_epoll): Likewise.
52290         * nscd/grpcache.c (addgrbyX): Likewise.
52291         * nscd/hstcache.c (addhstbyX): Likewise.
52292         * nscd/initgrcache.c (addinitgroupsX): Likewise.
52293         * nscd/mem.c (gc, mempool_alloc): Likewise.
52294         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
52295         (addinnetgrX): Likewise.
52296         * nscd/nscd-client.h (__nscd_acquire_maplock)
52297         (__nscd_drop_map_ref): Likewise.
52298         * nscd/nscd_getai.c (__nscd_getai): Likewise.
52299         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
52300         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
52301         Likewise.
52302         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
52303         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
52304         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
52305         (__nscd_get_map_ref): Likewise.
52306         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
52307         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
52308         Likewise.
52309         * nscd/pwdcache.c (addpwbyX): Likewise.
52310         * nscd/selinux.c (preserve_capabilities): Likewise.
52311         * nscd/servicescache.c (addservbyX): Likewise.
52312         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
52313         * posix/fnmatch.c (fnmatch): Likewise.
52314         * posix/getopt.c (_getopt_internal_r): Likewise.
52315         * posix/glob.c (glob, glob_in_dir): Likewise.
52316         * posix/wordexp.c (exec_comm_child): Likewise.
52317         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
52318         (getanswer_r, gaih_getanswer_slice): Likewise.
52319         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
52320         * resolv/res_init.c: Likewise.
52321         * resolv/res_mkquery.c (res_nmkquery): Likewise.
52322         * resolv/res_query.c (__libc_res_nquery): Likewise.
52323         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
52324         Likewise.
52325         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
52326         * stdio-common/perror.c (perror): Likewise.
52327         * stdio-common/printf_fp.c (___printf_fp): Likewise.
52328         * stdio-common/tmpnam.c (tmpnam): Likewise.
52329         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
52330         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
52331         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
52332         Likewise.
52333         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
52334         * stdlib/putenv.c (putenv): Likewise.
52335         * stdlib/setenv.c (__add_to_environ): Likewise.
52336         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
52337         * stdlib/strtol_l.c (INTERNAL): Likewise.
52338         * string/memmem.c (memmem): Likewise.
52339         * string/strerror.c (strerror): Likewise.
52340         * string/strnlen.c (__strnlen): Likewise.
52341         * string/test-memmem.c (simple_memmem): Likewise.
52342         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
52343         * sunrpc/pm_getport.c (__get_socket): Likewise.
52344         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
52345         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
52346         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
52347         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
52348         Likewise.
52349         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
52350         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
52351         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
52352         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
52353         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
52354         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
52355         Likewise.
52356         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
52357         Likewise.
52358         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
52359         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
52360         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
52361         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
52362         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
52363         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
52364         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
52365         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
52366         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
52367         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
52368         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
52369         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
52370         Likewise.
52371         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
52372         Likewise.
52373         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
52374         Likewise.
52375         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
52376         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
52377         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
52378         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
52379         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
52380         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
52381         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
52382         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
52383         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
52384         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
52385         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
52386         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
52387         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
52388         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
52389         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
52390         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
52391         Likewise.
52392         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
52393         Likewise.
52394         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
52395         Likewise.
52396         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
52397         Likewise.
52398         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
52399         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
52400         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
52401         Likewise.
52402         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
52403         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
52404         * sysdeps/posix/opendir.c (__opendirat): Likewise.
52405         * sysdeps/posix/sleep.c: Likewise.
52406         * sysdeps/posix/tempname.c: Likewise.
52407         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
52408         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
52409         Likewise.
52410         * sysdeps/powerpc/powerpc32/dl-machine.h
52411         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
52412         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
52413         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
52414         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
52415         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
52416         Likewise.
52417         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
52418         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
52419         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
52420         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
52421         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
52422         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
52423         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
52424         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
52425         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
52426         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
52427         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
52428         (elf_machine_lazy_rel): Likewise.
52429         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
52430         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
52431         (elf_machine_lazy_rel): Likewise.
52432         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
52433         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
52434         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
52435         * sysdeps/unix/grantpt.c (grantpt): Likewise.
52436         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
52437         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
52438         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
52439         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
52440         Likewise.
52441         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
52442         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
52443         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
52444         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
52445         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
52446         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
52447         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
52448         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
52449         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
52450         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
52451         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
52452         Likewise.
52453         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
52454         (__posix_fallocate64_l64): Likewise.
52455         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
52456         (posix_fallocate): Likewise.
52457         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
52458         Likewise.
52459         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
52460         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
52461         (getifaddrs_internal): Likewise.
52462         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
52463         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
52464         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
52465         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
52466         * sysdeps/unix/sysv/linux/posix_fallocate64.c
52467         (__posix_fallocate64_l64): Likewise.
52468         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
52469         Likewise.
52470         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
52471         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
52472         (__get_clockfreq): Likewise.
52473         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
52474         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
52475         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
52476         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
52477         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
52478         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
52479         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
52480         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
52481         Likewise.
52482         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
52483         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
52484         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
52485         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
52486         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
52487         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
52488         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
52489         Likewise.
52490         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
52491         (posix_fallocate): Likewise.
52492         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
52493         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
52494         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
52495         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
52496         (elf_machine_rela, elf_machine_rela_relative)
52497         (elf_machine_lazy_rel): Likewise.
52498         * time/asctime.c (asctime_internal): Likewise.
52499         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
52500         * time/tzset.c (__tzset_parse_tz): Likewise.
52501         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
52502         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
52503         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
52504         * wcsmbs/wcsmbsload.h: Likewise.
52505
52506         [BZ #15894]
52507         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
52508
52509         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
52510         (arena_get2): Remove THREAD_STATS conditionals.
52511         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
52512         (__malloc_stats, int): Likewise.
52513
52514 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
52515
52516         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
52517         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
52518
52519         * manual/setjmp.texi: Fix typos/grammar errors.
52520
52521         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
52522         Only return early when n is <= 0.  Delete unused return statement.
52523
52524         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
52525         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
52526         * debug/tst-longjmp_chk3.c: New file.
52527
52528         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
52529         (test_main): Replace code with set_fortify_handler call.
52530         * debug/test-strcpy_chk.c: Likewise.
52531         * debug/tst-chk1.c: Likewise.
52532         * debug/tst-longjmp_chk.c: Likewise.
52533         * test-skeleton.c: Include fcntl.h & paths.h
52534         (set_fortify_handler): Define.
52535
52536         * debug/tst-longjmp_chk.c: Add header comment and include
52537         ../test-skeleton.c.
52538         (do_test): Mark static.
52539         (TEST_FUNCTION): Define.
52540
52541         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
52542         (IP_PMTUDISC_INTERFACE): Likewise.
52543         (IP_MULTICAST_IF): Likewise.
52544         (IP_MULTICAST_TTL): Likewise.
52545         (IP_MULTICAST_LOOP): Likewise.
52546         (IP_ADD_MEMBERSHIP): Likewise.
52547         (IP_DROP_MEMBERSHIP): Likewise.
52548         (IP_UNBLOCK_SOURCE): Likewise.
52549         (IP_BLOCK_SOURCE): Likewise.
52550         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
52551         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
52552         (IP_MSFILTER): Likewise.
52553         (MCAST_JOIN_GROUP): Likewise.
52554         (MCAST_BLOCK_SOURCE): Likewise.
52555         (MCAST_UNBLOCK_SOURCE): Likewise.
52556         (MCAST_LEAVE_GROUP): Likewise.
52557         (MCAST_JOIN_SOURCE_GROUP): Likewise.
52558         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
52559         (MCAST_MSFILTER): Likewise.
52560         (IP_MULTICAST_ALL): Likewise.
52561         (IP_UNICAST_IF): Likewise.
52562
52563         * timezone/Makefile: Delete $(have-ksh) check.
52564         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
52565         * timezone/tzselect.ksh: Add +x mode bits.
52566
52567         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
52568         (ANON_INODE_FS_MAGIC): Likewise.
52569         (BDEVFS_MAGIC): Likewise.
52570         (BINFMTFS_MAGIC): Likewise.
52571         (BTRFS_TEST_MAGIC): Likewise.
52572         (CRAMFS_MAGIC_WEND): Likewise.
52573         (DEBUGFS_MAGIC): Likewise.
52574         (ECRYPTFS_SUPER_MAGIC): Likewise.
52575         (EXT3_SUPER_MAGIC): Likewise.
52576         (EXT4_SUPER_MAGIC): Likewise.
52577         (FUTEXFS_SUPER_MAGIC): Likewise.
52578         (HOSTFS_SUPER_MAGIC): Likewise.
52579         (HUGETLBFS_MAGIC): Likewise.
52580         (MINIX3_SUPER_MAGIC): Likewise.
52581         (MTD_INODE_FS_MAGIC): Likewise.
52582         (NILFS_SUPER_MAGIC): Likewise.
52583         (OPENPROM_SUPER_MAGIC): Likewise.
52584         (PIPEFS_MAGIC): Likewise.
52585         (PSTOREFS_MAGIC): Likewise.
52586         (QNX6_SUPER_MAGIC): Likewise.
52587         (RAMFS_MAGIC): Likewise.
52588         (REISERFS_SUPER_MAGIC_STRING): Likewise.
52589         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
52590         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
52591         (SECURITYFS_MAGIC): Likewise.
52592         (SELINUX_MAGIC): Likewise.
52593         (SMACK_MAGIC): Likewise.
52594         (SOCKFS_MAGIC): Likewise.
52595         (SQUASHFS_MAGIC): Likewise.
52596         (STACK_END_MAGIC): Likewise.
52597         (TMPFS_MAGIC): Likewise.
52598         (USBDEVICE_SUPER_MAGIC): Likewise.
52599         (V9FS_MAGIC): Likewise.
52600         (XENFS_SUPER_MAGIC): Likewise.
52601         (CRAMFS_MAGIC): Fix typo in comment.
52602         (EXT2_SUPER_MAGIC): Update comment.
52603         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
52604
52605 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
52606
52607         * sysdeps/arm: Move directory from ports/sysdeps/arm.
52608         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
52609         * sysdeps/unix/sysv/linux/arm: Move directory from
52610         ports/sysdeps/unix/sysv/linux/arm.
52611         * README: Update listing for arm-*-linux-gnueabi.
52612
52613         * README: Remove mention of am33.
52614
52615 2014-02-07  Roland McGrath  <roland@hack.frob.com>
52616
52617         * bits/sigset.h (__sigemptyset): Use a statement expression rather
52618         than the comma operator, to avoid "rhs of comma has no effect"
52619         compiler warnings.
52620         (__sigfillset, __sigandset, __sigorset): Likewise.
52621         * include/signal.h (__sigemptyset): Likewise.
52622         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
52623
52624 2014-02-07  Allan McRae  <allan@archlinux.org>
52625
52626         * version.h (RELEASE): Set to "development".
52627         (VERSION): Set to "2.19.90"
52628         * NEWS: Add 2.20 section.
52629
52630 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
52631
52632         [BZ #16529]
52633         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
52634
52635 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
52636
52637         * manual/contrib.texi: Update entry for Carlos O'Donell,
52638         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
52639
52640 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
52641
52642         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
52643
52644         * sysdeps/unix/sysv/linux/kernel-features.h
52645         [__LINUX_KERNEL_VERSION >= 0x020621]
52646         (__ASSUME_PROC_PID_TASK_COMM): Define.
52647
52648 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
52649
52650         [BZ #16398]
52651         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
52652         conversion when destination buffer does not have enough space.
52653         * libio/tst-ftell-partial-wide.c: New test case.
52654         * libio/Makefile (tests): Add tst-ftell-partial-wide.
52655
52656         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
52657         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
52658         Leonard and Allan McRae.
52659
52660 2014-02-04  David S. Miller  <davem@davemloft.net>
52661
52662         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
52663         32-bit.
52664
52665 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52666
52667         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
52668         New file
52669         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
52670         New file
52671         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
52672         New file.
52673         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
52674         New file.
52675         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
52676         New file.
52677         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
52678         New file.
52679         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
52680         New file.
52681         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
52682         New file.
52683         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
52684         New file.
52685         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
52686         New file.
52687         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
52688         New file.
52689         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
52690         New file.
52691         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
52692         New file.
52693
52694 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52695
52696         * nptl/shlib-versions: Change powerpc*le start to 2.17.
52697         * shlib-versions: Likewise.
52698
52699 2014-02-04  Roland McGrath  <roland@hack.frob.com>
52700             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52701
52702         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
52703         (abilist-pattern): New variable, set to %-le.abilist.
52704
52705         * Makerules (abilist-pattern): New variable.
52706         (vpath): Use $(abilist-pattern) in place of %.abilist.
52707         (check-abi-% pattern rule): Likewise.
52708         (check-abi, update-abi): Likewise.
52709
52710 2014-02-04  Eric Wong  <normalperson@yhbt.net>
52711
52712         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
52713
52714 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
52715
52716         * manual/startup.texi: Add next, previous, and top entries for
52717         the `Program Arguments' and `Environment Variables' nodes.
52718
52719 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
52720
52721         * manual/macros.texi: Add comments before MTASC-safety macros.
52722
52723         * manual/users.texi: Document MTASC-safety properties.
52724
52725         * manual/threads.texi (pthread_key_create, pthread_key_delete)
52726         (pthread_getspecific, pthread_setspecific): Format with
52727         @deftypefun, and add @safety note.
52728         * manual/signal.texi: Move comments that analyze the above
52729         functions to their home place.
52730
52731 2014-02-03  Allan McRae  <allan@archlinux.org>
52732
52733         * po/sl.po: Update Slovenian translation from translation project.
52734
52735 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
52736
52737         * manual/time.texi (timegm): Add missing blank after @c.
52738         Reported by Joseph Myers <joseph@codesourcery.com>.
52739
52740 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
52741
52742         * manual/check-safety.sh: New.
52743         * manual/Makefile ($(objpfx)stamp-summary): Run it.
52744
52745         * manual/terminal.texi: Document MTASC-safety properties.
52746
52747         * manual/filesys.texi: Document MTASC-safety properties.
52748
52749         * manual/errno.texi: Document MTASC-safety properties.
52750
52751         * manual/intro.texi: Document safety identifiers and
52752         conditionals.
52753
52754         * manual/string.texi (wcstok): Fix prototype.
52755         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
52756
52757         * manual/time.texi: Document MTASC-safety properties.
52758
52759         * manual/string.texi: Document MTASC-safety properties.
52760
52761         * manual/threads.texi: Document MTASC-safety properties.
52762
52763         * manual/stdio.texi: Document MTASC-safety properties.
52764
52765         * manual/syslog.texi: Document MTASC-safety properties.
52766
52767         * manual/sysinfo.texi: Document MTASC-safety properties.
52768
52769         * manual/startup.texi: Document MTASC-safety properties.
52770
52771         * manual/socket.texi: Document MTASC-safety properties.
52772
52773         * manual/signal.texi: Document MTASC-safety properties.
52774
52775 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
52776
52777         * manual/setjmp.texi: Document MTASC-safety properties.
52778
52779         * manual/search.texi: Document MTASC-safety properties.
52780
52781         * manual/resource.texi: Document MTASC-safety properties.
52782
52783         * manual/process.texi: Document MTASC-safety properties.
52784
52785         * manual/platform.texi: Document MTASC-safety properties.
52786
52787         * manual/pipe.texi: Document MTASC-safety properties.
52788
52789         * manual/pattern.texi: Document MTASC-safety properties.
52790
52791         * manual/message.texi: Document MTASC-safety properties.
52792
52793         [BZ #12751]
52794         * manual/memory.texi: Document MTASC-safety properties.
52795
52796         * manual/math.texi: Document MTASC-safety properties.
52797
52798         * manual/locale.texi: Document MTASC-safety properties.
52799
52800         * manual/llio.texi: Document MTASC-safety properties.
52801
52802         * manual/libdl.texi: New.
52803
52804         * manual/lang.texi: Document MTASC-safety properties.
52805
52806         * manual/job.texi: Document MTASC-safety properties.
52807
52808         * manual/getopt.texi: Document MTASC-safety properties.
52809
52810         * manual/ctype.texi: Document MTASC-safety properties.
52811
52812 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
52813
52814         [BZ #16046]
52815         * csu/libc-tls.c (static_map): Remove variable.
52816         (__libc_setup_tls): Use main executable's link map for TLS data.
52817         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
52818         casing for LM_ID_BASE and GL(dl_nns).
52819         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
52820         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
52821         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
52822         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
52823         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
52824         member.
52825         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
52826         l_phnum members.
52827
52828 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
52829
52830         * manual/debug.texi: Document MTASC-safety properties.
52831
52832 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
52833
52834         [BZ #16510]
52835         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
52836         of __x86_64__ when disabling x87 inline functions.
52837
52838 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
52839
52840         * manual/charset.texi: Document MTASC-safety properties.
52841
52842         * manual/crypt.texi: Document MTASC-safety properties.
52843
52844         * manual/conf.texi: Document MTASC-safety properties.
52845
52846         * manual/arith.texi: Document MTASC-safety properties.
52847
52848         * manual/argp.texi: Document MTASC-safety properties.
52849
52850         * manual/macros.texi: Introduce macros to document multi
52851         thread, asynchronous signal and asynchronous cancellation
52852         safety properties.
52853         * manual/intro.texi: Introduce the properties themselves.
52854
52855 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
52856
52857         * sysdeps/sh/sh4/Makefile: New file.
52858
52859 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
52860
52861         * math/gen-libm-test.pl ($srcdir): New variable.
52862         ($auto_input): Use it.
52863
52864 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
52865
52866         [BZ #16506]
52867         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
52868         access beyond array bounds when parsing netgroups file.
52869
52870         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
52871         the old buffer before realloc.
52872
52873 2014-01-27  Allan McRae  <allan@archlinux.org>
52874
52875         * po/fr.po: Update French translation from translation project.
52876
52877 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
52878
52879         * sysdeps/sh/libm-test-ulps: Regenerate.
52880
52881 2014-01-24  David S. Miller  <davem@davemloft.net>
52882
52883         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
52884
52885 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
52886
52887         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
52888         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
52889
52890 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
52891
52892         [BZ #16474]
52893         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
52894         string pointers after reallocation.
52895
52896 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
52897
52898         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
52899         __SH4A__ instead of __SH_FPU_ANY__.
52900
52901 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
52902
52903         * sysdeps/sh/fpu_control.h: New file.
52904         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
52905         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
52906         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
52907         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
52908         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
52909         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
52910         * sysdeps/sh/sys/ucontext.h: Remove.
52911         * sysdeps/sh/sys: Remove directory.
52912
52913 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
52914
52915         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
52916         s390/sys/ucontext.h.
52917         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
52918         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
52919
52920 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
52921
52922         [BZ #15605]
52923         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
52924
52925 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52926
52927         [BZ #16431]
52928         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
52929         Adjust the vDSO correctly for internal calls.
52930         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
52931
52932 2014-01-20  Allan McRae  <allan@archlinux.org>
52933
52934         * po/ca.po: Update Catalan translation from translation project.
52935
52936 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
52937
52938         * sysdeps/s390/sotruss-lib.c: New file.
52939
52940 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52941
52942         [BZ #16430]
52943         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
52944         (__GI___gettimeofday): Alias for a different internal symbol to avoid
52945         local calls issues by not having a PLT stub required for IFUNC calls.
52946         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
52947
52948 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
52949
52950         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
52951         * math/test-fpucw-static.c: Likewise.
52952
52953 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
52954
52955         [BZ #16453]
52956         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
52957
52958 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52959
52960         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
52961         implementation for powerpc.
52962
52963 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
52964
52965         [BZ #14782]
52966         * sysdeps/posix/system.c (__libc_system): Do not enable
52967         asynchronous cancellation.
52968
52969 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
52970
52971         [BZ #16427]
52972         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
52973         handling only for numbers special also in the IEEE case.
52974
52975 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
52976
52977         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
52978
52979 2014-01-11  Allan McRae  <allan@archlinux.org>
52980
52981         * po/bg.po: Update Bulgarian translation from translation project.
52982
52983         * po/de.po: Update German translation from translation project.
52984
52985 2014-01-10  Roland McGrath  <roland@hack.frob.com>
52986
52987         * sysdeps/generic/gcc-compat.h: New file.
52988
52989 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
52990
52991         * benchtests/asin-inputs: Correct slow inputs.
52992         * benchtests/acos-inputs: Likewise.
52993
52994 2014-01-10  Allan McRae  <allan@archlinux.org>
52995
52996         * po:sv.po: Update Swedish translation from translation project.
52997
52998         * po/vi.po: Update Vietnamese translation from translation project.
52999
53000         * po/eo.po: Update Esperanto translation from translation project.
53001
53002         * po/cs.po: Update Czech translation from translation project.
53003
53004         * po/nl.po: Update Dutch translation from translation project.
53005
53006         * po/pl.po: Update Polish translation from translation project.
53007
53008         * po/ru.po: Update Russian translation from translation project.
53009
53010         * po/uk.po: Update Ukrainian translation from translation project.
53011
53012 2014-01-08  Brooks Moses  <bmoses@google.com>
53013
53014         * elf/dl-load.c: Fix comment typo.
53015
53016 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
53017
53018         * po/header.pot: Rename to...
53019         * po/pot.header: ... this.
53020         * po/Makefile: Use pot.header.
53021
53022 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
53023             Maxim Kuvyrkov  <maxim@kugelworks.com>
53024
53025         [BZ #16394]
53026         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
53027         SRC and DEST against LEN.
53028
53029 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53030
53031         [BZ #16414]
53032         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
53033         implementation.
53034         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
53035
53036 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53037
53038         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53039
53040 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
53041
53042         [BZ #16408]
53043         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
53044         for large positive arguments.
53045
53046 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
53047
53048         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
53049
53050         * math/auto-libm-test-in: Mark various tests with
53051         xfail-rounding:ldbl-128ibm.
53052         * math/auto-libm-test-out: Regenerated.
53053
53054         [BZ #16407]
53055         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
53056         Increase overflow threshold.
53057
53058 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
53059
53060         [BZ #14286]
53061         * stdio-common/vfprintf.c: Check for integer overflow.
53062
53063 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
53064
53065         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
53066         the first argument and return value of __tls_get_addr_internal.
53067
53068 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
53069
53070         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
53071         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
53072
53073 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
53074
53075         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
53076         * sysdeps/s390/rtld-global-offsets.sym: New file.
53077         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
53078         GLIBC_2.19 symbol.
53079         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
53080         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
53081         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
53082         ... this.
53083         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
53084         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
53085         ... this.
53086         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
53087         Regenerate.
53088         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
53089         Regenerate.
53090         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
53091         halfs of GPRs for high_gprs contexts.
53092         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
53093         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
53094         field.
53095         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
53096         uc_flags field.
53097         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
53098         64 bit versions:
53099         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
53100         for high GPRs (uc_high_gprs) and for future extensions
53101         (__reserved).
53102         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
53103         for future extensions (__reserved).
53104         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
53105         64 bit versions:
53106         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
53107         SC_HIGHGPRS offset definition.
53108         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
53109         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
53110
53111         * Versions.def: Add GLIBC_2.19 for libpthread.
53112         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
53113         siglongjmp for libpthread with GLIBC_2.19 symver.
53114         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
53115         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
53116         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
53117         * sysdeps/s390/__longjmp.c: New file.
53118         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
53119         * sysdeps/s390/longjmp.c: New file.
53120         * sysdeps/s390/setjmp.S: New file.
53121         * sysdeps/s390/sigjmp.S: New file.
53122         * sysdeps/s390/v1-longjmp.c: New file.
53123         * sysdeps/s390/v1-setjmp.h: New file.
53124         * sysdeps/s390/v1-sigjmp.c: New file.
53125         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
53126         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
53127         GLIBC_2.19 version.
53128         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
53129         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
53130         versioned symbols for ____longjmp_chk.
53131         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
53132         Likewise.
53133         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
53134         Regenerate.
53135         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
53136         Regenerate.
53137         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
53138         Regenerate.
53139         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
53140         Regenerate.
53141         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
53142         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
53143         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
53144         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
53145         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
53146         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
53147         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
53148         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
53149         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
53150         * sysdeps/s390/rtld-__longjmp.c: New file.
53151         * sysdeps/s390/rtld-setjmp.S: New file.
53152
53153 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
53154
53155         [BZ #16400]
53156         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
53157         Return -__logl (x) for small positive arguments without evaluating
53158         a polynomial.
53159
53160 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
53161
53162         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
53163         Rename to ...
53164         (__ptrace_peeksiginfo_args): ... this.
53165         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
53166         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
53167         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
53168
53169 2014-01-06  Allan McRae  <allan@archlinux.org>
53170
53171         * inet/netinet/in.h: Fix typo in comment.
53172
53173 2014-01-05  Andreas Jaeger  <aj@suse.de>
53174
53175         * sysdeps/i386/fpu/libm-test-ulps: Update.
53176
53177 2014-01-05  Allan McRae  <allan@archlinux.org>
53178
53179         * po/libc.pot: Regenerated.
53180
53181         * malloc/memusagestat.c: Fix gettext call formatting.
53182
53183 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
53184
53185         * nscd/nscd.c: Improve usage() output.
53186
53187 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
53188
53189         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
53190         * sysdeps/unix/sysv/linux/configure: Regenerated.
53191         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
53192         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
53193
53194 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
53195
53196         [BZ #16390]
53197         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
53198         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
53199
53200 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53201
53202         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
53203         extra tokens at end of #undef directive.
53204         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
53205         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
53206         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
53207
53208 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
53209
53210         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
53211
53212         * math/auto-libm-test-in: Mark various tests with
53213         xfail-rounding:ldbl-128ibm.
53214         * math/auto-libm-test-out: Regenerated.
53215
53216 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
53217
53218         [BZ #16386]
53219         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
53220         numbers with subnormal high part when calculating exponent.
53221
53222         [BZ #16385]
53223         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
53224         fabs.
53225
53226         [BZ #16384]
53227         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
53228         M_LN2l.
53229         (__ieee754_acoshl): Use __log1pl not __log1p.
53230
53231 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
53232
53233         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
53234         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
53235         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
53236         (grow_heap, heap_trim, _int_new_arena, get_free_list)
53237         (reused_arena, arena_get2): Convert to GNU style.
53238         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
53239         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
53240         (memalign_check, __malloc_set_state): Likewise.
53241         * malloc/mallocbug.c (main): Likewise.
53242         * malloc/malloc.c (__malloc_assert, malloc_init_state)
53243         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
53244         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
53245         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
53246         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
53247         (__posix_memalign, malloc_info): Likewise.
53248         * malloc/malloc.h: Likewise.
53249         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
53250         (mallochook, memalignhook, reallochook, mabort): Likewise.
53251         * malloc/mcheck.h: Likewise.
53252         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
53253         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
53254         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
53255         * malloc/morecore.c (__default_morecore): Likewise.
53256         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
53257         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
53258         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
53259         (print_and_abort): Likewise.
53260         * malloc/obstack.h: Likewise.
53261         * malloc/set-freeres.c (__libc_freeres): Likewise.
53262         * malloc/tst-mallocstate.c (main): Likewise.
53263         * malloc/tst-mtrace.c (main): Likewise.
53264         * malloc/tst-realloc.c (do_test): Likewise.
53265
53266 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
53267
53268         [BZ #16366]
53269         * nscd/netgroupcache.c (do_notfound): New function.
53270         (addgetnetgrentX): Use it.
53271
53272         [BZ # 16365]
53273         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
53274         NSS_STATUS_NOTFOUND.
53275
53276 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
53277
53278         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
53279         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53280
53281 2014-01-01  Allan McRae  <allan@archlinux.org>
53282
53283         * scripts/update-copyrights: Update configure input file suffix.
53284
53285         * NEWS: Update copyright year.
53286         * catgets/gencat.c: Likewise.
53287         * csu/version.c: Likewise.
53288         * debug/catchsegv.sh: Likewise.
53289         * debug/pcprofiledump.c: Likewise.
53290         * debug/xtrace.sh: Likewise.
53291         * elf/ldconfig.c: Likewise.
53292         * elf/ldd.bash.in: Likewise.
53293         * elf/pldd.c: Likewise.
53294         * elf/sotruss.ksh: Likewise.
53295         * elf/sprof.c: Likewise.
53296         * iconv/iconv_prog.c: Likewise.
53297         * iconv/iconvconfig.c: Likewise.
53298         * locale/programs/locale.c: Likewise.
53299         * locale/programs/localedef.c: Likewise.
53300         * login/programs/pt_chown.c: Likewise.
53301         * malloc/memusage.sh: Likewise.
53302         * malloc/memusagestat.c: Likewise.
53303         * malloc/mtrace.pl: Likewise.
53304         * manual/libc.texinfo: Likewise.
53305         * nscd/nscd.c: Likewise.
53306         * nss/getent.c: Likewise.
53307         * nss/makedb.c: Likewise.
53308         * posix/getconf.c: Likewise.
53309         * scripts/test-installation.pl: Likewise.
53310
53311         * All files with FSF copyright notices: Update copyright dates
53312         using scripts/update-copyrights.
53313         * intl/plural.c: Regenerated.
53314         * locale/programs/charmap-kw.h: Likewise.
53315         * locale/programs/locfile-kw.h: Likewise.
53316
53317 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
53318
53319         * sysdeps/unix/sysv/linux/configure: Regenerated.
53320         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
53321         the linux/fanotify.h header.
53322         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
53323         HAVE_LINUX_FANOTIFY_H is defined.
53324
53325 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
53326
53327         * benchtests/cos-inputs: New inputs.
53328         * benchtests/sin-inputs: Likewise.
53329
53330         * benchtests/atan-inputs: New inputs. Fix name of multiple
53331         precision fallback inputs.
53332
53333         * benchtests/atanh-inputs: New inputs.
53334         * benchtests/tanh-inputs: Likewise.
53335
53336         * benchtests/acosh-inputs: New inputs.
53337         * benchtests/asinh-inputs: Likewise.
53338
53339         * benchtests/cosh-inputs: New inputs.
53340         * benchtests/sinh-inputs: Likewise.
53341
53342         * benchtests/acos-inputs: Add more inputs.
53343         * benchtests/asin-inputs: Likewise.
53344
53345 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
53346
53347         [BZ #16375]
53348         * manual/arith.texi: Fix spelling.
53349         * manual/charset.texi: Likewise.
53350         * manual/errno.texi: Likewise.
53351         * manual/filesys.texi: Likewise.
53352         * manual/lang.texi: Likewise.
53353         * manual/llio.texi: Likewise.
53354         * manual/locale.texi: Likewise.
53355         * manual/message.texi: Likewise.
53356         * manual/resource.texi: Likewise.
53357         * manual/search.texi: Likewise.
53358         * manual/setjmp.texi: Likewise.
53359         * manual/stdio.texi: Likewise.
53360         * manual/string.texi: Likewise.
53361         * manual/sysinfo.texi: Likewise.
53362         * manual/time.texi: Likewise.
53363
53364 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
53365
53366         * po/sl.po: New file.
53367
53368 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
53369
53370         * .gitignore: Add core/.gdbinit/.gdb_history.
53371
53372 2013-12-27  Allan McRae  <allan@archlinux.org>
53373
53374         [BZ #16369]
53375         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
53376         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
53377
53378 2013-12-24  Brooks Moses  <bmoses@google.com>
53379
53380         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
53381         all compilers that claim C++98 compliance, not just GCC.
53382         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
53383         Likewise.
53384
53385 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
53386
53387         * NEWS: Restore accidentally deleted bug-fix entries.
53388
53389 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
53390             Ondřej Bílka  <neleai@seznam.cz>
53391
53392         [BZ #15073]
53393         * malloc/malloc.c (_int_free): Perform sanity check only if we
53394         have_lock.
53395
53396 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
53397
53398         [BZ #12986]
53399         * manual/stdio.texi (String Input Conversions): Clarify that character
53400         classes are not supported.
53401
53402 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53403
53404         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53405
53406 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
53407
53408         [BZ #16337]
53409         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
53410         Calculate results for small negative arguments directly rather
53411         than using reflection formula with special underflow handling.
53412
53413         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
53414         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
53415         sysdeps/unix/bsd/bsd4.4/syscalls.list.
53416         (fchflags): Likewise.
53417         (revoke): Likewise.
53418         (setlogin): Likewise.
53419         (sigaltstack): Likewise.
53420         (wait4): Likewise.
53421         (sigblock): Remove.
53422         (sigsetmask): Likewise.
53423         (wait3): Likewise.
53424         (waitpid): Likewise.
53425         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
53426         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
53427         file.
53428         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
53429         * sysdeps/unix/bsd/Makefile: ... here.
53430         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
53431         * sysdeps/unix/bsd/Versions: ... here.
53432         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
53433         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
53434         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
53435         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
53436         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
53437         * sysdeps/unix/bsd/sigblock.c: ... here.
53438         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
53439         * sysdeps/unix/bsd/sigsetmask.c: ... here.
53440         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
53441         * sysdeps/unix/bsd/sigvec.c: ... here.
53442         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
53443         * sysdeps/unix/bsd/tcdrain.c: ... here.
53444         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
53445         * sysdeps/unix/bsd/tcgetattr.c: ... here.
53446         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
53447         * sysdeps/unix/bsd/tcsetattr.c: ... here.
53448         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
53449         * sysdeps/unix/bsd/wait.c: ... here.
53450         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
53451         * sysdeps/unix/bsd/wait3.c: ... here.
53452         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
53453         * sysdeps/unix/bsd/waitpid.c: ... here.
53454
53455 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
53456
53457         [BZ #16356]
53458         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
53459         round-to-nearest for [!USE_AS_EXPM1L].
53460         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
53461         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
53462         more tests of exp and exp10.  Expect some exp10 tests to miss
53463         exceptions or fail in directed rounding modes.
53464         * math/auto-libm-test-out: Regenerated.
53465         * math/libm-test.inc (exp10_tonearest_test_data): New array.
53466         (exp10_test_tonearest): New function.
53467         (exp10_towardzero_test_data): New array.
53468         (exp10_test_towardzero): New function.
53469         (exp10_downward_test_data): New array.
53470         (exp10_test_downward): New function.
53471         (exp10_upward_test_data): New array.
53472         (exp10_test_upward): New function.
53473         (main): Call the new functions.
53474         * sysdeps/i386/fpu/libm-test-ulps: Update.
53475         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53476
53477 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
53478
53479         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
53480         asinh, atan, atan2, atanh, cbrt, cos and cosh.
53481         * math/auto-libm-test-out: Regenerated.
53482         * math/libm-test.inc (acosh_test_data): Add more tests.
53483         (atanh_test_data): Likewise.
53484         (ceil_test_data): Likewise.
53485         (copysign_test_data): Likewise.
53486         * sysdeps/i386/fpu/libm-test-ulps: Update.
53487         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53488
53489         * timezone/checktab.awk: Update from tzcode 2013i.
53490         * timezone/private.h: Likewise.
53491         * timezone/scheck.c: Likewise.
53492         * timezone/tzfile.h: Likewise.
53493         * timezone/tzselect.ksh: Likewise.
53494         * timezone/zdump.c: Likewise.
53495         * timezone/zic.c: Likewise.
53496
53497         * math/auto-libm-test-in: Add tests of cpow.
53498         * math/auto-libm-test-out: Regenerated.
53499         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
53500         * math/gen-auto-libm-tests.c (func_calc_method): Add value
53501         mpc_cc_c.
53502         (func_calc_desc): Add mpc_cc_c union field.
53503         (test_functions): Add cpow.
53504         (special_fill_2pi): New function.
53505         (special_real_inputs): Add 2pi.
53506         (calc_generic_results): Handle mpc_cc_c.
53507         * sysdeps/i386/fpu/libm-test-ulps: Update.
53508         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53509
53510         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
53511         csqrt, ctan and ctanh.
53512         * math/auto-libm-test-out: Regenerated.
53513         * math/libm-test.inc (TEST_COND_x86_64): New macro.
53514         (TEST_COND_x86): Likewise.
53515         (ccos_test_data): Use AUTO_TESTS_c_c.
53516         (ccosh_test_data): Likewise.
53517         (cexp_test_data): Likewise.
53518         (clog_test_data): Likewise.
53519         (csqrt_test_data): Likewise.
53520         (ctan_test_data): Likewise.
53521         (ctan_tonearest_test_data): Likewise.
53522         (ctan_towardzero_test_data): Likewise.
53523         (ctan_downward_test_data): Likewise.
53524         (ctan_upward_test_data): Likewise.
53525         (ctanh_test_data): Likewise.
53526         (ctanh_tonearest_test_data): Likewise.
53527         (ctanh_towardzero_test_data): Likewise.
53528         (ctanh_downward_test_data): Likewise.
53529         (ctanh_upward_test_data): Likewise.
53530         * math/gen-auto-libm-tests.c (func_calc_method): Add value
53531         mpc_c_c.
53532         (func_calc_desc): Add mpc_c_c union field.
53533         (FUNC_mpc_c_c): New macro.
53534         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
53535         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
53536         ctanh.
53537         (special_fill_min_subnorm_p120): New function.
53538         (special_real_inputs): Add min_subnorm_p120.
53539         (calc_generic_results): Handle mpc_c_c.
53540         * sysdeps/i386/fpu/libm-test-ulps: Update.
53541         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53542
53543 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
53544
53545         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
53546         (do_sin_slow): New functions.
53547         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
53548         (cslow2, csloww1, csloww2): Use the new functions.
53549
53550         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
53551         Use M to change sign of result instead of X.  Assume X is
53552         positive.
53553         (csloww1): Likewise.
53554         (__sin): Adjust.
53555         (__cos): Adjust.
53556
53557         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
53558         arguments A and DA.
53559         (__sin): Adjust.
53560         (__cos): Likewise.
53561
53562         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
53563         (__cos): Likewise.
53564         (sloww1): Don't adjust sign of DX.
53565         (csloww1): Likewise.
53566         (sloww2): Use X directly and don't adjust sign of DX.
53567         (csloww2): Likewise.
53568
53569 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
53570
53571         * math/auto-libm-test-in: Add tests of cabs and carg.
53572         * math/auto-libm-test-out: Regenerated.
53573         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
53574         (carg_test_data): Likewise.
53575         * math/gen-auto-libm-tests.c (func_calc_method): Add value
53576         mpc_c_f.
53577         (func_calc_desc): Add mpc_c_f union field.
53578         (test_functions): Add cabs and carg.
53579         (calc_generic_results): Handle mpc_c_f.
53580
53581         * sysdeps/powerpc/powerpc32/libgcc-compat.S
53582         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
53583         as a macro and a compat symbol.
53584         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
53585         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
53586         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
53587         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
53588         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
53589         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
53590         not use .hidden.
53591         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
53592         Likewise.
53593         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
53594         Likewise.
53595         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
53596         Likewise.
53597         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
53598         Likewise.
53599         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
53600         Likewise.
53601         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
53602         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
53603         from GLIBC_2.3.2.
53604
53605 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53606
53607         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53608
53609 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
53610
53611         * manual/texinfo.tex: Update to version 2013-11-26.10 with
53612         trailing whitespace removed.
53613         * scripts/config.guess: Update to version 2013-11-29.
53614         * scripts/config.sub: Update to version 2013-10-01.
53615
53616         * math/auto-libm-test-in: Add tests of sincos.
53617         * math/auto-libm-test-out: Regenerated.
53618         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
53619         * math/gen-auto-libm-tests.c (func_calc_method): Add value
53620         mpfr_f_11.
53621         (func_calc_desc): Add mpfr_f_11 union field.
53622         (test_functions): Add sincos.
53623         (calc_generic_results): Handle mpfr_f_11.
53624         * sysdeps/i386/fpu/libm-test-ulps: Update.
53625         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53626
53627 2013-12-19  Andreas Schwab  <schwab@suse.de>
53628
53629         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
53630         CALL_MCOUNT.
53631         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
53632         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
53633         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
53634
53635 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
53636
53637         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
53638         * sysdeps/i386/fpu/libm-test-ulps: Update.
53639         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53640
53641         [BZ #16293]
53642         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
53643         round-to-nearest mode when using frndint.
53644         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
53645         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
53646         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
53647         Likewise.
53648         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
53649         sinh test to fail.
53650         * math/auto-libm-test-out: Regenerated.
53651         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
53652         (TEST_COND_x86): Likewise.
53653         (expm1_tonearest_test_data): New array.
53654         (expm1_test_tonearest): New function.
53655         (expm1_towardzero_test_data): New array.
53656         (expm1_test_towardzero): New function.
53657         (expm1_downward_test_data): New array.
53658         (expm1_test_downward): New function.
53659         (expm1_upward_test_data): New array.
53660         (expm1_test_upward): New function.
53661         (main): Run the new test functions.
53662         * sysdeps/i386/fpu/libm-test-ulps: Update.
53663         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53664
53665         * include/features.h: Update comment documenting feature test
53666         macros.  Mention _DEFAULT_SOURCE in comment.
53667         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
53668         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
53669         _BSD_SOURCE and _SVID_SOURCE.
53670         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
53671         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
53672         !_SVID_SOURCE]: Likewise.
53673         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
53674         (__USE_POSIX_IMPLICITLY): Define.
53675         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
53676         (_POSIX_SOURCE): Undefine and redefine.
53677         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
53678         (_POSIX_C_SOURCE): Likewise.
53679         * manual/creature.texi (_DEFAULT_SOURCE): Document.
53680         (Feature Test Macros): Update documentation of default features.
53681
53682 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
53683
53684         * benchtests/Makefile: Add bench-strtok.
53685         * benchtests/bench-strtok.c: New file: strtok benchtest.
53686
53687 2013-12-19  Allan McRae  <allan@archlinux.org>
53688
53689         * manual/install.texi: Suppress menu for plain text output.
53690         * INSTALL: Regenerated.
53691
53692 2013-12-18  Brooks Moses  <bmoses@google.com>
53693
53694         [BZ #15846]
53695         * misc/getauxval.c: Include errno.h.
53696         (__getauxval): Set errno to ENOENT if the requested type is not
53697         found.
53698         * misc/sys/auxv.h (getauxval): Document that it may set errno;
53699         don't declare with __attribute_const__.
53700         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
53701         * manual/startup.texi: Document that getauxval sets errno.
53702
53703 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
53704
53705         * math/auto-libm-test-in: Add tests of jn and yn.
53706         * math/auto-libm-test-out: Regenerated.
53707         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
53708         (yn_test_data): Likewise.
53709         * math/gen-auto-libm-tests.c (func_calc_method): Add value
53710         mpfr_if_f.
53711         (func_calc_desc): Add mpfr_if_f union field.
53712         (FUNC_mpfr_if_f): New macro.
53713         (test_functions): Add jn and yn.
53714         (calc_generic_results): Assert type of second input for
53715         mpfr_ff_f.  Handle mpfr_if_f.
53716         (output_for_one_input_case): Disable all checking for arguments
53717         fitting floating-point types in case of an integer argument.
53718         * sysdeps/i386/fpu/libm-test-ulps: Update.
53719         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53720
53721         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
53722         Don't expect fegetround reference in libm.so.
53723
53724 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
53725
53726         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
53727         $(config-cflags-nofma).
53728
53729 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
53730
53731         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
53732         * math/auto-libm-test-out: Regenerated.
53733
53734         [BZ #16338]
53735         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
53736         to determine exponent and adjust argument to have exponent of -1.
53737         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
53738         log2.
53739         * math/auto-libm-test-out: Regenerated.
53740         * sysdeps/i386/fpu/libm-test-ulps: Update.
53741         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53742
53743 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
53744
53745         * manual/probes.texi: Remove cases when per-thread arenas are
53746         disabled.
53747
53748 2013-12-18  Andreas Schwab  <schwab@suse.de>
53749
53750         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
53751         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
53752         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
53753         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
53754         * sysdeps/i386/i686/multiarch/Makefile: Update.
53755         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
53756
53757 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
53758
53759         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
53760         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
53761
53762 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
53763
53764         [BZ #15968]
53765         Support TZ transition times < 00:00:00.
53766         This is needed for version-3 tz-format files; it supports time
53767         stamps past 2037 for America/Godthab (the only entry in the tz
53768         database for which this change is relevant).
53769         * manual/time.texi (TZ Variable): Document transition times
53770         from -167:59:59 through -00:00:01.
53771         * time/tzset.c (tz_rule): Time of day is now signed.
53772         (__tzset_parse_tz): Parse negative time of day.
53773
53774         Document TZ transition times >= 25:00:00.
53775         * manual/time.texi (TZ Variable): Document transition times from
53776         25:00:00 through 167:59:59.  These are already supported, and this
53777         support will help with version-3 tz-format files.
53778
53779         * manual/time.texi (TZ Variable): Modernize North America example
53780         to reflect current (i.e., 2007-and-later) daylight saving rules.
53781
53782         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
53783
53784 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
53785
53786         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
53787         * sysdeps/unix/bsd/bits/stat.h: Likewise.
53788         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
53789         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
53790         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
53791         * sysdeps/unix/bsd/bsdstat.h: Likewise.
53792         * sysdeps/unix/bsd/clock.c: Likewise.
53793         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
53794         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
53795         * sysdeps/unix/bsd/init-posix.c: Likewise.
53796         * sysdeps/unix/bsd/poll.c: Likewise.
53797         * sysdeps/unix/bsd/ptsname.c: Likewise.
53798         * sysdeps/unix/bsd/seekdir.c: Likewise.
53799         * sysdeps/unix/bsd/setegid.c: Likewise.
53800         * sysdeps/unix/bsd/seteuid.c: Likewise.
53801         * sysdeps/unix/bsd/setgid.c: Likewise.
53802         * sysdeps/unix/bsd/setrgid.c: Likewise.
53803         * sysdeps/unix/bsd/setruid.c: Likewise.
53804         * sysdeps/unix/bsd/setsid.c: Likewise.
53805         * sysdeps/unix/bsd/setuid.c: Likewise.
53806         * sysdeps/unix/bsd/sigaction.c: Likewise.
53807         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
53808         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
53809         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
53810         * sysdeps/unix/bsd/telldir.c: Likewise.
53811         * sysdeps/unix/bsd/times.c: Likewise.
53812         * sysdeps/unix/bsd/usleep.c: Likewise.
53813
53814         * misc/Makefile (install-lib): Remove libbsd-compat.a.
53815         ($(objpfx)libbsd-compat.a): Remove rule.
53816
53817         * include/features.h (__FAVOR_BSD): Do not define.
53818         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
53819         features conflicting with POSIX.
53820         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
53821         (_BSD_SOURCE): Remove description of not being a subset of other
53822         feature test macros.
53823         * manual/job.texi (getpgrp): Do not document BSD version.
53824         (getpgid): Do not document by reference to BSD getpgrp.
53825         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
53826         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
53827         * signal/signal.h [__FAVOR_BSD]: Likewise.
53828         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
53829         instead of making contents conditional on [__FAVOR_BSD].
53830         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
53831
53832 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53833
53834         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53835
53836 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
53837
53838         [BZ #16314]
53839         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
53840         values below 2**-450, not 2**-500.
53841         * math/auto-libm-test-in: Don't allow spurious underflow from
53842         hypot.
53843         * math/auto-libm-test-out: Regenerated.
53844
53845         [BZ #16316]
53846         [BZ #16330]
53847         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
53848         values of ha and hb and sort them after adjusting subnormal
53849         arguments.
53850         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
53851         Likewise.
53852         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
53853         values of ea and eb and sort them after adjusting subnormal
53854         arguments.
53855         * math/auto-libm-test-in: Do not expect some hypot tests of
53856         subnormals to fail.  Add more hypot tests.
53857         * math/auto-libm-test-out: Regenerated.
53858
53859 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
53860
53861         [BZ #13304]
53862         * sysdeps/sh/s_fma.c: New file.
53863         * sysdeps/sh/s_fmaf.c: New file.
53864         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
53865         version.
53866         * sysdeps/sh/Implies: Add sh/soft-fp.
53867
53868 2013-12-16  Roland McGrath  <roland@hack.frob.com>
53869
53870         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
53871         level of indirection to members `objname', `errstring', `malloced'.
53872         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
53873         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
53874         it as the __longjmp argument (just pass 1 instead).
53875         (_dl_catch_error): Initialize C with argument pointers and address of
53876         volatile local ERRCODE rather than copying values out of C at return.
53877
53878 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
53879
53880         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
53881         * math/auto-libm-test-out: Regenerated.
53882         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
53883         (hypot_test_data): Likewise.
53884         (pow_test_data): Likewise.
53885         (pow_tonearest_test_data): Likewise.
53886         * math/gen-auto-libm-tests.c (func_calc_method): Add value
53887         mpfr_ff_f.
53888         (func_calc_desc): Add mpfr_ff_f union field.
53889         (FUNC_mpfr_ff_f): New macro.
53890         (test_functions): Add atan2, hypot and pow.
53891         (special_fill_min): New function.
53892         (special_fill_minus_min): Likewise.
53893         (special_fill_min_subnorm): Likewise.
53894         (special_fill_minus_min_subnorm): Likewise.
53895         (special_real_inputs): Add min, -min, min_subnorm and
53896         -min_subnorm.
53897         (calc_generic_results): Handle mpfr_ff_f.
53898         * sysdeps/i386/fpu/libm-test-ulps: Update.
53899         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53900
53901 2013-12-16  Will Newton  <will.newton@linaro.org>
53902
53903         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
53904         (Aligned Memory Blocks): Add documentation for aligned_alloc
53905         and suggest it as an alternative to posix_memalign.
53906         (Hooks for Malloc): Document __memalign_hook is also called
53907         for aligned_alloc.  (Summary of Malloc): Add summary for
53908         aligned alloc.  Document __memalign_hook is also called
53909         for aligned_alloc.
53910
53911 2013-12-16  Will Newton  <will.newton@linaro.org>
53912
53913         * manual/memory.texi (Malloc Examples): Clarify default
53914         alignment documentation.  Suggest posix_memalign rather
53915         than memalign or valloc.
53916         (Aligned Memory Blocks): Remove suggestion to use memalign
53917         or valloc.  Remove obsolete comment about BSD.
53918         Document memalign errno values and mark the function obsolete.
53919         Document posix_memalign returned error codes.  Mark valloc
53920         as obsolete.  (Hooks for Malloc): __memalign_hook is also
53921         called for posix_memalign and valloc.
53922         (Summary of Malloc): Add posix_memalign to function summary.
53923         __memalign_hook is also called for posix_memalign and valloc.
53924
53925 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
53926
53927         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
53928         TAYLOR_SIN.
53929         (__sin): Adjust.
53930         (__cos): Likewise.
53931         (sloww): Use mynumber union.  Expand ternary operator into
53932         if-else statements.
53933         (cslow): use mynumber union.
53934
53935 2013-12-16  Allan McRae  <allan@archlinux.org>
53936
53937         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
53938         * configure: Regenerated.
53939
53940         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
53941
53942         [BZ #14120]
53943         * configure.ac: Added --enable-maintainer-mode. Check for
53944         autoconf when enabled.
53945         * configure: Regenerated.
53946
53947         * nscd/nscd.service: New file.
53948         * nscd/nscd.tmpfiles: New file.
53949
53950 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
53951
53952         [BZ #12100]
53953         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
53954         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
53955         * sysdeps/x86_64/multiarch/strstr.c: ... here.
53956         (strstr): Add __strstr_sse2_unaligned ifunc.
53957         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
53958         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
53959         (strcasestr): Remove __strcasestr_sse42 ifunc.
53960         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
53961         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
53962         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
53963
53964 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
53965
53966         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
53967         * sysdeps/sh/bits/fenv.h: ... here.
53968         * sysdeps/sh/sh4/fpu/bits: Remove directory.
53969
53970 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53971
53972         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
53973
53974         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
53975         hypotf multiarch implementations.
53976         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
53977         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
53978         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
53979         multiarch hypot for PPC64.
53980         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
53981         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
53982         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
53983         multiarch hypotf for PPC64.
53984
53985         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
53986         modff multiarch implementations.
53987         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
53988         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
53989         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
53990         multiarch modf for PPC64.
53991         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
53992         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
53993         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
53994         multiarch modff for PPC64.
53995
53996         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
53997         and logl multiarch implementations.
53998         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
53999         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
54000         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
54001         multiarch logb for PPC64.
54002         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
54003         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
54004         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
54005         multiarch logb for PPC64.
54006         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
54007         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
54008         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
54009         multiarch logb for PPC64.
54010
54011         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
54012         isinff multiarch implementation.
54013         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
54014         file.
54015         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
54016         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
54017         multiarch isinf for PPC64.
54018         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
54019         file.
54020         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
54021         multiarch isinff for PPC64.
54022
54023         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
54024         finitef multiarch implementation.
54025         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
54026         file.
54027         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
54028         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
54029         multiarch finite for PPC64.
54030         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
54031         file.
54032         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
54033         multiarch finitef for PPC64.
54034
54035         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
54036         lrint multiarch implementation.
54037         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
54038         file.
54039         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
54040         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
54041         multiarch llrint for PPC64.
54042         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
54043         multiarch lrint for PPC64.
54044
54045         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
54046         copysignf multiarch implementation.
54047         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
54048         file.
54049         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
54050         file.
54051         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
54052         multiarch copysign for PPC64.
54053         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
54054         multiarch copysignf for PPC64.
54055
54056         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
54057         multiarch implementation.
54058         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
54059         file.
54060         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
54061         file.
54062         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
54063         file.
54064         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
54065         file.
54066         multiarch llround for PPC64.
54067         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
54068         multiarch trunc for PPC64.
54069         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
54070         multiarch truncf for PPC64.
54071
54072         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
54073         multiarch implementation.
54074         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
54075         file.
54076         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
54077         file.
54078         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
54079         file.
54080         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
54081         file.
54082         multiarch llround for PPC64.
54083         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
54084         multiarch round for PPC64.
54085         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
54086         multiarch roundf for PPC64.
54087
54088         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
54089         multiarch implementation.
54090         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
54091         file.
54092         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
54093         file.
54094         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
54095         file.
54096         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
54097         file.
54098         multiarch llround for PPC64.
54099         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
54100         multiarch floor for PPC64.
54101         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
54102         multiarch floorf for PPC64.
54103
54104         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
54105         multiarch implementation.
54106         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
54107         file.
54108         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
54109         file.
54110         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
54111         file.
54112         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
54113         file.
54114         multiarch llround for PPC64.
54115         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
54116         multiarch ceil for PPC64.
54117         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
54118         multiarch ceilf for PPC64.
54119
54120         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
54121         multiarch implementation.
54122         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
54123         file.
54124         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
54125         file.
54126         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
54127         file.
54128         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
54129         multiarch llround for PPC64.
54130         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
54131         multiarch lround for PPC64.
54132
54133         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
54134         multiarch implementation.
54135         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
54136         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
54137         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
54138         file.
54139         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
54140         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
54141         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
54142         multiarch isnan for PPC64.
54143         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
54144         multiarch isnanf for PPC64.
54145
54146         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
54147         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
54148         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
54149         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
54150         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
54151         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
54152
54153         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
54154         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
54155         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
54156         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
54157
54158         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
54159         multiarch implementations.
54160         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
54161         (__libc_ifunc_impl_list): Likewise.
54162         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
54163         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
54164         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
54165         multiarch stpcpy for PPC64.
54166
54167         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
54168         multiarch implementations.
54169         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
54170         (__libc_ifunc_impl_list): Likewise.
54171         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
54172         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
54173         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
54174         multiarch strcpy for PPC64.
54175
54176         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
54177         redefine function name.
54178         (_wordcopy_fwd_dest_aligned): Likewise.
54179         (_wordcopy_bwd_aligned): Likewise.
54180         (_wordcopy_bwd_dest_aligned): Likewise.
54181         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
54182         multiarch implementations.
54183         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
54184         (__libc_ifunc_impl_list): Likewise.
54185         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
54186         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
54187         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
54188         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
54189         multiarch wcscpy for PPC64.
54190
54191         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
54192         multiarch implementations.
54193         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
54194         (__libc_ifunc_impl_list): Likewise.
54195         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
54196         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
54197         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
54198         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
54199         multiarch wcscpy for PPC64.
54200
54201         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
54202         multiarch implementations.
54203         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
54204         (__libc_ifunc_impl_list): Likewise.
54205         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
54206         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
54207         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
54208         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
54209         multiarch wcsrchr for PPC64.
54210
54211         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
54212         multiarch implementations.
54213         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
54214         (__libc_ifunc_impl_list): Likewise.
54215         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
54216         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
54217         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
54218         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
54219         multiarch wcschr for PPC64.
54220
54221         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
54222         multiarch implementations.
54223         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
54224         (__libc_ifunc_impl_list): Likewise.
54225         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
54226         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
54227         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
54228         multiarch strchrnul for PPC64.
54229
54230         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
54231         implementations.
54232         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
54233         (__libc_ifunc_impl_list): Likewise.
54234         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
54235         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
54236         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
54237         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
54238         strchr for PPC64.
54239
54240         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
54241         implementations.
54242         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
54243         (__libc_ifunc_impl_list): Likewise.
54244         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
54245         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
54246         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
54247         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
54248         strncmp for PPC64.
54249
54250         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
54251         multiarch implementations.
54252         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
54253         (__libc_ifunc_impl_list): Likewise.
54254         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
54255         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
54256         strncasecmp for PPC64.
54257         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
54258         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
54259         multiarch strncasecmp_l for PPC64.
54260
54261         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
54262         multiarch implementations.
54263         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
54264         (__libc_ifunc_impl_list): Likewise.
54265         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
54266         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
54267         multiarch strcasecmp for PPC64.
54268         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
54269         file.
54270         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
54271         multiarch strcasecmp_l for PPC64.
54272
54273         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
54274         implementations.
54275         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
54276         (__libc_ifunc_impl_list): Likewise.
54277         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
54278         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
54279         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
54280         strnlen for PPC64.
54281
54282         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
54283         implementations.
54284         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
54285         (__libc_ifunc_impl_list): Likewise.
54286         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
54287         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
54288         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
54289         strlen for PPC64.
54290
54291         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
54292         implementations.
54293         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
54294         (__libc_ifunc_impl_list): Likewise.
54295         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
54296         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
54297         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
54298         rawmemrchr for PPC64.
54299
54300         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
54301         implementation.
54302         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
54303         (__libc_ifunc_impl_list): Likewise.
54304         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
54305         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
54306         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
54307         memrchr for PPC64.
54308
54309         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
54310         implementation.
54311         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
54312         (__libc_ifunc_impl_list): Likewise.
54313         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
54314         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
54315         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
54316         memchr for PPC64.
54317
54318         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
54319         implementation.
54320         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
54321         (__libc_ifunc_impl_list): Likewise.
54322         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
54323         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
54324         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
54325         mempcpy for PPC64.
54326
54327         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
54328         avoid cretion of __bzero symbol.
54329         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
54330         Likewise.
54331         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
54332         Likewise.
54333         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
54334         Likewise.
54335         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
54336         multiarch implementations.
54337         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
54338         (__libc_ifunc_impl_list): Likewise.
54339         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
54340         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
54341         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
54342         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
54343         bzero for PPC32.
54344         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
54345         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
54346         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
54347         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
54348         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
54349         memset for PPC64.
54350         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
54351
54352         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
54353         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
54354         implementations.
54355         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
54356         (__libc_ifunc_impl_list): Likewise.
54357         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
54358         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
54359         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
54360         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
54361         memcmp for PPC64.
54362
54363         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
54364         multiarch for POWER/PPC64.
54365         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
54366         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
54367         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
54368         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
54369         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
54370         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
54371         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
54372         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
54373         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
54374         memcpy for PPC64.
54375
54376         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
54377         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
54378         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
54379         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
54380         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
54381         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
54382         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
54383         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
54384         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
54385         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
54386         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
54387         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
54388         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
54389         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
54390         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
54391         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
54392         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
54393         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
54394         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
54395         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
54396         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
54397         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
54398
54399 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
54400
54401         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
54402
54403 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
54404
54405         * benchtests/Makefile (bench): Add exp2 and log2.
54406         (LDLIBS-bench-exp2): Add -lm.
54407         (LDLIBS-bench-log2): Likewise.
54408         * benchtests/exp2-inputs: New inputs file.
54409         * benchtests/log2-inputs: New inputs file.
54410         * benchtests/log-inputs: Add new inputs.
54411         * benchtests/tan-inputs: Likewise.
54412
54413 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
54414
54415         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
54416         definition...
54417         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
54418         (csloww2): ... from here.
54419
54420         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
54421         instead of structures.
54422         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
54423         (POLYNOMIAL): Likewise.
54424         (TAYLOR_SLOW): Likewise.
54425         (__sin): Likewise.
54426         (__cos): Likewise.
54427         (slow1): Likewise.
54428         (slow2): Likewise.
54429         (sloww): Likewise.
54430         (sloww1); Likewise.
54431         (sloww2): Likewise.
54432         (bsloww1): Likewise.
54433         (bsloww2): Likewise.
54434         (cslow2): Likewise.
54435         (csloww): Likewise.
54436         (csloww1): Likewise.
54437         (csloww2): Likewise.
54438
54439 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
54440
54441         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
54442         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
54443         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
54444         * malloc/hooks.c (realloc_check): Likewise.
54445
54446         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
54447         * malloc/arena.c: Remove PER_THREAD conditional.
54448         [!PER_THREAD]: Remove code.
54449         (ptmalloc_unlock_all2): Likewise.
54450         (ptmalloc_init): Likewise.
54451         (_int_new_arena): Likewise.
54452         (arena_get2): Likewise.
54453         * malloc/hooks.c (__malloc_get_state): Likewise.
54454         (__malloc_set_state): Likewise.
54455         * malloc/malloc.c: Likewise.
54456         (struct malloc_state): Likewise.
54457         (struct malloc_par): Likewise.
54458         (__libc_realloc): Likewise.
54459         (__libc_mallopt): Likewise.
54460
54461 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54462
54463         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
54464
54465 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
54466
54467         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
54468         macro to a function.  Check for zero perturb_byte.
54469         (_int_malloc, _int_free): Remove zero perturb_byte checks.
54470
54471         * malloc/malloc.c: (force_reg): Remove.
54472         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
54473         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
54474         force_reg by atomic_forced_read.
54475         * malloc/arena.c (ptmalloc_init): Likewise.
54476         * malloc/hooks.c (top_check): Likewise.
54477
54478 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54479
54480         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
54481
54482 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
54483
54484         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
54485
54486 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
54487
54488         * math/auto-libm-test-in: Add tests of lgamma.
54489         * math/auto-libm-test-out: Regenerated.
54490         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
54491         (M_LOG_2_SQRT_PIl): Likewise.
54492         (lgamma_test_data): Use AUTO_TESTS_f_f1.
54493         * math/gen-auto-libm-tests.c (func_calc_method): Add value
54494         mpfr_f_f1.
54495         (func_calc_desc): Add mpfr_f_f1 union field.
54496         (ARGS1): New macro.
54497         (ARGS2): Likewise.
54498         (ARGS3): Likewise.
54499         (ARGS4): Likewise.
54500         (RET1): Likewise.
54501         (RET2): Likewise.
54502         (CALC): Likewise.
54503         (FUNC): Likewise.
54504         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
54505         (test_functions): Add lgamma.
54506         (calc_generic_results): Handle mpfr_f_f1.
54507         * sysdeps/i386/fpu/libm-test-ulps: Update.
54508         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54509
54510 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54511
54512         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
54513         __mpn_add_n for PowerPC64/POWER7.
54514         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
54515         __mpn_sub_n for PowerPC64/POWER7.
54516
54517         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
54518         __mpn_addmul_1 for PowerPC64.
54519         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
54520         __mpn_submul_1 for PowerPC64.
54521         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
54522         for PowerPC64.
54523         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
54524         for PowerPC64.
54525
54526 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
54527
54528         [BZ #15089]
54529         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
54530
54531 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54532
54533         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
54534
54535         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
54536         add multiarch folders.
54537         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
54538         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
54539         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
54540         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
54541         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
54542         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
54543         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
54544         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
54545         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
54546         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
54547         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
54548         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
54549         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
54550         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
54551         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
54552         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
54553         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
54554
54555         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
54556         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
54557         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
54558         New file.
54559         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
54560         New file.
54561         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
54562         multiarch __ieee754_hypot for PowerPC32.
54563         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
54564         New file.
54565         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
54566         New file.
54567         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
54568         multiarch __ieee754_hypotf for PowerPC32.
54569
54570         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
54571         long_double_symbol only if __logbl is defined.
54572         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
54573         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
54574         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
54575         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
54576         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
54577         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
54578         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
54579         path for implementation.
54580         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
54581         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
54582         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
54583         logb, and logbl multiarch implementations for PowerPC32.
54584         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
54585         file.
54586         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
54587         file.
54588         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
54589         multiarch logb for PowerPC32.
54590         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
54591         file.
54592         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
54593         file.
54594         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
54595         multiarch logbf for PowerPC32.
54596         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
54597         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
54598         file.
54599         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
54600         multiarch logbl implementation for PowerPC32.
54601
54602         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
54603         and modff multiarch implementations.
54604         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
54605         New file.
54606         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
54607         New file.
54608         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
54609         multiarch modf for PowerPC32.
54610         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
54611         New file.
54612         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
54613         New file.
54614         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
54615         multiarch modff for PowerPC32.
54616
54617         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
54618         and lrintf multiarch implementations.
54619         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
54620         New file.
54621         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
54622         New file.
54623         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
54624         multiarch lrint for PowerPC32.
54625         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
54626         file: multiarch lrintf for PowerPC32.
54627
54628         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
54629         and lroundf multiarch implementations.
54630         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
54631         New file.
54632         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
54633         New file.
54634         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
54635         New file.
54636         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
54637         multiarch lround for PowerPC32.
54638         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
54639         file: multiarch lroundf for PowerPC32.
54640
54641         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
54642         copysign and copysignf multiarch implementations.
54643         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
54644         New file.
54645         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
54646         New file.
54647         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
54648         file: multiarch copysign for PowerPC32.
54649         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
54650         file: multiarch copysignf for PowerPC32.
54651
54652         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
54653         and truncf multiarch implementations.
54654         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
54655         New file.
54656         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
54657         file.
54658         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
54659         multiarch trunc for PowerPC32.
54660         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
54661         New file.
54662         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
54663         New file.
54664         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
54665         multiarch truncf for PowerPC32.
54666
54667         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
54668         and roundf multiarch implementations.
54669         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
54670         New file.
54671         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
54672         file.
54673         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
54674         multiarch round for PowerPC32.
54675         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
54676         New file.
54677         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
54678         New file.
54679         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
54680         multiarch roundf for PowerPC32.
54681
54682         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
54683         and floorf multiarch implementations.
54684         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
54685         New file.
54686         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
54687         file.
54688         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
54689         multiarch floor for PowerPC32.
54690         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
54691         New file.
54692         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
54693         New file.
54694         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
54695         multiarch floorf for PowerPC32.
54696
54697         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
54698         and ceilf multiarch implementations.
54699         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
54700         New file.
54701         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
54702         file.
54703         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
54704         multiarch ceil for PowerPC32.
54705         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
54706         New file.
54707         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
54708         file.
54709         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
54710         multiarch ceilf for PowerPC32.
54711
54712         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
54713         is defined.
54714         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
54715         FINITEF is defined.
54716         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
54717         and finitef multiarch implementations.
54718         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
54719         New file.
54720         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
54721         file.
54722         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
54723         multiarch finite for PowerPC32.
54724         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
54725         New file.
54726         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
54727         file: multiarch finitef for PowerPC32.
54728
54729         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
54730         and isinff multiarch implementations.
54731         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
54732         file.
54733         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
54734         file.
54735         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
54736         multiarch isinf for PowerPC32.
54737         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
54738         New file.
54739         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
54740         multiarch isinff for PowerPC32.
54741
54742         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
54743         alias when __isnan is defined.
54744         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
54745         and isnanf multiarch implementations.
54746         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
54747         file.
54748         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
54749         file.
54750         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
54751         file.
54752         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
54753         file.
54754         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
54755         multiarch isnan for PowerPC32.
54756         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
54757         New file.
54758         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
54759         New file.
54760         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
54761         multiarch isnanf for PowerPC32.
54762
54763         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
54764         and sqrtf multiarch implementations.
54765         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
54766         file.
54767         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
54768         file.
54769         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
54770         multiarch sqrt for PowerPC32.
54771         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
54772         file.
54773         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
54774         file.
54775         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
54776         multiarch sqrtf for PowerPC32.
54777
54778         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
54779         and llroundf multiarch implementations.
54780         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
54781         New file.
54782         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
54783         New file.
54784         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
54785         New file.
54786         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
54787         file: multiarch llround for PowerPC32.
54788         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
54789         file: multiarch llroundf for PowerPC32.
54790
54791         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
54792         multiarch PowerPC32 fpu implementations.
54793         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
54794         New file.
54795         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
54796         New file.
54797         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
54798         multiarch llrint for PowerPC32.
54799         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
54800         New file.
54801         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
54802         New file.
54803         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
54804         file.
54805
54806         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
54807
54808         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
54809         file.
54810         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
54811         file.
54812         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
54813         file.
54814         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
54815         multiarch wordcopy for PPC32.
54816         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
54817         wordcopy objects.
54818         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54819         (__libc_ifunc_impl_list): Likewise.
54820         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
54821         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
54822         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
54823         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
54824         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
54825         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
54826
54827         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
54828         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
54829         file.
54830         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
54831         file.
54832         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
54833         file.
54834         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
54835         multiarch wcscpy for PPC32.
54836         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
54837         multiarch objects.
54838         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54839         (__libc_ifunc_impl_list): Likewise.
54840         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
54841         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
54842         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
54843         sysdeps/powerpc/power6/wcscpy.c.
54844
54845         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
54846         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
54847         file.
54848         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
54849         file.
54850         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
54851         file.
54852         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
54853         multiarch wcsrchr for PPC32.
54854         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
54855         multiarch objects.
54856         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54857         (__libc_ifunc_impl_list): Likewise.
54858         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
54859         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
54860         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
54861         sysdeps/powerpc/power6/wcsrchr.c.
54862
54863         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
54864         file.
54865         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
54866         file.
54867         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
54868         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
54869         multiarch wcschr for PPc32.
54870         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
54871         multiarch objects.
54872         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54873         (__libc_ifunc_impl_list): Likewise.
54874         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
54875         * sysdeps/powerpc/power6/wcschr.c: ... to here.
54876         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
54877         sysdeps/powerpc/power6/wcschr.c.
54878
54879         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
54880         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
54881         file.
54882         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
54883         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
54884         file: multiarch strchr for PPC32.
54885         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
54886         multiarch objects.
54887         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54888         (__libc_ifunc_impl_list): Likewise.
54889
54890         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
54891         name.
54892         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
54893         file.
54894         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
54895         file.
54896         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
54897         multiarch strchrnul for PPC32.
54898         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
54899         multiarch objects.
54900         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54901         (__libc_ifunc_impl_list): Likewise.
54902
54903         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
54904         file.
54905         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
54906         multiarch strncasecmp for PPC32.
54907         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
54908         file.
54909         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
54910         multiarch strncasecmp_l for PPC32.
54911         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
54912         strncasecmp multiarch objects.
54913         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54914         (__libc_ifunc_impl_list): Likewise.
54915
54916         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
54917         file.
54918         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
54919         multiarch strncasecmp for PPC32.
54920         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
54921         New file.
54922         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
54923         multiarch strcasecmp_l for PPC32.
54924         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
54925         multiarch objects.
54926         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54927         (__libc_ifunc_impl_list): Likewise.
54928
54929         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
54930         file.
54931         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
54932         file.
54933         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
54934         multiarch strncmp for PPC32.
54935         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
54936         multiarch objects.
54937         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54938         (__libc_ifunc_impl_list): Likewise.
54939
54940         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
54941         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
54942         file.
54943         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
54944         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
54945         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
54946         multiarch objects.
54947         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54948         (__libc_ifunc_impl_list): Likewise.
54949
54950         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
54951         file.
54952         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
54953         file.
54954         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
54955         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
54956         multiarch objects.
54957         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54958         (__libc_ifunc_impl_list): Likewise.
54959
54960         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
54961         file.
54962         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
54963         file.
54964         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
54965         multiarch rawmemchr for PPC32.
54966         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
54967         multiarch objects.
54968         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54969         (__libc_ifunc_impl_list): Likewise.
54970
54971         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
54972         file.
54973         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
54974         file.
54975         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
54976         file: memrchr multiarch for PPC32.
54977         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
54978         multiarch objects.
54979         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54980         (__libc_ifunc_impl_list): Likewise.
54981
54982         * string/memchr.c (__memchr): Using macro to redefine symbol name.
54983         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
54984         file.
54985         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
54986         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
54987         multiarch memchr for PPC32.
54988         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
54989         multiarch objects.
54990         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
54991         (__libc_ifunc_impl_list): Likewise.
54992
54993         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
54994         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
54995         file.
54996         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
54997         file.
54998         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
54999         file: multiarch mempcpy for PPC32.
55000         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
55001         multiarch objects.
55002         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
55003         (__libc_ifunc_impl_list): Likewise.
55004
55005         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
55006         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
55007         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
55008         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
55009         multiarch bzero for PPC32.
55010         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
55011         file.
55012         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
55013         file.
55014         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
55015         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
55016         file: multiarch memset for PPC32.
55017         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
55018         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
55019         memset multiarch objects.
55020         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
55021         (__libc_ifunc_impl_list): Likewise.
55022
55023         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
55024         file.
55025         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
55026         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
55027         memcmp for PPC32.
55028         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
55029         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
55030         multiarch objects.
55031         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
55032         (__libc_ifunc_impl_list): Likewise.
55033
55034         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
55035         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
55036         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
55037         file.
55038         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
55039         file.
55040         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
55041         file.
55042         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
55043         multiarch memcpy for PPC32.
55044         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
55045         multiarch objects.
55046         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
55047         (__libc_ifunc_impl_list): Likewise.
55048
55049         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
55050         support multiarch for POWER/PPC32.
55051         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
55052         Likewise.
55053         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
55054         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
55055         Implies file to make multiarch folder appers before the fpu and
55056         default folder for power4 configuration.
55057
55058 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
55059
55060         * scripts/bench.pl: Append volatile keyword to type.
55061
55062 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
55063
55064         * sysdeps/sh/sotruss-lib.c: New file.
55065         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
55066
55067 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55068
55069         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
55070
55071 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
55072
55073         [BZ #6810]
55074         * math/w_tgamma.c: Include <errno.h>.
55075         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
55076         * math/w_tgammaf.c: Include <errno.h>.
55077         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
55078         * math/w_tgammal.c: Include <errno.h>.
55079         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
55080         * math/auto-libm-test-in: Do not allow missing errno on tgamma
55081         underflow.  Add more tgamma tests.
55082         * math/auto-libm-test-out: Regenerated.
55083         * sysdeps/i386/fpu/libm-test-ulps: Update.
55084         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55085
55086         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
55087         sin, sinh, tan, tanh, tgamma, y0 and y1.
55088         * math/auto-libm-test-out: Regenerated.
55089         * math/libm-test.inc (TEST_COND_x86_64): New macro.
55090         (TEST_COND_x86): Likewise.
55091         (M_E2l): Remove macro.
55092         (M_E3l): Likewise.
55093         (M_2_SQRT_PIl): Likewise.
55094         (M_SQRT_PIl): Likewise.
55095         (M_1_DIV_El): Likewise.
55096         (log_test_data): Use AUTO_TESTS_f_f.
55097         (log10_test_data): Likewise.
55098         (log1p_test_data): Likewise.
55099         (log2_test_data): Likewise.
55100         (sin_test_data): Likewise.
55101         (sin_tonearest_test_data): Likewise.
55102         (sin_towardzero_test_data): Likewise.
55103         (sin_downward_test_data): Likewise.
55104         (sin_upward_test_data): Likewise.
55105         (sinh_test_data): Likewise.
55106         (sinh_tonearest_test_data): Likewise.
55107         (sinh_towardzero_test_data): Likewise.
55108         (sinh_downward_test_data): Likewise.
55109         (sinh_upward_test_data): Likewise.
55110         (tan_test_data): Likewise.
55111         (tan_tonearest_test_data): Likewise.
55112         (tan_towardzero_test_data): Likewise.
55113         (tan_downward_test_data): Likewise.
55114         (tan_upward_test_data): Likewise.
55115         (tanh_test_data): Likewise.
55116         (tgamma_test_data): Likewise.
55117         (y0_test_data): Likewise.
55118         (y1_test_data): Likewise.
55119         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
55120         (special_real_inputs): Add pi/4.
55121         * sysdeps/i386/fpu/libm-test-ulps: Update.
55122         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55123
55124 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55125
55126         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
55127         "longjmp_target" static probes.
55128         (__longjmp): Rename to __longjmp_symbol.
55129         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
55130         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
55131         on which longjmp to generate.
55132         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
55133         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
55134         probe.
55135         (__sigsetjmp): Rename to __sigsetjmp_symbol.
55136         (__sigjmp_save): Rename to __sigjmp_save_symbol.
55137         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
55138         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
55139         and __sigjmp_save_symbol based on which sigsetjmp to generated.
55140         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
55141         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
55142         __longjmp_symbol based on which __longjmp to generate.
55143         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
55144         probe.
55145         (setjmp): Rename to setjmp_symbol.
55146         (__sigsetjmp): Rename to __sigsetjmp_symbol.
55147         (_setjmp): Rename to _setjmp_symbol.
55148         (__sigsetjmp): Rename to __sigsetjmp_symbol.
55149         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
55150         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
55151         which setjmp to generate.
55152         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
55153         "longjmp_target" static probes.
55154
55155 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
55156
55157         * benchtests/README: Add note about output arguments.
55158         * benchtests/bench-sincos.c: Remove file.
55159         * benchtests/sincos-inputs: New file.
55160         * scripts/bench.pl: Identify output arguments and define
55161         static variables for them.
55162
55163         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
55164
55165         [BZ #15941]
55166         * Makefile (INSTALL): Add install-plain.texi as the primary
55167         dependency.
55168         * manual/install-plain.texi: New file.
55169         * manual/install.texi: Include node directive only for
55170         non-plaintext output.
55171
55172 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
55173
55174         * stdlib/longlong.h: Update from GCC.
55175
55176         [BZ #6807]
55177         [BZ #15901]
55178         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
55179         * math/w_j0f.c (y0f): Likewise.
55180         * math/w_j0l.c (__y0l): Likewise.
55181         * math/w_j1.c (y1): Likewise.
55182         * math/w_j1f.c (y1f): Likewise.
55183         * math/w_j1l.c (__y1l): Likewise.
55184         * math/w_jn.c (yn): Likewise.
55185         * math/w_jnf.c (ynf): Likewise.
55186         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
55187         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
55188         value for Bessel function domain errors outside _SVID_ mode.
55189         Adjust sign of return value for yn (negative integer, 0).
55190         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
55191         by zero in return for negative x and set sign appropriately for
55192         negative n.
55193         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
55194         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
55195         * math/libm-test.inc (y0_test_data): Add more tests and adjust
55196         expectations in error cases.
55197         (y1_test_data): Likewise.
55198         (yn_test_data): Likewise.
55199         * sysdeps/i386/fpu/libm-test-ulps: Update.
55200         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55201
55202 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
55203
55204         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
55205         "64" to "64-v1".  Add "64-v2".
55206         (abi-64-options): Rename to ...
55207         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
55208         (abi-64-condition): Rename to ...
55209         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
55210         (abi-64-ld-soname): Rename to ...
55211         (abi-64-v1-ld-soname): ... this.
55212         (abi-64-v2-options): Define.
55213         (abi-64-v2-condition): Likewise.
55214         (abi-64-v2-ld-soname): Likewise.
55215         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
55216         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
55217         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
55218         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
55219         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
55220
55221 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
55222             Alan Modra  <amodra@gmail.com>
55223
55224         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
55225         New versions for use with the ELFv2 ABI.
55226         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
55227         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
55228         declaration.
55229         (struct La_ppc64v2_retval): Likewise.
55230         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
55231         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
55232         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
55233         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
55234         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
55235         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
55236         Do not save or restore CR.
55237         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
55238         (_dl_profile_resolve): Do no save or restore CR.  Support extended
55239         return values for ELFv2 ABI.  Fix location of FPR return registers.
55240         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
55241         updated values for _CALL_ELF == 2.
55242         (La_regs, La_retval, int_retval): Likewise.
55243
55244 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
55245
55246         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
55247         (FRAME_MIN_SIZE_PARM): Likewise.
55248         (FRAME_BACKCHAIN): Likewise.
55249         (FRAME_CR_SAVE): Likewise.
55250         (FRAME_LR_SAVE): Likewise.
55251         (FRAME_TOC_SAVE): Likewise.
55252         (FRAME_PARM_SAVE): Likewise.
55253         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
55254         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
55255         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
55256         (call_mcount_parm_offset): New macro.
55257         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
55258         (PROF): Use symbolic stack frame offsets.
55259         (TAIL_CALL_SYSCALL_ERROR): Likewise.
55260         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
55261         Redefine in terms of FRAME_MIN_SIZE.
55262         (_dl_runtime_resolve): Use symbolic stack frame offsets.
55263         (_dl_profile_resolve): Likewise.  Update comment.
55264         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
55265         symbols stack frame offsets.
55266         (__sigsetjmp): Likewise.
55267         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
55268         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
55269         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
55270         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
55271
55272         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
55273         (FRAME_BACKCHAIN): Remove.
55274         (FRAME_CR_SAVE): Likewise.
55275         (FRAME_LR_SAVE): Likewise.
55276         (FRAME_COMPILER_DW): Likewise.
55277         (FRAME_LINKER_DW): Likewise.
55278         (FRAME_TOC_SAVE): Likewise.
55279         (FRAME_PARM_SAVE): Likewise.
55280         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
55281         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
55282         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
55283         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
55284         (CHECK_SP): Use symbolic stack frame offsets.
55285         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
55286         zone" instead of caller's parameter save area for temp storage.
55287         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
55288         Likewise.  Also, use symbolic stack frame offsets.
55289         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
55290         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
55291         our own stack frame instead of the caller's.
55292         (__socket): Use symbolic stack frame offsets.
55293
55294 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
55295             Alan Modra  <amodra@gmail.com>
55296
55297         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
55298         Define.
55299         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
55300         (PPC64_LOCAL_ENTRY_OFFSET): Define.
55301         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
55302         New function.
55303         (elf_machine_fixup_plt): Call it.
55304         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
55305         reloc arguments.
55306         (elf_machine_rela): Update call to elf_machine_plt_conflict.
55307         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
55308         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
55309         r2 before calling target.
55310
55311 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
55312             Alan Modra  <amodra@gmail.com>
55313
55314         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
55315         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
55316         versions of macros to support ELFv2 ABI.
55317         (LOCALENTRY): New macro.
55318         (ENTRY, EALIGN): Use it.
55319         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
55320         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
55321         fall through into ENTRY entry point.
55322         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
55323         Only define if _CALL_ELF != 2.
55324
55325         (elf_machine_matches_host): Verify ABI version matches.
55326         (RTLD_START): Use LOCALENTRY.
55327         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
55328         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
55329         (PLT_ENTRY_WORDS): New macro.
55330         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
55331         (elf_machine_runtime_setup): Support ELFv2 ABI.
55332         (elf_machine_fixup_plt): Likewise.
55333         (elf_machine_plt_conflict): Likewise.
55334         (resolve_ifunc): Likewise.
55335         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
55336         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
55337         Likewise.
55338         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
55339         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
55340         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
55341         (makecontext): Support ELFv2 ABI.
55342         * elf/elf.h (EF_PPC64_ABI): Define.
55343
55344 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
55345
55346         * sysdeps/powerpc/powerpc64/sysdep.h
55347         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
55348         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
55349         (ENTRY) [ASSEMBLER]: ... but instead here ...
55350         (EALIGN) [ASSEMBLER]: ... and here.
55351         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
55352         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
55353         (ENTRY_2) [!ASSEMBLER]: Use it.
55354         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
55355         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
55356         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
55357         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
55358         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
55359         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
55360         Use PPC64_LOAD_FUNCPTR.
55361
55362         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
55363
55364 2013-12-04  Alan Modra  <amodra@gmail.com>
55365
55366         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
55367         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
55368         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
55369         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
55370
55371         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
55372         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
55373         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
55374         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
55375         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
55376         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
55377
55378 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
55379
55380         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
55381         (__makecontext): Fix incorrect CFI when backtracing out of
55382         context created via makecontext.
55383         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
55384         (__setcontext): Fix incorrect CFI during switch to new context.
55385         (__novec_setcontext): Likewise.
55386
55387 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
55388
55389         [BZ #4772]
55390         * time/strptime_l.c (__strptime_internal): Allow modifiers
55391         in strptime.
55392         * time/tst-strptime.c (day_tests): Add testcase.
55393
55394 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
55395
55396         * scripts/bench.pl: Skip over blank lines.
55397
55398 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
55399
55400         [BZ #926]
55401         * manual/time.texi (Calendar Time): Clarify what timezone functions
55402         use.
55403
55404 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55405
55406         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
55407
55408 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
55409
55410         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
55411         implementation.
55412         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
55413         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
55414         * debug/memset_chk.c (__memset_chk): Likewise.
55415         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
55416         * debug/strncpy_chk.c: Likewise.
55417
55418 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
55419
55420         [BZ #15268]
55421         [BZ #15425]
55422         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
55423         (__ieee754_exp): For possibly underflowing results, check size of
55424         result and force underflow exception if required.
55425         * math/auto-libm-test-in: Add more tests of exp.
55426         * math/auto-libm-test-out: Regenerated.
55427         * sysdeps/i386/fpu/libm-test-ulps: Update.
55428         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55429
55430         [BZ #16283]
55431         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
55432         * math/w_exp2f.c (__exp2f): Likewise.
55433         * math/w_exp2l.c (__exp2l): Likewise.
55434         * math/auto-libm-test-in: Do not allow missing errno on exp2
55435         underflow.
55436         * math/auto-libm-test-out: Regenerated.
55437
55438 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
55439
55440         [BZ #16274]
55441         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
55442         handle filename validation.
55443         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
55444         (do_open): Delete.
55445
55446 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
55447
55448         [BZ #6786]
55449         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
55450         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
55451         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
55452         <float.h>.
55453         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
55454         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
55455         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
55456         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
55457         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
55458         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
55459         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
55460         * math/auto-libm-test-in: Don't allow missing errno from erfc.
55461         Add more erfc tests.
55462         * math/auto-libm-test-out: Regenerated.
55463         * sysdeps/i386/fpu/libm-test-ulps: Update.
55464         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55465
55466         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
55467         exp2, expm1, j0 and j1.
55468         * math/auto-libm-test-out: Regenerated.
55469         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
55470         (erfc_test_data): Likewise.
55471         (exp_test_data): Likewise.
55472         (exp_tonearest_test_data): Likewise.
55473         (exp_towardzero_test_data): Likewise.
55474         (exp_downward_test_data): Likewise.
55475         (exp_upward_test_data): Likewise.
55476         (exp10_test_data): Likewise.
55477         (exp2_test_data): Likewise.
55478         (expm1_test_data): Likewise.
55479         (j0_test_data): Likewise.
55480         (j1_test_data): Likewise.
55481         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
55482         (input_flag_type): Add flag_xfail_rounding.
55483         (input_flags): Add xfail-rounding.
55484         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
55485         (output_for_one_input_case): Handle flag_xfail_rounding.
55486         * sysdeps/i386/fpu/libm-test-ulps: Update.
55487         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55488
55489 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
55490
55491         [BZ #16289]
55492         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
55493         division by 0.
55494
55495 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
55496
55497         [BZ #16195]
55498         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
55499         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
55500         (STAP_PROBE0): New macro.
55501         (STAP_PROBE1): Likewise.
55502         (STAP_PROBE2): Likewise.
55503         (STAP_PROBE3): Likewise.
55504         (STAP_PROBE4): Likewise.
55505
55506 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
55507
55508         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
55509
55510 2013-12-02  Steve Ellcey  <sellcey@mips.com>
55511
55512         * benchtests/Makefile (bench): Add sqrt.
55513         (LDLIBS-bench-sqrt): New.
55514         * benchtests/sqrt-input: New.
55515
55516 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
55517
55518         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
55519         (GAIH_EAI): Likewise.
55520         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
55521         (gaih_inet): Likewise.
55522         (getaddrinfo): Don't use GAIH_EAI.
55523
55524         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
55525         (struct gaih): Remove definition.
55526
55527 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
55528
55529         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
55530         Use HERRNOP directly.
55531
55532 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55533
55534         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
55535
55536 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
55537
55538         * math/gen-auto-libm-tests.c (test_functions): Add more
55539         single-argument functions.
55540         (special_fill_pi_2): New function.
55541         (special_fill_minus_pi_2): Likewise.
55542         (special_fill_pi_6): Likewise.
55543         (special_fill_minus_pi_6): Likewise.
55544         (special_fill_pi_3): Likewise.
55545         (special_fill_2pi_3): Likewise.
55546         (special_fill_e): Likewise.
55547         (special_fill_1_e): Likewise.
55548         (special_fill_e_minus_1): Likewise.
55549         (special_real_inputs): Add more special inputs.
55550         (output_for_one_input_case): Do not require ERANGE on underflow to
55551         zero if round-to-nearest result does not underflow to zero, unless
55552         exact results required.
55553         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
55554         atan, atanh, cbrt, cos and cosh.
55555         * math/auto-libm-test-out: Regenerated.
55556         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
55557         (acos_tonearest_test_data): Likewise.
55558         (acos_towardzero_test_data): Likewise.
55559         (acos_downward_test_data): Likewise.
55560         (acos_upward_test_data): Likewise.
55561         (acosh_test_data): Likewise.
55562         (asin_test_data): Likewise.
55563         (asin_tonearest_test_data): Likewise.
55564         (asin_towardzero_test_data): Likewise.
55565         (asin_upward_test_data): Likewise.
55566         (asinh_test_data): Likewise.
55567         (atan_test_data): Likewise.
55568         (atanh_test_data): Likewise.
55569         (cbrt_test_data): Likewise.
55570         (cos_test_data): Likewise.
55571         (cos_tonearest_test_data): Likewise.
55572         (cos_towardzero_test_data): Likewise.
55573         (cos_downward_test_data): Likewise.
55574         (cos_upward_test_data): Likewise.
55575         (cosh_test_data): Likewise.
55576         (cosh_tonearest_test_data): Likewise.
55577         (cosh_towardzero_test_data): Likewise.
55578         (cosh_downward_test_data): Likewise.
55579         (cosh_upward_test_data): Likewise.
55580         * sysdeps/i386/fpu/libm-test-ulps: Update.
55581         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55582
55583 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
55584
55585         [BZ #6787]
55586         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
55587         * math/w_exp10f.c (__exp10f): Likewise.
55588         * math/w_exp10l.c (__exp10l): Likewise.
55589         * math/libm-test.inc (exp10_test_data): Add more tests and expect
55590         errno settings in existing tests.
55591
55592         [BZ #14032]
55593         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
55594         precision control set to double precision.
55595         * sysdeps/i386/fpu/w_sqrt.c: New file.
55596         * math/auto-libm-test-in: Add more tests.
55597         * math/auto-libm-test-out: Update.
55598
55599         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
55600         (sqrt_test_tonearest): New function.
55601         (sqrt_towardzero_test_data): New variable.
55602         (sqrt_test_towardzero): New function.
55603         (sqrt_downward_test_data): New variable.
55604         (sqrt_test_downward): New function.
55605         (sqrt_upward_test_data): New variable.
55606         (sqrt_test_upward): New function.
55607         (main): Call the new functions.
55608
55609         * math/gen-auto-libm-tests.c: New file.
55610         * math/auto-libm-test-in: Likewise.
55611         * math/auto-libm-test-out: New generated file.
55612         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
55613         variables.
55614         (%beautify): Add generated representations of zero.
55615         (top level): Set $auto_input and call parse_auto_input.
55616         (beautify): Remove trailing "f" from hex float constants.
55617         (parse_args): Handle XFAIL_TEST.
55618         (convert_condition): New function.
55619         (or_value): Likewise.
55620         (or_cond_value): Likewise.
55621         (generate_testfile): Handle AUTO_TESTS_* lines.
55622         (parse_auto_input): New function.
55623         * math/libm-test.inc (XFAIL_TEST): New macro.
55624         (ERRNO_UNCHANGED): Update value.
55625         (ERRNO_EDOM): Likewise.
55626         (ERRNO_ERANGE): Likewise.
55627         (IGNORE_RESULT): Likewise.
55628         (TEST_COND_flt_32): New macro.
55629         (TEST_COND_dbl_64): Likewise.
55630         (TEST_COND_ldbl_96_intel): Likewise.
55631         (TEST_COND_ldbl_96_m68k): Likewise.
55632         (TEST_COND_ldbl_128): Likewise.
55633         (TEST_COND_ldbl_128ibm): Likewise.
55634         (TEST_COND_long32): Likewise.
55635         (TEST_COND_long64): Likewise.
55636         (TEST_COND_before_rounding): Likewise.
55637         (TEST_COND_after_rounding): Likewise.
55638         (enable_test): Handle XFAIL_TEST flag.
55639         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
55640         with finite results.
55641         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
55642         auto-libm-test-out.
55643
55644 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
55645             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
55646
55647         [BZ #16214]
55648         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
55649         __tls_get_addr_internal instead of __tls_get_offset in order to
55650         avoid GOT pointer dependency.  Make rtld export
55651         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
55652         __tls_get_addr since we are a __tls_get_offset platform.
55653         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
55654         GOT pointer being set up before.
55655         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
55656
55657 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
55658
55659         * manual/math.texi (Errors in Math Functions): Document accuracy
55660         goals.
55661
55662         [BZ #15004]
55663         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
55664         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
55665         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
55666         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
55667         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
55668         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
55669         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
55670         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
55671         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
55672         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
55673         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
55674         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
55675         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
55676         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
55677         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
55678         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
55679
55680         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
55681         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
55682         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
55683         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
55684         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
55685         Likewise.
55686         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
55687         Likewise.
55688         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
55689         Likewise.
55690         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
55691         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
55692         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
55693         atomic-feupdateenv and flt-rounds.
55694         * sysdeps/powerpc/nofpu/Versions (libc): Add
55695         __atomic_feholdexcept, __atomic_feclearexcept,
55696         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
55697         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
55698         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
55699         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
55700         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
55701         here.
55702         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
55703         Update.
55704
55705         * manual/arith.texi (FP Exceptions): Document that exceptions may
55706         not be raised when matherr is used.
55707         (Math Error Reporting): Document overflow in directed rounding
55708         modes.  Document that errno may not be set when finite values are
55709         returned on overflow.  Document intent to set errno on underflow
55710         only for underflow to zero.
55711
55712         [BZ #16271]
55713         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
55714         round-to-nearest then adjust result for other rounding modes.
55715         * include/fenv.h (fegetround): Use libm_hidden_proto.
55716         * math/fegetround.c (fegetround): Use libm_hidden_def.
55717         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
55718         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
55719         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
55720         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
55721         Likewise.
55722         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
55723         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
55724         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
55725         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
55726
55727 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
55728
55729         [BZ #16077]
55730         * nss/Versions (libnss_files): Add
55731         _nss_files_gethostbyname3_r.
55732         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
55733         New function.
55734         (HOST_DB_LOOKUP): Remove macro.
55735         (_nss_files_gethostbyname_r): Implement function without the
55736         HOST_DB_LOOKUP macro.
55737         (_nss_files_gethostbyname2_r): Likewise.
55738
55739 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
55740
55741         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
55742
55743 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
55744
55745         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
55746         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
55747         warning.
55748
55749 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55750
55751         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
55752         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
55753         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
55754         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
55755         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
55756         __fe_nomask_env_priv and attribute_hidden.
55757         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
55758         (libc_feupdateenv_test_ppc): Likewise.
55759         (libc_feresetround_ppc): Likewise.
55760         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
55761         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
55762         compat_symbol macro.
55763         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
55764         (__fe_nomask_env): Likewise.
55765         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
55766
55767 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
55768
55769         * string/Makefile: Remove ifunc tests.
55770         * string/test-string.h: Define TEST_IFUNC.
55771         * string/test-bcopy-ifunc.c: Remove.
55772         * string/test-bzero-ifunc.c: Likewise.
55773         * string/test-memccpy-ifunc.c: Likewise.
55774         * string/test-memchr-ifunc.c: Likewise.
55775         * string/test-memcmp-ifunc.c: Likewise.
55776         * string/test-memcpy-ifunc.c: Likewise.
55777         * string/test-memmem-ifunc.c: Likewise.
55778         * string/test-memmove-ifunc.c: Likewise.
55779         * string/test-mempcpy-ifunc.c: Likewise.
55780         * string/test-memrchr-ifunc.c: Likewise.
55781         * string/test-memset-ifunc.c: Likewise.
55782         * string/test-rawmemchr-ifunc.c: Likewise.
55783         * string/test-stpcpy-ifunc.c: Likewise.
55784         * string/test-stpncpy-ifunc.c: Likewise.
55785         * string/test-strcasecmp-ifunc.c: Likewise.
55786         * string/test-strcasestr-ifunc.c: Likewise.
55787         * string/test-strcat-ifunc.c: Likewise.
55788         * string/test-strchr-ifunc.c: Likewise.
55789         * string/test-strchrnul-ifunc.c: Likewise.
55790         * string/test-strcmp-ifunc.c: Likewise.
55791         * string/test-strcpy-ifunc.c: Likewise.
55792         * string/test-strcspn-ifunc.c: Likewise.
55793         * string/test-strlen-ifunc.c: Likewise.
55794         * string/test-strncasecmp-ifunc.c: Likewise.
55795         * string/test-strncat-ifunc.c: Likewise.
55796         * string/test-strncmp-ifunc.c: Likewise.
55797         * string/test-strncpy-ifunc.c: Likewise.
55798         * string/test-strnlen-ifunc.c: Likewise.
55799         * string/test-strpbrk-ifunc.c: Likewise.
55800         * string/test-strrchr-ifunc.c: Likewise.
55801         * string/test-strspn-ifunc.c: Likewise.
55802         * string/test-strstr-ifunc.c: Likewise.
55803
55804 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
55805
55806         * benchtests/Makefile: Remove ifunc tests.
55807         * benchtests/bench-string.h: Define TEST_IFUNC.
55808         * benchtests/bench-bcopy-ifunc.c: Remove.
55809         * benchtests/bench-bzero-ifunc.c: Likewise.
55810         * benchtests/bench-memccpy-ifunc.c: Likewise.
55811         * benchtests/bench-memchr-ifunc.c: Likewise.
55812         * benchtests/bench-memcmp-ifunc.c: Likewise.
55813         * benchtests/bench-memcpy-ifunc.c: Likewise.
55814         * benchtests/bench-memmem-ifunc.c: Likewise.
55815         * benchtests/bench-memmove-ifunc.c: Likewise.
55816         * benchtests/bench-mempcpy-ifunc.c: Likewise.
55817         * benchtests/bench-memrchr-ifunc.c: Likewise.
55818         * benchtests/bench-memset-ifunc.c: Likewise.
55819         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
55820         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
55821         * benchtests/bench-stpcpy-ifunc.c: Likewise.
55822         * benchtests/bench-stpncpy-ifunc.c: Likewise.
55823         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
55824         * benchtests/bench-strcasestr-ifunc.c: Likewise.
55825         * benchtests/bench-strcat-ifunc.c: Likewise.
55826         * benchtests/bench-strchr-ifunc.c: Likewise.
55827         * benchtests/bench-strchrnul-ifunc.c: Likewise.
55828         * benchtests/bench-strcmp-ifunc.c: Likewise.
55829         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
55830         * benchtests/bench-strcpy-ifunc.c: Likewise.
55831         * benchtests/bench-strcspn-ifunc.c: Likewise.
55832         * benchtests/bench-strlen-ifunc.c: Likewise.
55833         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
55834         * benchtests/bench-strncat-ifunc.c: Likewise.
55835         * benchtests/bench-strncmp-ifunc.c: Likewise.
55836         * benchtests/bench-strncpy-ifunc.c: Likewise.
55837         * benchtests/bench-strnlen-ifunc.c: Likewise.
55838         * benchtests/bench-strpbrk-ifunc.c: Likewise.
55839         * benchtests/bench-strrchr-ifunc.c: Likewise.
55840         * benchtests/bench-strsep-ifunc.c: Likewise.
55841         * benchtests/bench-strspn-ifunc.c: Likewise.
55842         * benchtests/bench-strstr-ifunc.c: Likewise.
55843
55844 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
55845
55846         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
55847
55848 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
55849
55850         * resolv/netdb.h: Use __glibc_reserved instead __unused.
55851         * rt/aio.h: Likewise.
55852         * sysdeps/gnu/bits/utmp.h: Likewise.
55853         * sysdeps/gnu/bits/utmpx.h: Likewise.
55854         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
55855         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
55856         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
55857         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
55858         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
55859         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
55860         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
55861         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
55862         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
55863         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
55864         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
55865         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
55866         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
55867         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
55868         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
55869         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
55870         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
55871         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
55872         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
55873         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
55874         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
55875         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
55876         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
55877         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
55878         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
55879         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
55880         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
55881         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
55882         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
55883         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
55884         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
55885         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
55886         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
55887         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
55888         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
55889         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
55890         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
55891         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
55892         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
55893         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
55894         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
55895         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
55896
55897 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
55898
55899         [BZ #16245]
55900         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
55901         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
55902
55903 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
55904
55905         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
55906         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
55907         Likewise.
55908
55909 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55910
55911         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
55912         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
55913         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
55914         (__fesetround): Remove define.
55915         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
55916         rounding and exceptions handling.
55917         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
55918         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
55919         (__fe_nomask_env): Likewise.
55920         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
55921         __fegetround instead of fegetround.
55922         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
55923         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
55924
55925 2013-11-21  Roland McGrath  <roland@hack.frob.com>
55926
55927         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
55928         it's there.
55929
55930         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
55931
55932 2013-11-21  Meador Inge  <meadori@codesourcery.com>
55933
55934         [BZ #11157]
55935         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
55936         (encrypt_r): Likewise.
55937         * malloc/obstack.h (obstack_free): Likewise.
55938         * posix/unistd.h (encrypt): Likewise.
55939
55940 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
55941
55942         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
55943         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
55944         DL_CALL_DT_FINI() that call the functions directly.
55945         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
55946         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
55947         * elf/dl-fini.c: Likewise.
55948
55949 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
55950
55951         * malloc/hooks.c (memalign_check): Add alignment rounding.
55952         * malloc/malloc.c (_mid_memalign): New function.
55953         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
55954         Implement by calling _mid_memalign.
55955         * manual/probes.texi (Memory Allocation Probes): Remove
55956         memory_valloc_retry and memory_pvalloc_retry.
55957
55958 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
55959
55960         * locale/programs/locarchive.c (open_archive): Add const
55961         qualifier to ARCHIVEFNAME and copy default fname to
55962         DEFAULT_FNAME.
55963
55964         [BZ #15601]
55965         * libio/tst-widetext.input: Rename Oriya to Odia.
55966         * locale/iso-639.def: Likewise.
55967
55968         * manual/probes.texi (Mathematical Function Probes): Add
55969         documentation for sin, cos, asin and acos probes.
55970         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
55971         (__sin32): Add slowasin probe.
55972         (__cos32): Add slowacos probe.
55973         (__mpsin): Add slowsin probe.
55974         (__mpcos): Add slowcos probe.
55975
55976 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
55977
55978         [BZ #15483]
55979         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
55980         thread-local __sim_exceptions_thread and global
55981         __sim_exceptions_global.
55982         (__sim_disabled_exceptions): Change to thread-local
55983         __sim_disabled_exceptions_thread and global
55984         __sim_disabled_exceptions_global.
55985         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
55986         and global __sim_round_mode_global.
55987         (__simulate_exceptions): Use thread-local floating-point state and
55988         set global state from it as needed.
55989         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
55990         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
55991         __sim_round_mode_thread.
55992         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
55993         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
55994         and global __sim_exceptions_global.
55995         (__sim_disabled_exceptions): Change to thread-local
55996         __sim_disabled_exceptions_thread and global
55997         __sim_disabled_exceptions_global.
55998         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
55999         and global __sim_round_mode_global.
56000         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
56001         (SIM_SET_GLOBAL): Likewise.
56002         * sysdeps/powerpc/soft-fp/sfp-machine.h
56003         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
56004         __sim_round_mode_thread.
56005         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
56006         __sim_disabled_exceptions_thread.
56007         (__sim_exceptions): Change to __sim_exceptions_thread.
56008         (__sim_disabled_exceptions): Change to
56009         __sim_disabled_exceptions_thread.
56010         (__sim_round_mode): Change to __sim_round_mode_thread.
56011         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
56012         thread-local floating-point state and set global state from it as
56013         needed.
56014         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
56015         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
56016         (__sim_disabled_exceptions): Remove extern declaration.
56017         (feenableexcept): Use thread-local floating-point state and set
56018         global state from it as needed.
56019         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
56020         extern declaration.
56021         (__sim_disabled_exceptions): Likewise.
56022         (__sim_round_mode): Likewise.
56023         (__fegetenv): Use thread-local floating-point state.
56024         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
56025         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
56026         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
56027         floating-point state and set global state from it as needed.
56028         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
56029         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
56030         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
56031         Likewise.
56032         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
56033         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
56034         Likewise.
56035         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
56036         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
56037         Use __sim_round_mode_thread.
56038         * math/test-fenv-tls.c: New file.
56039         * math/Makefile (tests): Add test-fenv-tls.
56040         ($(objpfx)test-fenv-tls): Depend on
56041         $(common-objpfx)nptl/libpthread.so.
56042
56043 2013-11-19  Andreas Schwab  <schwab@suse.de>
56044
56045         * locale/programs/locale.c (show_info): Decode wordarray elements.
56046         * locale/categories.def (LC_MONETARY): Add element for
56047         _NL_MONETARY_CRNCYSTR.
56048         * locale/C-monetary.c (conversion_rate): New variable.
56049         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
56050         element.
56051
56052 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
56053
56054         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
56055         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
56056
56057 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
56058
56059         * elf/Makefile (tst-auxv): New test.
56060         * elf/tst-auxv.c: New
56061         * elf/rtld.c (dl_main): Adjust AT_EXECFN
56062
56063 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
56064
56065         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
56066         (hidden_proto): Caller changed.
56067         (hidden_tls_proto): New macro.
56068         (libc_hidden_tls_proto): Likewise.
56069         (rtld_hidden_tls_proto): Likewise.
56070         (libm_hidden_tls_proto): Likewise.
56071         (libresolv_hidden_tls_proto): Likewise.
56072         (librt_hidden_tls_proto): Likewise.
56073         (libdl_hidden_tls_proto): Likewise.
56074         (libnss_files_hidden_tls_proto): Likewise.
56075         (libnsl_hidden_tls_proto): Likewise.
56076         (libnss_nisplus_hidden_tls_proto): Likewise.
56077         (libutil_hidden_tls_proto): Likewise.
56078
56079 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
56080
56081         [BZ #10253]
56082         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
56083         (decompose_rpath): Defer expansion to fillin_rpath.
56084         (_dl_init_paths): Pass linkmap to fillin_rpath.
56085
56086 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
56087
56088         * benchtests/Makefile: Add strsep.
56089         * benchtests/bench-strsep.c: New file: strsep benchtest.
56090         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
56091
56092 2013-11-18  Andreas Schwab  <schwab@suse.de>
56093
56094         * locale/programs/locale.c (show_info) [case byte]: Check for
56095         '\377' instead of '\177'.
56096         * locale/C-monetary.c (not_available): Always use "\377".
56097         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
56098         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
56099         detect unavailable sign_posn locale elements.
56100         * locale/localeconv.c (__localeconv): For grouping and
56101         mon_grouping handle "\177" and "\377" like no grouping.
56102         (INT_ELEM): New macro.  Use it to set all numeric members.
56103         * locale/programs/ld-monetary.c (monetary_read)
56104         <tok_mon_grouping>: Normalize single -1 to the empty string.
56105         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
56106         Likewise.
56107
56108 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
56109
56110         [BZ #16055]
56111         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
56112         when we match (nil).
56113         * stdio-common/tst-sscanf.c (struct test): Add testcase.
56114
56115 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
56116
56117         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
56118         (NO_TEST_INLINE): Update value.
56119         (ERRNO_UNCHANGED): Likewise.
56120         (ERRNO_EDOM): Likewise.
56121         (ERRNO_ERANGE): Likewise.
56122         (IGNORE_RESULT): Likewise.
56123         (check_float_internal): Check signs of NaN results if
56124         TEST_NAN_SIGN used.
56125         (check_complex): Pass TEST_NAN_SIGN flag through to second
56126         check_float_internal call.
56127         (copysign_test_data): Add tests with quiet NaNs as second
56128         argument.  Use TEST_NAN_SIGN.
56129         (fabs_test_data): Add test of negative quiet NaN argument.  Use
56130         TEST_NAN_SIGN.
56131         (signbit_test_data): Add tests of quiet NaN argument.
56132         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
56133
56134         * math/gen-libm-test.pl (show_exceptions): Take extra argument
56135         $ignore_result.
56136         (parse_args): Handle function results specified as IGNORE.
56137         * math/libm-test.inc (IGNORE_RESULT): New macro.
56138         (check_float_internal): Do not check numerical result if flag
56139         IGNORE_RESULT set.
56140         (check_complex): Pass through IGNORE_RESULT to second
56141         check_float_internal call.
56142         (check_int): Do not check numerical result if flag IGNORE_RESULT
56143         set.
56144         (check_long): Likewise.
56145         (check_bool): Likewise.
56146         (check_longlong): Likewise.
56147         (lrint_test_data): Add tests of infinite and NaN arguments.
56148         (lrint_tonearest_test_data): Likewise.
56149         (lrint_towardzero_test_data): Likewise.
56150         (lrint_downward_test_data): Likewise.
56151         (lrint_upward_test_data): Likewise.
56152         (llrint_test_data): Likewise.
56153         (llrint_tonearest_test_data): Likewise.
56154         (llrint_towardzero_test_data): Likewise.
56155         (llrint_downward_test_data): Likewise.
56156         (llrint_upward_test_data): Likewise.
56157         (lround_test_data): Likewise.
56158         (llround_test_data): Likewise.
56159
56160         * math/libm-test.inc (NO_TEST_INLINE): New macro.
56161         (ERRNO_UNCHANGED): Update value.
56162         (ERRNO_EDOM): Likewise.
56163         (ERRNO_ERANGE): Likewise.
56164         (NO_TEST_INLINE_FLOAT): New macro.
56165         (NO_TEST_INLINE_DOUBLE): Likewise.
56166         (enable_test): New function.
56167         (RUN_TEST_f_f): Check enable_test before running test.
56168         (RUN_TEST_2_f): Likewise.
56169         (RUN_TEST_fff_f): Likewise.
56170         (RUN_TEST_c_f): Likewise.
56171         (RUN_TEST_f_f1): Likewise.
56172         (RUN_TEST_fF_f1): Likewise.
56173         (RUN_TEST_fI_f1): Likewise.
56174         (RUN_TEST_ffI_f1): Likewise.
56175         (RUN_TEST_c_c): Likewise.
56176         (RUN_TEST_cc_c): Likewise.
56177         (RUN_TEST_f_i): Likewise.
56178         (RUN_TEST_f_i_tg): Likewise.
56179         (RUN_TEST_ff_i_tg): Likewise.
56180         (RUN_TEST_f_b): Likewise.
56181         (RUN_TEST_f_b_tg): Likewise.
56182         (RUN_TEST_f_l): Likewise.
56183         (RUN_TEST_f_L): Likewise.
56184         (RUN_TEST_fFF_11): Likewise.
56185         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
56186         conditionals.
56187         (cosh_test_data): Likewise.
56188         (exp_test_data): Likewise.
56189         (expm1_test_data): Likewise.
56190         (hypot_test_data): Likewise.
56191         (pow_test_data): Likewise.
56192         (sinh_test_data): Likewise.
56193         (tanh_test_data): Likewise.
56194         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
56195         flags argument.
56196
56197         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
56198         tests with quiet NaN input and output.
56199         (acosh_test_data): Likewise.
56200         (asin_test_data): Likewise.
56201         (asinh_test_data): Likewise.
56202         (atan_test_data): Likewise.
56203         (atanh_test_data): Likewise.
56204         (atan2_test_data): Likewise.
56205         (cbrt_test_data): Likewise.
56206         (cos_test_data): Likewise.
56207         (cosh_test_data): Likewise.
56208         (erf_test_data): Likewise.
56209         (erfc_test_data): Likewise.
56210         (exp_test_data): Likewise.
56211         (exp10_test_data): Likewise.
56212         (exp2_test_data): Likewise.
56213         (expm1_test_data): Likewise.
56214         (hypot_test_data): Likewise.
56215         (j0_test_data): Likewise.
56216         (j1_test_data): Likewise.
56217         (jn_test_data): Likewise.
56218         (lgamma_test_data): Likewise.
56219         (log_test_data): Likewise.
56220         (log10_test_data): Likewise.
56221         (log1p_test_data): Likewise.
56222         (log2_test_data): Likewise.
56223         (pow_test_data): Likewise.
56224         (scalb_test_data): Likewise.
56225         (sin_test_data): Likewise.
56226         (sincos_test_data): Likewise.
56227         (sinh_test_data): Likewise.
56228         (tan_test_data): Likewise.
56229         (tanh_test_data): Likewise.
56230         (tgamma_test_data): Likewise.
56231         (y0_test_data): Likewise.
56232         (y1_test_data): Likewise.
56233         (yn_test_data): Likewise.
56234
56235         [BZ #16167]
56236         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
56237         argument being NaN and avoid computations with second argument in
56238         that case.
56239         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
56240         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
56241         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
56242
56243 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
56244
56245         * locale/iso-639.def: Add Chitwani Tharu (the).
56246
56247 2013-11-14  Andreas Schwab  <schwab@suse.de>
56248
56249         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
56250         word instead of empty string.
56251
56252 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56253
56254         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
56255         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
56256         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
56257         (__fe_nomask_env): Likewise.
56258
56259 2013-11-13  Steve Ellcey  <sellcey@mips.com>
56260
56261         * benchtests/bench-timing.h: Include time.h.
56262
56263 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
56264
56265         [BZ #15997]
56266         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
56267         to 3.4.0 for x32.
56268         * sysdeps/unix/sysv/linux/configure: Regenerated.
56269
56270 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
56271
56272         [BZ #16151]
56273         * stdlib/strtod_l.c (round_and_return): Do not consider
56274         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
56275         exponent one less than half the least subnormal exponent.
56276         * stdlib/test-strtod-round-data: Add more tests.
56277         * stdlib/tst-strtod-round.c (tests): Regenerated.
56278
56279 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56280
56281         [BZ #14143]
56282         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
56283         (__fe_mask_env): Likewise.
56284         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
56285         libm_hidden_proto and add function prototype.
56286         (__fe_mask_env): Add function prototype.
56287         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
56288         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
56289         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
56290         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
56291         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
56292         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
56293
56294 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
56295
56296         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
56297         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
56298
56299 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
56300
56301         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
56302         of htab_find_slot().
56303
56304 2013-11-11  David S. Miller  <davem@davemloft.net>
56305
56306         [BZ #16150]
56307         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
56308         symbol in the non-vis3 case in static builds.
56309         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
56310         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
56311         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
56312         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
56313
56314 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
56315
56316         [BZ #387]
56317         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
56318         it is empty.
56319
56320 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56321
56322         * benchtests/Makefile: Add bench-strtod.
56323         * benchtests/bench-strtod.c: New file: strtod benchtest
56324
56325 2013-11-11  Andreas Schwab  <schwab@suse.de>
56326
56327         [BZ #16153]
56328         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
56329         terminating NUL in key length.
56330
56331 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56332
56333         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
56334         Add artificial ODP entry for vDSO symbol for PPC64.
56335         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
56336         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
56337
56338 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
56339
56340         [BZ #15374]
56341         * nss/getent.c (services_keys): Recognize services starting with digit.
56342
56343 2013-11-06  David S. Miller  <davem@davemloft.net>
56344
56345         [BZ #15985]
56346         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
56347         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
56348
56349 2013-11-06  Will Newton  <will.newton@linaro.org>
56350
56351         * manual/memory.texi (Malloc Examples): Remove register
56352         keyword from examples.
56353
56354 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
56355
56356         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
56357
56358 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
56359
56360         [BZ #6981]
56361         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
56362         depending on [__GCC_IEC_559 > 0].
56363         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
56364         depending on [__GCC_IEC_559_COMPLEX > 0].
56365
56366 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
56367
56368         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
56369         to iso-639.def.
56370
56371 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
56372
56373         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
56374
56375 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
56376
56377         [BZ #16112]
56378         * malloc/malloc (malloc_info): Do not handle first bin as
56379         special case.
56380
56381 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
56382
56383         * locale/iso-639.def: Add Central Nahuatl (nhn).
56384
56385 2013-11-01  Bruno Haible  <bruno@clisp.org>
56386
56387         [BZ #7003]
56388         * manual/math.texi (BSD Random): Specify range upper bound as
56389         in POSIX.
56390
56391 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
56392
56393         * locale/iso-639.def: Add Meadow Mari (mhr).
56394
56395 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
56396
56397         [BZ #14752], [BZ #15763]
56398         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
56399         Validate name.
56400         * rt/tst_shm.c: Add test for escaping directory.
56401
56402 2013-10-31  Andreas Schwab  <schwab@suse.de>
56403
56404         [BZ #15917]
56405         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
56406         followed by 'x' as part of digit sequence.
56407         * stdio-common/tst-sscanf.c (double_tests2): New tests.
56408
56409 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
56410
56411         [BZ #16037]
56412         * configure.ac: allow GNU Make 4.0 and greater.
56413         * configure: Regenerated.
56414
56415 2013-10-30  Will Newton  <will.newton@linaro.org>
56416
56417         [BZ #16038]
56418         * malloc/hooks.c (memalign_check): Limit alignment to the
56419         maximum representable power of two.
56420         * malloc/malloc.c (__libc_memalign): Likewise.
56421         * malloc/tst-memalign.c (do_test): Add test for very
56422         large alignment values.
56423         * malloc/tst-posix_memalign.c (do_test): Likewise.
56424
56425 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
56426
56427         [BZ #11087]
56428         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
56429         (munmap_chunk): Likewise.
56430         (mremap_chunk): Likewise.
56431
56432 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
56433
56434         [BZ #15799]
56435         * stdlib/div.c (div): Remove obsolete code.
56436         * stdlib/ldiv.c (ldiv): Likewise.
56437         * stdlib/lldiv.c (lldiv): Likewise.
56438
56439 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
56440
56441         [BZ #16071]
56442         * nss/nss_files/files-XXX.c (get_contents_ret): New
56443         enumerator.
56444         (get_contents): New function.
56445         (internal_getent): Use it.  Expand size of LINEBUFLEN.
56446
56447 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
56448
56449         * configure.in: Moved to ...
56450         * configure.ac: ... here. Change reference to configure.in
56451         to configure.ac.
56452         * sysdeps/arm/preconfigure.ac: ... here.
56453         configure.in to configure.ac.
56454         * sysdeps/gnu/configure.in: Moved to ...
56455         * sysdeps/gnu/configure.ac: ... here.
56456         * sysdeps/i386/configure.in: Moved to ...
56457         * sysdeps/i386/configure.ac: ... here.
56458         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
56459         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
56460         * sysdeps/mach/configure.in: Moved to ...
56461         * sysdeps/mach/configure.ac: ... here.
56462         * sysdeps/mach/hurd/configure.in: Moved to ...
56463         * sysdeps/mach/hurd/configure.ac: ... here.
56464         * sysdeps/powerpc/configure.in: Moved to ...
56465         * sysdeps/powerpc/configure.ac: ... here.
56466         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
56467         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
56468         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
56469         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
56470         * sysdeps/s390/s390-32/configure.in: Moved to ...
56471         * sysdeps/s390/s390-32/configure.ac: ... here.
56472         * sysdeps/s390/s390-64/configure.in: Moved to ...
56473         * sysdeps/s390/s390-64/configure.ac: ... here.
56474         * sysdeps/sh/configure.in: Moved to ...
56475         * sysdeps/sh/configure.ac: ... here.
56476         * sysdeps/sparc/configure.in: Moved to ...
56477         * sysdeps/sparc/configure.ac: ... here.
56478         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
56479         * sysdeps/unix/sysv/linux/configure.ac: ... here.
56480         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
56481         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
56482         * sysdeps/x86_64/configure.in: Moved to ...
56483         * sysdeps/x86_64/configure.ac: ... here.
56484         * sysdeps/x86_64/preconfigure.in: Moved to ...
56485         * sysdeps/x86_64/preconfigure.ac: ... here.
56486         * aclocal.m4: Change reference to configure.in to configure.ac.
56487         * config.h.in: Likewise.
56488         * manual/install.texi: Likewise.
56489         * manual/maint.texi: Likewise.
56490         * Makefile: Likewise.
56491         * malloc/Makefile: Likewise.
56492         * nscd/Makefile: Likewise.
56493         * Makeconfig: Change reference to configure.in and
56494         preconfigure.in to configure.ac and preconfigure.ac
56495         respectively.
56496         * INSTALL: Regenerated.
56497         * configure: Likewise.
56498         * sysdeps/gnu/configure: Likewise.
56499         * sysdeps/i386/configure: Likewise.
56500         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
56501         * sysdeps/mach/configure: Likewise.
56502         * sysdeps/mach/hurd/configure: Likewise.
56503         * sysdeps/powerpc/configure: Likewise.
56504         * sysdeps/powerpc/powerpc32/configure: Likewise.
56505         * sysdeps/powerpc/powerpc64/configure: Likewise.
56506         * sysdeps/s390/s390-32/configure: Likewise.
56507         * sysdeps/s390/s390-64/configure: Likewise.
56508         * sysdeps/sh/configure: Likewise.
56509         * sysdeps/sparc/configure: Likewise.
56510         * sysdeps/unix/sysv/linux/configure: Likewise.
56511         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
56512         * sysdeps/x86_64/configure: Likewise.
56513         * sysdeps/x86_64/preconfigure: Likewise.
56514
56515 2013-10-29  Andreas Schwab  <schwab@suse.de>
56516
56517         * stdio-common/Makefile (tst-swscanf-ENV): Define.
56518
56519 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
56520
56521         * benchtests/pow-inputs: Add new inputs.
56522
56523         * benchtests/exp-inputs: Add new inputs.
56524
56525         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
56526         conditional check for return value.
56527         (__cos32): Likewise.
56528
56529 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56530
56531         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
56532         to provide a boost for large inputs with word alignment.
56533         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
56534         implementation based on optimized PPC64 strcpy.
56535         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
56536         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
56537         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
56538         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
56539
56540 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
56541
56542         [BZ #2801]
56543         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
56544
56545 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
56546
56547         [BZ #14876]
56548         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
56549         * time/tst-strptime.c (day_tests): Add testcase.
56550
56551 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
56552
56553         [BZ #14029]
56554         * manual/pattern.texi: Acknowledge that fnmatch can fail.
56555
56556 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
56557
56558         [BZ #16074]
56559         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
56560         MAP_FAILED on error.
56561
56562 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
56563
56564         [BZ #16072]
56565         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
56566         heap for large requests.
56567
56568 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
56569
56570         [BZ #9954]
56571         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
56572         result if the result has no associated interface.
56573         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
56574         interface for all 127.X.Y.Z addresses.
56575
56576 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
56577
56578         * locale/iso-639.def: Add Ligurian (lij)
56579
56580 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
56581
56582         [BZ #15825]
56583         * sunrpc/rpc_main.c: Document rpcgen -5.
56584
56585 2013-10-19  Michael Stahl  <mstahl@redhat.com>
56586
56587         * elf/rtld.c (do_preload): Print the reason why preloading failed.
56588
56589 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
56590
56591         [BZ #10278]
56592         * posix/glob.c: Match only directories when trailing slash is present.
56593         * posix/tst-gnuglob.c (my_opendir): Do not open files.
56594         (main): Add testcase.
56595
56596 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
56597
56598         [BZ #15670]
56599         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
56600
56601 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
56602
56603         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
56604         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
56605         AUTH_DES and cindex for FIPS 140-2.
56606         (DES Encryption): Add cindex FIPS 46-3.
56607
56608         * locale/locarchive.h (struct locarhandle): Add fname.
56609         * locale/programs/localedef.c (main): Pass ARGV[remaining]
56610         if an optional argument was specified to --list-archive,
56611         otherwise NULL.
56612         * locale/programs/locarchive.c (show_archive_content): Take new
56613         argument fname and pass it via ah.fname to open_archive.
56614         * locale/programs/localedef.h: Update decl.
56615         (open_archive): If AH->fname is non-null, open that file
56616         rather than the default file name, and don't ignore ENOENT.
56617         (create_archive): Set AH.fname to NULL.
56618         (delete_locales_from_archive): Likewise.
56619         (add_locales_to_archive): Likewise.
56620         * locale/programs/locfile.c (write_all_categories): Likewise.
56621
56622 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
56623             Aldy Hernandez  <aldyh@redhat.com>
56624
56625         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
56626         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
56627         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
56628         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
56629         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
56630         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
56631         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
56632         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
56633         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
56634         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
56635         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
56636         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
56637         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
56638         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
56639         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
56640         Likewise.
56641         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
56642         Likewise.
56643         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
56644         Likewise.
56645         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
56646         Likewise.
56647         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
56648         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
56649         Likewise.
56650         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
56651         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
56652         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
56653         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
56654         Likewise.
56655         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
56656         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
56657         * sysdeps/powerpc/preconfigure: Likewise.
56658         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
56659         Likewise.
56660         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
56661         Replace contents of file by #include of <fenv_libc.h>.
56662         * sysdeps/powerpc/soft-fp/sfp-machine.h
56663         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
56664         and <sys/prctl.h>.
56665         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
56666         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
56667         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
56668         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
56669         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
56670         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
56671         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
56672         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
56673         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
56674         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
56675         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
56676         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
56677         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
56678         Allow copysignl PLT reference to be missing.
56679
56680 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
56681             Joseph Myers  <joseph@codesourcery.com
56682
56683         [BZ #15948]
56684         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
56685         single character.
56686         (add_to_tablewc): Assert sequence of wide characters is nonempty.
56687
56688 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
56689
56690         * elf/tst-tls-dlinfo.c: Don't include tls.h.
56691         * elf/tst-tls1.c: Likewise.
56692         * elf/tst-tls10.h: Likewise.
56693         * elf/tst-tls14.c: Likewise.
56694         * elf/tst-tls2.c: Likewise.
56695         * elf/tst-tls3.c: Likewise.
56696         * elf/tst-tls4.c: Likewise.
56697         * elf/tst-tls5.c: Likewise.
56698         * elf/tst-tls6.c: Likewise.
56699         * elf/tst-tls7.c: Likewise.
56700         * elf/tst-tls8.c: Likewise.
56701         * elf/tst-tls9.c: Likewise.
56702         * elf/tst-tlsmod1.c: Likewise.
56703         * elf/tst-tlsmod13.c: Likewise.
56704         * elf/tst-tlsmod13a.c: Likewise.
56705         * elf/tst-tlsmod14a.c: Likewise.
56706         * elf/tst-tlsmod16a.c: Likewise.
56707         * elf/tst-tlsmod16b.c: Likewise.
56708         * elf/tst-tlsmod2.c: Likewise.
56709         * elf/tst-tlsmod3.c: Likewise.
56710         * elf/tst-tlsmod4.c: Likewise.
56711         * elf/tst-tlsmod5.c: Likewise.
56712         * elf/tst-tlsmod6.c: Likewise.
56713
56714 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
56715
56716         [BZ #12486]
56717         * malloc/malloc.c: remove checks for statistics.
56718
56719 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
56720
56721         [BZ #15277]
56722         * inet/inet_net.c (inet_network): Detect additional invalid strings.
56723         * inet/tst-network.c: Add testcase.
56724
56725 2013-10-17  Andreas Schwab  <schwab@suse.de>
56726
56727         [BZ #15218]
56728         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
56729         to determine canonical name.
56730
56731 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
56732
56733         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
56734         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
56735         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
56736         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
56737         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
56738         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
56739         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
56740         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
56741         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
56742         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
56743         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
56744         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
56745         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
56746         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
56747         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
56748         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
56749         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
56750         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
56751         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
56752         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
56753         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
56754         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
56755         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
56756         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
56757         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
56758         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
56759         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
56760         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
56761         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
56762         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
56763         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
56764         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
56765         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
56766         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
56767         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
56768         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
56769         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
56770         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
56771         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
56772         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
56773         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
56774         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
56775         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
56776         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
56777         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
56778         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
56779         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
56780         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
56781         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
56782         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
56783         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
56784         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
56785         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
56786         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
56787         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
56788         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
56789         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
56790         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
56791
56792 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
56793
56794         [BZ #16041]
56795         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
56796         make result into a quiet NaN.
56797
56798 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
56799
56800         * soft-fp/adddf3.c: Fix horizontal whitespace.
56801         * soft-fp/addsf3.c: Likewise.
56802         * soft-fp/addtf3.c: Likewise.
56803         * soft-fp/divdf3.c: Likewise.
56804         * soft-fp/divsf3.c: Likewise.
56805         * soft-fp/divtf3.c: Likewise.
56806         * soft-fp/double.h: Likewise.
56807         * soft-fp/eqdf2.c: Likewise.
56808         * soft-fp/eqsf2.c: Likewise.
56809         * soft-fp/eqtf2.c: Likewise.
56810         * soft-fp/extenddftf2.c: Likewise.
56811         * soft-fp/extended.h: Likewise.
56812         * soft-fp/extendsfdf2.c: Likewise.
56813         * soft-fp/extendsftf2.c: Likewise.
56814         * soft-fp/extendxftf2.c: Likewise.
56815         * soft-fp/fixdfdi.c: Likewise.
56816         * soft-fp/fixdfsi.c: Likewise.
56817         * soft-fp/fixdfti.c: Likewise.
56818         * soft-fp/fixsfdi.c: Likewise.
56819         * soft-fp/fixsfsi.c: Likewise.
56820         * soft-fp/fixsfti.c: Likewise.
56821         * soft-fp/fixtfdi.c: Likewise.
56822         * soft-fp/fixtfsi.c: Likewise.
56823         * soft-fp/fixtfti.c: Likewise.
56824         * soft-fp/fixunsdfdi.c: Likewise.
56825         * soft-fp/fixunsdfsi.c: Likewise.
56826         * soft-fp/fixunsdfti.c: Likewise.
56827         * soft-fp/fixunssfdi.c: Likewise.
56828         * soft-fp/fixunssfsi.c: Likewise.
56829         * soft-fp/fixunssfti.c: Likewise.
56830         * soft-fp/fixunstfdi.c: Likewise.
56831         * soft-fp/fixunstfsi.c: Likewise.
56832         * soft-fp/fixunstfti.c: Likewise.
56833         * soft-fp/floatdidf.c: Likewise.
56834         * soft-fp/floatdisf.c: Likewise.
56835         * soft-fp/floatditf.c: Likewise.
56836         * soft-fp/floatsidf.c: Likewise.
56837         * soft-fp/floatsisf.c: Likewise.
56838         * soft-fp/floatsitf.c: Likewise.
56839         * soft-fp/floattidf.c: Likewise.
56840         * soft-fp/floattisf.c: Likewise.
56841         * soft-fp/floattitf.c: Likewise.
56842         * soft-fp/floatundidf.c: Likewise.
56843         * soft-fp/floatundisf.c: Likewise.
56844         * soft-fp/floatunditf.c: Likewise.
56845         * soft-fp/floatunsidf.c: Likewise.
56846         * soft-fp/floatunsisf.c: Likewise.
56847         * soft-fp/floatunsitf.c: Likewise.
56848         * soft-fp/floatuntidf.c: Likewise.
56849         * soft-fp/floatuntisf.c: Likewise.
56850         * soft-fp/floatuntitf.c: Likewise.
56851         * soft-fp/fmadf4.c: Likewise.
56852         * soft-fp/fmasf4.c: Likewise.
56853         * soft-fp/fmatf4.c: Likewise.
56854         * soft-fp/gedf2.c: Likewise.
56855         * soft-fp/gesf2.c: Likewise.
56856         * soft-fp/getf2.c: Likewise.
56857         * soft-fp/ledf2.c: Likewise.
56858         * soft-fp/lesf2.c: Likewise.
56859         * soft-fp/letf2.c: Likewise.
56860         * soft-fp/muldf3.c: Likewise.
56861         * soft-fp/mulsf3.c: Likewise.
56862         * soft-fp/multf3.c: Likewise.
56863         * soft-fp/negdf2.c: Likewise.
56864         * soft-fp/negsf2.c: Likewise.
56865         * soft-fp/negtf2.c: Likewise.
56866         * soft-fp/op-1.h: Likewise.
56867         * soft-fp/op-2.h: Likewise.
56868         * soft-fp/op-4.h: Likewise.
56869         * soft-fp/op-8.h: Likewise.
56870         * soft-fp/op-common.h: Likewise.
56871         * soft-fp/quad.h: Likewise.
56872         * soft-fp/single.h: Likewise.
56873         * soft-fp/soft-fp.h: Likewise.
56874         * soft-fp/sqrtdf2.c: Likewise.
56875         * soft-fp/sqrtsf2.c: Likewise.
56876         * soft-fp/sqrttf2.c: Likewise.
56877         * soft-fp/subdf3.c: Likewise.
56878         * soft-fp/subsf3.c: Likewise.
56879         * soft-fp/subtf3.c: Likewise.
56880         * soft-fp/truncdfsf2.c: Likewise.
56881         * soft-fp/trunctfdf2.c: Likewise.
56882         * soft-fp/trunctfsf2.c: Likewise.
56883         * soft-fp/trunctfxf2.c: Likewise.
56884         * soft-fp/unorddf2.c: Likewise.
56885         * soft-fp/unordsf2.c: Likewise.
56886         * soft-fp/unordtf2.c: Likewise.
56887
56888 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
56889
56890         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
56891         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
56892
56893 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
56894
56895         * elf/dl-libc.c: Clear initfini list after freeing.
56896
56897 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
56898
56899         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
56900         * soft-fp/addsf3.c: Likewise.
56901         * soft-fp/addtf3.c: Likewise.
56902         * soft-fp/divdf3.c: Likewise.
56903         * soft-fp/divsf3.c: Likewise.
56904         * soft-fp/divtf3.c: Likewise.
56905         * soft-fp/double.h: Likewise.
56906         * soft-fp/eqdf2.c: Likewise.
56907         * soft-fp/eqsf2.c: Likewise.
56908         * soft-fp/eqtf2.c: Likewise.
56909         * soft-fp/extenddftf2.c: Likewise.
56910         * soft-fp/extended.h: Likewise.
56911         * soft-fp/extendsfdf2.c: Likewise.
56912         * soft-fp/extendsftf2.c: Likewise.
56913         * soft-fp/extendxftf2.c: Likewise.
56914         * soft-fp/fixdfdi.c: Likewise.
56915         * soft-fp/fixdfsi.c: Likewise.
56916         * soft-fp/fixdfti.c: Likewise.
56917         * soft-fp/fixsfdi.c: Likewise.
56918         * soft-fp/fixsfsi.c: Likewise.
56919         * soft-fp/fixsfti.c: Likewise.
56920         * soft-fp/fixtfdi.c: Likewise.
56921         * soft-fp/fixtfsi.c: Likewise.
56922         * soft-fp/fixtfti.c: Likewise.
56923         * soft-fp/fixunsdfdi.c: Likewise.
56924         * soft-fp/fixunsdfsi.c: Likewise.
56925         * soft-fp/fixunsdfti.c: Likewise.
56926         * soft-fp/fixunssfdi.c: Likewise.
56927         * soft-fp/fixunssfsi.c: Likewise.
56928         * soft-fp/fixunssfti.c: Likewise.
56929         * soft-fp/fixunstfdi.c: Likewise.
56930         * soft-fp/fixunstfsi.c: Likewise.
56931         * soft-fp/fixunstfti.c: Likewise.
56932         * soft-fp/floatdidf.c: Likewise.
56933         * soft-fp/floatdisf.c: Likewise.
56934         * soft-fp/floatditf.c: Likewise.
56935         * soft-fp/floatsidf.c: Likewise.
56936         * soft-fp/floatsisf.c: Likewise.
56937         * soft-fp/floatsitf.c: Likewise.
56938         * soft-fp/floattidf.c: Likewise.
56939         * soft-fp/floattisf.c: Likewise.
56940         * soft-fp/floattitf.c: Likewise.
56941         * soft-fp/floatundidf.c: Likewise.
56942         * soft-fp/floatundisf.c: Likewise.
56943         * soft-fp/floatunsidf.c: Likewise.
56944         * soft-fp/floatunsisf.c: Likewise.
56945         * soft-fp/floatuntidf.c: Likewise.
56946         * soft-fp/floatuntisf.c: Likewise.
56947         * soft-fp/floatuntitf.c: Likewise.
56948         * soft-fp/fmadf4.c: Likewise.
56949         * soft-fp/fmasf4.c: Likewise.
56950         * soft-fp/fmatf4.c: Likewise.
56951         * soft-fp/gedf2.c: Likewise.
56952         * soft-fp/gesf2.c: Likewise.
56953         * soft-fp/getf2.c: Likewise.
56954         * soft-fp/ledf2.c: Likewise.
56955         * soft-fp/lesf2.c: Likewise.
56956         * soft-fp/letf2.c: Likewise.
56957         * soft-fp/muldf3.c: Likewise.
56958         * soft-fp/mulsf3.c: Likewise.
56959         * soft-fp/multf3.c: Likewise.
56960         * soft-fp/negdf2.c: Likewise.
56961         * soft-fp/negsf2.c: Likewise.
56962         * soft-fp/negtf2.c: Likewise.
56963         * soft-fp/op-1.h: Likewise.
56964         * soft-fp/op-2.h: Likewise.
56965         * soft-fp/op-4.h: Likewise.
56966         * soft-fp/op-8.h: Likewise.
56967         * soft-fp/op-common.h: Likewise.
56968         * soft-fp/quad.h: Likewise.
56969         * soft-fp/single.h: Likewise.
56970         * soft-fp/soft-fp.h: Likewise.
56971         * soft-fp/sqrtdf2.c: Likewise.
56972         * soft-fp/sqrtsf2.c: Likewise.
56973         * soft-fp/sqrttf2.c: Likewise.
56974         * soft-fp/subdf3.c: Likewise.
56975         * soft-fp/subsf3.c: Likewise.
56976         * soft-fp/subtf3.c: Likewise.
56977         * soft-fp/truncdfsf2.c: Likewise.
56978         * soft-fp/trunctfdf2.c: Likewise.
56979         * soft-fp/trunctfsf2.c: Likewise.
56980         * soft-fp/trunctfxf2.c: Likewise.
56981         * soft-fp/unorddf2.c: Likewise.
56982         * soft-fp/unordsf2.c: Likewise.
56983         * soft-fp/unordtf2.c: Likewise.
56984
56985 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
56986
56987         [BZ #15672]
56988         * misc/error.c (error_tail): Fix possible buffer overflow.
56989
56990 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
56991
56992         [BZ #13028]
56993         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
56994         address.
56995
56996 2013-10-14  P. J. McDermott  <pj@pehjota.net>
56997
56998         [BZ #832]
56999         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
57000         testing pipefail option.
57001
57002 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
57003
57004         * soft-fp/double.h: Indent preprocessor directives inside #if.
57005         * soft-fp/extended.h: Likewise.
57006         * soft-fp/op-2.h: Likewise.
57007         * soft-fp/op-4.h: Likewise.
57008         * soft-fp/op-common.h: Likewise.
57009         * soft-fp/quad.h: Likewise.
57010         * soft-fp/single.h: Likewise.
57011         * soft-fp/soft-fp.h: Likewise.
57012
57013 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
57014
57015         * iconv/iconv_prog.c: Fix typos.
57016         * stdio-common/psiginfo-data.h: Likewise.
57017
57018 2013-10-12   Reuben Thomas <rrt@sc3d.org>
57019
57020         [BZ #15764]
57021         * locale/setlocale.c: Fix typo.
57022
57023 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
57024
57025         [BZ #16036]
57026         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
57027         signaling NaN arguments.
57028         * soft-fp/unordsf2.c (__unordsf2): Likewise.
57029         * soft-fp/unordtf2.c (__unordtf2): Likewise.
57030
57031         [BZ #14910]
57032         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
57033         unordered operands.
57034         * soft-fp/gesf2.c (__gesf2): Likewise.
57035         * soft-fp/getf2.c (__getf2): Likewise.
57036         * soft-fp/ledf2.c (__ledf2): Likewise.
57037         * soft-fp/lesf2.c (__lesf2): Likewise.
57038         * soft-fp/letf2.c (__letf2): Likewise.
57039
57040         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
57041         * soft-fp/eqsf2.c (__eqsf2): Likewise.
57042         * soft-fp/eqtf2.c (__eqtf2): Likewise.
57043         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
57044         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
57045         * soft-fp/fixdfti.c (__fixdfti): Likewise.
57046         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
57047         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
57048         * soft-fp/fixsfti.c (__fixsfti): Likewise.
57049         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
57050         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
57051         * soft-fp/fixtfti.c (__fixtfti): Likewise.
57052         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
57053         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
57054         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
57055         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
57056         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
57057         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
57058         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
57059         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
57060         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
57061         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
57062         * soft-fp/floatdisf.c (__floatdisf): Likewise.
57063         * soft-fp/floatsisf.c (__floatsisf): Likewise.
57064         * soft-fp/floattidf.c (__floattidf): Likewise.
57065         * soft-fp/floattisf.c (__floattisf): Likewise.
57066         * soft-fp/floattitf.c (__floattitf): Likewise.
57067         * soft-fp/floatundidf.c (__floatundidf): Likewise.
57068         * soft-fp/floatundisf.c (__floatundisf): Likewise.
57069         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
57070         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
57071         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
57072         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
57073         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
57074         * soft-fp/gesf2.c (__gesf2): Likewise.
57075         * soft-fp/getf2.c (__getf2): Likewise.
57076         * soft-fp/ledf2.c (__ledf2): Likewise.
57077         * soft-fp/lesf2.c (__lesf2): Likewise.
57078         * soft-fp/letf2.c (__letf2): Likewise.
57079
57080         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
57081         Undefine and redefine.
57082         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
57083         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
57084         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
57085         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
57086         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
57087         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
57088         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
57089         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
57090         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
57091         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
57092         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
57093         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
57094         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
57095         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
57096         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
57097
57098         [BZ #16032]
57099         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
57100         without decrementing exponent if mantissa >= that for the
57101         denominator, not >.
57102         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
57103         denominator, not >.  Decrement exponent in < case instead of
57104         incrementing in >= case.
57105         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
57106         without decrementing exponent if mantissa >= that for the
57107         denominator, not >.
57108
57109         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
57110         computing saturated result for unsigned overflow.
57111
57112 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
57113             Jeff Law  <law@redhat.com>
57114
57115         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
57116         (atan2Mp): Add systemtap probe marker.
57117         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
57118         (__ieee754_log): Add systemtap probe marker.
57119         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
57120         (atanMp): Add systemtap probe marker.
57121         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
57122         (tanMp): Add systemtap probe marker.
57123         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
57124         (__slowexp): Add systemtap probe marker.
57125         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
57126         (__slowpow): Add systemtap probe marker.
57127         * manual/probes.texi: Document probes.
57128
57129 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
57130
57131         [BZ #15362]
57132         * libio/fileops.c (_IO_new_file_write): Return count of bytes
57133         written.
57134         (_IO_new_file_xsputn): Don't return EOF if nothing has been
57135         written.
57136         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
57137         written to buffer but not flushed.
57138         * libio/iofwrite_u.c:  Likewise.
57139         * libio/iopadn.c:  Return bytes returned even if EOF was
57140         encountered.
57141         * libio/iowpadn.c:  Likewise.
57142         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
57143         if _IO_padn does not write the whole buffer.
57144         [!COMPILE_WPRINTF] (PAD): Likewise.
57145
57146 2013-10-10  David S. Miller  <davem@davemloft.net>
57147
57148         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
57149         directory block.
57150
57151 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
57152
57153         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
57154         instead of FSF address.
57155         * soft-fp/fixdfti.c: Likewise.
57156         * soft-fp/fixsfti.c: Likewise.
57157         * soft-fp/fixtfti.c: Likewise.
57158         * soft-fp/fixunsdfti.c: Likewise.
57159         * soft-fp/fixunssfti.c: Likewise.
57160         * soft-fp/fixunstfti.c: Likewise.
57161         * soft-fp/floattidf.c: Likewise.
57162         * soft-fp/floattisf.c: Likewise.
57163         * soft-fp/floattitf.c: Likewise.
57164         * soft-fp/floatuntidf.c: Likewise.
57165         * soft-fp/floatuntisf.c: Likewise.
57166         * soft-fp/floatuntitf.c: Likewise.
57167         * soft-fp/trunctfxf2.c: Likewise.
57168
57169         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
57170         * soft-fp/fixdfti.c: Likewise.
57171         * soft-fp/fixsfti.c: Likewise.
57172         * soft-fp/fixtfti.c: Likewise.
57173         * soft-fp/fixunsdfti.c: Likewise.
57174         * soft-fp/fixunssfti.c: Likewise.
57175         * soft-fp/fixunstfti.c: Likewise.
57176         * soft-fp/floattidf.c: Likewise.
57177         * soft-fp/floattisf.c: Likewise.
57178         * soft-fp/floattitf.c: Likewise.
57179         * soft-fp/floatuntidf.c: Likewise.
57180         * soft-fp/floatuntisf.c: Likewise.
57181         * soft-fp/floatuntitf.c: Likewise.
57182         * soft-fp/trunctfxf2.c: Likewise.
57183
57184 2013-10-10  David S. Miller  <davem@davemloft.net>
57185
57186         * sysdeps/sparc/fpu/libm-test-ulps: Update.
57187
57188 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
57189
57190         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
57191         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
57192         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
57193         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
57194         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
57195         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
57196         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
57197
57198         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
57199         for NaNs before doing comparisons on argument.
57200         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
57201         Likewise.
57202
57203 2013-10-10  Will Newton  <will.newton@linaro.org>
57204
57205         * malloc/hooks.c (memalign_check): Ensure the value of bytes
57206         passed to _int_memalign does not overflow.
57207
57208 2013-10-10  Torvald Riegel  <triegel@redhat.com>
57209
57210         * scripts/bench.pl: Add include-sources directive.
57211         * benchtests/README: Update documentation.
57212
57213 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
57214
57215         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
57216         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
57217         instead of FP_INIT_ROUNDMODE.
57218         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
57219         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
57220
57221         [BZ #16034]
57222         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
57223         copy class of input value.
57224         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
57225         not handle exceptions.
57226         * soft-fp/negsf2.c (__negsf2): Likewise.
57227         * soft-fp/negtf2.c (__negtf2): Likewise.
57228         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
57229
57230 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
57231
57232         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
57233         semicolon.  From Linux kernel.
57234
57235 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
57236
57237         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
57238
57239 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
57240
57241         [BZ #156]
57242         * manual/socket.texi: Added statement about buffer
57243         for gethostbyname2_r.
57244
57245 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
57246
57247         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
57248         Use .p2align directive instead, throughout.
57249         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
57250         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
57251         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
57252         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
57253         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
57254         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
57255         * sysdeps/x86_64/strchr.S: Likewise.
57256         * sysdeps/x86_64/strrchr.S: Likewise.
57257
57258 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
57259
57260         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
57261
57262         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
57263
57264         * sysdeps/generic/math_private.h (__mpsin1): Remove
57265         declaration.
57266         (__mpcos1): Likewise.
57267         (__mpsin): New argument __range_reduce.
57268         (__mpcos): Likewise.
57269         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
57270         (slow): Use __mpsin and __mpcos.
57271         (slow1): Likewise.
57272         (slow2): Likewise.
57273         (sloww): Likewise.
57274         (sloww1): Likewise.
57275         (sloww2): Likewise.
57276         (bsloww): Likewise.
57277         (bsloww1): Likewise.
57278         (bsloww2): Likewise.
57279         (cslow2): Likewise.
57280         (csloww): Likewise.
57281         (csloww1): Likewise.
57282         (csloww2): Likewise.
57283         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
57284         range_reduce.  Merge in __mpsin1.
57285         (__mpcos): Likewise.
57286         (__mpsin1): Remove.
57287         (__mpcos1): Likewise.
57288
57289 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
57290
57291         * locale/loadlocale.c (_nl_intern_locale_data): Use
57292         LOCFILE_ALIGNED_P.
57293         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
57294         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
57295         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
57296         obstack data is appropriately aligned.
57297         (obstack_int32_grow_fast): Likewise.
57298         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
57299         * locale/programs/locfile.c (add_locale_uint32): Likewise.
57300         (add_locale_uint32_array): Likewise.
57301
57302 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
57303
57304         * benchtests/Makefile: Remove ARGLIST and RET variables.
57305         ($(objpfx)bench-%.c): Pass only function name to the script.
57306         * benchtests/README: Update documentation.
57307         * benchtests/acos-inputs: Add new directives.
57308         * benchtests/acosh-inputs: Likewise.
57309         * benchtests/asin-inputs: Likewise.
57310         * benchtests/asinh-inputs: Likewise.
57311         * benchtests/atan-inputs: Likewise.
57312         * benchtests/atanh-inputs: Likewise.
57313         * benchtests/cos-inputs: Likewise.
57314         * benchtests/cosh-inputs: Likewise.
57315         * benchtests/exp-inputs: Likewise.
57316         * benchtests/log-inputs: Likewise.
57317         * benchtests/pow-inputs: Likewise.
57318         * benchtests/rint-inputs: Likewise.
57319         * benchtests/sin-inputs: Likewise.
57320         * benchtests/sinh-inputs: Likewise.
57321         * benchtests/tan-inputs: Likewise.
57322         * benchtests/tanh-inputs: Likewise.
57323         * scripts/bench.pl: Add support for new directives.
57324
57325 2013-10-07  Alan Modra  <amodra@gmail.com>
57326
57327         * README: Fix careless merge.
57328
57329 2013-10-05  Alan Modra  <amodra@gmail.com>
57330
57331         * NEWS: Mention powerpc64le support and bugs fixed.
57332         * README: Both big-endian and little-endian powerpc64 supported.
57333
57334 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
57335
57336         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
57337         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
57338         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
57339         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
57340
57341 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
57342
57343         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
57344         match prototype.
57345
57346 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
57347
57348         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
57349         Move -mhard-float appending from
57350         ports/sysdeps/powerpc/powerpc32/Makefile.
57351         [$(with-fp) = yes] (ASFLAGS): Likewise.
57352         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
57353         * sysdeps/powerpc/nofpu: Move directory from
57354         ports/sysdeps/powerpc/nofpu.
57355         * sysdeps/powerpc/soft-fp: Move directory from
57356         ports/sysdeps/powerpc/soft-fp.
57357         * sysdeps/powerpc/powerpc32/405: Move directory from
57358         ports/sysdeps/powerpc/powerpc32/405.
57359         * sysdeps/powerpc/powerpc32/440: Move directory from
57360         ports/sysdeps/powerpc/powerpc32/440.
57361         * sysdeps/powerpc/powerpc32/464: Move directory from
57362         ports/sysdeps/powerpc/powerpc32/464.
57363         * sysdeps/powerpc/powerpc32/476: Move directory from
57364         ports/sysdeps/powerpc/powerpc32/476.
57365         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
57366         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
57367         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
57368         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
57369         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
57370         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
57371         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
57372         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
57373         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
57374         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
57375         * README: Update for powerpc-*-linux-gnu software floating point
57376         support in libc.
57377
57378         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
57379         case to powerpc/powerpc32*.
57380         * sysdeps/unix/sysv/linux/configure: Regenerated.
57381
57382         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
57383         (_FPU_MASK_OM): Define as 0x04.
57384         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
57385         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
57386         0x00c10080.
57387         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
57388         0x0000003c.
57389         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
57390
57391         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
57392         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
57393         getcontext_e500.
57394         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
57395         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
57396         setcontext_e500.
57397         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
57398         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
57399         and setcontext_e500.
57400
57401 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
57402
57403         * locale/iso-3166.def: Update iso-1366.def and related occurrences
57404
57405 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
57406
57407         * manual/threads.texi (Default Thread Attributes): Fix typo.
57408
57409 2013-10-04  Will Newton  <will.newton@linaro.org>
57410
57411         * malloc/Makefile: Add tst-memalign.
57412         * malloc/tst-memalign.c: New file.
57413
57414         * malloc/tst-posix_memalign.c: Add comments.
57415         (do_test): Add comments and call free on all potentially
57416         allocated pointers. Add space after cast.
57417
57418         * malloc/tst-pvalloc.c: Add comments.
57419         (do_test): Add comments and call free on all potentially
57420         allocated pointers. Remove duplicate check for NULL pointer.
57421         Add space after cast.
57422
57423         * malloc/tst-valloc.c: Add comments.
57424         (do_test): Add comments and call free on all potentially
57425         allocated pointers. Remove duplicate check for NULL pointer.
57426         Add space after cast.
57427
57428 2013-10-04  Alan Modra  <amodra@gmail.com>
57429
57430         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
57431         Use stdint types in rather than __attribute__((mode())).
57432         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
57433
57434 2013-10-04  Alan Modra  <amodra@gmail.com>
57435
57436         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
57437         Correct handling of unaligned relocs for little-endian.
57438         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
57439
57440 2013-10-04  Alan Modra  <amodra@gmail.com>
57441
57442         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
57443         * configure: Regenerate.
57444         * nptl/shlib-versions: Powerpc*le starts at 2.18.
57445         * shlib-versions: Likewise.
57446
57447 2013-10-04  Alan Modra  <amodra@gmail.com>
57448
57449         * string/tester.c (test_memrchr): Increment reported test cycle.
57450
57451 2013-10-04  Alan Modra  <amodra@gmail.com>
57452
57453         * string/test-memcpy.c (do_one_test): When reporting errors, print
57454         string address and don't overrun end of string.
57455
57456 2013-10-04  Alan Modra  <amodra@gmail.com>
57457
57458         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
57459         insrdi.  Make better use of reg selection to speed exit slightly.
57460         Schedule entry path a little better.  Remove useless "are we done"
57461         checks on entry to main loop.  Handle wrapping around zero address.
57462         Correct main loop count.  Handle single left-over word from main
57463         loop inline rather than by using loop_small.  Remove extra word
57464         case in loop_small caused by wrong loop count.  Add little-endian
57465         support.
57466         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
57467         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
57468         cache hint.
57469         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
57470         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
57471         support.  Avoid rlwimi.
57472         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
57473
57474 2013-10-04  Alan Modra  <amodra@gmail.com>
57475
57476         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
57477         insrdi.  Formatting.
57478         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
57479         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
57480         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
57481         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
57482         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
57483         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
57484
57485 2013-10-04  Alan Modra  <amodra@gmail.com>
57486
57487         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
57488         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
57489         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
57490         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
57491         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
57492         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
57493         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
57494         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
57495         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
57496         use of regs.  Use power7 mtocrf.  Tidy function tails.
57497
57498 2013-10-04  Alan Modra  <amodra@gmail.com>
57499
57500         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
57501         Formatting.  Consistently use rXXX register defines or rN defines.
57502         Use early exit labels that avoid restoring unused non-volatile regs.
57503         Make cr field use more consistent with rWORDn compares.  Rename
57504         regs used as shift registers for unaligned loop, using rN defines
57505         for short lifetime/multiple use regs.
57506         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
57507         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
57508         addi 1,1,64 to pop stack frame.  Simplify return value code.
57509         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
57510
57511 2013-10-04  Alan Modra  <amodra@gmail.com>
57512
57513         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
57514         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
57515         rather than rlwimi.
57516         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
57517         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
57518         little-endian support.  Correct typos.
57519         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
57520         rather than rlwimi.
57521         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
57522         in loop and entry code to keep "and." results.
57523         (strchr): Add little-endian support.  Comment.  Move cntlzd
57524         earlier in tail.
57525         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
57526
57527 2013-10-04  Alan Modra  <amodra@gmail.com>
57528
57529         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
57530         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
57531         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
57532         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
57533
57534 2013-10-04  Alan Modra  <amodra@gmail.com>
57535
57536         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
57537         (rTMP): Define as r11.
57538         (strcmp): Add little-endian support.  Optimise tail.
57539         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
57540         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
57541         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
57542         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
57543         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
57544         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
57545         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
57546
57547 2013-10-04  Alan Modra  <amodra@gmail.com>
57548
57549         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
57550         little-endian support.  Remove unnecessary "are we done" tests.
57551         Handle "s" wrapping around zero and extremely large "size".
57552         Correct main loop count.  Handle single left-over word from main
57553         loop inline rather than by using small_loop.  Correct comments.
57554         Delete "zero" tail, use "end_max" instead.
57555         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
57556
57557 2013-10-04  Alan Modra  <amodra@gmail.com>
57558
57559         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
57560         support.  Don't branch over align.
57561         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
57562         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
57563         support.  Rearrange tmp reg use to suit.  Comment.
57564         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
57565
57566 2013-10-04  Alan Modra  <amodra@gmail.com>
57567
57568         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
57569
57570 2013-10-04  Alan Modra  <amodra@gmail.com>
57571
57572         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
57573         conditional form of branch and link when obtaining pc.
57574         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
57575
57576 2013-10-04  Alan Modra  <amodra@gmail.com>
57577
57578         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
57579         HIWORD/LOWORD.
57580         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
57581         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
57582
57583 2013-10-04  Alan Modra  <amodra@gmail.com>
57584
57585         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
57586         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
57587         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
57588         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
57589         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
57590         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
57591         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
57592         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
57593         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
57594         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
57595
57596 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
57597             Alistair Popple <alistair@ozlabs.au.ibm.com>
57598             Alan Modra <amodra@gmail.com>
57599
57600         [BZ #15723]
57601         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
57602         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
57603         _dl_hwcap access for little-endian.
57604         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
57605         destroy vmx regs when saving unaligned.
57606         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
57607         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
57608         destroy vmx regs when saving unaligned.
57609
57610 2013-10-04  Alan Modra  <amodra@gmail.com>
57611
57612         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
57613         Don't use a union to pack hi/low value.
57614
57615 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
57616
57617         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
57618         for little-endian.
57619         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
57620         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
57621         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
57622         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
57623         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
57624
57625 2013-10-04  Alan Modra  <amodra@gmail.com>
57626
57627         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
57628         constants to usual value for .cst8 section, and remove redundant
57629         high address load.
57630         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
57631         constant for 0x1p52.  Load little-endian words of double from
57632         correct stack offsets.
57633
57634 2013-10-04  Alan Modra  <amodra@gmail.com>
57635
57636         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
57637         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
57638         words of double from correct stack offsets.
57639         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
57640         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
57641         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
57642         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
57643         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
57644         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
57645         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
57646         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
57647         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
57648         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
57649         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
57650         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
57651         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
57652         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
57653         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
57654         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
57655         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
57656
57657 2013-10-04  Alan Modra  <amodra@gmail.com>
57658
57659         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
57660         64-bit int/double union.
57661         (_FPU_SETCW): Likewise.
57662         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
57663         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
57664
57665 2013-10-04  Alan Modra  <amodra@gmail.com>
57666
57667         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
57668         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
57669
57670 2013-10-04  Alan Modra  <amodra@gmail.com>
57671
57672         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
57673         use vector int constants.
57674         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
57675
57676 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
57677
57678         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
57679         array with long long.
57680         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
57681         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
57682         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
57683         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
57684         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
57685         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
57686         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
57687         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
57688         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
57689         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
57690         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
57691         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
57692         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
57693
57694 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
57695
57696         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
57697         (__signbit): Likewise.  Correct for little-endian.
57698         (__signbitl): Call __signbit.
57699         (lrint): Correct for little-endian.
57700         (lrintf): Call lrint.
57701
57702 2013-10-04  Alan Modra  <amodra@gmail.com>
57703
57704         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
57705         union 32-bit int array member with 64-bit int array.
57706         (t515, tm256): Double rather than long double.
57707         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
57708
57709 2013-10-04  Alan Modra  <amodra@gmail.com>
57710
57711         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
57712         Delete.
57713         (IEEE854_LONG_DOUBLE_BIAS): Delete.
57714         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
57715         version of math_ldbl.h.
57716
57717 2013-10-04  Alan Modra  <amodra@gmail.com>
57718
57719         [BZ #15734], [BZ #15735]
57720         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
57721         all uses of ieee875 long double macros and unions.  Simplify test
57722         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
57723         ldbl_extract_mantissa value for ix,iy exponents.  Properly
57724         normalize after ldbl_extract_mantissa, and don't add hidden bit
57725         already handled.  Don't treat low word of ieee854 mantissa like
57726         low word of IBM long double and mask off bit when testing for
57727         zero.
57728         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
57729         all uses of ieee875 long double macros and unions.  Simplify tests
57730         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
57731         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
57732         two1022, instead use their values.  Recognise that tests for large
57733         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
57734         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
57735         Rewrite all uses of ieee875 long double macros and unions.  Simplify
57736         test for 0.0L and nan.  Correct negation.
57737         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
57738         ieee875 long double macros and unions.  Correct output for large
57739         magnitude x.  Correct absolute value calculation.
57740         (__erfcl): Likewise.
57741         * math/libm-test.inc: Add tests for errors discovered in IBM long
57742         double versions of fmodl, remainderl, erfl and erfcl.
57743
57744 2013-10-04  Alan Modra  <amodra@gmail.com>
57745
57746         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
57747         all uses of ieee854 long double macros and unions.  Simplify tests
57748         for long doubles that are fully specified by the high double.
57749         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
57750         Likewise.
57751         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
57752         Remove dead code too.
57753         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
57754         (__ieee754_ynl): Likewise.
57755         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
57756         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
57757         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
57758         Remove dead code too.
57759         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
57760         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
57761         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
57762         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
57763         Simplify.
57764         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
57765         Simplify.
57766         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
57767         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
57768         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
57769         Comment on variable precision.
57770         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
57771         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
57772         Likewise.
57773         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
57774         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
57775         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
57776         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
57777         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
57778
57779 2013-10-04  Alan Modra  <amodra@gmail.com>
57780
57781         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
57782         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
57783         all uses of ieee854 long double macros and unions.
57784         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
57785         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
57786         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
57787         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
57788         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
57789         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
57790         Likewise.
57791         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
57792         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
57793         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
57794         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
57795         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
57796         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
57797         Simplify sign and nan test too.
57798         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
57799         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
57800         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
57801         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
57802         Likewise.
57803         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
57804         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
57805         Likewise.
57806         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
57807         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
57808         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
57809         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
57810         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
57811         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
57812
57813 2013-10-04  Alan Modra  <amodra@gmail.com>
57814
57815         * stdio-common/printf_size.c (__printf_size): Don't use
57816         union ieee854_long_double in fpnum union.
57817         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
57818         signbit macro to retrieve sign from long double.
57819         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
57820         retrieve sign from long double.
57821         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
57822         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
57823         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
57824         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
57825         * math/test-misc.c (main): Don't use union ieee854_long_double.
57826
57827 2013-10-04  Alan Modra  <amodra@gmail.com>
57828
57829         [BZ #15680]
57830         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
57831         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
57832         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
57833         calculation.  Remove unnecessary test for denormal exponent.
57834         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
57835         Correct handling of denormals.  Avoid undefined shift behaviour.
57836         Correct normalisation of low mantissa when low double is denormal.
57837         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
57838         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
57839         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
57840         Correct normalisation of low mantissa.  Test for overflow of high
57841         mantissa and normalise.
57842         (ldbl_nearbyint): Use more readable constant for two52.
57843         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
57844         (__mpn_construct_long_double): Fix test for overflow of high
57845         mantissa and correct normalisation.  Avoid undefined shift.
57846
57847 2013-10-04  Alan Modra  <amodra@gmail.com>
57848
57849         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
57850         (union ibm_extended_long_double): Define as an array of ieee754_double.
57851         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
57852         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
57853         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
57854         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
57855         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
57856         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
57857         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
57858         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
57859         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
57860         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
57861         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
57862
57863 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
57864
57865         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
57866         page size instead of calling getpagesize.
57867
57868         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
57869         (LOCFILE_ALIGN_MASK): Likewise.
57870         (LOCFILE_ALIGN_UP): Likewise.
57871         (LOCFILE_ALIGNED_P): Likewise.
57872         * locale/programs/ld-collate.c (collate_output): Use the new
57873         macros instead of __alignof__ (int32_t).
57874         * locale/weight.h (findidx): Likewise.
57875
57876 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
57877
57878         [BZ #431]
57879         * manual/string.texi: Fix strncat and wcsncat.
57880
57881 2013-10-03  Brooks Moses  <bmoses@google.com>
57882
57883         [BZ #15915]
57884         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
57885         * Makerules: ...here, and adjust associated comments.
57886
57887 2013-10-02  Will Newton  <will.newton@linaro.org>
57888
57889         * malloc/Makefile: Add tst-pvalloc.
57890         * malloc/tst-pvalloc.c: New file.
57891
57892 2013-10-02  Will Newton  <will.newton@linaro.org>
57893
57894         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
57895         improve test coverage.
57896
57897 2013-10-02  Will Newton  <will.newton@linaro.org>
57898
57899         * malloc/Makefile: Add tst-posix_memalign.
57900         * malloc/tst-posix_memalign.c: New file.
57901
57902 2013-10-01  Eric Blake  <eblake@redhat.com>
57903
57904         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
57905         Use __THROWNL rather than __THROW on static functions.
57906
57907 2013-09-30  Petr Machata  <pmachata@redhat.com>
57908
57909         * elf/elf.h (R_AARCH64_ABS16): New macro.
57910         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
57911         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
57912         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
57913         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
57914         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
57915         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
57916         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
57917         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
57918         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
57919         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
57920         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
57921         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
57922         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
57923         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
57924         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
57925         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
57926         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
57927         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
57928         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
57929         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
57930         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
57931         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
57932         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
57933         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
57934         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
57935         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
57936         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
57937         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
57938         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
57939         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
57940         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
57941         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
57942         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
57943         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
57944         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
57945         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
57946         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
57947         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
57948         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
57949         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
57950         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
57951         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
57952         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
57953         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
57954         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
57955         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
57956         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
57957         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
57958         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
57959         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
57960         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
57961         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
57962         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
57963         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
57964         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
57965         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
57966         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
57967         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
57968         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
57969         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
57970         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
57971         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
57972         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
57973         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
57974         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
57975         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
57976         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
57977         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
57978         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
57979         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
57980         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
57981         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
57982         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
57983         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
57984         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
57985         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
57986         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
57987         (R_AARCH64_TLSDESC_LDR): Likewise.
57988         (R_AARCH64_TLSDESC_ADD): Likewise.
57989         (R_AARCH64_TLSDESC_CALL): Likewise.
57990
57991 2013-09-30  Andreas Schwab  <schwab@suse.de>
57992
57993         [BZ #15048]
57994         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
57995         the nss database lookup.
57996         * nscd/initgrcache.c (addinitgroupsX): Likewise.
57997         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
57998
57999 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
58000
58001         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
58002
58003 2013-09-28  P. J. McDermott  <pj@pehjota.net>
58004
58005         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
58006         ${Bash-specific parameter/pattern/string} parameter expansion.
58007         * sysdeps/unix/make-syscalls.sh: Likewise.
58008
58009 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
58010
58011         * sysdeps/sh/stackguard-macros.h: New file.
58012
58013 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
58014
58015         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
58016         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
58017         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
58018         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
58019         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
58020         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
58021
58022 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58023
58024         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
58025         Fix thread ID register.
58026
58027 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
58028
58029         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
58030         [POSIX || UNIX98]: Require rather than permitting all symbols from
58031         <time.h>.
58032         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
58033         element of struct sched_param.
58034         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
58035         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
58036         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
58037         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
58038         constant.
58039
58040 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
58041
58042         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
58043         argument calculation.
58044
58045 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
58046
58047         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
58048         Expect macro.
58049         [POSIX] (pthread_attr_t): Do not require type.
58050         [POSIX] (pthread_cond_t): Likewise.
58051         [POSIX] (pthread_condattr_t): Likewise.
58052         [POSIX] (pthread_key_t): Likewise.
58053         [POSIX] (pthread_mutex_t): Likewise.
58054         [POSIX] (pthread_mutexattr_t): Likewise.
58055         [POSIX] (pthread_once_t): Likewise.
58056         [POSIX] (pthread_t): Likewise.
58057         [POSIX-based standards] (pthread_atfork): Expect function.
58058
58059 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
58060             Richard Sandiford  <richard@codesourcery.com>
58061
58062         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
58063         (swap_endianness_p): New extern variable.
58064         (set_big_endian): New inline function.
58065         (maybe_swap_uint32): Likewise.
58066         (maybe_swap_uint32_array): Likewise.
58067         (maybe_swap_uint32_obstack): Likewise.
58068         * locale/programs/locfile.c: Include <stdbool.h>.
58069         (swap_endianness_p): New variable.
58070         (add_locale_uint32): Call maybe_swap_uint32.
58071         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
58072         (write_locale_data): Call maybe_swap_uint32_array.
58073         * locale/programs/ld-collate.c (obstack_int32_grow): Call
58074         maybe_swap_uint32.
58075         (obstack_int32_grow_fast): Likewise.
58076         (output_weightwc): Call maybe_swap_uint32_obstack.
58077         (collate_output): Likewise.
58078         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
58079         (OPT_LITTLE_ENDIAN): Likewise.
58080         (options): Add --little-endian and --big-endian options.
58081         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
58082         * locale/programs/locarchive.c: Include "locfile.h".
58083         (GET): New macro.
58084         (SET): Likewise.
58085         (INC): Likewise.
58086         (create_archive): Use the new macros to access fields of
58087         structures directly mapped from or written to locale archives.
58088         (oldlocrecentcmp): Likewise.
58089         (enlarge_archive): Likewise.
58090         (insert_name): Likewise.
58091         (add_alias): Likewise.
58092         (add_locale): Likewise.
58093         (delete_locales_from_archive): Likewise.
58094         (show_archive_content): Likewise.
58095         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
58096         locale data.
58097
58098 2013-09-24  Roland McGrath  <roland@hack.frob.com>
58099
58100         * manual/freemanuals.texi: Updated from (newly) canonical copy at
58101         http://www.gnu.org/doc/freemanuals.texi.
58102         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
58103
58104 2013-09-24  Will Newton  <will.newton@linaro.org>
58105
58106         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
58107         macro.
58108
58109 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
58110
58111         * locale/hashval.h (compute_hashval): Interpret bytes of key as
58112         unsigned char.
58113
58114 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
58115
58116         * manual/threads.texi (POSIX Threads): Fix a typo.
58117
58118 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
58119
58120         [BZ #14547]
58121         * string/tst-strcoll-overflow.c: New test case.
58122         * string/Makefile (xtests): Add tst-strcoll-overflow.
58123         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
58124         cache if string sizes may cause integer overflow.
58125
58126         [BZ #14547]
58127         * string/strcoll_l.c (coll_seq): New members rule, idx,
58128         save_idx and back_us.
58129         (get_next_seq_nocache): New function.
58130         (do_compare_nocache): New function.
58131         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
58132         when malloc fails.
58133
58134 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
58135
58136         [BZ #15754]
58137         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
58138         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
58139         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
58140
58141         [BZ #15754]
58142         * elf/Makefile (tests): Add tst-ptrguard1.
58143         (tests-static): Add tst-ptrguard1-static.
58144         (tst-ptrguard1-ARGS): Define.
58145         (tst-ptrguard1-static-ARGS): Define.
58146         * elf/tst-ptrguard1.c: New file.
58147         * elf/tst-ptrguard1-static.c: New file.
58148         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
58149         * sysdeps/i386/stackguard-macros.h: Likewise.
58150         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
58151         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
58152         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
58153         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
58154         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
58155         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
58156
58157 2013-09-23  Hector Marco  <hecmargi@upv.es>
58158             Ismael Ripoll  <iripoll@disca.upv.es>
58159             Carlos O'Donell  <carlos@redhat.com>
58160
58161         [BZ #15754]
58162         * sysdeps/generic/stackguard-macros.h: Define
58163         __pointer_chk_guard_local and POINTER_CHK_GUARD.
58164         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
58165         Define __pointer_chk_guard_local.
58166         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
58167         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
58168
58169 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
58170
58171         [BZ #15859]
58172         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
58173
58174 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
58175
58176         * include/string.h (__ffs): Declare as hidden.
58177         * string/ffs.c (__ffs): Define as hidden.
58178         * sysdeps/i386/ffs.c (__ffs): Likewise.
58179         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
58180         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
58181         * sysdeps/s390/ffs.c (__ffs): Likewise.
58182         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
58183
58184 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
58185
58186         * NEWS: Mention malloc probes.
58187
58188         * malloc/arena.c (new_heap): New memory_heap_new probe.
58189         (grow_heap): New memory_heap_more probe.
58190         (shrink_heap): New memory_heap_less probe.
58191         (heap_trim): New memory_heap_free probe.
58192         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
58193         (systrim): New memory_sbrk_less probe.
58194         * manual/probes.texi: Document them.
58195
58196         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
58197         * manual/probes.texi: Document it.
58198
58199         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
58200         (__libc_realloc): Add memory_realloc_retry probe.
58201         (__libc_memalign): Add memory_memalign_retry probe.
58202         (__libc_valloc): Add memory_valloc_retry probe.
58203         (__libc_pvalloc): Add memory_pvalloc_retry probe.
58204         (__libc_calloc): Add memory_calloc_retry probe.
58205         * manual/probes.texi: Document them.
58206
58207         * malloc/arena.c (get_free_list): Add probe
58208         memory_arena_reuse_free_list.
58209         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
58210         and memory_arena_reuse.
58211         (arena_get2) [!PER_THREAD]: Likewise.
58212         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
58213         memory_arena_reuse_realloc.
58214         * manual/probes.texi: Document them.
58215
58216         * malloc/malloc.c (__libc_free): Add
58217         memory_mallopt_free_dyn_thresholds probe.
58218         (__libc_mallopt): Add multiple memory_mallopt probes.
58219         * manual/probes.texi: Document them.
58220
58221         * malloc/malloc.c: Include stap-probe.h.
58222         (__libc_mallopt): Add memory_mallopt probe.
58223         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
58224         * manual/probes.texi: New.
58225         * manual/Makefile (chapters): Add probes.
58226         * manual/threads.texi: Set next node.
58227
58228 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
58229
58230         [BZ #15963, #13985]
58231         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
58232         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
58233         Add `Chinese' to `nan' entry name.
58234
58235 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
58236
58237         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
58238         (POLYNOMIAL): Likewise.
58239         (TAYLOR_SINCOS): Likewise.
58240         (TAYLOR_SLOW): Likewise.
58241         (__sin): Use TAYLOR_SINCOS.
58242         (__cos): Likewise.
58243         (slow): Use TAYLOR_SLOW.
58244         (sloww): Likewise.
58245         (bsloww): Likewise.
58246         (csloww): Likewise.
58247
58248 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
58249
58250         * stdlib/strtod_l.c: Fix buffer overrun.
58251
58252 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
58253
58254         * benchtests/Makefile (bench): Add sincos.
58255         * benchtests/bench-sincos.c: New file.
58256
58257         * math/libm-test.inc (cos_test_data): New test inputs.
58258         (sin_test_data): Likewise.
58259
58260         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
58261         macro.
58262         (__sin): Use it.
58263         (__cos): Likewise.
58264         (slow1): Likewise.
58265         (slow2): Likewise.
58266         (sloww1): Likewise.
58267         (sloww2): Likewise.
58268         (bsloww1): Likewise.
58269         (bsloww2): Likewise.
58270         (cslow2): Likewise.
58271         (csloww1): Likewise.
58272         (csloww2): Likewise.
58273
58274         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
58275         function.
58276         (__sin): Use it.
58277         (__cos): Likewise.
58278
58279         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
58280         gotos.
58281         (__cos): Likewise.
58282
58283 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
58284
58285         * config.h.in (HAVE_MIPS_NAN2008): New macro.
58286         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
58287         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
58288         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
58289         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
58290         * elf/cache.c (print_entry): Handle the new cache flags.
58291
58292 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
58293             Aldy Hernandez  <aldyh@redhat.com>
58294
58295         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
58296         Change condition to [_SOFT_FLOAT].
58297         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
58298         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
58299         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
58300         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
58301         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
58302         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
58303         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
58304         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
58305         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
58306         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
58307         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
58308         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
58309         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
58310         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
58311         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
58312         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
58313         declaration.
58314
58315 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
58316
58317         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
58318         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
58319         (__longjmp): Use LOAD_GP to load saved GPRs.
58320         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
58321         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
58322         (__sigsetjmp): Use SAVE_GP to save GPRs.
58323
58324         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
58325         Do not append -msoft-float.
58326         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
58327
58328 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
58329
58330         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
58331
58332 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
58333
58334         [BZ #15966]
58335         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
58336         (_FPU_GETCW): Use initial "__" on variable and field names but not
58337         on macro parameter name.
58338         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
58339         parentheses around reference to macro parameter.
58340
58341 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
58342
58343         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
58344         prototype.
58345         (ctype_startup): Use uint32_t in cast and sizeof for
58346         ctype->charnames.
58347
58348 2013-09-11  Jia Liu  <proljc@gmail.com>
58349
58350         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
58351         __daddr_t_defined.
58352         [__FreeBSD__]: Likewise.
58353
58354 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
58355
58356         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
58357         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
58358         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
58359         (strchr): Remove __strchr_sse42 ifunc selection.
58360         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
58361         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
58362
58363 2013-09-11  Will Newton  <will.newton@linaro.org>
58364
58365         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
58366         parameter to RES. Remove hardcoded 1000 value.
58367         * benchtests/bench-skeleton.c (main): Pass RES parameter
58368         to TIMING_INIT and multiply result by 1000.
58369
58370 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58371
58372         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
58373
58374 2013-09-11  Andreas Schwab  <schwab@suse.de>
58375
58376         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
58377         if not defined.
58378         (O_TMPFILE) [__USE_GNU]: Define.
58379         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
58380         Define.
58381
58382 2013-09-11  Will Newton  <will.newton@linaro.org>
58383
58384         [BZ #15857]
58385         * malloc/malloc.c (__libc_memalign): Check the value of bytes
58386         does not overflow.
58387
58388 2013-09-11  Will Newton  <will.newton@linaro.org>
58389
58390         [BZ #15856]
58391         * malloc/malloc.c (__libc_valloc): Check the value of bytes
58392         does not overflow.
58393
58394 2013-09-11  Will Newton  <will.newton@linaro.org>
58395
58396         [BZ #15855]
58397         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
58398         does not overflow.
58399
58400 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
58401
58402         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
58403         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
58404         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
58405         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
58406         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
58407
58408 2013-09-10  Allan McRae  <allan@archlinux.org>
58409
58410         [BZ #15748]
58411         * manual/arith.texi (Parsing of Floats): Clarify
58412         cross-reference.
58413
58414         [BZ #15849]
58415         * manual/install.texi (Running make install): Mention
58416         --enable-pt-chown.
58417         * INSTALL: Regenerated.
58418
58419 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
58420
58421         * csu/init-first.c (_init): Remove the !SHARED condition around
58422         FPU control word initialization.
58423         * elf/dl-support.c (_dl_fpu_control): New variable.
58424         (_dl_aux_init) <AT_FPUCW>: Initialize it.
58425         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
58426         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
58427         * math/test-fpucw-static.c: New file.
58428         * math/test-fpucw-ieee.c: New file.
58429         * math/test-fpucw-ieee-static.c: New file.
58430         * math/Makefile (tests): Add `test-fpucw-ieee' and
58431         `$(tests-static)'.
58432         (tests-static): New variable.
58433         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
58434         dependency to...
58435         [($(build-shared),yes)]
58436         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
58437         ... this.
58438         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
58439         New dependency.
58440
58441 2013-09-09  Allan McRae  <allan@archlinux.org>
58442
58443         [BZ #15939]
58444         * manual/string.texi (Collation Functions): Fix typo in
58445         strcoll example.
58446         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
58447
58448         [BZ #15893]
58449         * stdlib/isomac.c (get_null_defines): Fix memory leak.
58450
58451         [BZ #15892]
58452         * libio/memstream.c (open_memstream): Fix memory leak.
58453         * libio/wmemstream.c (open_wmemstream): Likewise.
58454
58455         [BZ #15895]
58456         * nscd/netgroupcache.c: Fix nesting of ifdefs.
58457
58458 2013-09-09  Will Newton  <will.newton@linaro.org>
58459
58460         * malloc/Makefile: Add tst-realloc to tests.
58461         * malloc/tst-realloc.c: New file.
58462
58463 2013-09-09  Allan McRae  <allan@archlinux.org>
58464
58465         [BZ #15844]
58466         * COPYING: Update from GNU website to fix FSF address.
58467         * COPYING.LIB: Likewise.
58468
58469 2013-09-06  David S. Miller  <davem@davemloft.net>
58470
58471         * po/zh_TW.po: Update Chinese (traditional) translation from
58472         translation project.
58473
58474 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
58475             Joseph Myers  <joseph@codesourcery.com>
58476
58477         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
58478         "localeinfo.h".
58479         (obstack_chunk_alloc): New macro.
58480         (obstack_chunk_free): Likewise.
58481         (record_offset): New function.
58482         (init_locale_data): Likewise.
58483         (align_locale_data): Likewise.
58484         (add_locale_empty): Likewise.
58485         (add_locale_raw_data): Likewise.
58486         (add_locale_raw_obstack): Likewise.
58487         (add_locale_string): Likewise.
58488         (add_locale_wstring): Likewise.
58489         (add_locale_uint32): Likewise.
58490         (add_locale_uint32_array): Likewise.
58491         (add_locale_char): Likewise.
58492         (start_locale_structure): Likewise.
58493         (end_locale_structure): Likewise.
58494         (start_locale_prelude): Likewise.
58495         (end_locale_prelude): Likewise.
58496         (write_locale_data): Take locale_file structure rather than an
58497         iovec.
58498         * locale/programs/locfile.h: Include "obstack.h".
58499         (struct locale_file): Change to store locale file contents instead
58500         of header.
58501         (init_locale_data): New prototype.
58502         (align_locale_data): Likewise.
58503         (add_locale_empty): Likewise.
58504         (add_locale_raw_data): Likewise.
58505         (add_locale_raw_obstack): Likewise.
58506         (add_locale_string): Likewise.
58507         (add_locale_wstring): Likewise.
58508         (add_locale_uint32): Likewise.
58509         (add_locale_uint32_array): Likewise.
58510         (add_locale_char): Likewise.
58511         (start_locale_structure): Likewise.
58512         (end_locale_structure): Likewise.
58513         (start_locale_prelude): Likewise.
58514         (end_locale_prelude): Likewise.
58515         (write_locale_data): Update prototype.
58516         * locale/programs/3level.h (struct TABLE): Remove result field.
58517         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
58518         Use new locale_file interface.
58519         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
58520         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
58521         * locale/programs/ld-address.c (address_output): Use new
58522         locale_file interface.
58523         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
58524         NO_ADD_LOCALE.
58525         (collate_finish): Don't call collseq_table_finalize.
58526         (collate_output): Use new locale_file interface.
58527         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
58528         in file.
58529         (NO_FINALIZE): Change to NO_ADD_LOCALE.
58530         (TABLE): Move defines earlier in file.
58531         (ELEMENT): Likewise.
58532         (DEFAULT): Likewise.
58533         (wctrans_table_add): Move macro and inline function earlier in
58534         file.
58535         (struct wctype_table): Move type earlier in file.
58536         (add_locale_wctype_table): New static prototype.
58537         (struct locale_ctype_t): Use logical types instead of struct iovec
58538         pointers for members.
58539         (ctype_output): Use new locale_file interface.
58540         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
58541         new locale_file interface.
58542         (allocate_arrays): Update for use of new locale_file interface.
58543         * locale/programs/ld-identification.c (identification_output): Use
58544         new locale_file interface.
58545         * locale/programs/ld-measurement.c (measurement_output): Likewise.
58546         * locale/programs/ld-messages.c (messages_output): Likewise.
58547         * locale/programs/ld-monetary.c (monetary_output): Likewise.
58548         * locale/programs/ld-name.c (name_output): Likewise.
58549         * locale/programs/ld-numeric.c (numeric_output): Likewise.
58550         * locale/programs/ld-paper.c (paper_output): Likewise.
58551         * locale/programs/ld-telephone.c (telephone_output): Likewise.
58552         * locale/programs/ld-time.c (time_output): Likewise.
58553
58554 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58555
58556         * benchtests/Makefile: Add memrchr benchmark.
58557         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
58558         benchmark as memrchr.
58559         * benchtests/bench-memrchr-ifunc.c: New file.
58560         * benchtests/bench-memrchr.c: New file.
58561
58562 2013-09-06   Will Newton  <will.newton@linaro.org>
58563
58564         * benchtests/Makefile (string-bench): Add memcpy.
58565
58566 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
58567             Cong Wang  <amwang@redhat.com>
58568
58569         [BZ #15850]
58570         * sysdeps/unix/sysv/linux/bits/in.h
58571         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
58572         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
58573         before __USE_KERNEL_IPV6_DEFS uses.
58574         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
58575         IPPROTO_BEETPH.
58576         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
58577         sockaddr_in6, or ipv6_mreq.
58578
58579 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58580
58581         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
58582         memory access for final bytes in some large inputs.
58583         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
58584
58585 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58586
58587         * string/test-memrchr.c: New file.
58588         * string/test-memrchr-ifunc.c: New file.
58589         * string/Makefile: Add new memrchr testcase.
58590
58591 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
58592
58593         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
58594         fanotify_init returns EPERM.
58595
58596 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
58597
58598         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
58599         errors.
58600         (top level): Treat second token from macro or constant entries for
58601         allowed headers as allowed.
58602         * include/complex.h: Condition internal declarations on
58603         [!_ISOMAC].
58604         * include/fenv.h: Condition include of <stdbool.h> and internal
58605         declarations on [!_ISOMAC].
58606
58607 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
58608
58609         [BZ #15923]
58610         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
58611
58612 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
58613
58614         * configure.in (--enable-versioning): Remove configure option.
58615         (libc_cv_asm_symver_directive): Remove configure test.
58616         (libc_cv_ld_version_script_option): Likewise.
58617         (VERSIONING): Remove variable and AC_SUBST.
58618         (DO_VERSIONING): Remove AC_DEFINE.
58619         * configure: Regenerated.
58620         * config.h.in (DO_VERSIONING): Remove macro.
58621         * Makerules [$(versioning) = yes]: Change conditionals to
58622         [$(build-shared) = yes].
58623         * config.make.in (versioning): Remove variable.
58624         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
58625         [$(build-shared) = yes].
58626         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
58627         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
58628         * elf/Makefile [$(versioning) = yes]: Change conditionals to
58629         [$(build-shared) = yes].
58630         * extra-lib.mk [$(versioning) = yes]: Likewise.
58631         * hurd/Makefile [$(versioning) = yes]: Likewise.
58632         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
58633         [SHARED].
58634         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
58635         [SHARED].
58636         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
58637         [SHARED && !NO_HIDDEN].
58638         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
58639         [SHARED].
58640         [SHARED && DO_VERSIONING]: Likewise..
58641         * libio/Makefile [$(versioning) = yes]: Change conditionals to
58642         [$(build-shared) = yes].
58643         * manual/install.texi (--disable-versioning): Remove
58644         documentation.
58645         * INSTALL: Regenerated.
58646         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
58647         to [SHARED].
58648         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
58649         [$(build-shared) = yes].
58650         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
58651         * sysdeps/i386/i686/multiarch/strstr-c.c
58652         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
58653         [SHARED && !NO_HIDDEN].
58654         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
58655         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
58656         * sysdeps/powerpc/powerpc32/dl-machine.c
58657         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
58658         * sysdeps/powerpc/powerpc32/sysdep.h
58659         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
58660         to [SHARED && PIC && !NO_HIDDEN].
58661         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
58662         conditional to [SHARED].
58663
58664 2013-09-04   Will Newton  <will.newton@linaro.org>
58665
58666         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
58667         * benchtests/bench-string.h: Include bench-timing.h instead
58668         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
58669         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
58670         call to HP_TIMING_DIFF_INIT.
58671         * benchtests/bench-memccpy.c: Use bench-timing.h macros
58672         instead of hp-timing.h macros.
58673         * benchtests/bench-memchr.c: Likewise.
58674         * benchtests/bench-memcmp.c: Likewise.
58675         * benchtests/bench-memcpy.c: Likewise.
58676         * benchtests/bench-memmem.c: Likewise.
58677         * benchtests/bench-memmove.c: Likewise.
58678         * benchtests/bench-memset.c: Likewise.
58679         * benchtests/bench-rawmemchr.c: Likewise.
58680         * benchtests/bench-strcasecmp.c: Likewise.
58681         * benchtests/bench-strcasestr.c: Likewise.
58682         * benchtests/bench-strcat.c: Likewise.
58683         * benchtests/bench-strchr.c: Likewise.
58684         * benchtests/bench-strcmp.c: Likewise.
58685         * benchtests/bench-strcpy.c: Likewise.
58686         * benchtests/bench-strcpy_chk.c: Likewise.
58687         * benchtests/bench-strlen.c: Likewise.
58688         * benchtests/bench-strncasecmp.c: Likewise.
58689         * benchtests/bench-strncat.c: Likewise.
58690         * benchtests/bench-strncmp.c: Likewise.
58691         * benchtests/bench-strncpy.c: Likewise.
58692         * benchtests/bench-strnlen.c: Likewise.
58693         * benchtests/bench-strpbrk.c: Likewise.
58694         * benchtests/bench-strrchr.c: Likewise.
58695         * benchtests/bench-strspn.c: Likewise.
58696         * benchtests/bench-strstr.c: Likewise.
58697
58698 2013-09-04  Will Newton  <will.newton@linaro.org>
58699
58700         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
58701
58702 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
58703
58704         [BZ #15427]
58705         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
58706         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
58707         * math/libm-test.inc (lgamma_test_data): Add more tests.
58708         * sysdeps/i386/fpu/libm-test-ulps: Update.
58709         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
58710
58711 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
58712
58713         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
58714         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
58715         Add ifunc.
58716         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
58717         Add strcmp-sse2-unaligned
58718         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
58719
58720 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
58721
58722         * Versions.def (libc): Add GLIBC_2.19.
58723
58724 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
58725
58726         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
58727         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
58728
58729 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
58730
58731         [BZ #14155]
58732         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
58733         intermediate calculations in recurrence.
58734         (__ieee754_ynf): Likewise.
58735         * math/libm-test.inc (jn_test_data): Do not allow spurious
58736         underflow exception.  Add more tests.
58737         (yn_test_data): Add more tests.
58738         * sysdeps/i386/fpu/libm-test-ulps: Update.
58739         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
58740
58741 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
58742
58743         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
58744
58745 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
58746
58747         * csu/init-first.c: Fix then/than typos.
58748         * locale/programs/ld-collate.c: Likewise.
58749         * locale/programs/linereader.h: Likewise.
58750         * manual/charset.texi: Likewise.
58751         * manual/filesys.texi: Likewise.
58752         * manual/stdio.texi: Likewise.
58753         * manual/string.texi: Likewise.
58754         * stdlib/fmtmsg.c: Likewise.
58755         * sysdeps/i386/stpncpy.S: Likewise.
58756         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
58757         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
58758         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
58759         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
58760
58761 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
58762
58763         * elf/dl-open.c: Fix typos.
58764         * iconvdata/gbbig5.c: Likewise.
58765         * iconvdata/iso-2022-jp.c: Likewise.
58766         * iconv/gconv_int.h: Likewise.
58767         * iconv/loop.c: Likewise.
58768         * nis/rpcsvc/nis.h: Likewise.
58769         * resolv/ns_name.c: Likewise.
58770         * stdio-common/vfscanf.c: Likewise.
58771         * streams/stropts.h: Likewise.
58772         * sunrpc/rpc_thread.c: Likewise.
58773         * sysdeps/i386/strpbrk.S: Likewise.
58774         * sysdeps/ieee754/k_standard.c: Likewise.
58775         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
58776         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
58777         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
58778         * sysdeps/mach/hurd/profil.c: Likewise.
58779         * sysdeps/s390/dl-procinfo.h: Likewise.
58780         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
58781         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
58782         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
58783         * sysdeps/x86_64/dl-trampoline.S: Likewise.
58784         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
58785
58786 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
58787
58788         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
58789         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
58790
58791 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
58792
58793         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
58794         aix specific files.
58795         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
58796         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
58797         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
58798         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
58799         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
58800         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
58801         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
58802         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
58803
58804 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
58805             Roland McGrath  <roland@hack.frob.com>
58806
58807         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
58808         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
58809
58810 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
58811
58812         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
58813         __executable_start symbol instead of _start.
58814
58815 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
58816
58817         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
58818         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
58819         Move macros to...
58820         * sysdeps/gnu/ldsodefs.h: ... this new file.
58821
58822         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
58823         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
58824         instead of ELFOSABI_LINUX.
58825
58826         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
58827         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
58828         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
58829         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
58830         Likewise.
58831         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
58832         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
58833         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
58834         Likewise.
58835         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
58836         (ibm_extended_long_double): Add ieee_nan member.
58837         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
58838         (do_test): New function.
58839
58840         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
58841         TEST_TRUNC.
58842         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
58843         functions, renamed from truncdfsf_test, trunctfsf_test,
58844         trunctfdf_test.
58845         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
58846         functions.
58847         (do_test): Run all these.
58848
58849 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
58850
58851         * argp/argp-help.c: Fix typos.
58852         * argp/argp-parse.c: Likewise.
58853         * debug/backtracesyms.c: Likewise.
58854         * elf/elf.h: Likewise.
58855         * malloc/malloc.c: Likewise.
58856         * nis/nis_print.c: Likewise.
58857         * resolv/res_comp.c: Likewise.
58858         * stdlib/stdlib.h: Likewise.
58859         * sunrpc/clnt_tcp.c: Likewise.
58860         * sunrpc/clnt_udp.c: Likewise.
58861         * sunrpc/clnt_unix.c: Likewise.
58862         * sysdeps/unix/bsd/ptsname.c: Likewise.
58863         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
58864         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
58865         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
58866         Likewise.
58867         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
58868         Likewise.
58869         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
58870         Likewise.
58871         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
58872
58873 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
58874
58875         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
58876         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
58877
58878 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
58879
58880         [BZ #15897]
58881         * dlfcn/Makefile (tests): Add bug-dl-leaf.
58882         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
58883         ($(objpfx)bug-dl-leaf): New rule.
58884         ($(objpfx)bug-dl-leaf.so): Likewise.
58885         ($(objpfx)bug-dl-leaf.out): Likewise.
58886         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
58887         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
58888         * dlfcn/bug-dl-leaf.c: New test.
58889         * dlfcn/bug-dl-leaf-lib.c: Likewise.
58890         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
58891         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
58892         (dlclose): Likewise.
58893         (dlmopen): Likewise.
58894
58895 2013-08-27  Roland McGrath  <roland@hack.frob.com>
58896
58897         * include/netdb.h [!_ISOMAC]:
58898         Don't include <tls.h>.
58899         (h_errno, __libc_h_errno): Move declaration and macros out of
58900         [_LIBC_REENTRANT].
58901
58902         * include/resolv.h [_RESOLV_H_]:
58903         Don't include <tls.h>.
58904         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
58905         * resolv/res_libc.c: Don't include <tls.h>.
58906         (_res): Use __attribute__ ((nocommon)) in place of
58907         __attribute__ ((section (".bss"))).
58908
58909         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
58910         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
58911
58912         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
58913
58914         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
58915         only under [SIOCGIFCONF && SIOCGIFNETMASK].
58916
58917         * resolv/res_mkquery.c: Include <sys/time.h>.
58918
58919         * inet/ifreq.c: Moved to ...
58920         * sysdeps/unix/ifreq.c: ... here.
58921         * inet/ifreq.c: New file, true stub version.
58922
58923         * socket/sa_len.c: New file.
58924         * socket/Makefile (aux): Add it.
58925         * sysdeps/unix/sysv/linux/Makefile
58926         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
58927         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
58928         and #include <socket/sa_len.c>.
58929         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
58930         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
58931
58932         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
58933         * bits/socket.h: ... here.
58934
58935         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
58936         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
58937         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
58938
58939 2013-08-27  Andreas Schwab  <schwab@suse.de>
58940
58941         [BZ #15736]
58942         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
58943         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
58944         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
58945         * string/test-strcasecmp.c (test_main): Run tests in several
58946         locales.
58947         * string/test-strncasecmp.c (test_main): Likewise.
58948
58949         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
58950         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
58951         to __strcasecmp_nonascii and __strncasecmp_nonascii.
58952         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
58953         (__strncasecmp_ssse3) [PIC]: Likewise.
58954
58955 2013-08-26  Roland McGrath  <roland@hack.frob.com>
58956
58957         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
58958
58959         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
58960         instead of explicitly declaring xdecrypt.
58961         * nis/nss_nis/nis-publickey.c: Likewise.
58962
58963 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
58964
58965         [BZ #15890]
58966         * nscd/aicache.c: Include res_hconf.h.
58967         (addhstaiX): Initialize res_hconf.
58968
58969 2013-08-26  Andreas Schwab  <schwab@suse.de>
58970
58971         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
58972         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
58973
58974 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
58975
58976         * nscd/aicache.c (addhstaiX): Fix indentation.
58977
58978 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
58979
58980         * configure.ac: Quote $build_pt_chown test.
58981         * configure: Regenerated.
58982
58983 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
58984
58985         [BZ #15532]
58986         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
58987         * math/s_cexpf.c (__cexpf): Likewise.
58988         * math/s_cexpl.c (__cexpl): Likewise.
58989         * math/libm-test.inc (cexp_test_data): Correct expected return
58990         value for NaN + i0.  Add another test.
58991
58992 2013-08-22  David S. Miller  <davem@davemloft.net>
58993
58994         * po/ca.po: Update Catalan translation from translation project.
58995         * po/uk.po: Add Ukrainian translations from translation project.
58996
58997 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
58998
58999         [BZ #15797]
59000         * math/s_fdim.c (__fdim): Check for infinite arguments if result
59001         is infinite, not alongside NaN test.
59002         * math/s_fdimf.c (__fdimf): Likewise.
59003         * math/s_fdiml.c (__fdiml): Likewise.
59004         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
59005         errno is unchanged.
59006
59007 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
59008
59009         * argp/argp-help.c: Fix typos.
59010         * crypt/speeds.c: Likewise.
59011         * csu/check_fds.c: Likewise.
59012         * elf/dl-load.c: Likewise.
59013         * elf/dl-open.c: Likewise.
59014         * elf/reldep3.c: Likewise.
59015         * elf/reldep.c: Likewise.
59016         * elf/sprof.c: Likewise.
59017         * iconv/iconv_charmap.c: Likewise.
59018         * iconv/skeleton.c: Likewise.
59019         * iconv/strtab.c: Likewise.
59020         * io/lockf64.c: Likewise.
59021         * libio/libioP.h: Likewise.
59022         * resolv/gai_notify.c: Likewise.
59023         * resolv/ns_name.c: Likewise.
59024         * resolv/ns_samedomain.c: Likewise.
59025         * resolv/res_send.c: Likewise.
59026         * stdlib/random.c: Likewise.
59027         * sunrpc/rpc/xdr.h: Likewise.
59028         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
59029         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
59030         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
59031         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
59032         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
59033         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
59034         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
59035         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
59036         * sysdeps/mach/hurd/check_fds.c: Likewise.
59037         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
59038         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
59039         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
59040         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
59041         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
59042         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
59043         * sysdeps/pthread/aio_notify.c: Likewise.
59044         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
59045         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
59046         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
59047         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
59048         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
59049
59050 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
59051
59052         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
59053         version if bit_Slow_SSE4_2 is set.
59054         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
59055         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
59056
59057 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59058
59059         [BZ #15867]
59060         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
59061         trampoline stack frame information.
59062         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
59063         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
59064         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
59065         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
59066         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
59067         * sysdeps/unix/sysv/linux/powerpc/init-first.c
59068         (_libc_vdso_platform_setup): Initialize the signal trampolines.
59069         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
59070         sa_flags value.
59071         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
59072         interrupting a syscall and set with option SA_SIGINFO.
59073
59074 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
59075
59076         [BZ #15531]
59077         * math/s_cproj.c (__cproj): Only return an infinity if one part of
59078         argument is infinite.
59079         * math/s_cprojf.c (__cprojf): Likewise.
59080         * math/s_cprojl.c (__cprojl): Likewise.
59081         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
59082         * math/libm-test.inc (cproj_test_data): Add more tests.
59083
59084         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
59085
59086         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
59087         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
59088         size.  Use __ffs to determine corresponding shift.
59089
59090 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
59091             Roland McGrath  <roland@hack.frob.com>
59092
59093         * Makefile (INSTALL): Remove trailing blank lines from output of
59094         makeinfo.
59095
59096 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
59097
59098         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
59099         Align 32 bit compat elf_greg to 8 bytes.
59100
59101 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
59102
59103         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
59104
59105 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
59106
59107         * string/strcoll_l.c (coll_seq): New structure.
59108         (get_next_seq_cached): New function.
59109         (get_next_seq): New function.
59110         (do_compare): New function.
59111         (STRCOLL): Use GNU style definition.  Simplify implementation
59112         by using get_next_seq, get_next_seq_cached and do_compare.
59113
59114 2013-08-16  Florian Weimer  <fweimer@redhat.com>
59115
59116         [BZ #14699]
59117         CVE-2013-4237
59118         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
59119         member.
59120         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
59121         member.
59122         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
59123         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
59124         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
59125         conditional.
59126         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
59127         GETDENTS_64BIT_ALIGNED.
59128         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
59129         * manual/filesys.texi (Reading/Closing Directory): Document
59130         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
59131         strongly.
59132         * manual/conf.texi (Limits for Files): Add portability note to
59133         NAME_MAX, PATH_MAX.
59134         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
59135
59136 2013-08-13  Andreas Schwab  <schwab@suse.de>
59137
59138         [BZ #15749]
59139         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
59140         of fabs.
59141         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
59142         LDBL_MAX_EXP >= 16384]: Add tests for it.
59143
59144 2013-08-12  David S. Miller  <davem@davemloft.net>
59145
59146         * version.h (RELEASE): Set to "development".
59147         (VERSION): Set to "2.18.90".
59148         * NEWS: Add 2.19 section.
59149
59150 2013-08-03  David S. Miller  <davem@davemloft.net>
59151
59152         * po/ko.po: Update Korean translation from translation project.
59153
59154 2013-08-01  David S. Miller  <davem@davemloft.net>
59155
59156         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
59157         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
59158         Bilka.
59159
59160 2013-07-30  David S. Miller  <davem@davemloft.net>
59161
59162         * po/fr.po: Update French translation from translation project.
59163
59164 2013-07-28  David S. Miller  <davem@davemloft.net>
59165
59166         * po/cs.po: Update Czech translation from translation project.
59167
59168         * po/sv.po: Update Swedish translation from translation project.
59169
59170 2013-07-27  David S. Miller  <davem@davemloft.net>
59171
59172         * po/eo.po: Update Esperanto translation from translation project.
59173
59174         * po/vi.po: Update Vietnamese translation from translation project.
59175
59176         * po/de.po: Update German translation from translation project.
59177
59178 2013-07-26  David S. Miller  <davem@davemloft.net>
59179
59180         * po/bg.po: Update Bulgarian translation from translation project.
59181
59182         * po/nl.po: Update Dutch translation from translation project.
59183         * po/pl.po: Update Polish translation from translation project.
59184         * po/ru.po: Update Russian translation from translation project.
59185
59186 2013-07-24  David S. Miller  <davem@davemloft.net>
59187
59188         * po/libc.pot: Update.
59189
59190 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59191
59192         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
59193         variable page size.
59194         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
59195         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
59196         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
59197
59198 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
59199
59200         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
59201
59202 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
59203             Andreas Schwab  <schwab@suse.de>
59204             Roland McGrath  <roland@hack.frob.com>
59205             Joseph Myers  <joseph@codesourcery.com>
59206             Carlos O'Donell  <carlos@redhat.com>
59207
59208         [BZ #15755]
59209         * config.h.in: Define HAVE_PT_CHOWN.
59210         * config.make.in (build-pt-chown): New variable.
59211         * configure.in (--enable-pt_chown): New configure option.
59212         * configure: Regenerate.
59213         * login/Makefile: Include Makeconfig.  Build pt_chown only if
59214         build-pt-chown is enabled.
59215         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
59216         pt_chown to fix pty ownership.
59217         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
59218         CLOSE_ALL_FDS.
59219         * manual/install.texi (Configuring and compiling): Mention
59220         --enable-pt_chown. Add @findex for grantpt.
59221         * INSTALL: Regenerate.
59222
59223 2013-07-20  David S. Miller  <davem@davemloft.net>
59224
59225         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
59226         difference between 32-bit and 64-bit.
59227
59228 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
59229
59230         [BZ #15711]
59231         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
59232         Avoid system header dependency with -ffreestanding.
59233         ($(objpfx)bits/syscall%d): Likewise.
59234
59235 2013-07-13  David S. Miller  <davem@davemloft.net>
59236
59237         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
59238         underflows from atanl/atan2l due to bug 15319.
59239         (casinh_test_data): Likewise.
59240
59241 2013-07-07  David S. Miller  <davem@davemloft.net>
59242
59243         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
59244
59245 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
59246
59247         * sysdeps/i386/fpu/libm-test-ulps: Update.
59248         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59249
59250 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
59251
59252         * configure.in (--enable-lock-elision): Fix message text.
59253         * INSTALL: Regenerate.
59254         * configure: Regenerate.
59255
59256 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59257
59258         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
59259
59260 2013-07-03  Andreas Jaeger  <aj@suse.de>
59261
59262         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
59263         define.
59264         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
59265         (ptrace_peeksiginfo_args): Add.
59266         (__ptrace_peeksiginfo_flags): Add.
59267         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
59268         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
59269         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
59270
59271 2013-07-03  Allan McRae  <allan@archlinux.org>
59272
59273         * sysdeps/i386/fpu/libm-test-ulps: Update.
59274
59275 2013-07-02  David S. Miller  <davem@davemloft.net>
59276
59277         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59278
59279 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
59280
59281         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
59282
59283 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
59284
59285         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
59286         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59287
59288 2013-07-02  Andi Kleen <ak@linux.intel.com>
59289
59290         * config.h.in (ENABLE_LOCK_ELISION): Add.
59291         * configure.in (--enable-lock-elision): Add option.
59292         * manual/install.texi: Document --enable lock elision.
59293         * configure: Regenerate
59294         * INSTALL: Regenerate.
59295
59296 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
59297
59298         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
59299         SSE4.2 strcasecmp for libc.a.
59300         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
59301
59302 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
59303
59304         [BZ #13304]
59305         * soft-fp/op-common.h (_FP_FMA): New macro.
59306         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
59307         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
59308         (_FP_MUL_MEAT_1_imm): ... here.
59309         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
59310         (_FP_MUL_MEAT_1_wide): ... here.
59311         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
59312         (_FP_MUL_MEAT_1_hard): ... here.
59313         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
59314         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
59315         (_FP_MUL_MEAT_2_wide): ... here.
59316         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
59317         (_FP_MUL_MEAT_2_wide_3mul): ... here.
59318         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
59319         (_FP_MUL_MEAT_2_gmp): ... here.
59320         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
59321         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
59322         (_FP_MUL_MEAT_4_wide): ... here.
59323         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
59324         (_FP_MUL_MEAT_4_gmp): ... here.
59325         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
59326         (_FP_WFRACBITS_DW_S): Likewise.
59327         (_FP_WFRACXBITS_DW_S): Likewise.
59328         (_FP_HIGHBIT_DW_S): Likewise.
59329         (FP_FMA_S): Likewise.
59330         (_FP_FRAC_HIGH_DW_S): Likewise.
59331         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
59332         (_FP_WFRACBITS_DW_D): Likewise.
59333         (_FP_WFRACXBITS_DW_D): Likewise.
59334         (_FP_HIGHBIT_DW_D): Likewise.
59335         (FP_FMA_D): Likewise.
59336         (_FP_FRAC_HIGH_DW_D): Likewise.
59337         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
59338         (_FP_WFRACBITS_DW_E): Likewise.
59339         (_FP_WFRACXBITS_DW_E): Likewise.
59340         (_FP_HIGHBIT_DW_E): Likewise.
59341         (FP_FMA_E): Likewise.
59342         (_FP_FRAC_HIGH_DW_E): Likewise.
59343         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
59344         (_FP_WFRACBITS_DW_Q): Likewise.
59345         (_FP_WFRACXBITS_DW_Q): Likewise.
59346         (_FP_HIGHBIT_DW_Q): Likewise.
59347         (FP_FMA_Q): Likewise.
59348         (_FP_FRAC_HIGH_DW_Q): Likewise.
59349         * soft-fp/fmasf4.c: New file.
59350         * soft-fp/fmadf4.c: Likewise.
59351         * soft-fp/fmatf4.c: Likewise.
59352
59353 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
59354
59355         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
59356         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
59357         Silvermont.
59358         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
59359         macro.
59360         (index_Slow_SSE4_2): Likewise.
59361         (index_Prefer_PMINUB_for_stringop): Likewise.
59362         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
59363         bit_Slow_SSE4_2 is set.
59364         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
59365         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
59366
59367 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
59368
59369         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
59370         rtld_global._dl_hwcap2.
59371         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
59372         POWER8.
59373         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
59374         POWER8 feature descriptions defined in _dl_hwcap2.
59375         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
59376         string handling for POWER8 feature bits.
59377         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
59378         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
59379         _dl_powerpc_cap_flags.
59380         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
59381         * sysdeps/powerpc/rtld-global-offsets.sym
59382         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
59383         _dl_hwcap2 in the rtld_global_ro structure.
59384
59385 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
59386
59387         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
59388         hardware capabilities in support of AT_HWCAP2.
59389         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
59390         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
59391         GLRO(dl_hwcap2).
59392         (_dl_show_auxv): Add support for calling _dl_procinfo to display
59393         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
59394         explicitly the unknown a_type display mechanism is used.
59395         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
59396         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
59397         struct member.
59398         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
59399         to macro prototype for AT_HWCAP2 support.
59400         * sysdeps/i386/dl-procinfo.h: Likewise.
59401         * sysdeps/s390/dl-procinfo.h: Likewise.
59402         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
59403         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
59404         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
59405         return -1 for unknown a_type display fallback.
59406         * sysdeps/sparc/dl-procinfo.h: Likewise.
59407         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
59408         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
59409
59410 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
59411
59412         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
59413         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
59414
59415 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
59416
59417         [BZ #12492]
59418         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
59419         mprotect making __stack_prot writable.
59420
59421 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
59422             Joseph Myers  <joseph@codesourcery.com>
59423
59424         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
59425         as being properly aligned.
59426
59427 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
59428
59429         * dlfcn/modstatic5.c: New file.
59430         * dlfcn/tststatic5.c: New file.
59431         * dlfcn/Makefile (tests): Add tststatic5.
59432         (tests-static): Likewise.
59433         (modules-names): Add modstatic5.
59434         (tststatic5-ENV): New variable.
59435         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
59436
59437         [BZ #15022]
59438         * elf/dl-support.c (_dl_main_map): New variable.
59439         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
59440         (_dl_nns, _dl_load_adds): Set to 1.
59441         (_dl_initial_searchlist): Refer to _dl_main_map.
59442         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
59443         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
59444         call to _dl_get_origin.
59445         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
59446         around call_map.
59447         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
59448         * dlfcn/modstatic3.c: New file.
59449         * dlfcn/tststatic3.c: New file.
59450         * dlfcn/tststatic4.c: New file.
59451         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
59452         (tests-static): Likewise.
59453         (modules-names): Add modstatic3.
59454         (tststatic3-ENV, tststatic4-ENV): New variables.
59455         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
59456         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
59457
59458 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
59459
59460         * configure.in (CC): Require GCC version 4.4 or later.
59461         * configure: Regenerated.
59462         * manual/install.texi (Tools for Compilation): Update GCC version
59463         requirement.
59464         * INSTALL: Regenerated.
59465
59466 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
59467
59468         [BZ #15674]
59469         * string/test-memcmp.c (check2): New.
59470         (main): Call check2.
59471
59472         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
59473
59474 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
59475
59476         [BZ #15022]
59477         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
59478         over to...
59479         (dl_open_worker) [!SHARED]: ... here.
59480
59481 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
59482
59483         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
59484
59485 2013-06-25  Richard Henderson  <rth@redhat.com>
59486
59487         * locale/programs/locarchive.c: Include <libc-internal.h>
59488
59489 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
59490
59491         * manual/texinfo.tex: Update to version 2013-06-21.17, with
59492         trailing whitespace removed.
59493
59494 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
59495
59496         [BZ #10283]
59497         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
59498         * locale/programs/locarchive.c: Include libc-mmap.h.
59499         (prepare_address_space): Take two new outputs (the mmap base and len).
59500         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
59501         values.
59502         (create_archive): Declare new mmap base and len values for
59503         prepare_address_space, and store the result in ah.
59504         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
59505         (enlarge_archive): If ah->mmap_base is not NULL, use that and
59506         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
59507         Declare new mmap base and len values for
59508         prepare_address_space, and store the result in new_ah.
59509         (open_archive): Declare new mmap base and len values for
59510         prepare_address_space, and store the result in ah.
59511         (close_archive): If ah->mmap_base is not NULL, use that and
59512         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
59513         * sysdeps/generic/libc-mmap.h: New file.
59514
59515 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
59516
59517         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
59518         (ALIGN_UP): Likewise.
59519         (PTR_ALIGN_DOWN): Likewise.
59520         (PTR_ALIGN_UP): Likewise.
59521
59522 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
59523
59524         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
59525         entry mapped to PPC_PLATFORM_POWER8.
59526         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
59527         POWER8.
59528         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
59529         (_dl_string_platform): Add case for exporting platform position for
59530         POWER8.
59531         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
59532         search path to sysdeps/powerpc/powerpc32/power8 directory.
59533         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
59534         search path to sysdeps/powerpc/powerpc64/power8 directory.
59535         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
59536         power7 directories.
59537         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
59538         power7 directories.
59539
59540 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
59541
59542         * INSTALL: Regenerate.
59543
59544         * nscd/connections.c (nscd_init): Fix comment.
59545
59546 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
59547
59548         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
59549
59550         [BZ #15667]
59551         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
59552         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
59553
59554 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
59555
59556         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
59557         DL_DST_REQ_STATIC.
59558         (DL_DST_REQ_STATIC): Remove macro.
59559
59560 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
59561
59562         [BZ #7006]
59563         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
59564         with a shift of 0 bits.
59565
59566 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
59567
59568         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
59569         $(tststatic-ENV).
59570
59571 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
59572
59573         [BZ #15655]
59574         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
59575
59576 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59577
59578         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
59579         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
59580         accepts -fno-tree-loop-distribute-patterns.
59581         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
59582         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
59583         recursive call.
59584         * string/memset.c (memset): Likewise.
59585         * string/test-memmove.c (simple_memmove): Disable loop transformation
59586         to library calls.
59587         * string/test-memset.c (simple_memset): Likewise.
59588         * benchtests/bench-memmove.c (simple_memmove): Likewise.
59589         * benchtests/bench-memset.c (simple_memset): Likewise.
59590         * configure: Regenerated.
59591
59592 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
59593
59594         * math/test-misc.c (main): Ignore fesetround failure when failures
59595         of subsequent rounding tests would be ignored.
59596
59597         [BZ #15654]
59598         * math/fedisblxcpt.c (fedisableexcept): Return 0.
59599         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
59600         * math/fegetenv.c (__fegetenv): Return 0.
59601         * math/fegetexcept.c (fegetexcept): Return 0.
59602         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
59603         FE_TONEAREST.
59604         * math/feholdexcpt.c (feholdexcept): Return 0.
59605         * math/fesetenv.c (__fesetenv): Return 0.
59606         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
59607         argument FE_TONEAREST.
59608         * math/feupdateenv.c (__feupdateenv): Return 0.
59609         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
59610
59611 2013-06-18  Roland McGrath  <roland@hack.frob.com>
59612
59613         * elf/rtld-Rules (rtld-compile-command.S): New variable.
59614         (rtld-compile-command.s, rtld-compile-command.c): New variables.
59615         ($(objpfx)rtld-%.os rules): Use them.
59616
59617 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59618
59619         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
59620         fields.
59621
59622 2013-06-17  Roland McGrath  <roland@hack.frob.com>
59623
59624         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
59625         length of target pattern, then descending length of dependency pattern.
59626         * configure.in (AWK): Require gawk 3.1.2 or newer.
59627         * manual/install.texi (Tools for Compilation): Say that we do.
59628         * configure: Regenerated.
59629
59630         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
59631         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
59632         * scripts/sysd-rules.awk: ... this new script.
59633         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
59634         than a glob-style pattern.
59635
59636 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
59637
59638         * math/test-misc.c (main): Do not treat incorrectly rounded
59639         conversions as failure unless ROUNDING_TESTS passes.
59640
59641 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
59642
59643         [BZ #15631]
59644         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
59645         restore exception state around main square root computation, then
59646         check for inexactness explicitly.
59647
59648         * math/libm-test.inc (fma_test_data): Add another test.
59649
59650 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
59651
59652         * manual/threads.texi (Non-POSIX Extensions): New document
59653         node.  Document pthread_getattr_default_np and
59654         pthread_setattr_default_np.
59655
59656         * Versions.def (libpthread): Add GLIBC_2.18.
59657         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
59658         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
59659         Likewise.
59660         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
59661         Likewise.
59662         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
59663         Likewise.
59664         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
59665         Likewise.
59666         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
59667         Likewise.
59668         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
59669         Likewise.
59670         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
59671         Likewise.
59672         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
59673         Likewise.
59674         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
59675         Likewise.
59676
59677 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
59678
59679         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
59680         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
59681
59682 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
59683             H.J. Lu  <hjl.tools@gmail.com>
59684
59685         [BZ #15627]
59686         * sysdeps/x86_64/rtld-memset.c: Remove file.
59687         * sysdeps/x86_64/rtld-memset.S: New file.
59688
59689 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
59690
59691         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
59692         (test_in_one_mode): Take arguments for whether the rounding mode
59693         is supported for each floating-point type.
59694         (do_test): Pass new arguments to test_in_one_mode using
59695         ROUNDING_TESTS.
59696
59697 2013-06-13  Roland McGrath  <roland@hack.frob.com>
59698
59699         * posix/tst-waitid.c (do_test): Distinguish different instances of
59700         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
59701         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
59702         before entering the kernel for waitpid.
59703
59704 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
59705
59706         * NEWS: Fix note on clock function precision.  Text by Roland
59707         McGrath.
59708
59709 2013-06-13  Roland McGrath  <roland@hack.frob.com>
59710
59711         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
59712         it into place only when and if the sanity check passes.
59713
59714 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
59715
59716         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
59717         output for whether conversion result is exact.  Take argument
59718         indicating whether type is IBM long double.
59719         (round_for_all): Change need_exact field to ibm_ld.
59720         * stdlib/tst-strtod-round.c (struct exactness): New type.
59721         (struct test): Change bool ld_ok field to struct exactness exact.
59722         (TEST): Update all definitions for change to field.
59723         (tests): Regenerate array contents.
59724         (test_in_one_mode): Take pointer to new field instead of old ld_ok
59725         field value.  Check for IBM long double here.
59726         (do_test): Update calls to test_in_one_mode.
59727
59728 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
59729
59730         [BZ #12515]
59731         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
59732         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
59733
59734 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59735
59736         [BZ #15605]
59737         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
59738         generated by the compiler on loop optimizations.
59739         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
59740         general definitions.
59741
59742 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
59743
59744         * math/bug-nextafter.c: Include <math-tests.h>.
59745         (main): Only test for exceptions if EXCEPTION_TESTS is true for
59746         the relevant type.
59747         * math/bug-nexttoward.c: Include <math-tests.h>.
59748         (main): Only test for exceptions if EXCEPTION_TESTS is true for
59749         the relevant type.
59750         * math/test-misc.c: Include <math-tests.h>.
59751         (main): Only test for exceptions if EXCEPTION_TESTS is true for
59752         the relevant type.
59753
59754 2013-06-12  Andreas Jaeger  <aj@suse.de>
59755
59756         * po/ia.po: Update Interlingua translation from translation
59757         project.
59758
59759 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
59760
59761         * include/fenv.h: Include stdbool.h.
59762         (struct rm_ctx): New structure.
59763         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
59764         Define macro.
59765         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
59766         (SET_RESTORE_ROUNDF): Likewise.
59767         (SET_RESTORE_ROUNDL): Likewise.
59768         (SET_RESTORE_ROUND_NOEX): Likewise.
59769         (SET_RESTORE_ROUND_NOEXF): Likewise.
59770         (SET_RESTORE_ROUND_NOEXL): Likewise.
59771         (SET_RESTORE_ROUND_53BIT): Likewise.
59772         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
59773         (libc_feresetround_noexf_ctx): Likewise.
59774         (libc_feresetround_noexl_ctx): Likewise.
59775         (libc_feholdsetround_53bit_ctx): Likewise.
59776         (libc_feresetround_53bit_ctx): Likewise.
59777         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
59778         (libc_feholdexcept_setround_sse_ctx): New function.
59779         (libc_fesetenv_sse_ctx): Likewise.
59780         (libc_feupdateenv_sse_ctx): Likewise.
59781         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
59782         (libc_feholdexcept_setround_387_ctx): Likewise.
59783         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
59784         (libc_feholdsetround_387_prec_ctx): Likewise.
59785         (libc_feholdsetround_387_ctx): Likewise.
59786         (libc_feholdsetround_387_53bit_ctx): Likewise.
59787         (libc_feholdsetround_sse_ctx): Likewise.
59788         (libc_feresetround_sse_ctx): Likewise.
59789         (libc_feresetround_387_ctx): Likewise.
59790         (libc_feupdateenv_387_ctx): Likewise.
59791         (libc_feholdexcept_setroundf_ctx): Define macro.
59792         (libc_fesetenvf_ctx): Likewise.
59793         (libc_feupdateenvf_ctx): Likewise.
59794         (libc_feholdsetroundf_ctx): Likewise.
59795         (libc_feresetroundf_ctx): Likewise.
59796         (libc_feholdexcept_setround_ctx): Likewise.
59797         (libc_fesetenv_ctx): Likewise.
59798         (libc_feupdateenv_ctx): Likewise.
59799         (libc_feholdsetround_ctx): Likewise.
59800         (libc_feresetround_ctx): Likewise.
59801         (libc_feholdexcept_setroundl_ctx): Likewise.
59802         (libc_feupdateenvl_ctx): Likewise.
59803         (libc_feholdsetroundl_ctx): Likewise.
59804         (libc_feresetroundl_ctx): Likewise.
59805         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
59806         (libc_feresetround_53bit_ctx): Likewise.
59807
59808 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
59809
59810         * locale/iso-639.def: Convert to UTF-8.
59811
59812 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
59813
59814         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
59815         (EXCEPTION_TESTS_double): Likewise.
59816         (EXCEPTION_TESTS_long_double): Likewise.
59817         (EXCEPTION_TESTS): Likewise.
59818         * math/libm-test.inc (test_exceptions): Only test exceptions if
59819         EXCEPTION_TESTS (FLOAT).
59820
59821 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
59822
59823         * benchtests/Makefile (string-bench): Add strcpy_chk and
59824         stpcpy_chk.
59825         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
59826         * benchtests/bench-stpcpy_chk.c: New file.
59827         * benchtests/bench-strcpy_chk-ifunc.c: New file.
59828         * benchtests/bench-strcpy_chk.c: New file.
59829         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
59830         code.
59831         (do_test): Likewise.
59832
59833 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
59834
59835         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
59836         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
59837         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
59838         with tabs where appropriate.
59839         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
59840         dl-procinfo.h.
59841         [PPC_PLATFORM_PPC440]: Likewise.
59842         [PPC_PLATFORM_PPC464]: Likewise.
59843         [PPC_PLATFORM_PPC476]: Likewise.
59844         (_dl_string_platform): Add support for detecting ppc405, ppc440,
59845         ppc464, and ppc476 platform strings merging from ports/
59846         dl-procinfo.h.
59847
59848 2013-06-11  Andreas Schwab  <schwab@suse.de>
59849
59850         [BZ #14991]
59851         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
59852         (from_ucs4_idx): Regenerate.
59853         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
59854         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
59855         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
59856         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
59857         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
59858         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
59859         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
59860         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
59861         from FROM_LOOP and TO_LOOP specific macros.
59862         (BODY): Handle combining characters.
59863         * iconvdata/BIG5HKSCS.irreversible: Update.
59864         * iconvdata/BIG5HKSCS.precomposed: New file.
59865         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
59866         characters.
59867         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
59868
59869 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
59870
59871         * include/sys/time.h: Fix indentation and add copyright header.
59872
59873         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
59874         (do_test): Likewise.
59875         * string/test-memchr.c (do_one_test): Likewise.
59876         (do_test): Likewise.
59877         * string/test-memcmp.c (do_one_test): Likewise.
59878         (do_test): Likewise.
59879         * string/test-memcpy.c (do_one_test): Likewise.
59880         (do_test): Likewise.
59881         * string/test-memmem.c (do_one_test): Likewise.
59882         (do_test): Likewise.
59883         (do_random_tests): Likewise.
59884         * string/test-memmove.c (do_one_test): Likewise.
59885         (do_test): Likewise.
59886         * string/test-memset.c (do_one_test): Likewise.
59887         (do_test): Likewise.
59888         * string/test-rawmemchr.c (do_one_test): Likewise.
59889         (do_test): Likewise.
59890         * string/test-strcasecmp.c (do_one_test): Likewise.
59891         (do_test): Likewise.
59892         * string/test-strcasestr.c (do_one_test): Likewise.
59893         (do_test): Likewise.
59894         * string/test-strcat.c (do_one_test): Likewise.
59895         (do_test): Likewise.
59896         * string/test-strchr.c (do_one_test): Likewise.
59897         (do_test): Likewise.
59898         * string/test-strcmp.c (do_one_test): Likewise.
59899         (do_test): Likewise.
59900         * string/test-strcpy.c (do_one_test): Likewise.
59901         (do_test): Likewise.
59902         * string/test-string.h: Likewise.
59903         (test_init): Likewise.
59904         * string/test-strlen.c (do_one_test): Likewise.
59905         (do_test): Likewise.
59906         * string/test-strncasecmp.c (do_one_test): Likewise.
59907         (do_test): Likewise.
59908         * string/test-strncat.c (do_one_test): Likewise.
59909         (do_test): Likewise.
59910         * string/test-strncmp.c (do_one_test): Likewise.
59911         (do_test_limit): Likewise.
59912         (do_test): Likewise.
59913         * string/test-strncpy.c (do_one_test): Likewise.
59914         (do_test): Likewise.
59915         * string/test-strnlen.c (do_one_test): Likewise.
59916         (do_test): Likewise.
59917         * string/test-strpbrk.c (do_one_test): Likewise.
59918         (do_test): Likewise.
59919         * string/test-strrchr.c (do_one_test): Likewise.
59920         (do_test): Likewise.
59921         * string/test-strspn.c (do_one_test): Likewise.
59922         (do_test): Likewise.
59923         * string/test-strstr.c (do_one_test): Likewise.
59924         (do_test): Likewise.
59925
59926         * benchtests/Makefile (string-bench): Add string benchmarks.
59927         * benchtests/bench-bcopy-ifunc.c: New file.
59928         * benchtests/bench-bcopy.c: New file.
59929         * benchtests/bench-bzero-ifunc.c: New file.
59930         * benchtests/bench-bzero.c: New file.
59931         * benchtests/bench-memccpy-ifunc.c: New file.
59932         * benchtests/bench-memccpy.c: New file.
59933         * benchtests/bench-memchr-ifunc.c: New file.
59934         * benchtests/bench-memchr.c: New file.
59935         * benchtests/bench-memcmp-ifunc.c: New file.
59936         * benchtests/bench-memcmp.c: New file.
59937         * benchtests/bench-memmem-ifunc.c: New file.
59938         * benchtests/bench-memmem.c: New file.
59939         * benchtests/bench-memmove-ifunc.c: New file.
59940         * benchtests/bench-memmove.c: New file.
59941         * benchtests/bench-mempcpy-ifunc.c: New file.
59942         * benchtests/bench-mempcpy.c: New file.
59943         * benchtests/bench-memset-ifunc.c: New file.
59944         * benchtests/bench-memset.c: New file.
59945         * benchtests/bench-rawmemchr-ifunc.c: New file.
59946         * benchtests/bench-rawmemchr.c: New file.
59947         * benchtests/bench-stpcpy-ifunc.c: New file.
59948         * benchtests/bench-stpcpy.c: New file.
59949         * benchtests/bench-stpncpy-ifunc.c: New file.
59950         * benchtests/bench-stpncpy.c: New file.
59951         * benchtests/bench-strcasecmp-ifunc.c: New file.
59952         * benchtests/bench-strcasecmp.c: New file.
59953         * benchtests/bench-strcasestr-ifunc.c: New file.
59954         * benchtests/bench-strcasestr.c: New file.
59955         * benchtests/bench-strcat-ifunc.c: New file.
59956         * benchtests/bench-strcat.c: New file.
59957         * benchtests/bench-strchr-ifunc.c: New file.
59958         * benchtests/bench-strchr.c: New file.
59959         * benchtests/bench-strchrnul-ifunc.c: New file.
59960         * benchtests/bench-strchrnul.c: New file.
59961         * benchtests/bench-strcmp-ifunc.c: New file.
59962         * benchtests/bench-strcmp.c: New file.
59963         * benchtests/bench-strcpy-ifunc.c: New file.
59964         * benchtests/bench-strcpy.c: New file.
59965         * benchtests/bench-strcspn-ifunc.c: New file.
59966         * benchtests/bench-strcspn.c: New file.
59967         * benchtests/bench-strlen-ifunc.c: New file.
59968         * benchtests/bench-strlen.c: New file.
59969         * benchtests/bench-strncasecmp-ifunc.c: New file.
59970         * benchtests/bench-strncasecmp.c: New file.
59971         * benchtests/bench-strncat-ifunc.c: New file.
59972         * benchtests/bench-strncat.c: New file.
59973         * benchtests/bench-strncmp-ifunc.c: New file.
59974         * benchtests/bench-strncmp.c: New file.
59975         * benchtests/bench-strncpy-ifunc.c: New file.
59976         * benchtests/bench-strncpy.c: New file.
59977         * benchtests/bench-strnlen-ifunc.c: New file.
59978         * benchtests/bench-strnlen.c: New file.
59979         * benchtests/bench-strpbrk-ifunc.c: New file.
59980         * benchtests/bench-strpbrk.c: New file.
59981         * benchtests/bench-strrchr-ifunc.c: New file.
59982         * benchtests/bench-strrchr.c: New file.
59983         * benchtests/bench-strspn-ifunc.c: New file.
59984         * benchtests/bench-strspn.c: New file.
59985         * benchtests/bench-strstr-ifunc.c: New file.
59986         * benchtests/bench-strstr.c: New file.
59987
59988         * benchtests/Makefile: Disable parallel execution of targets.
59989         (string-bench): Add memcpy.
59990         (benchset): New variable to store a list of benchmark sets.
59991         (bench-func): Renamed from bench.
59992         (bench-set): New target.
59993         (bench): Depend on bench-func and bench-set.
59994         * benchtests/README: Add section on benchmark sets.
59995         * benchtests/bench-memcpy-ifunc.c: New file.
59996         * benchtests/bench-memcpy.c: New file.
59997         * benchtests/bench-string.h: New file.
59998
59999 2013-06-11  Andreas Schwab  <schwab@suse.de>
60000
60001         [BZ #15577]
60002         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
60003         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
60004         values in the triple.
60005         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
60006         terminator in the group key.
60007
60008 2013-06-11  Andreas Jaeger  <aj@suse.de>
60009
60010         * po/zh_TW.po: Update Chinese (traditional) translation from
60011         translation project.
60012
60013 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
60014
60015         * include/time.h (__clock_gettime): Add libc_hidden_proto.
60016         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
60017         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
60018         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
60019         (clock_getcpuclockid): Likewise.
60020         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
60021         Add weak_alias and libc_hidden_def.
60022         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
60023         * rt/clock_gettime.c (clock_gettime): Rename to
60024         __clock_gettime.  Add weak_alias and libc_hidden_def.
60025         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
60026         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
60027         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
60028         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
60029         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
60030         Likewise.
60031         * rt/clock_settime.c (clock_settime): Rename to
60032         __clock_settime.  Add weak_alias and libc_hidden_def.
60033         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
60034
60035 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
60036
60037         * mach/err_boot.sub: Remove trailing whitespace.
60038         * mach/err_ipc.sub: Likewise.
60039         * mach/err_mach.sub: Likewise.
60040
60041         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
60042         (ROUNDING_TESTS_double): Likewise.
60043         (ROUNDING_TESTS_long_double): Likewise.
60044         (ROUNDING_TESTS): Likewise.
60045         * math/libm-test.inc: Include <math-tests.h>.
60046         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
60047         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
60048         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
60049         (IF_ROUND_INIT_FE_UPWARD): Likewise.
60050
60051 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
60052
60053         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
60054         of assigning.
60055
60056 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
60057
60058         * sysdeps/gnu/errlist.awk: Do not generate space at end of
60059         otherwise empty TRANS lines.
60060         * sysdeps/gnu/errlist.c: Regenerated.
60061
60062         * catgets/gencat.c (error_print): Use (void) in function
60063         definition.
60064         * crypt/crypt_util.c (__init_des): Likewise.
60065         * crypt/speeds.c (Stop): Likewise.
60066         (main): Likewise.
60067         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
60068         * inet/ruserpass.c (token): Likewise.
60069         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
60070         * intl/localealias.c (extend_alias_table): Likewise.
60071         * intl/plural-exp.c (init_germanic_plural): Likewise.
60072         * libio/fcloseall.c (__fcloseall): Likewise.
60073         * libio/genops.c (_IO_flush_all): Likewise.
60074         (_IO_flush_all_linebuffered): Likewise.
60075         (_IO_cleanup): Likewise.
60076         (_IO_iter_begin): Likewise.
60077         (_IO_iter_end): Likewise.
60078         (_IO_list_lock): Likewise.
60079         (_IO_list_unlock): Likewise.
60080         (_IO_list_resetlock): Likewise.
60081         * libio/getchar.c (getchar): Likewise.
60082         * libio/getchar_u.c (getchar_unlocked): Likewise.
60083         * libio/getwchar.c (getwchar): Likewise.
60084         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
60085         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
60086         * login/getpt.c (__getpt): Likewise.
60087         * login/tst-utmp.c (main): Likewise.
60088         * malloc/hooks.c (__malloc_check_init): Likewise.
60089         * malloc/malloc.c (__malloc_stats): Likewise.
60090         * malloc/mtrace.c (tr_break): Likewise.
60091         (mtrace): Likewise.
60092         (muntrace): Likewise.
60093         * misc/fstab.c (endfsent): Likewise.
60094         * misc/getclktck.c (__getclktck): Likewise.
60095         * misc/getdtsz.c (__getdtablesize): Likewise.
60096         * misc/gethostid.c (gethostid): Likewise.
60097         * misc/getpagesize.c (__getpagesize): Likewise.
60098         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
60099         (__get_nprocs): Likewise.
60100         (__get_phys_pages): Likewise.
60101         (__get_avphys_pages): Likewise.
60102         * misc/getttyent.c (getttyent): Likewise.
60103         (setttyent): Likewise.
60104         (endttyent): Likewise.
60105         * misc/getusershell.c (getusershell): Likewise.
60106         (endusershell): Likewise.
60107         (setusershell): Likewise.
60108         (initshells): Likewise.
60109         * misc/hsearch.c (__hdestroy): Likewise.
60110         * misc/sync.c (sync): Likewise.
60111         * misc/syslog.c (closelog_internal): Likewise.
60112         (closelog): Likewise.
60113         * misc/ttyslot.c (ttyslot): Likewise.
60114         * misc/vhangup.c (vhangup): Likewise.
60115         * posix/fork.c (__fork): Likewise.
60116         * posix/getegid.c (__getegid): Likewise.
60117         * posix/geteuid.c (__geteuid): Likewise.
60118         * posix/getgid.c (__getgid): Likewise.
60119         * posix/getpid.c (__getpid): Likewise.
60120         * posix/getppid.c (__getppid): Likewise.
60121         * posix/getuid.c (__getuid): Likewise.
60122         * posix/pause.c (pause): Likewise.
60123         * posix/setpgrp.c (setpgrp): Likewise.
60124         * posix/setsid.c (__setsid): Likewise.
60125         * posix/test-vfork.c (noop): Likewise.
60126         * resolv/gethnamaddr.c (_endhtent): Likewise.
60127         (_gethtent): Likewise.
60128         (ht_endhostent): Likewise.
60129         (gethostent): Likewise.
60130         (dns_service): Likewise.
60131         * stdlib/drand48.c (drand48): Likewise.
60132         * stdlib/lrand48.c (lrand48): Likewise.
60133         * stdlib/mrand48.c (mrand48): Likewise.
60134         * stdlib/rand.c (rand): Likewise.
60135         * stdlib/random.c (__random): Likewise.
60136         * stdlib/setenv.c (clearenv): Likewise.
60137         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
60138         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
60139         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
60140         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
60141         (__get_nprocs): Likewise.
60142         (__get_phys_pages): Likewise.
60143         (__get_avphys_pages): Likewise.
60144         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
60145         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
60146         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
60147         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
60148         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
60149         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
60150         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
60151         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
60152         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
60153         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
60154         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
60155         * sysdeps/mach/hurd/sync.c (sync): Likewise.
60156         * sysdeps/posix/clock.c (clock): Likewise.
60157         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
60158         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
60159         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
60160         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
60161         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
60162         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
60163         (__get_nprocs_conf): Likewise.
60164         (__get_phys_pages): Likewise.
60165         (__get_avphys_pages): Likewise.
60166         * time/clock.c (clock): Likewise.
60167         * time/tzset.c (__tzname_max): Likewise.
60168
60169 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
60170
60171         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
60172         (__bswap_32): Do not use "register".
60173         * crypt/crypt.c (_ufc_doit_r): Likewise.
60174         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
60175         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
60176         * gmon/gmon.c (__monstartup): Likewise.
60177         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
60178         * hurd/hurdmalloc.c (more_memory): Likewise.
60179         (malloc): Likewise.
60180         (free): Likewise.
60181         (realloc): Likewise.
60182         (malloc_fork_prepare): Likewise.
60183         (malloc_fork_parent): Likewise.
60184         (malloc_fork_child): Likewise.
60185         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
60186         (_svcauth_des): Likewise.
60187         * inet/inet_lnaof.c (inet_lnaof): Likewise.
60188         * inet/inet_net.c (inet_network): Likewise.
60189         * inet/inet_netof.c (inet_netof): Likewise.
60190         * inet/rcmd.c (__validuser2_sa): Likewise.
60191         * io/fts.c (fts_open): Likewise.
60192         (fts_load): Likewise.
60193         (fts_close): Likewise.
60194         (fts_read): Likewise.
60195         (fts_children): Likewise.
60196         (fts_build): Likewise.
60197         (fts_stat): Likewise.
60198         (fts_sort): Likewise.
60199         (fts_alloc): Likewise.
60200         (fts_lfree): Likewise.
60201         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
60202         (_IO_file_xsgetn): Likewise.
60203         (_IO_file_xsgetn_mmap): Likewise.
60204         * libio/iofopncook.c (_IO_cookie_read): Likewise.
60205         (_IO_cookie_write): Likewise.
60206         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
60207         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
60208         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
60209         * malloc/obstack.c (_obstack_begin): Likewise.
60210         (_obstack_begin_1): Likewise.
60211         (_obstack_newchunk): Likewise.
60212         (_obstack_allocated_p): Likewise.
60213         (obstack_free): Likewise.
60214         (_obstack_memory_used): Likewise.
60215         * misc/getttyent.c (getttynam): Likewise.
60216         (getttyent): Likewise.
60217         (skip): Likewise.
60218         (value): Likewise.
60219         * misc/getusershell.c (initshells): Likewise.
60220         * misc/syslog.c (__vsyslog_chk): Likewise.
60221         * misc/ttyslot.c (ttyslot): Likewise.
60222         * nis/nis_hash.c (__nis_hash): Likewise.
60223         * posix/fnmatch_loop.c (FCT): Likewise.
60224         * posix/getconf.c (print_all): Likewise.
60225         (main): Likewise.
60226         * posix/getopt.c (exchange): Likewise.
60227         * posix/glob.c (globfree): Likewise.
60228         (prefix_array): Likewise.
60229         (__glob_pattern_type): Likewise.
60230         * resolv/arpa/nameser.h (NS_GET16): Likewise.
60231         (NS_GET32): Likewise.
60232         (NS_PUT16): Likewise.
60233         (NS_PUT32): Likewise.
60234         * resolv/gethnamaddr.c (getanswer): Likewise.
60235         (gethostbyname2): Likewise.
60236         (gethostbyaddr): Likewise.
60237         (_gethtent): Likewise.
60238         (_gethtbyname2): Likewise.
60239         (_gethtbyaddr): Likewise.
60240         * resolv/ns_print.c (dst_s_get_int16): Likewise.
60241         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
60242         * resolv/res_init.c (__res_vinit): Likewise.
60243         (net_mask): Likewise.
60244         * resolv/res_mkquery.c (outchar): Likewise.
60245         (PRINT): Likewise.
60246         * stdio-common/printf_fp.c (outchar): Likewise.
60247         (PRINT): Likewise.
60248         * stdio-common/printf_fphex.c (outchar): Likewise.
60249         (PRINT): Likewise.
60250         * stdio-common/printf_size.c (outchar): Likewise.
60251         (PRINT): Likewise.
60252         * stdio-common/test_rdwr.c (main): Likewise.
60253         * stdio-common/tfformat.c (matches): Likewise.
60254         * stdio-common/vfprintf.c (outchar): Likewise.
60255         (printf_unknown): Likewise.
60256         (buffered_vfprintf): Likewise.
60257         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
60258         * stdio-common/xbug.c (AppendToBuffer): Likewise.
60259         (ReadFile): Likewise.
60260         * stdlib/qsort.c (SWAP): Likewise.
60261         (_quicksort): Likewise.
60262         * stdlib/setenv.c (__add_to_environ): Likewise.
60263         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
60264         * stdlib/strtol_l.c (__strtol_l): Likewise.
60265         * stdlib/tst-strtod.c (main): Likewise.
60266         * stdlib/tst-strtol.c (main): Likewise.
60267         * stdlib/tst-strtoll.c (main): Likewise.
60268         * string/bits/string2.h (__strcmp_cc): Likewise.
60269         (__strcmp_cg): Likewise.
60270         (__strcspn_c1): Likewise.
60271         (__strcspn_c2): Likewise.
60272         (__strcspn_c3): Likewise.
60273         (__strspn_c1): Likewise.
60274         (__strspn_c2): Likewise.
60275         (__strspn_c3): Likewise.
60276         (__strsep_1c): Likewise.
60277         (__strsep_2c): Likewise.
60278         (__strsep_3c): Likewise.
60279         * string/memccpy.c (__memccpy): Likewise.
60280         * string/stpcpy.c (__stpcpy): Likewise.
60281         * string/strcmp.c (strcmp): Likewise.
60282         * string/strrchr.c (strrchr): Likewise.
60283         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
60284         Likewise.
60285         * sysdeps/mach/hurd/getcwd.c
60286         (_hurd_canonicalize_directory_name_internal): Likewise.
60287         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
60288         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
60289         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
60290         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
60291         Likewise, in both definitions.
60292         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
60293         definitions.
60294         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
60295         64] (__bswap_64): Likewise.
60296         * time/test_time.c (main): Likewise.
60297         * time/tzfile.c (__tzfile_read): Likewise.
60298         (__tzfile_compute): Likewise.
60299         * time/tzset.c (__tzset_parse_tz): Likewise.
60300         (tzset_internal): Likewise.
60301         (compute_change): Likewise.
60302         * wcsmbs/wcscat.c (__wcscat): Likewise.
60303         * wcsmbs/wcschr.c (wcschr): Likewise.
60304         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
60305         * wcsmbs/wcscspn.c (wcscspn): Likewise.
60306         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
60307         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
60308         * wcsmbs/wcsspn.c (wcsspn): Likewise.
60309         * wcsmbs/wcsstr.c (wcsstr): Likewise.
60310         * wcsmbs/wmemchr.c (wmemchr): Likewise.
60311         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
60312         * wcsmbs/wmemset.c (wmemset): Likewise.
60313
60314 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
60315
60316         * scripts/config.guess: Update to version 2013-05-16.
60317         * scripts/config.sub: Update to version 2013-04-24.
60318         * scripts/install-sh: Update to version 2011-11-20.07.
60319         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
60320         * scripts/move-if-change: Update to version 2012-01-06 07:23.
60321
60322 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
60323
60324         * debug/fgetws_u_chk.c: Fix leading whitespaces.
60325         * elf/sln.c: Likewise.
60326         * hurd/hurd/ioctl.h: Likewise.
60327         * hurd/hurdmalloc.c: Likewise.
60328         * hurd/xattr.c: Likewise.
60329         * include/shlib-compat.h: Likewise.
60330         * inet/ruserpass.c: Likewise.
60331         * libio/iofgets_u.c: Likewise.
60332         * libio/iofgetws_u.c: Likewise.
60333         * locale/programs/ld-identification.c: Likewise.
60334         * locale/programs/ld-time.c: Likewise.
60335         * mach/msg-destroy.c: Likewise.
60336         * nss/nss_files/files-netgrp.c: Likewise.
60337         * resolv/res_data.c: Likewise.
60338         * soft-fp/op-1.h: Likewise.
60339         * soft-fp/op-2.h: Likewise.
60340         * soft-fp/op-4.h: Likewise.
60341         * soft-fp/op-common.h: Likewise.
60342         * stdio-common/printf_fphex.c: Likewise.
60343         * stdlib/strtod_l.c: Likewise.
60344         * sunrpc/rpc/clnt.h: Likewise.
60345         * sysdeps/generic/framestate.c: Likewise.
60346         * sysdeps/i386/bsd-_setjmp.S: Likewise.
60347         * sysdeps/i386/bsd-setjmp.S: Likewise.
60348         * sysdeps/i386/__longjmp.S: Likewise.
60349         * sysdeps/i386/setjmp.S: Likewise.
60350         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
60351         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
60352         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
60353         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
60354         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
60355         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
60356         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
60357         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
60358         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
60359         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
60360         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
60361         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
60362         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
60363         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
60364         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
60365         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
60366         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
60367         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
60368         * sysdeps/ieee754/support.c: Likewise.
60369         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
60370         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
60371         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
60372         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
60373         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
60374         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
60375         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
60376         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
60377         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
60378         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
60379         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
60380         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
60381         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
60382         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
60383         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
60384         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
60385         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
60386         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
60387
60388 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
60389
60390         * posix/transbug.c: Remove executable mode.
60391
60392 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
60393
60394         * crypt/speeds.c: Remove trailing whitespace.
60395         * dlfcn/default.c: Likewise.
60396         * elf/ifuncdep2.c: Likewise.
60397         * elf/ifuncmain1.c: Likewise.
60398         * elf/ifuncmain1vis.c: Likewise.
60399         * elf/testobj.h: Likewise.
60400         * elf/tst-stackguard1.c: Likewise.
60401         * gmon/sys/gmon.h: Likewise.
60402         * hurd/hurdmsg.c: Likewise.
60403         * hurd/new-fd.c: Likewise.
60404         * hurd/ports-get.c: Likewise.
60405         * iconvdata/ibm1008_420.c: Likewise.
60406         * inet/tst-getni1.c: Likewise.
60407         * inet/tst-getni2.c: Likewise.
60408         * libio/ioungetc.c: Likewise.
60409         * libio/wfiledoalloc.c: Likewise.
60410         * manual/libm-err-tab.pl: Likewise.
60411         * math/w_dremf.c: Likewise.
60412         * misc/ftruncate.c: Likewise.
60413         * posix/bug-glob2.c: Likewise.
60414         * posix/tst-pcre.c: Likewise.
60415         * posix/wait4.c: Likewise.
60416         * resolv/README: Likewise.
60417         * resolv/res_debug.h: Likewise.
60418         * resolv/tst-inet_ntop.c: Likewise.
60419         * setjmp/bug269-setjmp.c: Likewise.
60420         * soft-fp/extended.h: Likewise.
60421         * soft-fp/op-1.h: Likewise.
60422         * soft-fp/op-2.h: Likewise.
60423         * soft-fp/op-4.h: Likewise.
60424         * soft-fp/op-8.h: Likewise.
60425         * soft-fp/testit.c: Likewise.
60426         * stdio-common/bug16.c: Likewise.
60427         * stdlib/random.c: Likewise.
60428         * sunrpc/rpcsvc/rquota.x: Likewise.
60429         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
60430         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
60431         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
60432         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
60433         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
60434         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
60435         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
60436         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
60437         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
60438         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
60439         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
60440         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
60441         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
60442         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
60443         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
60444         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
60445         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
60446         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
60447         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
60448         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
60449         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
60450         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
60451         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
60452         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
60453         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
60454         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
60455         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
60456         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
60457         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
60458         * sysdeps/ieee754/s_lib_version.c: Likewise.
60459         * sysdeps/mach/hurd/check_fds.c: Likewise.
60460         * sysdeps/mach/hurd/getsockname.c: Likewise.
60461         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
60462         * sysdeps/mach/hurd/recvfrom.c: Likewise.
60463         * sysdeps/powerpc/bits/link.h: Likewise.
60464         * sysdeps/powerpc/dl-procinfo.c: Likewise.
60465         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
60466         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
60467         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
60468         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
60469         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
60470         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
60471         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
60472         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
60473         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
60474         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
60475         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
60476         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
60477         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
60478         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
60479         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
60480         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
60481         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
60482         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
60483         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
60484         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
60485         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
60486         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
60487         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
60488         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
60489         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
60490         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
60491         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
60492         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
60493         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
60494         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
60495         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
60496         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
60497         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
60498         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
60499         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
60500         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
60501         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
60502         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
60503         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
60504         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
60505         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
60506         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
60507         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
60508         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
60509         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
60510         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
60511         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
60512         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
60513         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
60514         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
60515         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
60516         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
60517         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
60518         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
60519         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
60520         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
60521         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
60522         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
60523         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
60524         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
60525         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
60526         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
60527         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
60528         * sysdeps/powerpc/sysdep.h: Likewise.
60529         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
60530         * sysdeps/s390/s390-64/sub_n.S: Likewise.
60531         * sysdeps/sh/dl-trampoline.S: Likewise.
60532         * sysdeps/sh/memset.S: Likewise.
60533         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
60534         * sysdeps/sh/strlen.S: Likewise.
60535         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
60536         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
60537         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
60538         * sysdeps/sparc/sparc32/rem.S: Likewise.
60539         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
60540         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
60541         * sysdeps/sparc/sparc32/strchr.S: Likewise.
60542         * sysdeps/sparc/sparc32/udiv.S: Likewise.
60543         * sysdeps/sparc/sparc32/urem.S: Likewise.
60544         * sysdeps/sparc/sparc64/add_n.S: Likewise.
60545         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
60546         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
60547         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
60548         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
60549         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
60550         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
60551         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
60552         * sysdeps/unix/bsd/times.c: Likewise.
60553         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
60554         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
60555         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
60556         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
60557         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
60558         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
60559         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
60560         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
60561         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
60562         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
60563         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
60564         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
60565         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
60566         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
60567         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
60568         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
60569         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
60570         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
60571         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
60572         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
60573         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
60574         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
60575         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
60576         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
60577         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
60578         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
60579         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
60580         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
60581         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
60582         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
60583         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
60584         * sysdeps/x86_64/strcspn.S: Likewise.
60585
60586 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
60587
60588         * locale/C-translit.h: Revert #include <stdint.h> because this is a
60589         generated file.  Regenerate properly from gen-translit.pl.
60590         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
60591         locale/C-translit.h.
60592
60593 2013-06-05  Andreas Schwab  <schwab@suse.de>
60594
60595         [BZ #15100]
60596         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
60597         week as 6 instead of -1.
60598         * time/tst-strptime.c (day_tests): Add test case.
60599
60600 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
60601
60602         * sysdeps/generic/math_private.h
60603         (libc_feholdexcept_setround_53bit): Replace with
60604         libc_feholdsetround_53bit.
60605         (libc_feupdateenv_53bit): Replace with
60606         libc_feresetround_53bit.
60607         (SET_RESTORE_ROUND_53BIT): Adjust.
60608
60609 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
60610
60611         * string/test-strchrnul.c: Add copyright header.
60612
60613         * posix/tst-getaddrinfo4.c: Increase test timeout.
60614
60615 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
60616
60617         [BZ #15536]
60618         * math/libm-test.inc (MAX_EXP): Remove
60619         (MIN_EXP): Define.
60620         (ulp): Use MIN_EXP - MANT_DIG.
60621         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
60622
60623 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
60624
60625         * po/be.po: Revert last change.
60626         * po/zh_CN.po: Likewise.
60627         * po/header.pot: Likewise.
60628
60629 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
60630
60631         * Makefile ($(common-objpfx)linkobj/libc.so): Define
60632         link-libc-deps to empty as target-specific variable.
60633         * Makerules (link-libc-args): New variable.
60634         (libc-for-link): Likewise.
60635         (link-libc-deps): Likewise.
60636         (lib%.so): Depend on $(link-libc-deps).  Link with
60637         $(link-libc-args).
60638         (build-module): Link with $(link-libc-args).
60639         (build-module-asneeded): Likewise.
60640         (build-module-helper-objlist): Filter out $(link-libc-deps) from
60641         list of objects.
60642         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
60643         target-specific variable.
60644         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
60645         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
60646         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
60647         libc.
60648         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
60649         libc and ld.so.
60650         ($(objpfx)libpcprofile.so): Likewise.
60651         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
60652         libc_nonshared.a.
60653         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
60654         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
60655         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
60656         $(link-libc-deps).
60657         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
60658         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
60659         * login/Makefile ($(objpfx)libutil.so): Likewise.
60660         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
60661         * math/Makefile ($(objpfx)libm.so): Likewise.
60662         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
60663         $(objpfx)libnsl.so): Define libc-for-link as target-specific
60664         variable instead of depending directly on libc.
60665         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
60666         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
60667         $(link-libc-deps).
60668         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
60669         libc.
60670         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
60671         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
60672         ($(objpfx)libanl.so): Likewise.
60673         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
60674         ld.so.
60675         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
60676         $(link-libc-deps).
60677         * sysdeps/i386/fpu/Makefile: Remove file.
60678         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
60679         ($(objpfx)libm.so): Remove dependency on ld.so.
60680
60681 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
60682
60683         [BZ # 15553]
60684         * nis/yp_xdr.c (XDRMAXNAME): Define.
60685         (XDRMAXRECORD): Define.
60686         (xdr_domainname): Use XDRMAXNAME.
60687         (xdr_mapname): Likewise.
60688         (xdr_peername): Likewise.
60689         (xdr_keydat): Use XDRMAXRECORD.
60690         (xdr_valdat): Likewise.
60691
60692 2013-05-30  Jeff Law  <law@redhat.com>
60693
60694         [BZ #14256]
60695         * manual/errno.texi (ESTALE): Update to account for more than
60696         just NFS file systems.
60697         * sysdeps/gnu/errlist.c: Regenerated.
60698
60699 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
60700
60701         [BZ #15465]
60702         * elf/Makefile (tests): Add tst-null-argv.
60703         (modules-names):  Add tst-null-argv-lib.
60704         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
60705         (tst-null-argv-ENV): Set environment for tst-null-argv.
60706         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
60707         (RTLD_PROGNAME): New macro.
60708         * elf/tst-null-argv.c: New test case.
60709         * elf/tst-null-argv-lib.c: Library for test case.
60710         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
60711         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
60712         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
60713         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
60714         * elf/dl-init.c (call_init): Likewise.
60715         (_dl_init): Likewise.
60716         * elf/dl-load.c (print_search_path): Likewise.
60717         (_dl_map_object): Likewise.
60718         * elf/dl-lookup.c (do_lookup_x): Likewise.
60719         (add_dependency): Likewise.
60720         (_dl_lookup_symbol_x): Likewise.
60721         (_dl_debug_bindings): Likewise.
60722         * elf/dl-open.c (_dl_show_scope): Likewise.
60723         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
60724         * elf/dl-version.c (match_symbol): Likewise.
60725         (_dl_check_map_versions): Likewise.
60726         * elf/rtld.c (dl_main): Likewise.
60727         (print_unresolved): Use RTLD_PROGNAME.
60728         (print_missing_version): Likewise.
60729         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
60730         (elf_machine_rela): Likewise.
60731         * sysdeps/powerpc/powerpc32/dl-machine.c
60732         (__process_machine_rela): Likewise.
60733         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
60734         Likewise.
60735         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
60736         Likewise.
60737         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
60738         Likewise.
60739         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
60740         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
60741         Likewise.
60742         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
60743         Likewise.
60744         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
60745
60746 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
60747
60748         * po/be.po: Add descriptive title.
60749         * po/zh_CN.po: Likewise.
60750         * po/header.pot: Likewise.
60751
60752 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
60753
60754         * locale/programs/locarchive.c (create_archive): Inlucde fname in
60755         error message.
60756         (enlarge_archive): Likewise.
60757
60758 2013-05-28  Ben North  <ben@redfrontdoor.org>
60759
60760         * manual/arith.texi (frexp): It is the magnitude of the return
60761         value which lies in [0.5, 1), not the return value itself.
60762
60763 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60764
60765         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
60766
60767 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
60768
60769         * stdio-common/bug26.c (main): Correct fscanf template.
60770
60771         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
60772         declare _dl_skip_args.
60773
60774         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
60775         Don't declare.
60776
60777         * manual/platform.texi: Add missing @end deftypefun.
60778
60779 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
60780
60781         [BZ #15529]
60782         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
60783         bit of mantissa of 2^16382.
60784         * math/libm-test.inc (hypot_test_data): Add more tests.
60785
60786         * math/libm-test.inc: Add drem and pow10 to list of tested
60787         functions.
60788         (pow10_test): New function.
60789         (drem_test): Likewise.
60790         (drem_test_tonearest): Likewise.
60791         (drem_test_towardzero): Likewise.
60792         (drem_test_downward): Likewise.
60793         (drem_test_upward): Likewise.
60794         (main): Call the new functions.
60795
60796         * math/libm-test.inc (finite_test_data): Remove.
60797         (finite_test): Run tests from isfinite_test_data.
60798         (gamma_test_data): Remove.
60799         (gamma_test): Run tests from lgamma_test_data.
60800         * sysdeps/i386/fpu/libm-test-ulps: Update.
60801         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60802
60803 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60804
60805         * manual/platform.texi: Add PowerPC PPR function set documentation.
60806         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
60807         implementation.
60808
60809 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
60810
60811         * math/libm-test.inc (MAX_EXP): Define.
60812         (ULPDIFF): Define.
60813         (ulp): New function.
60814         (check_float_internal): Use ULPDIFF.
60815         (cpow_test): Disable failing test.
60816         (check_ulp): Test ulp() implementation.
60817         (main): Call check_ulp before starting tests.
60818
60819 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
60820
60821         * math/gen-libm-test.pl (generate_testfile): Do not handle
60822         START_DATA and END_DATA.
60823         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
60824         END_DATA.
60825         (acos_tonearest_test_data): Likewise.
60826         (acos_towardzero_test_data): Likewise.
60827         (acos_downward_test_data): Likewise.
60828         (acos_upward_test_data): Likewise.
60829         (acosh_test_data): Likewise.
60830         (asin_test_data): Likewise.
60831         (asin_tonearest_test_data): Likewise.
60832         (asin_towardzero_test_data): Likewise.
60833         (asin_downward_test_data): Likewise.
60834         (asin_upward_test_data): Likewise.
60835         (asinh_test_data): Likewise.
60836         (atan_test_data): Likewise.
60837         (atanh_test_data): Likewise.
60838         (atan2_test_data): Likewise.
60839         (cabs_test_data): Likewise.
60840         (cacos_test_data): Likewise.
60841         (cacosh_test_data): Likewise.
60842         (carg_test_data): Likewise.
60843         (casin_test_data): Likewise.
60844         (casinh_test_data): Likewise.
60845         (catan_test_data): Likewise.
60846         (catanh_test_data): Likewise.
60847         (cbrt_test_data): Likewise.
60848         (ccos_test_data): Likewise.
60849         (ccosh_test_data): Likewise.
60850         (ceil_test_data): Likewise.
60851         (cexp_test_data): Likewise.
60852         (cimag_test_data): Likewise.
60853         (clog_test_data): Likewise.
60854         (clog10_test_data): Likewise.
60855         (conj_test_data): Likewise.
60856         (copysign_test_data): Likewise.
60857         (cos_test_data): Likewise.
60858         (cos_tonearest_test_data): Likewise.
60859         (cos_towardzero_test_data): Likewise.
60860         (cos_downward_test_data): Likewise.
60861         (cos_upward_test_data): Likewise.
60862         (cosh_test_data): Likewise.
60863         (cosh_tonearest_test_data): Likewise.
60864         (cosh_towardzero_test_data): Likewise.
60865         (cosh_downward_test_data): Likewise.
60866         (cosh_upward_test_data): Likewise.
60867         (cpow_test_data): Likewise.
60868         (cproj_test_data): Likewise.
60869         (creal_test_data): Likewise.
60870         (csin_test_data): Likewise.
60871         (csinh_test_data): Likewise.
60872         (csqrt_test_data): Likewise.
60873         (ctan_test_data): Likewise.
60874         (ctan_tonearest_test_data): Likewise.
60875         (ctan_towardzero_test_data): Likewise.
60876         (ctan_downward_test_data): Likewise.
60877         (ctan_upward_test_data): Likewise.
60878         (ctanh_test_data): Likewise.
60879         (ctanh_tonearest_test_data): Likewise.
60880         (ctanh_towardzero_test_data): Likewise.
60881         (ctanh_downward_test_data): Likewise.
60882         (ctanh_upward_test_data): Likewise.
60883         (erf_test_data): Likewise.
60884         (erfc_test_data): Likewise.
60885         (exp_test_data): Likewise.
60886         (exp_tonearest_test_data): Likewise.
60887         (exp_towardzero_test_data): Likewise.
60888         (exp_downward_test_data): Likewise.
60889         (exp_upward_test_data): Likewise.
60890         (exp10_test_data): Likewise.
60891         (exp2_test_data): Likewise.
60892         (expm1_test_data): Likewise.
60893         (fabs_test_data): Likewise.
60894         (fdim_test_data): Likewise.
60895         (finite_test_data): Likewise.
60896         (floor_test_data): Likewise.
60897         (fma_test_data): Likewise.
60898         (fma_towardzero_test_data): Likewise.
60899         (fma_downward_test_data): Likewise.
60900         (fma_upward_test_data): Likewise.
60901         (fmax_test_data): Likewise.
60902         (fmin_test_data): Likewise.
60903         (fmod_test_data): Likewise.
60904         (fpclassify_test_data): Likewise.
60905         (frexp_test_data): Likewise.
60906         (gamma_test_data): Likewise.
60907         (hypot_test_data): Likewise.
60908         (ilogb_test_data): Likewise.
60909         (isfinite_test_data): Likewise.
60910         (isgreater_test_data): Likewise.
60911         (isgreaterequal_test_data): Likewise.
60912         (isinf_test_data): Likewise.
60913         (isless_test_data): Likewise.
60914         (islessequal_test_data): Likewise.
60915         (islessgreater_test_data): Likewise.
60916         (isnan_test_data): Likewise.
60917         (isnormal_test_data): Likewise.
60918         (issignaling_test_data): Likewise.
60919         (isunordered_test_data): Likewise.
60920         (j0_test_data): Likewise.
60921         (j1_test_data): Likewise.
60922         (jn_test_data): Likewise.
60923         (ldexp_test_data): Likewise.
60924         (lgamma_test_data): Likewise.
60925         (lrint_test_data): Likewise.
60926         (lrint_tonearest_test_data): Likewise.
60927         (lrint_towardzero_test_data): Likewise.
60928         (lrint_downward_test_data): Likewise.
60929         (lrint_upward_test_data): Likewise.
60930         (llrint_test_data): Likewise.
60931         (llrint_tonearest_test_data): Likewise.
60932         (llrint_towardzero_test_data): Likewise.
60933         (llrint_downward_test_data): Likewise.
60934         (llrint_upward_test_data): Likewise.
60935         (log_test_data): Likewise.
60936         (log10_test_data): Likewise.
60937         (log1p_test_data): Likewise.
60938         (log2_test_data): Likewise.
60939         (logb_test_data): Likewise.
60940         (logb_downward_test_data): Likewise.
60941         (lround_test_data): Likewise.
60942         (llround_test_data): Likewise.
60943         (modf_test_data): Likewise.
60944         (nearbyint_test_data): Likewise.
60945         (nextafter_test_data): Likewise.
60946         (nexttoward_test_data): Likewise.
60947         (pow_test_data): Likewise.
60948         (pow_tonearest_test_data): Likewise.
60949         (pow_towardzero_test_data): Likewise.
60950         (pow_downward_test_data): Likewise.
60951         (pow_upward_test_data): Likewise.
60952         (remainder_test_data): Likewise.
60953         (remainder_tonearest_test_data): Likewise.
60954         (remainder_towardzero_test_data): Likewise.
60955         (remainder_downward_test_data): Likewise.
60956         (remainder_upward_test_data): Likewise.
60957         (remquo_test_data): Likewise.
60958         (rint_test_data): Likewise.
60959         (rint_tonearest_test_data): Likewise.
60960         (rint_towardzero_test_data): Likewise.
60961         (rint_downward_test_data): Likewise.
60962         (rint_upward_test_data): Likewise.
60963         (round_test_data): Likewise.
60964         (scalb_test_data): Likewise.
60965         (scalbn_test_data): Likewise.
60966         (scalbln_test_data): Likewise.
60967         (signbit_test_data): Likewise.
60968         (sin_test_data): Likewise.
60969         (sin_tonearest_test_data): Likewise.
60970         (sin_towardzero_test_data): Likewise.
60971         (sin_downward_test_data): Likewise.
60972         (sin_upward_test_data): Likewise.
60973         (sincos_test_data): Likewise.
60974         (sinh_test_data): Likewise.
60975         (sinh_tonearest_test_data): Likewise.
60976         (sinh_towardzero_test_data): Likewise.
60977         (sinh_downward_test_data): Likewise.
60978         (sinh_upward_test_data): Likewise.
60979         (sqrt_test_data): Likewise.
60980         (tan_test_data): Likewise.
60981         (tan_tonearest_test_data): Likewise.
60982         (tan_towardzero_test_data): Likewise.
60983         (tan_downward_test_data): Likewise.
60984         (tan_upward_test_data): Likewise.
60985         (tanh_test_data): Likewise.
60986         (tgamma_test_data): Likewise.
60987         (trunc_test_data): Likewise.
60988         (y0_test_data): Likewise.
60989         (y1_test_data): Likewise.
60990         (yn_test_data): Likewise.
60991         (significand_test_data): Likewise.
60992
60993         * math/gen-libm-test.pl (@functions): Remove variable.
60994         (generate_testfile): Don't handle START and END lines.
60995         * math/libm-test.inc (START): New macro.
60996         (END): Likewise.
60997         (END_COMPLEX): Likewise.
60998         (acos_test): Use END macro without arguments.
60999         (acos_test_tonearest): Likewise.
61000         (acos_test_towardzero): Likewise.
61001         (acos_test_downward): Likewise.
61002         (acos_test_upward): Likewise.
61003         (acosh_test): Likewise.
61004         (asin_test): Likewise.
61005         (asin_test_tonearest): Likewise.
61006         (asin_test_towardzero): Likewise.
61007         (asin_test_downward): Likewise.
61008         (asin_test_upward): Likewise.
61009         (asinh_test): Likewise.
61010         (atan_test): Likewise.
61011         (atanh_test): Likewise.
61012         (atan2_test): Likewise.
61013         (cabs_test): Likewise.
61014         (cacos_test): Use END_COMPLEX macro without arguments.
61015         (cacosh_test): Likewise.
61016         (carg_test): Use END macro without arguments.
61017         (casin_test): Use END_COMPLEX macro without arguments.
61018         (casinh_test): Likewise.
61019         (catan_test): Likewise.
61020         (catanh_test): Likewise.
61021         (cbrt_test): Use END macro without arguments.
61022         (ccos_test): Use END_COMPLEX macro without arguments.
61023         (ccosh_test): Likewise.
61024         (ceil_test): Use END macro without arguments.
61025         (cexp_test): Use END_COMPLEX macro without arguments.
61026         (cimag_test): Use END macro without arguments.
61027         (clog_test): Use END_COMPLEX macro without arguments.
61028         (clog10_test): Likewise.
61029         (conj_test): Likewise.
61030         (copysign_test): Use END macro without arguments.
61031         (cos_test): Likewise.
61032         (cos_test_tonearest): Likewise.
61033         (cos_test_towardzero): Likewise.
61034         (cos_test_downward): Likewise.
61035         (cos_test_upward): Likewise.
61036         (cosh_test): Likewise.
61037         (cosh_test_tonearest): Likewise.
61038         (cosh_test_towardzero): Likewise.
61039         (cosh_test_downward): Likewise.
61040         (cosh_test_upward): Likewise.
61041         (cpow_test): Use END_COMPLEX macro without arguments.
61042         (cproj_test): Likewise.
61043         (creal_test): Use END macro without arguments.
61044         (csin_test): Use END_COMPLEX macro without arguments.
61045         (csinh_test): Likewise.
61046         (csqrt_test): Likewise.
61047         (ctan_test): Likewise.
61048         (ctan_test_tonearest): Likewise.
61049         (ctan_test_towardzero): Likewise.
61050         (ctan_test_downward): Likewise.
61051         (ctan_test_upward): Likewise.
61052         (ctanh_test): Likewise.
61053         (ctanh_test_tonearest): Likewise.
61054         (ctanh_test_towardzero): Likewise.
61055         (ctanh_test_downward): Likewise.
61056         (ctanh_test_upward): Likewise.
61057         (erf_test): Use END macro without arguments.
61058         (erfc_test): Likewise.
61059         (exp_test): Likewise.
61060         (exp_test_tonearest): Likewise.
61061         (exp_test_towardzero): Likewise.
61062         (exp_test_downward): Likewise.
61063         (exp_test_upward): Likewise.
61064         (exp10_test): Likewise.
61065         (exp2_test): Likewise.
61066         (expm1_test): Likewise.
61067         (fabs_test): Likewise.
61068         (fdim_test): Likewise.
61069         (finite_test): Likewise.
61070         (floor_test): Likewise.
61071         (fma_test): Likewise.
61072         (fma_test_towardzero): Likewise.
61073         (fma_test_downward): Likewise.
61074         (fma_test_upward): Likewise.
61075         (fmax_test): Likewise.
61076         (fmin_test): Likewise.
61077         (fmod_test): Likewise.
61078         (fpclassify_test): Likewise.
61079         (frexp_test): Likewise.
61080         (gamma_test): Likewise.
61081         (hypot_test): Likewise.
61082         (ilogb_test): Likewise.
61083         (isfinite_test): Likewise.
61084         (isgreater_test): Likewise.
61085         (isgreaterequal_test): Likewise.
61086         (isinf_test): Likewise.
61087         (isless_test): Likewise.
61088         (islessequal_test): Likewise.
61089         (islessgreater_test): Likewise.
61090         (isnan_test): Likewise.
61091         (isnormal_test): Likewise.
61092         (issignaling_test): Likewise.
61093         (isunordered_test): Likewise.
61094         (j0_test): Likewise.
61095         (j1_test): Likewise.
61096         (jn_test): Likewise.
61097         (ldexp_test): Likewise.
61098         (lgamma_test): Likewise.
61099         (lrint_test): Likewise.
61100         (lrint_test_tonearest): Likewise.
61101         (lrint_test_towardzero): Likewise.
61102         (lrint_test_downward): Likewise.
61103         (lrint_test_upward): Likewise.
61104         (llrint_test): Likewise.
61105         (llrint_test_tonearest): Likewise.
61106         (llrint_test_towardzero): Likewise.
61107         (llrint_test_downward): Likewise.
61108         (llrint_test_upward): Likewise.
61109         (log_test): Likewise.
61110         (log10_test): Likewise.
61111         (log1p_test): Likewise.
61112         (log2_test): Likewise.
61113         (logb_test): Likewise.
61114         (logb_test_downward): Likewise.
61115         (lround_test): Likewise.
61116         (llround_test): Likewise.
61117         (modf_test): Likewise.
61118         (nearbyint_test): Likewise.
61119         (nextafter_test): Likewise.
61120         (nexttoward_test): Likewise.
61121         (pow_test): Likewise.
61122         (pow_test_tonearest): Likewise.
61123         (pow_test_towardzero): Likewise.
61124         (pow_test_downward): Likewise.
61125         (pow_test_upward): Likewise.
61126         (remainder_test): Likewise.
61127         (remainder_test_tonearest): Likewise.
61128         (remainder_test_towardzero): Likewise.
61129         (remainder_test_downward): Likewise.
61130         (remainder_test_upward): Likewise.
61131         (remquo_test): Likewise.
61132         (rint_test): Likewise.
61133         (rint_test_tonearest): Likewise.
61134         (rint_test_towardzero): Likewise.
61135         (rint_test_downward): Likewise.
61136         (rint_test_upward): Likewise.
61137         (round_test): Likewise.
61138         (scalb_test): Likewise.
61139         (scalbn_test): Likewise.
61140         (scalbln_test): Likewise.
61141         (signbit_test): Likewise.
61142         (sin_test): Likewise.
61143         (sin_test_tonearest): Likewise.
61144         (sin_test_towardzero): Likewise.
61145         (sin_test_downward): Likewise.
61146         (sin_test_upward): Likewise.
61147         (sincos_test): Likewise.
61148         (sinh_test): Likewise.
61149         (sinh_test_tonearest): Likewise.
61150         (sinh_test_towardzero): Likewise.
61151         (sinh_test_downward): Likewise.
61152         (sinh_test_upward): Likewise.
61153         (sqrt_test): Likewise.
61154         (tan_test): Likewise.
61155         (tan_test_tonearest): Likewise.
61156         (tan_test_towardzero): Likewise.
61157         (tan_test_downward): Likewise.
61158         (tan_test_upward): Likewise.
61159         (tanh_test): Likewise.
61160         (tgamma_test): Likewise.
61161         (trunc_test): Likewise.
61162         (y0_test): Likewise.
61163         (y1_test): Likewise.
61164         (yn_test): Likewise.
61165         (significand_test): Likewise.
61166
61167 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
61168
61169         [BZ #15381]
61170         * libio/genops.c (_IO_no_init): Initialize wide struct info.
61171
61172 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
61173
61174         [BZ #14894]
61175         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
61176         __ppc_mdoio and __ppc_mdoom.
61177         * manual/platform.texi: Document new functions __ppc_yield,
61178         __ppc_mdoio and __ppc_mdoom.
61179
61180 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
61181
61182         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
61183         (main): Mention "tls" pseudo-hwcap is legacy.
61184         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
61185
61186 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
61187
61188         * math/gen-libm-test.pl (parse_args): Output only string of
61189         arguments as text for test name, not full call or descriptions of
61190         tests for extra outputs.
61191         (generate_testfile): Do not pass function name to parse_args.
61192         Generate this_func variable from START.
61193         * math/libm-test.inc (struct test_f_f_data): Rename test_name
61194         field to arg_str.
61195         (struct test_ff_f_data): Likewise.
61196         (test_ff_f_data_nexttoward): Likewise.
61197         (struct test_fi_f_data): Likewise.
61198         (struct test_fl_f_data): Likewise.
61199         (struct test_if_f_data): Likewise.
61200         (struct test_fff_f_data): Likewise.
61201         (struct test_c_f_data): Likewise.
61202         (struct test_f_f1_data): Likewise.  Remove field extra_name.
61203         (struct test_fF_f1_data): Likewise.
61204         (struct test_ffI_f1_data): Likewise.
61205         (struct test_c_c_data): Rename test_name field to arg_str.
61206         (struct test_cc_c_data): Likewise.
61207         (struct test_f_i_data): Likewise.
61208         (struct test_ff_i_data): Likewise.
61209         (struct test_f_l_data): Likewise.
61210         (struct test_f_L_data): Likewise.
61211         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
61212         and extra2_name.
61213         (COMMON_TEST_SETUP): New macro.
61214         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
61215         (COMMON_TEST_CLEANUP): Likewise.
61216         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
61217         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
61218         macros.
61219         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
61220         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
61221         macros.
61222         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
61223         (RUN_TEST_fff_f): Take argument string.  Call new setup and
61224         cleanup macros.
61225         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
61226         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
61227         macros.
61228         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
61229         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
61230         macros.
61231         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
61232         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
61233         cleanup macros.
61234         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
61235         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
61236         cleanup macros.
61237         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
61238         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
61239         cleanup macros.
61240         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
61241         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
61242         macros.
61243         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
61244         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
61245         macros.
61246         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
61247         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
61248         macros.
61249         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
61250         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
61251         cleanup macros.
61252         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
61253         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
61254         cleanup macros.
61255         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
61256         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
61257         macros.
61258         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
61259         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
61260         cleanup macros.
61261         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
61262         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
61263         macros.
61264         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
61265         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
61266         macros.
61267         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
61268         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
61269         cleanup macros.
61270         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
61271
61272 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
61273
61274         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
61275         to _sifields.sigfault.
61276         (si_addr_lsb): Define new macro.
61277         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
61278         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
61279         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
61280
61281 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
61282
61283         [BZ #15441]
61284         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
61285         returns -1.
61286         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
61287         null return -1.
61288         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
61289         loading the domain.
61290
61291 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
61292
61293         * math/gen-libm-test.pl (parse_args): Do not include expected
61294         result in test name.
61295         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
61296         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
61297         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
61298         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
61299         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
61300         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
61301
61302 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
61303
61304         * benchtests/Makefile: Sort function entries.
61305
61306         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
61307         tanh, asinh, acosh, atanh.
61308         * benchtests/acos-inputs: New file.
61309         * benchtests/acosh-inputs: New file.
61310         * benchtests/asin-inputs: New file.
61311         * benchtests/asinh-inputs: New file.
61312         * benchtests/atanh-inputs: New file.
61313         * benchtests/cosh-inputs: New file.
61314         * benchtests/log-inputs: New file.
61315         * benchtests/sinh-inputs: New file.
61316         * benchtests/tanh-inputs: New file.
61317
61318 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
61319
61320         [BZ #15339]
61321         * posix/tst-getaddrinfo4.c: New test.
61322         * posix/Makefile (tests): Add it.
61323
61324 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
61325
61326         [BZ #15339]
61327         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
61328         when no services were used.
61329         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
61330         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
61331
61332 2013-05-21  Andreas Schwab  <schwab@suse.de>
61333
61334         [BZ #15014]
61335         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
61336         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
61337         successful.
61338         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
61339         redundant variable declarations and reallocation of buffer when
61340         parsing as IPv6 address.  Always set NSS status when called from
61341         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
61342         buffer too small.  Correct computation of needed size.
61343         * nss/Makefile (tests): Add test-digits-dots.
61344         * nss/test-digits-dots.c: New test.
61345
61346 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
61347
61348         * benchtests/Makefile: Remove instructions for adding
61349         benchmark tests.
61350         * benchtests/README: New file to explain how to execute and
61351         enhance the benchmark tests.
61352
61353 2013-05-21  Andreas Schwab  <schwab@suse.de>
61354
61355         [BZ #15493]
61356         * setjmp/Makefile (tests): Add tst-sigsetjmp.
61357         * setjmp/tst-sigsetjmp.c: New test.
61358
61359 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
61360
61361         * sysdeps/x86_64/memset.S (memset): New implementation.
61362         (__bzero): Likewise.
61363         (__memset_tail): New function.
61364
61365 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
61366
61367         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
61368         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
61369         __memcpy_sse2_unaligned ifunc selection.
61370         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
61371         Add memcpy-sse2-unaligned.S.
61372         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
61373         Add: __memcpy_sse2_unaligned.
61374
61375 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
61376
61377         [BZ #15490]
61378         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
61379         math_force_eval before restoring floating-point envrionment.
61380         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
61381         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
61382         Likewise.
61383         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
61384         <math_private.h>.
61385         (__nearbyintl): Use math_force_eval before restoring
61386         floating-point environment.
61387         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
61388
61389         * math/gen-libm-test.pl (special_functions): Remove.
61390         (parse_args): Don't handle TEST_extra.  Handle functions with no
61391         return value.
61392         * math/libm-test.inc (struct test_sincos_data): Replace with
61393         struct test_fFF_11_data.
61394         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
61395         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
61396         (sincos_test_data): Change element type to struct
61397         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
61398         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
61399         RUN_TEST_LOOP_sincos.
61400         * math/README.libm-test: Don't mention special handling of
61401         individual functions.
61402         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
61403         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
61404         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
61405         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
61406         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
61407         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
61408
61409         * math/gen-libm-test.pl (get_variable): Remove function.
61410         (parse_args): Don't show pointer parameters to call in test
61411         names.  Use "extra output N" in test names for extra outputs
61412         rather than naming variables.
61413
61414 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
61415
61416         [BZ #15488]
61417         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
61418         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
61419         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
61420         double tests.
61421         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
61422         disable.
61423         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
61424         check_long_double.
61425
61426         * math/gen-libm-test.pl (@tests): Remove variable.
61427         ($count): Likewise.
61428         (new_test): Remove function.
61429         (show_exceptions): New function.
61430         (special_functions): Use show_exceptions instead of new_test.
61431         (parse_args): Likewise.
61432         (generate_testfile): Pass only function name in generated call to
61433         print_max_error or print_complex_max_error.
61434         (get_ulps): Do not handle complex tests specially.
61435         (output_test): Rename to ...
61436         (get_all_ulps_for_test): ... this.  Return a string rather than
61437         printing to a file.  Require ulps to be present.
61438         (output_ulps): Generate arrays rather than #defines.
61439         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
61440         (struct ulp_data): New type.
61441         (BUILD_COMPLEX_ULP): Remove macro.
61442         (compare_ulp_data): New function.
61443         (find_ulps): Likewise.
61444         (find_test_ulps): Likewise.
61445         (find_function_ulps): Likewise.
61446         (find_complex_function_ulps): Likewise.
61447         (print_max_error): Determine allowed ulps using
61448         find_function_ulps.
61449         (print_complex_max_error): Determine allowed ulps using
61450         find_complex_function_ulps.
61451         (check_float_internal): Determine max ulps using find_test_ulps.
61452         (check_float): Do not take max_ulp parameter.  Update call to
61453         check_float_internal.
61454         (check_complex): Likewise.
61455         (check_int): Do not take max_ulp parameter.
61456         (check_long): Likewise.
61457         (check_bool): Likewise.
61458         (check_longlong): Likewise.
61459         (struct test_f_f_data): Remove max_ulp field.
61460         (struct test_ff_f_data): Likewise.
61461         (struct test_ff_f_data_nexttoward): Likewise.
61462         (struct test_fi_f_data): Likewise.
61463         (struct test_fl_f_data): Likewise.
61464         (struct test_if_f_data): Likewise.
61465         (struct test_fff_f_data): Likewise.
61466         (struct test_c_f_data): Likewise.
61467         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
61468         (struct test_fF_f1_data): Likewise.
61469         (struct test_ffI_f1_data): Likewise.
61470         (struct test_c_c_data): Remove max_ulp field.
61471         (struct test_cc_c_data): Likewise.
61472         (struct test_f_i_data): Likewise.
61473         (struct test_ff_i_data): Likewise.
61474         (struct test_f_l_data): Likewise.
61475         (struct test_f_L_data): Likewise.
61476         (struct test_sincos_data): Likewise.
61477         (RUN_TEST_f_f): Do not handle ulps.
61478         (RUN_TEST_LOOP_f_f): Likewise.
61479         (RUN_TEST_2_f): Likewise.
61480         (RUN_TEST_LOOP_2_f): Likewise.
61481         (RUN_TEST_fff_f): Likewise.
61482         (RUN_TEST_LOOP_fff_f): Likewise.
61483         (RUN_TEST_c_f): Likewise.
61484         (RUN_TEST_LOOP_c_f): Likewise.
61485         (RUN_TEST_f_f1): Likewise.
61486         (RUN_TEST_LOOP_f_f1): Likewise.
61487         (RUN_TEST_fF_f1): Likewise.
61488         (RUN_TEST_LOOP_fF_f1): Likewise.
61489         (RUN_TEST_fI_f1): Likewise.
61490         (RUN_TEST_LOOP_fI_f1): Likewise.
61491         (RUN_TEST_ffI_f1): Likewise.
61492         (RUN_TEST_LOOP_ffI_f1): Likewise.
61493         (RUN_TEST_c_c): Likewise.
61494         (RUN_TEST_LOOP_c_c): Likewise.
61495         (RUN_TEST_cc_c): Likewise.
61496         (RUN_TEST_LOOP_cc_c): Likewise.
61497         (RUN_TEST_f_i): Likewise.
61498         (RUN_TEST_LOOP_f_i): Likewise.
61499         (RUN_TEST_f_i_tg): Likewise.
61500         (RUN_TEST_LOOP_f_i_tg): Likewise.
61501         (RUN_TEST_ff_i_tg): Likewise.
61502         (RUN_TEST_LOOP_ff_i_tg): Likewise.
61503         (RUN_TEST_f_b): Likewise.
61504         (RUN_TEST_LOOP_f_b): Likewise.
61505         (RUN_TEST_f_b_tg): Likewise.
61506         (RUN_TEST_LOOP_f_b_tg): Likewise.
61507         (RUN_TEST_f_l): Likewise.
61508         (RUN_TEST_LOOP_f_l): Likewise.
61509         (RUN_TEST_f_L): Likewise.
61510         (RUN_TEST_LOOP_f_L): Likewise.
61511         (RUN_TEST_sincos): Likewise.
61512         (RUN_TEST_LOOP_sincos): Likewise.
61513
61514 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
61515
61516         [BZ #15480]
61517         [BZ #15485]
61518         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
61519         main case of finite arguments, set rounding mode to FE_TONEAREST
61520         and discard exceptions.
61521         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
61522         exceptions.
61523         (remainder_tonearest_test_data): New variable.
61524         (remainder_test_tonearest): New function.
61525         (remainder_towardzero_test_data): New variable.
61526         (remainder_test_towardzero): New function.
61527         (remainder_downward_test_data): New variable.
61528         (remainder_test_downward): New function.
61529         (remainder_upward_test_data): New variable.
61530         (remainder_test_upward): New function.
61531         (main): Call the new test functions.
61532
61533         * math/libm-test.inc (struct test_f_f1_data): Remove field
61534         extra_init.
61535         (struct test_fF_f1_data): Likewise.
61536         (struct test_ffI_f1_data): Likewise.
61537         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
61538         based on value of EXTRA_EXPECTED.
61539         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
61540         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
61541         EXTRA_VAR based on value of EXTRA_EXPECTED.
61542         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
61543         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
61544         EXTRA_VAR based on value of EXTRA_EXPECTED.
61545         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
61546         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
61547         EXTRA_VAR based on value of EXTRA_EXPECTED.
61548         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
61549         * math/gen-libm-test.pl (parse_args): Don't output initializers
61550         for extra output values.
61551
61552         * math/libm-test.inc (check_int): Expect result to be exactly
61553         equal to expected value and do not handle ulps.
61554         (check_long): Likewise.
61555         (check_longlong): Likewise.
61556
61557         * math/libm-test.inc (ceil_test_data): Test for "inexact"
61558         exceptions.
61559         (cimag_test_data): Likewise.
61560         (conj_test_data): Likewise.
61561         (copysign_test_data): Likewise.
61562         (cproj_test_data): Likewise.
61563         (creal_test_data): Likewise.
61564         (fabs_test_data): Likewise.
61565         (fdim_test_data): Likewise.
61566         (finite_test_data): Likewise.
61567         (floor_test_data): Likewise.
61568         (fmax_test_data): Likewise.
61569         (fmin_test_data): Likewise.
61570         (fmod_test_data): Likewise.
61571         (fpclassify_test_data): Likewise.
61572         (frexp_test_data): Likewise.
61573         (ilogb_test_data): Likewise.
61574         (isfinite_test_data): Likewise.
61575         (isgreater_test_data): Likewise.
61576         (isgreaterequal_test_data): Likewise.
61577         (isinf_test_data): Likewise.
61578         (isless_test_data): Likewise.
61579         (islessequal_test_data): Likewise.
61580         (islessgreater_test_data): Likewise.
61581         (isnan_test_data): Likewise.
61582         (isnormal_test_data): Likewise.
61583         (issignaling_test_data): Likewise.
61584         (isunordered_test_data): Likewise.
61585         (ldexp_test_data): Likewise.
61586         (lrint_test_data): Likewise.
61587         (lrint_test_data) [TEST_FLOAT]: Disable one test.
61588         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
61589         (lrint_tonearest_test_data): Test for "inexact" exceptions.
61590         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
61591         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
61592         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
61593         test input.
61594         (lrint_towardzero_test_data): Test for "inexact" exceptions.
61595         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
61596         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
61597         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
61598         that test input.
61599         (lrint_downward_test_data): Test for "inexact" exceptions.
61600         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
61601         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
61602         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
61603         test input.
61604         (lrint_upward_test_data): Test for "inexact" exceptions.
61605         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
61606         test input.
61607         (llrint_test_data): Test for "inexact" exceptions.
61608         (llrint_test_data) [TEST_FLOAT]: Disable one test.
61609         (llrint_tonearest_test_data): Test for "inexact" exceptions.
61610         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
61611         (llrint_towardzero_test_data): Test for "inexact" exceptions.
61612         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
61613         (llrint_downward_test_data): Test for "inexact" exceptions.
61614         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
61615         (llrint_upward_test_data): Test for "inexact" exceptions.
61616         (logb_test_data): Likewise.
61617         (logb_downward_test_data): Likewise.
61618         (nextafter_test_data): Likewise.
61619         (nexttoward_test_data): Likewise.
61620         (remainder_test_data): Likewise.
61621         (remquo_test_data): Likewise.
61622         (scalbn_test_data): Likewise.
61623         (scalbln_test_data): Likewise.
61624         (signbit_test_data): Likewise.
61625         (sqrt_test_data): Likewise.
61626         (significand_test_data): Likewise.
61627
61628 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
61629
61630         [BZ #15424]
61631         * benchtests/bench-modf.c (struct args): Mark arg0 as
61632         volatile.
61633         * scripts/bench.pl: Mark members of struct args as volatile.
61634
61635 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61636
61637         [BZ # 15497]
61638         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
61639         negative infinity on POWER6 or lower.
61640         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
61641
61642 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
61643
61644         [BZ #15442]
61645         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
61646         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
61647         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
61648         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
61649         (_FP_SETQNAN): New macro.
61650         (_FP_SETQNAN_SEMIRAW): Likewise.
61651         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
61652         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
61653         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
61654         (FP_EXTEND): Use _FP_FRAC_SNANP.
61655         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
61656         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
61657         into account.
61658         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
61659         New macro.
61660         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
61661         Likewise.
61662
61663 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
61664
61665         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
61666         with DIVIDE_BY_ZERO_EXCEPTION.
61667         (gamma_test_data): Likewise.
61668         (lgamma_test_data): Likewise.
61669         (log_test_data): Likewise.
61670         (log10_test_data): Likewise.
61671         (log2_test_data): Likewise.
61672         (tgamma_test_data): Likewise.
61673
61674         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
61675         (acos_test_tonearest): Likewise.
61676         (acos_test_towardzero): Likewise.
61677         (acos_test_downward): Likewise.
61678         (acos_test_upward): Likewise.
61679         (acosh_test): Likewise.
61680         (asin_test): Likewise.
61681         (asin_test_tonearest): Likewise.
61682         (asin_test_towardzero): Likewise.
61683         (asin_test_downward): Likewise.
61684         (asin_test_upward): Likewise.
61685         (asinh_test): Likewise.
61686         (atan_test): Likewise.
61687         (atanh_test): Likewise.
61688         (atan2_test): Likewise.
61689         (cabs_test): Likewise.
61690         (cacos_test): Likewise.
61691         (cacosh_test): Likewise.
61692         (casin_test): Likewise.
61693         (casinh_test): Likewise.
61694         (catan_test): Likewise.
61695         (catanh_test): Likewise.
61696         (cbrt_test): Likewise.
61697         (ccos_test): Likewise.
61698         (ccosh_test): Likewise.
61699         (cexp_test): Likewise.
61700         (clog_test): Likewise.
61701         (clog10_test): Likewise.
61702         (cos_test): Likewise.
61703         (cos_test_tonearest): Likewise.
61704         (cos_test_towardzero): Likewise.
61705         (cos_test_downward): Likewise.
61706         (cos_test_upward): Likewise.
61707         (cosh_test): Likewise.
61708         (cosh_test_tonearest): Likewise.
61709         (cosh_test_towardzero): Likewise.
61710         (cosh_test_downward): Likewise.
61711         (cosh_test_upward): Likewise.
61712         (cpow_test): Likewise.
61713         (csin_test): Likewise.
61714         (csinh_test): Likewise.
61715         (csqrt_test): Likewise.
61716         (ctan_test): Likewise.
61717         (ctan_test_tonearest): Likewise.
61718         (ctan_test_towardzero): Likewise.
61719         (ctan_test_downward): Likewise.
61720         (ctan_test_upward): Likewise.
61721         (ctanh_test): Likewise.
61722         (ctanh_test_tonearest): Likewise.
61723         (ctanh_test_towardzero): Likewise.
61724         (ctanh_test_downward): Likewise.
61725         (ctanh_test_upward): Likewise.
61726         (erf_test): Likewise.
61727         (erfc_test): Likewise.
61728         (exp_test): Likewise.
61729         (exp_test_tonearest): Likewise.
61730         (exp_test_towardzero): Likewise.
61731         (exp_test_downward): Likewise.
61732         (exp_test_upward): Likewise.
61733         (exp10_test): Likewise.
61734         (exp2_test): Likewise.
61735         (expm1_test): Likewise.
61736         (fmod_test): Likewise.
61737         (gamma_test): Likewise.
61738         (hypot_test): Likewise.
61739         (j0_test): Likewise.
61740         (j1_test): Likewise.
61741         (jn_test): Likewise.
61742         (lgamma_test): Likewise.
61743         (log_test): Likewise.
61744         (log10_test): Likewise.
61745         (log1p_test): Likewise.
61746         (log2_test): Likewise.
61747         (logb_test_downward): Likewise.
61748         (pow_test): Likewise.
61749         (pow_test_tonearest): Likewise.
61750         (pow_test_towardzero): Likewise.
61751         (pow_test_downward): Likewise.
61752         (pow_test_upward): Likewise.
61753         (remainder_test): Likewise.
61754         (remquo_test): Likewise.
61755         (sin_test): Likewise.
61756         (sin_test_tonearest): Likewise.
61757         (sin_test_towardzero): Likewise.
61758         (sin_test_downward): Likewise.
61759         (sin_test_upward): Likewise.
61760         (sincos_test): Likewise.
61761         (sinh_test): Likewise.
61762         (sinh_test_tonearest): Likewise.
61763         (sinh_test_towardzero): Likewise.
61764         (sinh_test_downward): Likewise.
61765         (sinh_test_upward): Likewise.
61766         (sqrt_test): Likewise.
61767         (tan_test): Likewise.
61768         (tan_test_tonearest): Likewise.
61769         (tan_test_towardzero): Likewise.
61770         (tan_test_downward): Likewise.
61771         (tan_test_upward): Likewise.
61772         (tanh_test): Likewise.
61773         (tgamma_test): Likewise.
61774         (y0_test): Likewise.
61775         (y1_test): Likewise.
61776         (yn_test): Likewise.
61777
61778         * math/gen-libm-test.pl (adjust_arg): Remove function.
61779         (special_function): Remove argument $in_func.  Only handle
61780         generating output for tables of tests, not inside functions.
61781         (parse_args): Likewise.
61782         (generate_testfile): Remove variable $in_func.  Update call to
61783         parse_args.
61784         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
61785         (MINUS_ZERO_INIT): Rename macro to minus_zero.
61786         (PLUS_INFTY_INIT): Rename macro to plus_infty.
61787         (MINUS_INFTY_INIT): Rename macro to minus_infty.
61788         (QNAN_VALUE_INIT): Rename macro to qnan_value.
61789         (MAX_VALUE_INIT): Rename macro to max_value.
61790         (MIN_VALUE_INIT): Rename macro to min_value.
61791         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
61792         (plus_zero): Remove variable.
61793         (minus_zero): Likewise.
61794         (plus_infty): Likewise.
61795         (minus_infty): Likewise.
61796         (qnan_value): Likewise.
61797         (max_value): Likewise.
61798         (min_value): Likewise.
61799         (min_subnorm_value): Likewise.
61800
61801 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
61802
61803         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
61804         uint64_t or uint32_t usage.
61805         * crypt/sha256-block.c: Likewise.
61806         * crypt/sha256-crypt.c: Likewise.
61807         * crypt/sha256.c: Likewise.
61808         * crypt/sha512-block.c: Likewise.
61809         * crypt/sha512-crypt.c: Likewise.
61810         * crypt/sha512.c: Likewise.
61811         * debug/backtrace-tst.c: Likewise.
61812         * debug/pcprofiledump.c: Likewise.
61813         * elf/cache.c: Likewise.
61814         * elf/dl-cache.c: Likewise.
61815         * elf/dl-misc.c: Likewise.
61816         * elf/dl-profile.c: Likewise.
61817         * elf/dl-support.c: Likewise.
61818         * elf/ldconfig.c: Likewise.
61819         * elf/sprof.c: Likewise.
61820         * iconv/dummy-repertoire.c: Likewise.
61821         * iconv/iconv_charmap.c: Likewise.
61822         * iconv/skeleton.c: Likewise.
61823         * iconvdata/8bit-generic.c: Likewise.
61824         * iconvdata/cp737.h: Likewise.
61825         * iconvdata/cp775.h: Likewise.
61826         * iconvdata/ibm1008.h: Likewise.
61827         * iconvdata/ibm1025.h: Likewise.
61828         * iconvdata/ibm1046.h: Likewise.
61829         * iconvdata/ibm1097.h: Likewise.
61830         * iconvdata/ibm1112.h: Likewise.
61831         * iconvdata/ibm1122.h: Likewise.
61832         * iconvdata/ibm1123.h: Likewise.
61833         * iconvdata/ibm1124.h: Likewise.
61834         * iconvdata/ibm1129.h: Likewise.
61835         * iconvdata/ibm1130.h: Likewise.
61836         * iconvdata/ibm1132.h: Likewise.
61837         * iconvdata/ibm1133.h: Likewise.
61838         * iconvdata/ibm1137.h: Likewise.
61839         * iconvdata/ibm1140.h: Likewise.
61840         * iconvdata/ibm1141.h: Likewise.
61841         * iconvdata/ibm1142.h: Likewise.
61842         * iconvdata/ibm1143.h: Likewise.
61843         * iconvdata/ibm1144.h: Likewise.
61844         * iconvdata/ibm1145.h: Likewise.
61845         * iconvdata/ibm1146.h: Likewise.
61846         * iconvdata/ibm1147.h: Likewise.
61847         * iconvdata/ibm1148.h: Likewise.
61848         * iconvdata/ibm1149.h: Likewise.
61849         * iconvdata/ibm1153.h: Likewise.
61850         * iconvdata/ibm1154.h: Likewise.
61851         * iconvdata/ibm1155.h: Likewise.
61852         * iconvdata/ibm1156.h: Likewise.
61853         * iconvdata/ibm1157.h: Likewise.
61854         * iconvdata/ibm1158.h: Likewise.
61855         * iconvdata/ibm1160.h: Likewise.
61856         * iconvdata/ibm1161.h: Likewise.
61857         * iconvdata/ibm1162.h: Likewise.
61858         * iconvdata/ibm1163.h: Likewise.
61859         * iconvdata/ibm1164.h: Likewise.
61860         * iconvdata/ibm1166.h: Likewise.
61861         * iconvdata/ibm1167.h: Likewise.
61862         * iconvdata/ibm12712.h: Likewise.
61863         * iconvdata/ibm1390.h: Likewise.
61864         * iconvdata/ibm1399.h: Likewise.
61865         * iconvdata/ibm16804.h: Likewise.
61866         * iconvdata/ibm4517.h: Likewise.
61867         * iconvdata/ibm4899.h: Likewise.
61868         * iconvdata/ibm4909.h: Likewise.
61869         * iconvdata/ibm4971.h: Likewise.
61870         * iconvdata/ibm5347.h: Likewise.
61871         * iconvdata/ibm803.h: Likewise.
61872         * iconvdata/ibm856.h: Likewise.
61873         * iconvdata/ibm901.h: Likewise.
61874         * iconvdata/ibm902.h: Likewise.
61875         * iconvdata/ibm9030.h: Likewise.
61876         * iconvdata/ibm9066.h: Likewise.
61877         * iconvdata/ibm921.h: Likewise.
61878         * iconvdata/ibm922.h: Likewise.
61879         * iconvdata/ibm9448.h: Likewise.
61880         * iconvdata/isiri-3342.h: Likewise.
61881         * iconvdata/jis0201.h: Likewise.
61882         * include/link.h: Likewise.
61883         * include/netdb.h: Likewise.
61884         * inet/check_native.c: Likewise.
61885         * inet/check_pf.c: Likewise.
61886         * inet/getipv4sourcefilter.c: Likewise.
61887         * inet/getnameinfo.c: Likewise.
61888         * inet/getsourcefilter.c: Likewise.
61889         * inet/htonl.c: Likewise.
61890         * inet/setipv4sourcefilter.c: Likewise.
61891         * inet/setsourcefilter.c: Likewise.
61892         * inet/test-inet6_opt.c: Likewise.
61893         * inet/tst-network.c: Likewise.
61894         * locale/C-collate.c: Likewise.
61895         * locale/C-ctype.c: Likewise.
61896         * locale/C-time.c: Likewise.
61897         * locale/C-translit.h: Likewise.
61898         * locale/loadarchive.c: Likewise.
61899         * locale/programs/3level.h: Likewise.
61900         * locale/programs/charmap.c: Likewise.
61901         * locale/programs/charmap.h: Likewise.
61902         * locale/programs/ld-address.c: Likewise.
61903         * locale/programs/ld-collate.c: Likewise.
61904         * locale/programs/ld-ctype.c: Likewise.
61905         * locale/programs/ld-identification.c: Likewise.
61906         * locale/programs/ld-measurement.c: Likewise.
61907         * locale/programs/ld-messages.c: Likewise.
61908         * locale/programs/ld-monetary.c: Likewise.
61909         * locale/programs/ld-name.c: Likewise.
61910         * locale/programs/ld-numeric.c: Likewise.
61911         * locale/programs/ld-paper.c: Likewise.
61912         * locale/programs/ld-telephone.c: Likewise.
61913         * locale/programs/ld-time.c: Likewise.
61914         * locale/programs/linereader.c: Likewise.
61915         * locale/programs/locale.c: Likewise.
61916         * locale/programs/locarchive.c: Likewise.
61917         * locale/programs/locfile.h: Likewise.
61918         * locale/programs/repertoire.c: Likewise.
61919         * locale/programs/simple-hash.c: Likewise.
61920         * locale/programs/simple-hash.h: Likewise.
61921         * malloc/memusage.c: Likewise.
61922         * malloc/memusagestat.c: Likewise.
61923         * nis/nis_defaults.c: Likewise.
61924         * nis/nis_hash.c: Likewise.
61925         * nis/nis_print.c: Likewise.
61926         * nis/nis_xdr.c: Likewise.
61927         * nscd/connections.c: Likewise.
61928         * nscd/hstcache.c: Likewise.
61929         * nscd/nscd_gethst_r.c: Likewise.
61930         * nscd/nscd_getserv_r.c: Likewise.
61931         * nscd/nscd_helper.c: Likewise.
61932         * nscd/servicescache.c: Likewise.
61933         * nss/makedb.c: Likewise.
61934         * nss/nss_db/db-XXX.c: Likewise.
61935         * nss/nss_db/db-initgroups.c: Likewise.
61936         * nss/nss_db/db-netgrp.c: Likewise.
61937         * nss/nss_files/files-network.c: Likewise.
61938         * nss/nss_files/files-parse.c: Likewise.
61939         * posix/bug-regex5.c: Likewise.
61940         * posix/fnmatch_loop.c: Likewise.
61941         * posix/regcomp.c: Likewise.
61942         * posix/regexec.c: Likewise.
61943         * posix/tst-rfc3484-2.c: Likewise.
61944         * posix/tst-rfc3484-3.c: Likewise.
61945         * posix/tst-rfc3484.c: Likewise.
61946         * resolv/nss_dns/dns-canon.c: Likewise.
61947         * resolv/nss_dns/dns-network.c: Likewise.
61948         * resolv/res_init.c: Likewise.
61949         * resolv/res_mkquery.c: Likewise.
61950         * resolv/tst-aton.c: Likewise.
61951         * stdlib/cxa_atexit.c: Likewise.
61952         * stdlib/cxa_finalize.c: Likewise.
61953         * stdlib/gen-fpioconst.c: Likewise.
61954         * stdlib/strtol_l.c: Likewise.
61955         * string/tst-endian.c: Likewise.
61956         * sunrpc/auth_des.c: Likewise.
61957         * sunrpc/clnt_udp.c: Likewise.
61958         * sunrpc/rtime.c: Likewise.
61959         * sunrpc/svcauth_des.c: Likewise.
61960         * sunrpc/xdr.c: Likewise.
61961         * sunrpc/xdr_intXX_t.c: Likewise.
61962         * sunrpc/xdr_rec.c: Likewise.
61963         * sysdeps/generic/ldconfig.h: Likewise.
61964         * sysdeps/generic/ldsodefs.h: Likewise.
61965         * sysdeps/generic/memusage.h: Likewise.
61966         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
61967         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
61968         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
61969         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
61970         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
61971         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
61972         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
61973         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
61974         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
61975         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
61976         * sysdeps/posix/getaddrinfo.c: Likewise.
61977         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
61978         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
61979         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
61980         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
61981         * sysdeps/powerpc/test-gettimebase.c: Likewise.
61982         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
61983         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
61984         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
61985         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
61986         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
61987         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
61988         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
61989         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
61990         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
61991         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
61992         * sysdeps/x86_64/dl-tls.h: Likewise.
61993         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
61994         * time/alt_digit.c: Likewise.
61995         * time/era.c: Likewise.
61996         * wcsmbs/tst-c16c32-1.c: Likewise.
61997
61998 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
61999
62000         * math/libm-test.inc (struct test_sincos_data): New type.
62001         (RUN_TEST_LOOP_sincos): New macro.
62002         (sincos_test_data): New variable.
62003         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
62004
62005 2013-05-16  Richard Henderson  <rth@redhat.com>
62006
62007         * math/atest-exp2.c (LIMB64): New macro.
62008         (CONSTSZ): New macro.
62009         (mp_exp1, mp_exp_m1, mp_log2): New variables.
62010         (hexdig): Move ...
62011         (print_mpn_fp): ... to function scope.
62012         (read_mpn_hex): Remove.
62013         (get_log2): Remove.
62014         (exp2_mpn): Use mp_log2.
62015         (main): Use mp_exp1.
62016
62017 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
62018
62019         * math/libm-test.inc: Remove comment about not testing "inexact"
62020         exceptions.
62021         (INEXACT_EXCEPTION): New macro.
62022         (NO_INEXACT_EXCEPTION): Likewise.
62023         (INVALID_EXCEPTION_OK): Update value.
62024         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
62025         (OVERFLOW_EXCEPTION_OK): Likewise.
62026         (UNDERFLOW_EXCEPTION_OK): Likewise.
62027         (IGNORE_ZERO_INF_SIGN): Likewise.
62028         (ERRNO_UNCHANGED): Likewise.
62029         (ERRNO_EDOM): Likewise.
62030         (ERRNO_ERANGE): Likewise.
62031         (test_exceptions): Handle testing "inexact" exceptions.
62032         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
62033         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
62034         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
62035         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
62036         INEXACT_EXCEPTION.
62037         (rint_towardzero_test_data): Likewise.
62038         (rint_downward_test_data): Likewise.
62039         (rint_upward_test_data): Likewise.
62040
62041         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
62042         with OVERFLOW_EXCEPTION.
62043         (exp10_test_data): Likewise.
62044         (exp2_test_data): Likewise.
62045         (expm1_test_data): Likewise.
62046         (lgamma_test_data): Likewise.
62047         (pow_test_data): Likewise.
62048         (tgamma_test_data): Likewise.
62049         (yn_test_data): Remove duplicate test of overflow.
62050
62051         * math/libm-test.inc (struct test_cc_c_data): New type.
62052         (RUN_TEST_LOOP_cc_c): New macro.
62053         (cpow_test_data): New variable.
62054         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
62055
62056         * math/libm-test.inc (struct test_f_L_data): New type.
62057         (RUN_TEST_LOOP_f_L): New macro.
62058         (llrint_test_data): New variable.
62059         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
62060         (llrint_tonearest_test_data): New variable.
62061         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
62062         (llrint_towardzero_test_data): New variable.
62063         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
62064         (llrint_downward_test_data): New variable.
62065         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
62066         (llrint_upward_test_data): New variable.
62067         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
62068         (llround_test_data): New variable.
62069         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
62070
62071 2013-05-13  Peter Collingbourne  <pcc@google.com>
62072
62073         * math/atest-exp2.c (get_log2): Remove const attribute.
62074
62075 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
62076
62077         * math/libm-test.inc (struct test_f_l_data): New type.
62078         (RUN_TEST_LOOP_f_l): New macro.
62079         (lrint_test_data): New variable.
62080         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
62081         (lrint_tonearest_test_data): New variable.
62082         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
62083         (lrint_towardzero_test_data): New variable.
62084         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
62085         (lrint_downward_test_data): New variable.
62086         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
62087         (lrint_upward_test_data): New variable.
62088         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
62089         (lround_test_data): New variable.
62090         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
62091
62092 2013-05-15  Peter Collingbourne  <pcc@google.com>
62093
62094         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
62095         (EXTRACT_WORDS64) Use where appropriate.
62096         (INSERT_WORDS64) Likewise.
62097
62098         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
62099         constraints with x constraints.
62100         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
62101
62102         * malloc/obstack.c (_obstack_compat): Add initializer.
62103
62104 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
62105
62106         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
62107         si_trapno and add si_addr_lsb to _sifields.sigfault.
62108         (si_trapno): Remove macro.
62109         (si_addr_lsb): Define new macro.
62110         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
62111
62112 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
62113
62114         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
62115         instead of TEST_f_l.
62116         (llrint_test_tonearest): Likewise.
62117         (llrint_test_towardzero): Likewise.
62118         (llrint_test_downward): Likewise.
62119         (llrint_test_upward): Likewise.
62120         (llround_test): Likewise.
62121
62122         * math/libm-test.inc (struct test_f_i_data): Add comment.
62123         (RUN_TEST_LOOP_f_b): New macro.
62124         (RUN_TEST_LOOP_f_b_tg): Likewise.
62125         (finite_test_data): New variable.
62126         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
62127         (isfinite_test_data): New variable.
62128         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
62129         (isinf_test_data): New variable.
62130         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
62131         (isnan_test_data): New variable.
62132         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
62133         (isnormal_test_data): New variable.
62134         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
62135         (issignaling_test_data): New variable.
62136         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
62137         (signbit_test_data): New variable.
62138         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
62139
62140         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
62141         with INVALID_EXCEPTION.
62142         (acosh_test_data): Likewise.
62143         (asin_test_data): Likewise.
62144         (atanh_test_data): Likewise.
62145         (fmod_test_data): Likewise.
62146         (log_test_data): Likewise.
62147         (log10_test_data): Likewise.
62148         (log2_test_data): Likewise.
62149         (pow_test_data): Likewise.
62150         (sqrt_test_data): Likewise.
62151         (y0_test_data): Likewise.
62152         (y1_test_data): Likewise.
62153         (yn_test_data): Likewise.
62154
62155         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
62156         function contents.
62157
62158         * math/libm-test.inc (struct test_ff_i_data): New type.
62159         (RUN_TEST_LOOP_ff_i_tg): New macro.
62160         (isgreater_test_data): New variable.
62161         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
62162         (isgreaterequal_test_data): New variable.
62163         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
62164         (isless_test_data): New variable.
62165         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
62166         (islessequal_test_data): New variable.
62167         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
62168         (islessgreater_test_data): New variable.
62169         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
62170         (isunordered_test_data): New variable.
62171         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
62172
62173 2013-05-14  David S. Miller  <davem@davemloft.net>
62174
62175         * sysdeps/sparc/fpu/libm-test-ulps: Update.
62176
62177 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
62178
62179         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
62180
62181         * math/libm-test.inc (struct test_fF_f1_data): Change type of
62182         extra_test to int.
62183         (struct test_f_i_data): Change type of max_ulp to int.
62184
62185         * math/libm-test.inc (test_ffI_f1_data): New type.
62186         (RUN_TEST_LOOP_ffI_f1): New macro.
62187         (remquo_test_data): New variable.
62188         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
62189
62190         * setjmp/tst-setjmp-fp.c: New file.
62191         * setjmp/Makefile (tests): Add tst-setjmp-fp.
62192         (link-libm): New variable.
62193         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
62194
62195         * math/libm-test.inc (struct test_f_i_data): New type.
62196         (RUN_TEST_LOOP_f_i): New macro.
62197         (RUN_TEST_LOOP_f_i_tg): Likewise.
62198         (fpclassify_test_data): New variable.
62199         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
62200         (ilogb_test_data): New variable.
62201         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
62202
62203         * math/libm-test.inc (scalbln_test): Correct function name in END
62204         call.
62205
62206         * math/libm-test.inc (struct test_f_f1_data): Add comment.
62207         (RUN_TEST_LOOP_fI_f1): New macro.
62208         (frexp_test_data): New variable.
62209         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
62210
62211         * math/libm-test.inc (struct test_fF_f1_data): New type.
62212         (RUN_TEST_LOOP_fF_f1): New macro.
62213         (modf_test_data): New variable.
62214         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
62215
62216         * math/libm-test.inc (struct test_f_f1_data): New type.
62217         (RUN_TEST_LOOP_f_f1): New macro.
62218         (gamma_test_data): New variable.
62219         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
62220         (lgamma_test_data): New variable.
62221         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
62222
62223 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
62224
62225         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
62226         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
62227         (main): Comment "tls" pseudo-hwcap.
62228
62229 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
62230
62231         * math/libm-test.inc (struct test_fl_f_data): New type.
62232         (RUN_TEST_LOOP_fl_f): New variable.
62233         (scalbln_test_data): New variable.
62234         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
62235
62236         * math/libm-test.inc (struct test_fi_f_data): New type.
62237         (RUN_TEST_LOOP_fi_f): New macro.
62238         (ldexp_test_data): New variable.
62239         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
62240         (scalbn_test_data): New variable.
62241         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
62242
62243         * math/libm-test.inc (struct test_c_f_data): New type.
62244         (RUN_TEST_LOOP_c_f): New macro.
62245         (cabs_test_data): New variable.
62246         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
62247         (carg_test_data): New variable.
62248         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
62249         (cimag_test_data): New variable.
62250         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
62251         (creal_test_data): New variable.
62252         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
62253
62254         * math/libm-test.inc (struct test_if_f_data): New type.
62255         (RUN_TEST_LOOP_if_f): New macro.
62256         (jn_test_data): New variable.
62257         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
62258         (yn_test_data): New variable.
62259         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
62260
62261         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
62262
62263 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62264
62265         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
62266         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
62267
62268 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
62269
62270         * benchtests/Makefile (CPPFLAGS-nonlib): Add
62271         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
62272         (bench-deps): Add bench-timing.h.
62273         * benchtests-bench-skeleton.c: Include bench-timing.h.
62274         (main): Use TIMING_* macros instead of clock_gettime.
62275         * benchtests/bench-timing.h: New file.
62276
62277         [BZ #14582]
62278         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
62279         Renamed from _LIB_VERSION.
62280         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
62281
62282 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
62283
62284         * math/libm-test.inc (struct test_fff_f_data): New type.
62285         (RUN_TEST_LOOP_fff_f): New macro.
62286         (fma_test_data): New variable.
62287         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
62288         (fma_towardzero_test_data): New variable.
62289         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
62290         (fma_downward_test_data): New variable.
62291         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
62292         (fma_upward_test_data): New variable.
62293         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
62294
62295         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
62296         (struct test_c_c_data): New type.
62297         (RUN_TEST_LOOP_c_c): New macro.
62298         (cacos_test_data): New variable.
62299         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
62300         (cacosh_test_data): New variable.
62301         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
62302         (casin_test_data): New variable.
62303         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
62304         (casinh_test_data): New variable.
62305         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
62306         (catan_test_data): New variable.
62307         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
62308         (catanh_test_data): New variable.
62309         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
62310         (ccos_test_data): New variable.
62311         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
62312         (ccosh_test_data): New variable.
62313         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
62314         (cexp_test_data): New variable.
62315         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
62316         (clog_test_data): New variable.
62317         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
62318         (clog10_test_data): New variable.
62319         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
62320         (conj_test_data): New variable.
62321         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
62322         (cproj_test_data): New variable.
62323         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
62324         (csin_test_data): New variable.
62325         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
62326         (csinh_test_data): New variable.
62327         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
62328         (csqrt_test_data): New variable.
62329         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
62330         (ctan_test_data): New variable.
62331         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
62332         (ctan_tonearest_test_data): New variable.
62333         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
62334         (ctan_towardzero_test_data): New variable.
62335         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
62336         (ctan_downward_test_data): New variable.
62337         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
62338         (ctan_upward_test_data): New variable.
62339         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
62340         (ctanh_test_data): New variable.
62341         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
62342         (ctanh_tonearest_test_data): New variable.
62343         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
62344         (ctanh_towardzero_test_data): New variable.
62345         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
62346         (ctanh_downward_test_data): New variable.
62347         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
62348         (ctanh_upward_test_data): New variable.
62349         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
62350         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
62351         of BUILD_COMPLEX.
62352
62353         * math/libm-test.inc (struct test_ff_f_data): New type.
62354         (struct test_ff_f_data_nexttoward): Likewise.
62355         (RUN_TEST_LOOP_2_f): New macro.
62356         (RUN_TEST_LOOP_ff_f): Likewise.
62357         (atan2_test_data): New variable.
62358         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
62359         (copysign_test_data): New variable.
62360         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
62361         (fdim_test_data): New variable.
62362         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
62363         (fmax_test_data): New variable.
62364         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
62365         (fmin_test_data): New variable.
62366         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
62367         (fmod_test_data): New variable.
62368         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
62369         (hypot_test_data): New variable.
62370         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
62371         (nextafter_test_data): New variable.
62372         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
62373         (nexttoward_test_data): New variable.
62374         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
62375         (pow_test_data): New variable.
62376         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
62377         (pow_tonearest_test_data): New variable.
62378         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
62379         (pow_towardzero_test_data): New variable.
62380         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
62381         (pow_downward_test_data): New variable.
62382         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
62383         (pow_upward_test_data): New variable.
62384         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
62385         (remainder_test_data): New variable.
62386         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
62387         (scalb_test_data): New variable.
62388         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
62389         * sysdeps/i386/fpu/libm-test-ulps: Update.
62390
62391 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
62392
62393         * math/libm-test.inc (fma_test): Use max_value instead of local
62394         variable fltmax.
62395         (nextafter_test): Likewise.
62396
62397         * math/libm-test.inc (acos_towardzero_test_data): New variable.
62398         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
62399         (acos_downward_test_data): New variable.
62400         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
62401         (acos_upward_test_data): New variable.
62402         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
62403         (acosh_test_data): New variable.
62404         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
62405         (asin_test_data): New variable.
62406         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
62407         (asin_tonearest_test_data): New variable.
62408         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
62409         (asin_towardzero_test_data): New variable.
62410         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
62411         (asin_downward_test_data): New variable.
62412         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
62413         (asin_upward_test_data): New variable.
62414         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
62415         (asinh_test_data): New variable.
62416         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
62417         (atan_test_data): New variable.
62418         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
62419         (atanh_test_data): New variable.
62420         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
62421         (cbrt_test_data): New variable.
62422         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
62423         (ceil_test_data): New variable.
62424         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
62425         (cos_test_data): New variable.
62426         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
62427         (cos_tonearest_test_data): New variable.
62428         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
62429         (cos_towardzero_test_data): New variable.
62430         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
62431         (cos_downward_test_data): New variable.
62432         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
62433         (cos_upward_test_data): New variable.
62434         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
62435         (cosh_test_data): New variable.
62436         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
62437         (cosh_tonearest_test_data): New variable.
62438         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
62439         (cosh_towardzero_test_data): New variable.
62440         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
62441         (cosh_downward_test_data): New variable.
62442         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
62443         (cosh_upward_test_data): New variable.
62444         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
62445         (erf_test_data): New variable.
62446         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
62447         (erfc_test_data): New variable.
62448         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
62449         (exp_test_data): New variable.
62450         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
62451         (exp_tonearest_test_data): New variable.
62452         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
62453         (exp_towardzero_test_data): New variable.
62454         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
62455         (exp_downward_test_data): New variable.
62456         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
62457         (exp_upward_test_data): New variable.
62458         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
62459         (exp10_test_data): New variable.
62460         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
62461         (exp2_test_data): New variable.
62462         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
62463         (expm1_test_data): New variable.
62464         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
62465         (fabs_test_data): New variable.
62466         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
62467         (floor_test_data): New variable.
62468         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
62469         (j0_test_data): New variable.
62470         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
62471         (j1_test_data): New variable.
62472         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
62473         (log_test_data): New variable.
62474         (log_test): Run tests with RUN_TEST_LOOP_f_f.
62475         (log10_test_data): New variable.
62476         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
62477         (log1p_test_data): New variable.
62478         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
62479         (log2_test_data): New variable.
62480         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
62481         (logb_test_data): New variable.
62482         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
62483         (logb_downward_test_data): New variable.
62484         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
62485         (nearbyint_test_data): New variable.
62486         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
62487         (rint_test_data): New variable.
62488         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
62489         (rint_tonearest_test_data): New variable.
62490         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
62491         (rint_towardzero_test_data): New variable.
62492         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
62493         (rint_downward_test_data): New variable.
62494         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
62495         (rint_upward_test_data): New variable.
62496         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
62497         (round_test_data): New variable.
62498         (round_test): Run tests with RUN_TEST_LOOP_f_f.
62499         (sin_test_data): New variable.
62500         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
62501         (sin_tonearest_test_data): New variable.
62502         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
62503         (sin_towardzero_test_data): New variable.
62504         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
62505         (sin_downward_test_data): New variable.
62506         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
62507         (sin_upward_test_data): New variable.
62508         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
62509         (sinh_test_data): New variable.
62510         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
62511         (sinh_tonearest_test_data): New variable.
62512         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
62513         (sinh_towardzero_test_data): New variable.
62514         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
62515         (sinh_downward_test_data): New variable.
62516         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
62517         (sinh_upward_test_data): New variable.
62518         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
62519         (sqrt_test_data): New variable.
62520         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
62521         (tan_test_data): New variable.
62522         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
62523         (tan_tonearest_test_data): New variable.
62524         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
62525         (tan_towardzero_test_data): New variable.
62526         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
62527         (tan_downward_test_data): New variable.
62528         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
62529         (tan_upward_test_data): New variable.
62530         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
62531         (tanh_test_data): New variable.
62532         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
62533         (tgamma_test_data): New variable.
62534         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
62535         (trunc_test_data): New variable.
62536         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
62537         (y0_test_data): New variable.
62538         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
62539         (y1_test_data): New variable.
62540         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
62541         (significand_test_data): New variable.
62542         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
62543
62544 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
62545
62546         [BZ #12387]
62547         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
62548
62549 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
62550
62551         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
62552
62553 2013-05-10  Andreas Jaeger  <aj@suse.de>
62554
62555         [BZ #15448]
62556         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
62557         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
62558
62559 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
62560
62561         * math/gen-libm-test.pl (adjust_arg): New function.
62562         (special_functions): Handle generating output in both functions
62563         and arrays.
62564         (parse_args): Likewise.
62565         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
62566         $in_func argument to parse_args.
62567         * math/libm-test.inc (struct test_f_f_data): New type.
62568         (IF_ROUND_INIT_): New macro.
62569         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
62570         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
62571         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
62572         (IF_ROUND_INIT_FE_UPWARD): Likewise.
62573         (ROUND_RESTORE_): Likewise.
62574         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
62575         (ROUND_RESTORE_FE_TONEAREST): Likewise.
62576         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
62577         (ROUND_RESTORE_FE_UPWARD): Likewise.
62578         (RUN_TEST_LOOP_f_f): New macro.
62579         (acos_test_data): New variable.
62580         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
62581         (acos_tonearest_test_data): New variable.
62582         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
62583
62584 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
62585
62586         * benchtests/bench-skeleton.c (startup): Fix coding style.
62587
62588 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
62589
62590         [BZ #6809]
62591         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
62592         negative infinity argument.
62593         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
62594         negative infinity argument.
62595         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
62596         negative infinity argument.
62597         * math/libm-test.inc (tgamma_test): Expect errno to be set for
62598         domain errors.
62599
62600 2013-05-10  Florian Weimer  <fweimer@redhat.com>
62601
62602         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
62603         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
62604         * iconv/iconv_prog.c (main): Likewise.
62605         * locale/programs/charmap-dir.c (charmap_readdir)
62606         (fopen_uncompressed): Likewise.
62607         * locale/programs/locfile.c (siblings_uncached)
62608         (write_locale_data): Use lstat64 instead of lstat.
62609         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
62610         stat.
62611
62612 2013-05-10  Andreas Jaeger  <aj@suse.de>
62613
62614         [BZ #15395]
62615         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
62616         localization.
62617         Include <locale.h>.
62618
62619 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
62620
62621         * elf/dl-close.c (_dl_close_worker): Add comments.
62622
62623 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
62624
62625         [BZ #15359]
62626         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
62627         high part of pi/2.
62628         (__ieee754_rem_pio2l): Update comments.
62629
62630         [BZ #15429]
62631         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
62632         high part of pi/2.
62633         (__ieee754_rem_pio2l): Update comments.
62634
62635         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
62636         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
62637
62638         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
62639         M_PI_4l.
62640
62641         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
62642         (M_PI_34_LOG10El): Likewise.
62643         (M_PI2_LOG10El): Likewise.
62644         (M_PI4_LOG10El): Likewise.
62645         (M_PI_LOG10El): Likewise.
62646
62647 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62648
62649         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62650
62651 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
62652
62653         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
62654         (MINUS_ZERO_INIT): Likewise.
62655         (PLUS_INFTY_INIT): Likewise.
62656         (MINUS_INFTY_INIT): Likewise.
62657         (QNAN_VALUE_INIT): Likewise.
62658         (MAX_VALUE_INIT): Likewise.
62659         (MIN_VALUE_INIT): Likewise.
62660         (MIN_SUBNORM_VALUE_INIT): Likewise.
62661         (plus_zero): Initialize with PLUS_ZERO_INIT.
62662         (minus_zero): Initialize with MINUS_ZERO_INIT.
62663         (plus_infty): Initialize with PLUS_INFTY_INIT.
62664         (minus_infty): Initialize with MINUS_INFTY_INIT.
62665         (qnan_value): Initialize with QNAN_VALUE_INIT.
62666         (max_value): Initialize with MAX_VALUE_INIT.
62667         (min_value): Initialize with MIN_VALUE_INIT.
62668         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
62669
62670         * math/libm-test.inc (RUN_TEST_if_f): New macro.
62671         (jn_test): Use TEST_if_f instead of TEST_ff_f.
62672         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
62673         (yn_test): Use TEST_if_f instead of TEST_ff_f.
62674
62675         * math/libm-test.inc (RUN_TEST_f_f): New macro.
62676         (RUN_TEST_2_f): Likewise.
62677         (RUN_TEST_ff_f): Likewise.
62678         (RUN_TEST_fi_f): Likewise.
62679         (RUN_TEST_fl_f): Likewise.
62680         (RUN_TEST_fff_f): Likewise.
62681         (RUN_TEST_c_f): Likewise.
62682         (RUN_TEST_f_f1): Likewise.
62683         (RUN_TEST_fF_f1): Likewise.
62684         (RUN_TEST_fI_f1): Likewise.
62685         (RUN_TEST_ffI_f1): Likewise.
62686         (RUN_TEST_c_c): Likewise.
62687         (RUN_TEST_cc_c): Likewise.
62688         (RUN_TEST_f_i): Likewise.
62689         (RUN_TEST_f_i_tg): Likewise.
62690         (RUN_TEST_ff_i_tg): Likewise.
62691         (RUN_TEST_f_b): Likewise.
62692         (RUN_TEST_f_b_tg): Likewise.
62693         (RUN_TEST_f_l): Likewise.
62694         (RUN_TEST_f_L): Likewise.
62695         (RUN_TEST_sincos): Likewise.
62696         * math/gen-libm-test.pl (new_test): Take new argument to indicate
62697         whether to show exceptions.  Do not include ");\n" in return
62698         value.
62699         (special_functions): Output call to RUN_TEST_sincos instead of
62700         check_float calls.  Update calls to new_test.
62701         (parse_args): Output call to single RUN_TEST_* macro instead of
62702         check_* calls and other assignments.  Update calls to new_test.
62703
62704         [BZ #2546]
62705         [BZ #2560]
62706         [BZ #5159]
62707         [BZ #15426]
62708         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
62709         input to result for tgamma overflow.
62710         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
62711         (gamma_coeff): New variable.
62712         (NCOEFF): New macro.
62713         (gamma_positive): New function.
62714         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
62715         underflow here.  Use gamma_positive instead of exp (lgamma) for
62716         other arguments.
62717         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
62718         (gamma_coeff): New variable.
62719         (NCOEFF): New macro.
62720         (gammaf_positive): New function.
62721         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
62722         underflow here.  Use gamma_positive instead of exp (lgamma) for
62723         other arguments.
62724         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
62725         (gamma_coeff): New variable.
62726         (NCOEFF): New macro.
62727         (gammal_positive): New function.
62728         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
62729         underflow here.  Use gamma_positive instead of exp (lgamma) for
62730         other arguments.
62731         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
62732         (gamma_coeff): New variable.
62733         (NCOEFF): New macro.
62734         (gammal_positive): New function.
62735         (__ieee754_gammal_r): Handle positive infinity, overflow and
62736         underflow here.  Handle NaN the same as positive infinity.  Remove
62737         check x < 0xffffffff for negative integers.  Use gamma_positive
62738         instead of exp (lgamma) for other arguments.
62739         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
62740         (gamma_coeff): New variable.
62741         (NCOEFF): New macro.
62742         (gammal_positive): New function.
62743         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
62744         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
62745         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
62746         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
62747         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
62748         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
62749         * sysdeps/generic/math_private.h (__gamma_productf): New
62750         prototype.
62751         (__gamma_product): Likewise.
62752         (__gamma_productl): Likewise.
62753         * math/Makefile (libm-calls): Add gamma_product.
62754         * math/libm-test.inc (tgamma_test): Add more tests.
62755         * sysdeps/i386/fpu/libm-test-ulps: Update.
62756         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62757
62758 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
62759
62760         * benchtests/bench-skeleton.c (main): Preheat CPU.
62761
62762 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
62763
62764         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
62765
62766 2013-05-07  Roland McGrath  <roland@hack.frob.com>
62767
62768         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
62769         and _dl_skip_args_internal.
62770
62771 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
62772
62773         * manual/message.texi (Message Translation): Talk about users.
62774         Message to key mapping impacts design.
62775
62776 2013-05-06  Roland McGrath  <roland@hack.frob.com>
62777
62778         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
62779
62780         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
62781
62782         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
62783         * sysdeps/wordsize-64/glob64.c: ... here.
62784
62785         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
62786         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
62787         New macros.
62788
62789         * debug/getlogin_r_chk.c: Moved to ...
62790         * login/getlogin_r_chk.c: ... here.
62791         * debug/Makefile (routines): Move getlogin_r_chk to ...
62792         * login/Makefile (routines): ... here.
62793         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
62794         * login/Versions (libc: GLIBC_2.4): ... here.
62795
62796         * io/poll.c (__poll): Renamed from poll.
62797         Add libc_hidden_def.
62798         (poll): Define as weak alias.
62799
62800         * debug/ptsname_r_chk.c: Moved to ...
62801         * login/ptsname_r_chk.c: ... here.
62802         * debug/Makefile (routines): Move ptsname_r_chk to ...
62803         * login/Makefile (routines): ... here.
62804         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
62805         * login/Versions (libc: GLIBC_2.4): ... here.
62806
62807         * posix/getlogin.c: Moved to ...
62808         * login/getlogin.c: ... here.
62809         * posix/getlogin_r.c: Moved to ...
62810         * login/getlogin_r.c: ... here.
62811         * posix/getlogin_r.c: Moved to ...
62812         * login/getlogin_r.c: ... here.
62813         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
62814         * login/Makefile (routines): ... here.
62815         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
62816         * login/Versions (libc: GLIBC_2.0): ... here.
62817
62818         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
62819         (setrlimit): Define as weak alias.
62820
62821         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
62822         Call __ names for open, ftruncate, and close.
62823         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
62824         (truncate): Define as weak alias.
62825
62826 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
62827
62828         * math/gen-libm-test.pl (parse_args): Initialize x before each
62829         test of frexp, modf and remquo.
62830
62831         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
62832         test signgam value.
62833
62834 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62835
62836         [BZ #15418]
62837         [BZ #15419]
62838         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
62839         internal tests.
62840         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
62841
62842 2013-05-06  Roland McGrath  <roland@hack.frob.com>
62843
62844         * elf/dl-writev.h: New file.
62845         * elf/dl-misc.c: Include it.
62846         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
62847         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
62848
62849 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
62850
62851         * math/libm-test.inc (noXFails): Remove variable.
62852         (noXPasses): Likewise.
62853         (BUILD_COMPLEX_INT): Remove macro.
62854         (print_screen): Remove xfail argument.
62855         (print_screen_max_error): Likewise.
62856         (update_stats): Likewise.
62857         (print_max_error): Likewise.  Update calls to other affected
62858         functions.
62859         (print_complex_max_error): Likewise.
62860         (test_single_exception): Update calls to print_screen.
62861         (test_single_errno): Likewise.
62862         (check_float_internal): Remove xfail argument.  Update calls to
62863         other affected functions.
62864         (check_float): Likewise.
62865         (check_complex): Likewise.
62866         (check_int): Likewise.
62867         (check_long): Likewise.
62868         (check_bool): Likewise.
62869         (check_longlong): Likewise.
62870         (main): Don't print noXFails and noXPasses.
62871         * math/gen-libm-test.pl (top level): Don't mention expected
62872         failure handling in comment.
62873         (new_test): Don't handle expected failures.
62874         (parse_args): Don't mention expected failure handling in comment.
62875         (generate_testfile): Don't handle expected failures.
62876         (parse_ulps): Likewise.
62877         (print_ulps_file): Likewise.
62878         (get_failure): Remove function.
62879         (output_test): Don't handle expected failures.
62880         * make/README.libm-test: Don't mention expected failure handling.
62881
62882         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
62883         (minus_zero): Likewise.
62884         (plus_infty): Likewise.
62885         (minus_infty): Likewise.
62886         (qnan_value): Likewise.
62887         (max_value): Likewise.
62888         (min_value): Likewise.
62889         (min_subnorm_value): Likewise.
62890         (initialize): Do not initialize those variables dynamically.
62891
62892 2013-05-03  Roland McGrath  <roland@hack.frob.com>
62893
62894         * io/open.c (__open_2): Moved to ...
62895         * io/open_2.c: ... this new file.
62896         * io/open64.c (__open64_2): Moved to ...
62897         * io/open64_2.c: ... this new file.
62898         * io/openat.c (__openat_2): Moved to ...
62899         * io/openat_2.c: ... this new file.
62900         * io/openat64.c (__openat64_2): Moved to ...
62901         * io/openat64_2.c: ... this new file.
62902         * io/Makefile (routines): Add them.
62903         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
62904         * sysdeps/unix/sysv/linux/open_2.c: File removed.
62905         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
62906         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
62907         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
62908         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
62909         (__openat64): Add hidden_ver.
62910         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
62911         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
62912
62913         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
62914         Separately conditionalize setting of GLRO(dl_sysinfo) so
62915         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
62916         as well, but the actual setting is only under [NEED_DL_SYSINFO].
62917
62918 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62919
62920         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
62921         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
62922         definition.
62923         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
62924         * sysdeps/unix/sysv/linux/powerpc/init-first.c
62925         (_libc_vdso_platform_setup): Add __vdso_time initialization.
62926         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
62927         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
62928
62929 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
62930
62931         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
62932         test signgam value.
62933
62934         * math/libm-test.inc (hypot_test): Do not use
62935         IGNORE_ZERO_INF_SIGN.
62936
62937 2013-05-03  Andreas Jaeger  <aj@suse.de>
62938
62939         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
62940         Linux 3.9.
62941         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
62942         (PF_MAX): Adjust for VSOCK change.
62943
62944 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62945
62946         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62947
62948 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
62949
62950         [BZ #15264]
62951         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
62952         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
62953         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
62954
62955 2013-05-02  David S. Miller  <davem@davemloft.net>
62956
62957         * sysdeps/sparc/fpu/libm-test-ulps: Update.
62958
62959 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
62960
62961         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
62962
62963 2013-05-01  Roland McGrath  <roland@hack.frob.com>
62964
62965         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
62966
62967 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
62968
62969         [BZ #14952]
62970         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
62971         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
62972         Use __attribute__ ((__gnu_inline__)).
62973         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
62974         Don't use __attribute__ ((__gnu_inline__)).
62975
62976 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
62977
62978         [BZ #15423]
62979         * math/s_catan.c (__catan): Handle small real or imaginary part of
62980         input specially to avoid spurious underflow.
62981         * math/s_catanf.c (__catanf): Likewise.
62982         * math/s_catanh.c (__catanh): Likewise.
62983         * math/s_catanhf.c (__catanhf): Likewise.
62984         * math/s_catanhl.c (__catanhl): Likewise.
62985         * math/s_catanl.c (__catanl): Likewise.
62986         * math/libm-test.inc (catan_test): Add more tests.
62987         (catanh_test): Likewise.
62988         * sysdeps/i386/fpu/libm-test-ulps: Update.
62989         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62990
62991 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62992
62993         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62994
62995 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
62996
62997         [BZ #15416]
62998         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
62999         accurately for denominator in atan2.
63000         * math/s_catanf.c (__catanf): Likewise.
63001         * math/s_catanh.c (__catanh): Likewise.
63002         * math/s_catanhf.c (__catanhf): Likewise.
63003         * math/s_catanhl.c (__catanhl): Likewise.
63004         * math/s_catanl.c (__catanl): Likewise.
63005         * math/libm-test.inc (catan_test): Add more tests.
63006         (catanh_test): Likewise.
63007         * sysdeps/i386/fpu/libm-test-ulps: Update.
63008         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63009
63010 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
63011
63012         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
63013
63014         * benchtests/Makefile (bench): Remove slow benchmarks.
63015         * benchtests/atan-inputs: Add slow benchmark inputs.
63016         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
63017         (BENCH_FUNC): Accept variant offset.
63018         (VARIANT): Define.
63019         * benchtests/bench-skeleton.c (main): Run benchmark for each
63020         variant.
63021         * benchtests/cos-inputs: Add slow benchmark inputs.
63022         * benchtests/exp-inputs: Likewise.
63023         * benchtests/pow-inputs: Likewise.
63024         * benchtests/sin-inputs: Likewise.
63025         * benchtests/slowatan-inputs: Remove.
63026         * benchtests/slowatan.c: Remove.
63027         * benchtests/slowcos-inputs: Remove.
63028         * benchtests/slowcos.c: Remove.
63029         * benchtests/slowexp-inputs: Remove.
63030         * benchtests/slowexp.c: Remove.
63031         * benchtests/slowpow-inputs: Remove.
63032         * benchtests/slowpow.c: Remove.
63033         * benchtests/slowsin-inputs: Remove.
63034         * benchtests/slowsin.c: Remove.
63035         * benchtests/slowtan-inputs: Remove.
63036         * benchtests/slowtan.c: Remove.
63037         * benchtests/tan-inputs: Add slow benchmark inputs.
63038         * scripts/bench.pl: Parse comments and directives.
63039
63040         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
63041         in CPPFLAGS.
63042         ($(objpfx)bench-%.c): Remove *-ITER.
63043         * benchtests/bench-modf.c: Remove definition of ITER.
63044         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
63045         (main): Loop for DURATION seconds instead of fixed number of
63046         iterations.
63047         * scripts/bench.pl: Don't expect iterations in parameters.
63048
63049 2013-04-29  Roland McGrath  <roland@hack.frob.com>
63050
63051         * io/fchdir.c (__fchdir): Renamed from fchdir.
63052         (fchdir): Define as weak alias.
63053
63054 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
63055
63056         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
63057         (ERRNO_EDOM): Likewise.
63058         (ERRNO_ERANGE): Likewise.
63059         (noErrnoTests): New variable.
63060         (init_max_error): Set errno to 0.
63061         (test_single_errno): New function.
63062         (test_errno): Likewise.
63063         (check_float_internal): Call test_errno.  Set errno to 0.
63064         (check_complex): Refer to errno tests in comment.
63065         (check_int): Call test_errno.  Set errno to 0.
63066         (check_long): Likewise.
63067         (check_bool): Likewise.
63068         (check_longlong): Likewise.
63069         (cos_test): Use ERRNO_* flags for errno tests instead of
63070         check_int.
63071         (expm1_test): Likewise.
63072         (fmod_test): Likewise.
63073         (ilogb_test): Likewise.
63074         (lgamma_test): Likewise.
63075         (pow_test): Likewise.
63076         (remainder_test): Likewise.
63077         (sin_test): Likewise.
63078         (tan_test): Likewise.
63079         (yn_test): Likewise.
63080         (initialize): Set errno to 0.
63081         (main): Print number of errno tests.
63082         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
63083
63084 2013-04-29  Andreas Jaeger  <aj@suse.de>
63085
63086         [BZ #15084]
63087         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
63088         and RES_USEVC.
63089
63090         [BZ #15085]
63091         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
63092         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
63093         unimplemented.
63094
63095         [BZ #15380]
63096         * stdlib/random.c (__initstate): Return NULL if
63097         __initstate fails.
63098
63099         [BZ #15086]
63100         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
63101         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
63102         RES_SNGLKUPREOP.
63103
63104 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63105
63106         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
63107
63108 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
63109
63110         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
63111         of individual tests.
63112         (casin_test): Likewise.
63113         (casinh_test): Likewise.
63114
63115 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
63116
63117         [BZ #15409]
63118         * math/s_catan.c (__catan): Handle arguments with large real or
63119         imaginary part separately without squaring.
63120         * math/s_catanf.c (__catanf): Likewise.
63121         * math/s_catanh.c (__catanh): Likewise.
63122         * math/s_catanhf.c (__catanhf): Likewise.
63123         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
63124         and redefine.
63125         (__catanhl): Handle arguments with large real or imaginary part
63126         separately without squaring.
63127         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
63128         and redefine.
63129         (__catanl): Handle arguments with large real or imaginary part
63130         separately without squaring.
63131         * math/libm-test.inc (catan_test): Add more tests.
63132         (catanh_test): Likewise.
63133         * sysdeps/i386/fpu/libm-test-ulps: Update.
63134         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63135
63136 2013-04-27  Andreas Jaeger  <aj@suse.de>
63137
63138         [BZ #15007]
63139         * stdlib/stdlib.h: Update guards for qecvt.
63140         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
63141         <stdlib.h>.
63142
63143 2013-04-27  Allan McRae  <allan@archlinux.org>
63144
63145         * sysdeps/i386/fpu/libm-test-ulps: Update.
63146
63147 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
63148
63149         [BZ #15406]
63150         * math/s_catan.c: Include <float.h>.
63151         (__catan): Ensure underflow exception occurs for underflowed
63152         result.
63153         * math/s_catanf.c: Include <float.h>.
63154         (__catanf): Ensure underflow exception occurs for underflowed
63155         result.
63156         * math/s_catanh.c: Include <float.h>.
63157         (__catanh): Ensure underflow exception occurs for underflowed
63158         result.
63159         * math/s_catanhf.c: Include <float.h>.
63160         (__catanhf): Ensure underflow exception occurs for underflowed
63161         result.
63162         * math/s_catanhl.c: Include <float.h>.
63163         (__catanhl): Ensure underflow exception occurs for underflowed
63164         result.
63165         * math/s_catanl.c: Include <float.h>.
63166         (__catanl): Ensure underflow exception occurs for underflowed
63167         result.
63168         * math/libm-test.inc (catan_test): Add more tests.
63169         (catanh_test): Likewise.
63170
63171         [BZ #15405]
63172         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
63173         underflowed result.
63174         * math/s_ccoshf.c (__ccoshf): Likewise.
63175         * math/s_ccoshl.c (__ccoshl): Likewise.
63176         * math/s_csin.c (__csin): Likewise.
63177         * math/s_csinf.c (__csinf): Likewise.
63178         * math/s_csinh.c (__csinh): Likewise.
63179         * math/s_csinhf.c (__csinhf): Likewise.
63180         * math/s_csinhl.c (__csinhl): Likewise.
63181         * math/s_csinl.c (__csinl): Likewise.
63182         * math/libm-test.inc (ccos_test): Add more tests.
63183         (ccosh_test): Likewise.
63184         (csin_test): Likewise.
63185         (csinh_test): Likewise.
63186
63187 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63188
63189         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
63190         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
63191         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
63192         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
63193         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
63194         powerpc/power5+/fpu folders.
63195         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
63196
63197
63198 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
63199
63200         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
63201
63202 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
63203
63204         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
63205         additions to variable.
63206         [$(config-machine) = x86_64] (modules-names): Likewise.
63207         ($(objpfx)tst-audit3): Remove dependency.
63208         ($(objpfx)tst-audit3.out): Likewise.
63209         ($(objpfx)tst-audit4): Likewise.
63210         ($(objpfx)tst-audit4.out): Likewise.
63211         ($(objpfx)tst-audit5): Likewise.
63212         ($(objpfx)tst-audit5.out): Likewise.
63213         ($(objpfx)tst-audit6): Likewise.
63214         ($(objpfx)tst-audit6.out): Likewise.
63215         ($(objpfx)tst-audit7): Likewise.
63216         ($(objpfx)tst-audit7.out): Likewise.
63217         (tst-audit3-ENV): Remove variable.
63218         (tst-audit4-ENV): Likewise.
63219         (tst-audit5-ENV): Likewise.
63220         (tst-audit6-ENV): Likewise.
63221         (tst-audit7-ENV): Likewise.
63222         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
63223         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
63224         addition to variable.
63225         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
63226         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
63227         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
63228         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
63229         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
63230         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
63231         tst-audit3, tst-audit4 and tst-audit5.
63232         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
63233         tst-audit6 and tst-audit7.
63234         [$(subdir) = elf] (modules-names): Add audit modules for those
63235         tests.
63236         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
63237         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
63238         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
63239         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
63240         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
63241         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
63242         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
63243         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
63244         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
63245         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
63246         [$(subdir) = elf] (tst-audit3-ENV): New variable.
63247         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
63248         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
63249         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
63250         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
63251         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
63252         Likewise.
63253         [$(subdir) = elf && $(config-cflags-avx) = yes]
63254         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
63255         [$(subdir) = elf && $(config-cflags-avx) = yes]
63256         (CFLAGS-tst-auditmod4a.c): Likewise.
63257         [$(subdir) = elf && $(config-cflags-avx) = yes]
63258         (CFLAGS-tst-auditmod4b.c): Likewise.
63259         [$(subdir) = elf && $(config-cflags-avx) = yes]
63260         (CFLAGS-tst-auditmod6b.c): Likewise.
63261         [$(subdir) = elf && $(config-cflags-avx) = yes]
63262         (CFLAGS-tst-auditmod6c.c): Likewise.
63263         [$(subdir) = elf && $(config-cflags-avx) = yes]
63264         (CFLAGS-tst-auditmod7b.c): Likewise.
63265         * elf/tst-audit3.c: Move to ...
63266         * sysdeps/x86_64/tst-audit3.c: ... here.
63267         * elf/tst-audit4.c: Move to ...
63268         * sysdeps/x86_64/tst-audit4.c: ... here.
63269         * elf/tst-audit5.c: Move to ...
63270         * sysdeps/x86_64/tst-audit5.c: ... here.
63271         * elf/tst-audit6.c: Move to ...
63272         * sysdeps/x86_64/tst-audit6.c: ... here.
63273         * elf/tst-audit7.c: Move to ...
63274         * sysdeps/x86_64/tst-audit7.c: ... here.
63275         * elf/tst-auditmod3a.c: Move to ...
63276         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
63277         * elf/tst-auditmod3b.c: Move to ...
63278         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
63279         * elf/tst-auditmod4a.c: Move to ...
63280         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
63281         * elf/tst-auditmod4b.c: Move to ...
63282         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
63283         * elf/tst-auditmod5a.c: Move to ...
63284         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
63285         * elf/tst-auditmod5b.c: Move to ...
63286         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
63287         * elf/tst-auditmod6a.c: Move to ...
63288         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
63289         * elf/tst-auditmod6b.c: Move to ...
63290         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
63291         * elf/tst-auditmod6c.c: Move to ...
63292         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
63293         * elf/tst-auditmod7a.c: Move to ...
63294         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
63295         * elf/tst-auditmod7b.c: Move to ...
63296         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
63297
63298 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
63299
63300         [BZ #15366]
63301         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
63302         define unconditionally.
63303         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
63304         define unconditionally.
63305         (INT8_C, INT16_C, etc.): Likewise.
63306
63307 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
63308
63309         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
63310         __ehdr_start with hidden visibility.
63311
63312         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
63313
63314 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
63315
63316         * math/libm-test.inc (cos_test): Use accurate hex constants.
63317         (sincost_test): Likewise.
63318
63319 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
63320
63321         * math/libm-test.inc (catan_test): Add more tests.
63322         (catanh_test): Likewise.
63323
63324         * math/s_catanf.c (__catanf): Use suffixed floating-point
63325         constants.
63326         * math/s_catanhf.c (__catanhf): Likewise.
63327         * math/s_catanhl.c (__catanhl): Likewise.
63328         * math/s_catanl.c (__catanl): Likewise.
63329
63330         [BZ #15394]
63331         * math/s_catan.c (__catan): Calculate imaginary part of result
63332         with log1p not log unless computing log of number close to 0.
63333         * math/s_catanf.c (__catanf): Likewise.
63334         * math/s_catanl.c (__catanl): Likewise.
63335         * math/s_catanh.c (__catanh): Calculate real part of result with
63336         log1p not log unless computing log of number close to 0.
63337         * math/s_catanhf.c (__catanhf): Likewise.
63338         * math/s_catanhl.c (__catanhl): Likewise.
63339         * math/libm-test.inc (catan_test): Add more tests.
63340         (catanh_test): Likewise.
63341         * sysdeps/i386/fpu/libm-test-ulps: Update.
63342         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63343
63344 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
63345
63346         * benchtests/Makefile: Mention files in which fast and slow
63347         paths of math functions are implemented.
63348
63349 2013-04-23  Roland McGrath  <roland@hack.frob.com>
63350
63351         * sysdeps/posix/timespec_get.c: New file.
63352
63353 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63354
63355         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
63356         POWER.
63357         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
63358         for POWER.
63359         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
63360         powerpc/power5/fpu folders.
63361         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
63362         * benchtests/Makefile: Add modf testcase.
63363         * benchtests/bench-modf.c: New file: Benchmark test for mo
63364
63365 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
63366
63367         [BZ #14888]
63368         * time/Makefile (tests): Add tst-strptime-whitespace.
63369         * time/strptime_l.c (get_number): Use ISSPACE.
63370         (__strptime_internal): Likewise.
63371         * time/tst-strptime-whitespace.c: New test case.
63372
63373 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
63374
63375         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
63376         member.
63377         (_nss_files_init): Set it here.
63378
63379 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
63380
63381         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
63382         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
63383         unsigned.
63384
63385 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
63386
63387         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
63388
63389 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
63390
63391         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
63392         size just once.
63393
63394 2013-04-21  David S. Miller  <davem@davemloft.net>
63395
63396         * po/ru.po: Update Russion translation from translation project.
63397
63398 2013-04-17  Adam Conrad  <adconrad@0c3.net>
63399
63400         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
63401         and setfsgid.
63402
63403 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
63404
63405         * configure.in: Remove i386 configure warning. Remove i386 case.
63406         * configure: Regenerate.
63407         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
63408         Add example to error message.
63409         * sysdeps/i386/configure: Regenerate.
63410
63411 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
63412
63413         * benchtests/Makefile (bench): Add cos, tan, slowcos and
63414         slowtan.
63415         * benchtests/cos-inputs: New file.
63416         * benchtests/slowcos-inputs: New file.
63417         * benchtests/slowcos.c: New file.
63418         * benchtests/slowtan-inputs: New file.
63419         * benchtests/slowtan.c: New file.
63420         * benchtests/tan-inputs: New file.
63421
63422 2013-04-16  Roland McGrath  <roland@hack.frob.com>
63423
63424         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
63425         considered kosher.
63426
63427 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
63428
63429         * benchtests/Makefile: Include cppflags-iterator.mk to add
63430         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
63431
63432         * Makefile.in (bench-clean): New target.
63433         * benchtests/Makefile (bench-clean): Likewise.
63434
63435 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
63436
63437         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
63438
63439 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
63440
63441         * stdio-common/tstdiomisc.c: Fix coding-style violation.
63442
63443 2013-04-15  Andreas Schwab  <schwab@suse.de>
63444
63445         * nscd/grpcache.c (cache_addgr): Properly check for short write.
63446         * nscd/initgrcache.c (addinitgroupsX): Likewise.
63447         * nscd/pwdcache.c (cache_addpw): Likewise.
63448         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
63449         more than recsize.
63450
63451 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
63452
63453         * benchtests/Makefile (bench): Write all output to
63454         bench-out.tmp together.
63455
63456 2013-04-15  Andreas Schwab  <schwab@suse.de>
63457
63458         * nscd/nscd.c (main): Don't fork again after closing files.
63459
63460 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
63461
63462         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
63463
63464         * benchtests/Rules (bench-deps): Collect dependencies into a
63465         single variable.  Add Makefile to dependencies.
63466         ($(objpfx)bench-%.c): Depend on bench-deps.
63467
63468 2013-04-12  Roland McGrath  <roland@hack.frob.com>
63469             Xavier Roche  <roche+kml2@exalead.com>
63470
63471         [BZ #15361]
63472         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
63473         just that it's a file descriptor.
63474         * manual/llio.texi (Synchronizing AIO Operations): Update description
63475         for EBADF error from aio_fsync.
63476
63477 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
63478
63479         * Rules (bench): Move target definition...
63480         * benchtests/Makefile: ... here.
63481
63482 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
63483
63484         * math/libm-test.inc (cos_test): Fix PI/2 test.
63485         (sincos_test): Likewise.
63486         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
63487         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
63488
63489 2013-04-11  Andreas Schwab  <schwab@suse.de>
63490
63491         [BZ #13988]
63492         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
63493         accept exponent character only when digits were seen.
63494         * stdio-common/Makefile (tests): Add bug26.
63495         * stdio-common/bug26.c: New file.
63496
63497         [BZ #14293]
63498         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
63499         non-freeable.
63500
63501 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
63502
63503         * Makeconfig (rtld-prefix): Define built linker prefix.
63504         * Rules (run-bench): Use it.
63505         * math/Makefile (run-regen-ulps): Likewise.
63506
63507         * Rules (bench): Remove eval.
63508
63509 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
63510             Roland McGrath  <roland@hack.frob.com>
63511             Ondrej Bilka  <neleai@seznam.cz>
63512
63513         [BZ #15346]
63514         * time/getdate.c: Include ctype.h and alloca.h.
63515         (__getdate_r): Trim leading and trailing spaces of input.
63516         * time/tst-getdate.c (tests): Add tests with leading and
63517         trailing spaces.
63518
63519 2013-04-08  Roland McGrath  <roland@hack.frob.com>
63520
63521         [BZ #14280]
63522         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
63523         when computing value.
63524
63525 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
63526
63527         * math/README.libm-test (How can I generate "libm-test-ulps"?):
63528         Use testrun.sh to run libm tests.
63529
63530         [BZ #15309]
63531         * elf/dl-open.c (dl_open_worker): memset all of seen array.
63532
63533 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
63534
63535         [BZ #15264]
63536         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
63537
63538 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
63539
63540         * Makefile.in (regen-ulps): New target.
63541         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
63542         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
63543         [ifneq (no,$(PERL)] (regen-ulps): New target.
63544         [ifeq (no,$(PERL)] (regen-ulps): New target.
63545         * math/libm-test.inc (ulps_file_name): Define.
63546         (output_dir): New variable.
63547         (options): Add "output-dir" option.
63548         (parse_opt): Handle 'o' case.
63549         (main): If output_dir is non-NULL use it as a prefix
63550         otherwise use "".
63551         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
63552
63553 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
63554
63555         [BZ #10060, #10062]
63556         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
63557         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
63558         fail configure if __sync_val_compare_and_swap is not inlined.
63559         * sysdeps/i386/configure: Regenerate.
63560         * configure.in: Build for i686 when configured for i386.
63561         * configure: Regenerate.
63562         * README: Remove i386 reference.
63563
63564 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
63565
63566         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
63567         * sysdeps/s390/s390-64/sysdep.h: Likewise.
63568
63569 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
63570
63571         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
63572         (lmsnanval): New variables.
63573         (F): Add conversion tests.
63574         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
63575         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
63576
63577         * stdio-common/tstdiomisc.c (F): Properly collect individual
63578         tests' results.
63579
63580         [BZ #14686, #15336]
63581         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
63582         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
63583         Instead, use input NaN values or generate a qNaN by arithmetic
63584         operation.  Also fix bugs to comply with the standard.
63585         * math/libm-test.inc (remainder_test): Add more tests.
63586
63587         [BZ #15335, #15342]
63588         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
63589         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
63590         input NaN values or generate a qNaN by arithmetic operation.
63591
63592         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
63593         unreachable code.
63594
63595         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
63596         definitions.
63597
63598 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
63599
63600         [BZ #14478]
63601         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
63602         underflowed result.
63603         * math/s_cexpf.c (__cexpf): Likewise.
63604         * math/s_cexpl.c (__cexpl): Likewise.
63605         * math/libm-test.inc (cexp_test): Add more tests.
63606
63607 2013-04-03  Andreas Schwab  <schwab@suse.de>
63608
63609         [BZ #15330]
63610         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
63611         order arrays from heap if bigger than alloca cutoff.
63612
63613 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
63614
63615         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
63616         (SNAN_TESTS_double): Refer to GCC PR56831.
63617         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
63618         GCC PR56828.
63619
63620 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
63621
63622         * Rules (bench): Move bench.out after the run is complete.
63623
63624         * Rules (bench): Echo currently running benchmark.
63625
63626         * benchtests/Makefile (bench): Add atan and slowatan.
63627         * benchtests/atan-inputs: New file.
63628         * benchtests/slowatan-inputs: New file.
63629         * benchtests/slowatan.c: New file.
63630
63631         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
63632         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
63633         its value.
63634
63635         [BZ #15305]
63636         * sysdeps/unix/sysv/linux/kernel-features.h
63637         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
63638         __ASSUME_XFS_RESTRICTED_CHOWN.
63639         * sysdeps/unix/sysv/linux/pathconf.c
63640         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
63641         Save and restore errno.
63642
63643 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
63644
63645         [BZ #15327]
63646         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
63647         arguments using __kernel_casinh.
63648         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
63649         arguments using __kernel_casinhf.
63650         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
63651         arguments using __kernel_casinhl.
63652         * math/libm-test.inc (cacosh_test): Add more tests.
63653         * sysdeps/i386/fpu/libm-test-ulps: Update.
63654         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63655
63656 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
63657
63658         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
63659         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
63660
63661         * bench/Makefile (bench): Add sin and slowsin.
63662         * benchtests/sin-inputs: New file.
63663         * benchtests/slowsin-inputs: New file.
63664         * benchtests/slowsin.c: New file.
63665
63666         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
63667         (bench): Add slowexp and slowpow.
63668         (exp-ITER): Increase iterations.
63669         (pow-ITER): Likewise.
63670         * benchtests/exp-inputs: Change input.
63671         * benchtests/pow-inputs: Likewise.
63672         * benchtests/slowexp-inputs: New file.
63673         * benchtests/slowexp.c: New file.
63674         * benchtests/slowpow-inputs: New file.
63675         * benchtests/slowpow.c: New file.
63676
63677 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63678
63679         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
63680         instructions.
63681         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
63682         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
63683         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
63684         * benchtests/Makefile: Add rint benchtest.
63685         * benchtests/rint-inputs: Input for rint benchtest.
63686
63687 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
63688
63689         * Versions.def (libm): Add GLIBC_2.18.
63690         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
63691         hidden libm prototypes.
63692         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
63693         * math/Makefile (libm-calls): Add s_issignaling.
63694         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
63695         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
63696         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
63697         declaration.
63698         * math/math.h [__USE_GNU] (issignaling): New macro.
63699         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
63700         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
63701         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
63702         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
63703         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
63704         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
63705         * manual/arith.texi (issignaling): New section.
63706         * manual/libm-err-tab.pl (@all_functions): Update comment.
63707         * math/gen-libm-test.pl (parse_args): Apply special handling for
63708         issignaling.
63709         * math/libm-test.inc (print_float, issignaling_test): New
63710         functions.
63711         (check_float_internal): Add issignaling checks.
63712         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
63713         default definition.
63714         * sysdeps/powerpc/math-tests.h: New file.
63715         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
63716         tests.
63717         * math/test-snan.c (TEST_FUNC): Likewise.
63718
63719 2013-03-30  David S. Miller  <davem@davemloft.net>
63720
63721         * po/de.po: Update from translation team.
63722
63723 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
63724
63725         [BZ #10357]
63726         * math/k_casinh.c (__kernel_casinh): Handle arguments with
63727         imaginary part less than 1.0 and real part less than 0.5
63728         specially.
63729         * math/k_casinhf.c (__kernel_casinhf): Likewise.
63730         * math/k_casinhl.c (__kernel_casinhl): Likewise.
63731         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
63732         (cacos_test): Add more tests.
63733         (casin_test): Likewise.
63734         (casinh_test): Likewise.
63735         * sysdeps/i386/fpu/libm-test-ulps: Update.
63736         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63737
63738 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
63739
63740         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
63741         ONE with its value.
63742
63743         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
63744         (__pow_mp): Replace ONE and MONE with their values.
63745         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
63746         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
63747         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
63748         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
63749         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
63750         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
63751
63752         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
63753
63754         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
63755         (__pow_mp): Replace ZERO and MZERO with their values.
63756         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
63757         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
63758         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
63759         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
63760         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
63761         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
63762         (__sqr): Likewise.
63763
63764         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
63765
63766         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
63767
63768 2013-03-28  Roland McGrath  <roland@hack.frob.com>
63769
63770         * include/stdlib.h [!SHARED] (__call_tls_dtors):
63771         Declare with __attribute__ ((weak)).
63772         * stdlib/exit.c (__libc_atexit) [!SHARED]:
63773         Call __call_tls_dtors only if it's not NULL.
63774
63775 2013-03-28  Roland McGrath  <roland@hack.frob.com>
63776
63777         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
63778         didn't do it already, then set _dl_phdr and _dl_phnum based on the
63779         magic __ehdr_start linker symbol if it's defined.
63780         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
63781         them up here if it was already done.
63782
63783         * elf/dl-support.c (_dl_phdr): Make pointer to const.
63784         (_dl_aux_init): Use const in cast when setting it.
63785         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
63786         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
63787         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
63788
63789         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
63790         Declare them here.
63791         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
63792         * csu/libc-tls.c: Nor here.
63793         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
63794
63795         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
63796         (__libc_message): Never call vsyslog.
63797
63798 2013-03-28  Alan Modra  <amodra@gmail.com>
63799
63800         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
63801         Define as empty.
63802         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
63803         Likewise.
63804
63805 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63806
63807         [BZ #15214]
63808         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
63809         underflow.
63810         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
63811
63812 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
63813
63814         [BZ #15304]
63815         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
63816         Don't add gid passed as argument.
63817
63818         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
63819
63820 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
63821
63822         [BZ #15307]
63823         * math/k_casinh.c (__kernel_casinh): Handle arguments with
63824         imaginary part between 1.0 and 1.5 and real part less than 0.5
63825         specially.
63826         * math/k_casinhf.c (__kernel_casinhf): Likewise.
63827         * math/k_casinhl.c (__kernel_casinhl): Likewise.
63828         * math/libm-test.inc (cacos_test): Add more tests.
63829         (casin_test): Likewise.
63830         (casinh_test): Likewise.
63831         * sysdeps/i386/fpu/libm-test-ulps: Update.
63832         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63833
63834 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
63835
63836         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
63837         constants.
63838         (norm): Likewise.
63839         (denorm): Likewise.
63840         (__dbl_mp): Likewise.
63841         (add_magnitudes): Likewise.
63842         (sub_magnitudes): Likewise.
63843         (__add): Likewise.
63844         (__sub): Likewise.
63845         (__mul): Likewise.
63846         (__sqr): Likewise.
63847         (__inv): Likewise.
63848         (__dvd): Likewise.
63849
63850         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
63851         commented code.
63852         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
63853         (__dubcos): Likewise.
63854         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
63855         (__ieee754_acos): Likewise.
63856         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
63857         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
63858         (__exp1): Likewise.
63859         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
63860         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
63861         (log1): Likewise.
63862         (my_log2): Likewise.
63863         (checkint): Likewise.
63864         * sysdeps/ieee754/dbl-64/e_remainder.c
63865         (__ieee754_remainder): Likewise.
63866         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
63867         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
63868         (bsloww): Likewise.
63869         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
63870
63871         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
63872         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
63873         MANTISSA_STORE_T to store computations on mantissa.  Use
63874         macros for rounding and division.
63875         (denorm): Likewise.
63876         (__dbl_mp): Likewise.
63877         (add_magnitudes): Likewise.
63878         (sub_magnitudes): Likewise.
63879         (__mul): Likewise.
63880         (__sqr): Likewise.
63881         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
63882         powers of two in terms of TWOPOW macro.
63883         (mp_no): Make type of mantissa as MANTISSA_T.
63884         [!RADIXI]: Define RADIXI.
63885         [!TWO52]: Define TWO52.
63886         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
63887
63888 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63889
63890         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
63891         llroundl symbol when building for PPC32.
63892
63893 2013-03-24  Mark H Weaver  <mhw@netris.org>
63894
63895         * manual/arith.texi (Normalization Functions): Fix prototypes for
63896         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
63897
63898 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63899
63900         [BZ #13889]
63901         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
63902         high value to check if expl overflow.
63903         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
63904         to check for underflow and overflow.
63905         * math/libm-test.inc: Add exp test.
63906
63907 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
63908
63909         [BZ #11120]
63910         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
63911         with NOT_IN_libc.
63912
63913 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63914
63915         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
63916         symbol.
63917
63918 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
63919
63920         * math/gen-libm-test.pl (parse_args, special_functions): Properly
63921         wrap blocks consisting of several statements.
63922
63923         * sysdeps/generic/math-tests.h: New file.
63924         * sysdeps/i386/fpu/math-tests.h: Likewise.
63925         * math/test-snan.c: Include it.
63926         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
63927
63928 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
63929
63930         [BZ #15285]
63931         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
63932         (__ieee754_j0l): Do not improve calculations using cos of twice
63933         input for inputs above LDBL_MAX / 2.0L.
63934         (__ieee754_y0l): Likewise.
63935         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
63936         (__ieee754_j1l): Do not improve calculations using cos of twice
63937         input for inputs above LDBL_MAX / 2.0L.
63938         (__ieee754_y1l): Likewise.
63939         * math/libm-test.inc (j0_test): Add another test.
63940         (j1_test): Likewise.
63941         (y0_test): Likewise.
63942         (y1_test): Likewise.
63943         * sysdeps/i386/fpu/libm-test-ulps: Update.
63944
63945 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
63946
63947         * Rules ($(objpfx)bench-%.c): Include code from a C source
63948         file.
63949
63950 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
63951
63952         [BZ #15287]
63953         * math/k_casinh.c (__kernel_casinh): Handle arguments with
63954         imaginary part 1.0 and real part less than 0.5 specially.
63955         * math/k_casinhf.c (__kernel_casinhf): Likewise.
63956         * math/k_casinhl.c (__kernel_casinhl): Likewise.
63957         * math/libm-test.inc (cacos_test): Add more tests.
63958         (casin_test): Likewise.
63959         (casinh_test): Likewise.
63960         * sysdeps/i386/fpu/libm-test-ulps: Update.
63961         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63962
63963 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
63964
63965         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
63966         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
63967
63968 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
63969
63970         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
63971         * config.make.in (config-cflags-sse4): Remove variable.
63972         (config-cflags-avx): Likewise.
63973         (config-cflags-sse2avx): Likewise.
63974         (config-cflags-novzeroupper): Likewise.
63975         (config-asflags-i686): Likewise.
63976         (have-mfma4): Likewise.
63977         (have-as-vis3): Likewise.
63978         (MIG): Likewise.
63979         * configure.in (MIG): Do not AC_SUBST.
63980         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
63981         (libc_cv_cc_sse4): Do not AC_SUBST.
63982         (libc_cv_cc_avx): Likewise.
63983         (libc_cv_cc_sse2avx): Likewise.
63984         (libc_cv_cc_novzeroupper): Likewise.
63985         (libc_cv_cc_fma4): Likewise.
63986         (libc_cv_as_i686): Likewise.
63987         (libc_cv_sparc_as_vis3): Likewise.
63988         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
63989         LIBC_CONFIG_VAR.
63990         (config-asflags-i686): Likewise.
63991         (config-cflags-avx): Likewise.
63992         (config-cflags-sse2avx): Likewise.
63993         (have-mfma4): Likewise.
63994         (config-cflags-novzeroupper): Likewise.
63995         * sysdeps/mach/configure.in (MIG): Likewise.
63996         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
63997         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
63998         LIBC_CONFIG_VAR.
63999         (config-cflags-avx): Likewise.
64000         (config-cflags-sse2avx): Likewise.
64001         (have-mfma4): Likewise.
64002         (config-cflags-novzeroupper): Likewise.
64003         * configure: Regenerated.
64004         * sysdeps/i386/configure: Likewise.
64005         * sysdeps/mach/configure: Likewise.
64006         * sysdeps/sparc/configure: Likewise.
64007         * sysdeps/x86_64/configure: Likewise.
64008
64009 2013-03-20  Roland McGrath  <roland@hack.frob.com>
64010
64011         [BZ #14812]
64012         * locale/programs/localedef.c (options): Put N_ translation marker
64013         on argument names, not just descriptions.
64014
64015 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
64016
64017         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
64018
64019 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
64020
64021         [BZ #14176]
64022         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
64023
64024 2013-03-19  Roland McGrath  <roland@hack.frob.com>
64025
64026         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
64027         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
64028         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
64029         [!BEFORE_ABORT] (before_abort): New function.
64030         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
64031         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
64032         (writev_for_fatal): New function.
64033         (WRITEV_FOR_FATAL): New macro; call that.
64034         (backtrace_and_maps): New function.
64035         (BEFORE_ABORT): New macro; call that.
64036         (struct str_list): Type removed.
64037         (__libc_message, __libc_fatal): Functions removed.
64038         Include <sysdeps/posix/libc_fatal.c> instead.
64039
64040 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
64041
64042         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
64043         constants.
64044         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
64045         double constants.
64046
64047 2013-03-19  Andreas Schwab  <schwab@suse.de>
64048
64049         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
64050         * sysdeps/gnu/configure: Regenerate.
64051
64052         * configure.in: Substitute libc_cv_rtlddir.
64053         * configure: Regenerate.
64054         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
64055         * Makeconfig (rtlddir, inst_rtlddir): New variables.
64056         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
64057         * elf/Makefile (install-others, CFLAGS-interp.c)
64058         (ldso_install, common-ldd-rewrite): Likewise.
64059         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
64060         $(inst_slibdir)/$(rtld-installed-name).
64061         * scripts/rellns-sh: Add -p option.
64062         * Makerules (make-shlib-link): Use rellns-sh to get relative name
64063         for source.
64064
64065 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
64066
64067         * manual/nptl.texi: Renamed to ...
64068         * manual/threads.texi: ... this.
64069         * manual/Makefile (chapters): Update.
64070
64071 2013-03-18  Roland McGrath  <roland@hack.frob.com>
64072
64073         [BZ #14812]
64074         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
64075         on argument names, not just descriptions.
64076         * malloc/memusagestat.c (options): Likewise.
64077         * nss/getent.c (options): Likewise.
64078
64079 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
64080
64081         [BZ #14812]
64082         * iconv/iconv_prog.c (options): Put N_ translation marker
64083         on argument names, not just descriptions.
64084         * iconv/iconvconfig.c (options): Likewise.
64085
64086 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
64087
64088         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
64089         implementation which is faster on all x86_64 architectures.
64090         Tested on AMD, Intel Nehalem, SNB, IVB.
64091         * sysdeps/x86_64/strnlen.S: Likewise.
64092
64093         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
64094         Remove all multiarch strlen and strnlen versions.
64095         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
64096         Remove strlen and strnlen related parts.
64097
64098         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
64099         Inline strlen part.
64100         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
64101
64102         * sysdeps/x86_64/multiarch/strlen.S: Remove.
64103         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
64104         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
64105         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
64106         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
64107         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
64108
64109 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
64110
64111         * manual/memory.texi (Malloc Tunable Parameters):
64112         Sort parameters alphabetically. Add comments for missing entries.
64113
64114 2013-03-17  David S. Miller  <davem@davemloft.net>
64115
64116         * sysdeps/sparc/fpu/libm-test-ulps: Update.
64117
64118 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
64119
64120         [BZ #15283]
64121         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
64122         for arguments at most half maximum finite value.
64123         * math/libm-test.inc (j0_test): Add more tests.
64124         (j1_test): Likewise.
64125         (y0_test): Likewise.
64126         (y1_test): Likewise.
64127         * sysdeps/i386/fpu/libm-test-ulps: Update.
64128         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
64129
64130         [BZ #14155]
64131         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
64132         1 / x and functions P and Q for arguments above 0x1p256L.
64133         (__ieee754_y0l): Likewise.
64134         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
64135         (__ieee754_y1l): Likewise.
64136         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
64137         (j1_test): Likewise.
64138         (y0_test): Likewise.
64139         (y1_test): Likewise.
64140
64141 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
64142
64143         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
64144         variable.
64145
64146 2013-03-15  Roland McGrath  <roland@hack.frob.com>
64147
64148         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
64149         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
64150         zero since it's initialized to EXEC_PAGESIZE.
64151
64152         * sysdeps/unix/sysv/linux/ldsodefs.h
64153         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
64154         * sysdeps/generic/ldsodefs.h: ... here.
64155
64156 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
64157
64158         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
64159
64160         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
64161         math/test-snan.c.
64162         * math/test-snan.c: Renamed from
64163         sysdeps/powerpc/fpu/test-powerpc-snan.c.
64164         * math/Makefile (tests): Add test-snan.
64165         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
64166         test-powerpc-snan.
64167
64168         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
64169         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
64170         functions.
64171         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
64172         __builtin_nan family of functions.
64173         * math/libm-test.inc (initialize): Initialize qnan_value with
64174         __builtin_nan family of functions.
64175         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
64176         Remove variables.
64177         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
64178         Remove functions.
64179         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
64180         storage class.  Initialize qNaN_var and sNaN_var with
64181         __builtin_nan and __builtin_nans families of functions,
64182         respectively.
64183
64184         * math/libm-test.inc (acosh_test): Also test with qNaN input.
64185         (sqrt_test): Remove duplicate test with qNaN input.
64186         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
64187         (round_test, signbit_test, significand_test): Note missing +/-Inf
64188         as well as qNaN tests.
64189
64190         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
64191         qNaN_var.  Fix a few strings, too.
64192         * math/libm-test.inc (nan_value): Rename to qnan_value.
64193         * math/gen-libm-test.pl (%beautify): Adjust to that.
64194         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
64195         * math/test-misc.c (main): Likewise.
64196         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
64197         to __qnan_bytes, and __qnan_union, respectively.
64198         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
64199         Likewise.
64200         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
64201         and lqnanval, respectively.
64202         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
64203         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
64204         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
64205         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
64206
64207         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
64208         * math/test-misc.c (main) [__x86_64__]: Enable test for long
64209         doubles.
64210
64211         * math/test-misc.c (main): Fix copy'n'pastos.
64212         * misc/tst-efgcvt.c (special): Likewise.
64213
64214         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
64215         Remove declarations.
64216
64217 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
64218
64219         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
64220         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
64221         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
64222         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
64223
64224 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64225
64226         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
64227         macro to return vdso values correctly in IFUNC implementations.
64228         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
64229         Optimization by using IFUNC.
64230
64231 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
64232             Richard Henderson  <rth@redhat.com>
64233             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
64234
64235         * Makefile.in (bench): New target.
64236         * NEWS: Mention the benchmark framework.
64237         * Rules (bench): Likewise.
64238         (binaries-bench): Generate binaries for functions to
64239         benchmark.
64240         * benchtests/Makefile: New makefile for benchmark tests.
64241         * benchtests/bench-skeleton.c: New skeleton file for benchmark
64242         programs.
64243         * benchtests/exp-inputs: New input file for EXP function.
64244         * benchtests/pow-inputs: New input file for POW function.
64245         * scripts/bench.pl: New script to generate source files for
64246         benchmark programs.
64247
64248 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
64249
64250         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
64251         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
64252         computations on mantissa.  Use macros for rounding and
64253         division.
64254         (denorm): Likewise.
64255         (__dbl_mp): Likewise.
64256         (add_magnitudes): Likewise.
64257         (sub_magnitudes): Likewise.
64258         (__mul): Likewise.
64259         (__sqr): Likewise.
64260         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
64261         powers of two in terms of TWOPOW macro.
64262         (mp_no): Make type of mantissa as MANTISSA_T.
64263         [!RADIXI]: Define RADIXI.
64264         [!TWO52]: Define TWO52.
64265         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
64266
64267         * manual/nptl.texi (cindex): Modify threads to pthreads.
64268
64269 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
64270
64271         * sysdeps/x86_64/preconfigure: Regenerated.
64272
64273 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
64274
64275         [BZ #14155]
64276         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
64277         0x1p28 and above.
64278         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
64279         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
64280         0x1p28 and above.
64281         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
64282         * math/libm-test.inc (j0_test): Do not allow one spurious
64283         underflow exception.
64284         (y1_test): Likewise.
64285
64286 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
64287
64288         * manual/Makefile (chapters): Add nptl.
64289         * manual/debug.texi (Debugging Support): Add link to Threads
64290         chapter.
64291         * manual/nptl.texi: New file.
64292
64293         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
64294
64295 2013-03-14  Petr Baudis  <pasky@ucw.cz>
64296
64297         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
64298         for non-NULL pointer before the memory validity test. Pointed
64299         out by Holger Brunck <holger.brunck@keymile.com>.
64300
64301 2013-03-13  Andreas Schwab  <schwab@suse.de>
64302
64303         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
64304         instead of .os.
64305
64306 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
64307
64308         * timezone/zic.c: Update from tzcode 2013b.
64309
64310 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
64311
64312         * manual/install.texi (Configuring and compiling):
64313         Mention i686 and i586.
64314         * INSTALL: Regenerate.
64315
64316 2013-03-12  Roland McGrath  <roland@hack.frob.com>
64317
64318         * sysdeps/init_array/elf-init.c: New file.
64319         * csu/elf-init.c
64320         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
64321         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
64322
64323         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
64324         __gmon_start__ as global, but as static with a .preinit_array pointer.
64325         * sysdeps/init_array/gmon-start.c: New file.  Use that.
64326         * sysdeps/init_array/crti.S: New file, empty except for comments.
64327         * sysdeps/init_array/crtn.S: Likewise.
64328
64329 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
64330
64331         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
64332         definining bcopy.
64333         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
64334         Remove Prefer_SSE_for_memop.
64335         * sysdeps/x86_64/multiarch/init-arch.h: Remove
64336         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
64337         HAS_PREFER_SSE_FOR_MEMOP.
64338         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
64339         memset-x86-64.
64340         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
64341         Remove bzero, memset ifunc support.
64342         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
64343         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
64344         * sysdeps/x86_64/multiarch/memset.S: Likewise.
64345         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
64346
64347 2013-03-11  Andreas Schwab  <schwab@suse.de>
64348
64349         [BZ #15234]
64350         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
64351         by SHLIB_COMPAT.
64352         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
64353         (GLIBC_2.16): Remove pthread_atfork.
64354
64355 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
64356
64357         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
64358         (ptestcases.h): Likewise.
64359
64360 2013-03-08  Roland McGrath  <roland@hack.frob.com>
64361
64362         * Makeconfig ($(common-objpfx)config.status): Depend on
64363         sysdeps/*/preconfigure{,.in} too.
64364
64365 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
64366
64367         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
64368         (__free_hook): Use void * instead of __malloc_ptr_t.
64369         (__malloc_hook): Likewise.
64370         (__realloc_hook): Likewise.
64371         (__memalign_hook): Likewise.
64372         (__after_morecore_hook): Likewise.
64373         * malloc/arena.c (save_malloc_hook): Likewise.
64374         (save_free_hook): Likewise.
64375         * malloc/hooks.c (malloc_hook_ini): Likewise.
64376         (realloc_hook_ini): Likewise.
64377         (memalign_hook_ini): Likewise.
64378         * malloc/malloc.c (malloc_hook_ini): Likewise.
64379         (realloc_hook_ini): Likewise.
64380         (memalign_hook_ini): Likewise.
64381         (__free_hook): Likewise.
64382         (__malloc_hook): Likewise.
64383         (__realloc_hook): Likewise.
64384         (__memalign_hook): Likewise.
64385         (__libc_malloc): Likewise.
64386         (__libc_free): Likewise.
64387         (__libc_realloc): Likewise.
64388         (__libc_memalign): Likewise.
64389         (__libc_valloc): Likewise.
64390         (__libc_pvalloc): Likewise.
64391         (__libc_calloc): Likewise.
64392         (__posix_memalign): Likewise.
64393         * malloc/morecore.c (__sbrk): Likewise.
64394         (__default_morecore): Likewise.
64395
64396         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
64397
64398         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
64399         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
64400         __malloc_ptrdiff_t.
64401
64402         * malloc/malloc.h (__malloc_size_t): Remove macro.
64403         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
64404         __malloc_size_t.
64405         (old_memalign_hook): Likewise.
64406         (old_realloc_hook): Likewise.
64407         (struct hdr): Likewise.
64408         (flood): Likewise.
64409         (mallochook): Likewise.
64410         (memalignhook): Likewise.
64411         (reallochook): Likewise.
64412         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
64413         (tr_old_realloc_hook): Likewise.
64414         (tr_old_memalign_hook): Likewise.
64415         (tr_mallochook): Likewise.
64416         (tr_reallochook): Likewise.
64417         (tr_memalignhook): Likewise.
64418
64419 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64420
64421         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
64422         default_ldbl_pack and using as default implementation.
64423         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
64424         implementation.
64425         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
64426         redundant definition.
64427         (ldbl_insert_mantissa): Likewise.
64428         (ldbl_canonicalize): Likewise.
64429         (ldbl_nearbyint): Likewise.
64430         (ldbl_pack): Rename to ldbl_pack_ppc.
64431         (ldbl_unpack): Rename to ldbl_unpack_ppc.
64432         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
64433         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
64434
64435 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
64436
64437         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
64438         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
64439         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
64440         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
64441         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
64442         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
64443         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
64444         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
64445
64446 2013-03-07  Andreas Jaeger  <aj@suse.de>
64447
64448         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
64449         bits/mman-linux.h.
64450
64451 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
64452
64453         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
64454         Include mpa.h and declare __MPEXP.
64455         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
64456         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
64457         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
64458         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
64459         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
64460         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
64461         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
64462
64463         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
64464         (__slowpow): Use long double EXPL and LOGL functions to
64465         compute POW.
64466         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
64467         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
64468         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
64469         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
64470         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
64471         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
64472
64473         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
64474         intermediate variable to calculate exponent.
64475         (__sqr): Likewise.
64476         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
64477         Likewise.
64478         (__sqr): Likewise.
64479
64480         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
64481         [!NO__SQR]: Define __sqr.
64482         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
64483         and NO__SQR.  Remove all code except __mul and __sqr.  Include
64484         sysdeps/ieee754/dbl-64/mpa.c.
64485         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
64486
64487         [BZ #12723]
64488         * posix/Makefile (tests): Add tst-pathconf.
64489         * posix/tst-pathconf.c: New test case.
64490         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
64491         _PC_PIPE_BUF.
64492         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
64493
64494 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
64495
64496         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
64497
64498 2013-03-06  Andreas Jaeger  <aj@suse.de>
64499
64500         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
64501         definition via __MAP_ANONYMOUS.
64502
64503         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
64504         it's not part of Linux headers.
64505
64506         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
64507         (MAP_HUGE_MASK): Define.
64508
64509         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
64510         Define.
64511         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
64512         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
64513         Define.
64514         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
64515         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
64516         Define.
64517         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
64518         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
64519         Define.
64520         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
64521
64522         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
64523         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
64524         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
64525         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
64526         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
64527         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
64528
64529         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
64530         Handle f2fs.
64531
64532         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
64533         Handle f2fs and efivarfs.
64534
64535         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
64536         f2fs.
64537
64538         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
64539         (EFIVARFS_MAGIC): Add.
64540         (F2FS_LINK_MAX): Add.
64541
64542 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
64543
64544         * stdio-common/vfprintf.c: Replace __builtin_expect with
64545         __glibc_unlikely.
64546
64547 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
64548
64549         [BZ #13550]
64550         * sysdeps/generic/bp-sym.h: Remove file.
64551         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
64552         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
64553         <bp-sym.h> and <bp-asm.h>.
64554         (__longjmp): Don't use BP_SYM.
64555         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
64556         and <bp-asm.h>.
64557         (memcpy): Don't use BP_SYM.
64558         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
64559         <bp-sym.h> and <bp-asm.h>.
64560         (memcpy): Don't use BP_SYM.
64561         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
64562         <bp-asm.h>.
64563         (memcpy): Don't use BP_SYM.
64564         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
64565         <bp-asm.h>.
64566         (memset): Don't use BP_SYM.
64567         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
64568         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
64569         (__bzero): Don't use BP_SYM.
64570         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
64571         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
64572         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
64573         <bp-sym.h> and <bp-asm.h>.
64574         (memcmp): Don't use BP_SYM.  Remove comment about bounded
64575         pointers.
64576         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
64577         <bp-sym.h> and <bp-asm.h>.
64578         (memcpy): Don't use BP_SYM.
64579         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
64580         <bp-sym.h> and <bp-asm.h>.
64581         (memset): Don't use BP_SYM.
64582         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
64583         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
64584         (__bzero): Don't use BP_SYM.
64585         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
64586         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
64587         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
64588         <bp-sym.h> and <bp-asm.h>.
64589         (strncmp): Don't use BP_SYM.  Remove comment about bounded
64590         pointers.
64591         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
64592         <bp-sym.h> and <bp-asm.h>.
64593         (memcpy): Don't use BP_SYM.
64594         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
64595         <bp-sym.h> and <bp-asm.h>.
64596         (memset): Don't use BP_SYM.
64597         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
64598         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
64599         (__bzero): Don't use BP_SYM.
64600         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
64601         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
64602         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
64603         <bp-sym.h> and <bp-asm.h>.
64604         (__memchr): Don't use BP_SYM.
64605         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
64606         <bp-sym.h> and <bp-asm.h>.
64607         (memcmp): Don't use BP_SYM.  Remove comment about bounded
64608         pointers.
64609         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
64610         <bp-sym.h> and <bp-asm.h>.
64611         (memcpy): Don't use BP_SYM.
64612         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
64613         <bp-sym.h> and <bp-asm.h>.
64614         (__mempcpy): Don't use BP_SYM.
64615         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
64616         <bp-sym.h> and <bp-asm.h>.
64617         (__memrchr): Don't use BP_SYM.
64618         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
64619         <bp-sym.h> and <bp-asm.h>.
64620         (memset): Don't use BP_SYM.
64621         (__bzero): Likewise.
64622         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
64623         <bp-sym.h> and <bp-asm.h>.
64624         (__rawmemchr): Don't use BP_SYM.
64625         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
64626         <bp-sym.h> and <bp-asm.h>.
64627         (__STRCMP): Don't use BP_SYM.
64628         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
64629         <bp-sym.h> and <bp-asm.h>.
64630         (strchr): Don't use BP_SYM.
64631         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
64632         <bp-sym.h> and <bp-asm.h>.
64633         (__strchrnul): Don't use BP_SYM.
64634         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
64635         <bp-sym.h> and <bp-asm.h>.
64636         (strlen): Don't use BP_SYM.
64637         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
64638         <bp-sym.h> and <bp-asm.h>.
64639         (strncmp): Don't use BP_SYM.  Remove comment about bounded
64640         pointers.
64641         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
64642         <bp-sym.h> and <bp-asm.h>.
64643         (__strnlen): Don't use BP_SYM.
64644         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
64645         <bp-sym.h> and <bp-asm.h>.
64646         (__GI__setjmp): Don't use BP_SYM.
64647         (_setjmp): Likewise.
64648         (__sigsetjmp): Likewise.
64649         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
64650         (L(start_addresses)): Don't use BP_SYM.
64651         (_start): Likewise.
64652         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
64653         <bp-asm.h>.
64654         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
64655         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
64656         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
64657         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
64658         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
64659         <bp-asm.h>.
64660         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
64661         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
64662         about bounded pointers.
64663         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
64664         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
64665         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
64666         <bp-asm.h>.
64667         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
64668         about bounded pointers.  Remove GKM FIXME comments.
64669         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
64670         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
64671         <bp-asm.h>.
64672         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
64673         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
64674         Remove GKM FIXME comments.
64675         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
64676         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
64677         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
64678         <bp-asm.h>.
64679         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
64680         about bounded pointers.  Remove GKM FIXME comment.
64681         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
64682         and <bp-asm.h>.
64683         (strncmp): Don't use BP_SYM.  Remove comment about bounded
64684         pointers.
64685         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
64686         <bp-sym.h> and <bp-asm.h>.
64687         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
64688         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
64689         <bp-sym.h> and <bp-asm.h>.
64690         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
64691         comment.
64692
64693 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
64694
64695         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
64696         call free(NULL).
64697
64698 2013-03-05  David S. Miller  <davem@davemloft.net>
64699
64700         * po/es.po: Update from translation team.
64701
64702 2013-03-05  Andreas Jaeger  <aj@suse.de>
64703
64704         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
64705         <bits/mman-linux.h>.
64706         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
64707         is fine.
64708         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
64709         <bits/mman-linux.h> to end of file.
64710         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
64711         is fine.
64712         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
64713         <bits/mman-linux.h> to end of file.
64714         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
64715         is fine.
64716         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
64717         <bits/mman-linux.h> to end of file.
64718
64719         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
64720         (MCL_CURRENT, MCL_FUTURE): Define here.
64721
64722 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64723
64724         [BZ #15232]
64725         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
64726         attribute_hidden.
64727         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
64728
64729 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64730
64731         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
64732         fourth parameter needed for rt_sigprocmask syscall.
64733         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
64734         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
64735         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
64736         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
64737         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
64738         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
64739
64740 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
64741
64742         [BZ #13550]
64743         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
64744         comment about bounded pointers.
64745         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
64746         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
64747
64748 2013-03-04  Andreas Jaeger  <aj@suse.de>
64749
64750         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
64751         common definitions.
64752
64753         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
64754         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
64755         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
64756         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
64757         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
64758         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
64759
64760 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64761
64762         [BZ #15055]
64763         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
64764         __ieee754_sqrl instead of __sqrl.
64765
64766 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
64767
64768         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
64769         * sysdeps/powerpc/fpu_control.h: ... here.
64770         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
64771         * sysdeps/powerpc/bits/fenvinline.h: ... here.
64772         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
64773         * sysdeps/powerpc/bits/mathinline.h: ... here.
64774
64775 2013-03-01  Roland McGrath  <roland@hack.frob.com>
64776
64777         * elf/dl-hwcaps.c (_dl_important_hwcaps):
64778         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
64779         to just [NEED_DL_SYSINFO_DSO].
64780         * elf/dl-support.c: Likewise.
64781         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
64782         * elf/rtld.c (dl_main): Likewise.
64783         * elf/setup-vdso.h (setup_vdso): Likewise.
64784         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
64785         * sysdeps/unix/sysv/linux/dl-sysdep.c
64786         (_dl_discover_osversion): Likewise.
64787
64788 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
64789
64790         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
64791         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
64792
64793 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
64794
64795         * NEWS: Mention libm performance improvements and non-x86 PI
64796         futex support.
64797
64798         * csu/libc-start.c (__pthread_initialize_minimal): Change
64799         function arguments.
64800         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
64801
64802 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
64803
64804         [BZ #13550]
64805         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
64806         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
64807         <bp-sym.h> and <bp-asm.h>.
64808         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
64809         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
64810         and <bp-asm.h>.
64811         (memcpy): Don't use BP_SYM.
64812         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
64813         <bp-asm.h>.
64814         (__mpn_add_n): Don't use BP_SYM.
64815         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
64816         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
64817         and <bp-asm.h>.
64818         (__mpn_addmul_1): Don't use BP_SYM.
64819         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
64820         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
64821         <bp-sym.h>.
64822         (_setjmp): Don't use BP_SYM.
64823         (__novmx_setjmp): Likewise.
64824         (__GI__setjmp): Likewise.
64825         (__vmx_setjmp): Likewise.
64826         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
64827         <bp-sym.h>.
64828         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
64829         (__bzero): Don't use BP_SYM.
64830         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
64831         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
64832         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
64833         <bp-sym.h> and <bp-asm.h>.
64834         (memcpy): Don't use BP_SYM.
64835         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
64836         <bp-sym.h> and <bp-asm.h>.
64837         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
64838         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
64839         <bp-sym.h> and <bp-asm.h>.
64840         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
64841         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
64842         <bp-asm.h>.
64843         (__mpn_lshift): Don't use BP_SYM.
64844         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
64845         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
64846         <bp-asm.h>.
64847         (memset): Don't use BP_SYM.
64848         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
64849         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
64850         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
64851         <bp-asm.h>.
64852         (__mpn_mul_1): Don't use BP_SYM.
64853         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
64854         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
64855         <bp-sym.h> and <bp-asm.h>.
64856         (memcmp): Don't use BP_SYM.
64857         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
64858         <bp-sym.h> and <bp-asm.h>.
64859         (memcpy): Don't use BP_SYM.
64860         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
64861         <bp-sym.h> and <bp-asm.h>.
64862         (memset): Don't use BP_SYM.
64863         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
64864         <bp-sym.h> and <bp-asm.h>.
64865         (strncmp): Don't use BP_SYM.
64866         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
64867         <bp-sym.h> and <bp-asm.h>.
64868         (memcpy): Don't use BP_SYM.
64869         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
64870         <bp-sym.h> and <bp-asm.h>.
64871         (memset): Don't use BP_SYM.
64872         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
64873         <bp-sym.h> and <bp-asm.h>.
64874         (__memchr): Don't use BP_SYM.
64875         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
64876         <bp-sym.h> and <bp-asm.h>.
64877         (memcmp): Don't use BP_SYM.
64878         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
64879         <bp-sym.h> and <bp-asm.h>.
64880         (memcpy): Don't use BP_SYM.
64881         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
64882         <bp-sym.h> and <bp-asm.h>.
64883         (__mempcpy): Don't use BP_SYM.
64884         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
64885         <bp-sym.h> and <bp-asm.h>.
64886         (__memrchr): Don't use BP_SYM.
64887         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
64888         <bp-sym.h> and <bp-asm.h>.
64889         (memset): Don't use BP_SYM.
64890         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
64891         <bp-sym.h> and <bp-asm.h>.
64892         (__rawmemchr): Don't use BP_SYM.
64893         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
64894         <bp-sym.h> and <bp-asm.h>.
64895         (__STRCMP): Don't use BP_SYM.
64896         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
64897         <bp-sym.h> and <bp-asm.h>.
64898         (strchr): Don't use BP_SYM.
64899         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
64900         <bp-sym.h> and <bp-asm.h>.
64901         (__strchrnul): Don't use BP_SYM.
64902         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
64903         <bp-sym.h> and <bp-asm.h>.
64904         (strlen): Don't use BP_SYM.
64905         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
64906         <bp-sym.h> and <bp-asm.h>.
64907         (strncmp): Don't use BP_SYM.
64908         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
64909         <bp-sym.h> and <bp-asm.h>.
64910         (__strnlen): Don't use BP_SYM.
64911         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
64912         <bp-asm.h>.
64913         (__mpn_rshift): Don't use BP_SYM.
64914         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
64915         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
64916         <bp-sym.h> and <bp-asm.h>.
64917         (__sigsetjmp): Don't use BP_SYM.
64918         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
64919         (L(start_addresses)): Don't use BP_SYM.
64920         (_start): Likewise.
64921         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
64922         <bp-asm.h>.
64923         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
64924         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
64925         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
64926         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
64927         <bp-asm.h>.
64928         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
64929         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
64930         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
64931         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
64932         <bp-asm.h>.
64933         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
64934         comments.
64935         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
64936         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
64937         <bp-asm.h>.
64938         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
64939         FIXME comments.
64940         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
64941         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
64942         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
64943         <bp-asm.h>.
64944         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
64945         comment.
64946         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
64947         and <bp-asm.h>.
64948         (strncmp): Don't use BP_SYM,
64949         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
64950         <bp-asm.h>.
64951         (__mpn_sub_n): Don't use BP_SYM.
64952         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
64953         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
64954         and <bp-asm.h>.
64955         (__mpn_submul_1): Don't use BP_SYM.
64956         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
64957         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
64958         <bp-sym.h> and <bp-asm.h>.
64959         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
64960         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
64961         <bp-sym.h> and <bp-asm.h>.
64962         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
64963         comment.
64964
64965 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
64966
64967         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
64968         Use ZK to minimize writes to Z.
64969         (sub_magnitudes): Simplify code a bit.
64970         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
64971         Use ZK to minimize writes to Z.
64972         (sub_magnitudes): Simplify code a bit.
64973
64974 2013-02-27  Roland McGrath  <roland@hack.frob.com>
64975
64976         * csu/gmon-start.c: Add special exception to license text.
64977
64978 2013-02-27  Richard Henderson  <rth@redhat.com>
64979
64980         * scripts/config.guess: Update from config.git.
64981         * scripts/config.sub: Likewise.
64982
64983 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
64984
64985         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
64986
64987         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
64988
64989         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
64990
64991         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
64992
64993         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
64994
64995 2013-02-26  Roland McGrath  <roland@hack.frob.com>
64996
64997         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
64998         [$(build-shared = yes].
64999
65000 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
65001
65002         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
65003         (__mul): Reduce iterations for calculating mantissa.
65004
65005         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
65006         MPTWO.
65007         (__mpranred): Likewise.
65008
65009         [BZ #15160]
65010         * malloc/memusagestat.c (main): Draw graphs for heap and stack
65011         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
65012
65013 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
65014
65015         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
65016         Define __attribute__.
65017
65018 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
65019
65020         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
65021         unused.
65022         * posix/regex_internal.h (__attribute): Remove.
65023         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
65024         (re_string_context_at): Likewise.
65025         (bitset_not): Use __attribute__ and mark function as possibly
65026         unused.
65027         (bitset_merge): Likewise.
65028         (bitset_mask): Likewise.
65029         (re_string_char_size_at): Likewise.
65030         (re_string_wchar_at): Likewise.
65031         (re_string_elem_size_at): Likewise.
65032
65033 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
65034
65035         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
65036         code.
65037         (cc32): Likewise.
65038
65039         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
65040         (__acr): Likewise.
65041         (__cpy): Likewise.
65042         (norm): Likewise.
65043         (denorm): Likewise.
65044         (__dbl_mp): Likewise.
65045         (add_magnitudes): Likewise.
65046         (sub_magnitudes): Likewise.
65047         (__mul): Likewise.
65048         (__inv): Likewise.
65049
65050         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
65051         style.
65052
65053         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
65054         style.
65055
65056         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
65057         code.
65058
65059         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
65060         up changes with default code.
65061         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
65062         Likewise.
65063
65064 2013-02-24  Allan McRae  <allan@archlinux.org>
65065
65066         * manual/socket.texi (The Internet Namespace): Order menu items
65067         to match that in the file.
65068
65069         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
65070         node listing of the info page menu.
65071
65072 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
65073
65074         [BZ #13550]
65075         * sysdeps/i386/bp-asm.h: Remove file.
65076         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
65077         (PARMS): Do not use macros from bp-asm.h.
65078         (S1): Likewise.
65079         (S2): Likewise.
65080         (SIZE): Likewise.
65081         (__mpn_add_n): Do not use BP_SYM
65082         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
65083         "bp-asm.h".
65084         (PARMS): Do not use macros from bp-asm.h.
65085         (S1): Likewise.
65086         (SIZE): Likewise.
65087         (__mpn_addmul_1): Do not use BP_SYM
65088         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
65089         "bp-asm.h".
65090         (PARMS): Do not use macros from bp-asm.h.
65091         (SIGMSK): Likewise.
65092         (_setjmp): Likewise.  Do not use BP_SYM.
65093         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
65094         "bp-asm.h".
65095         (PARMS): Do not use macros from bp-asm.h.
65096         (SIGMSK): Likewise.
65097         (setjmp): Likewise.  Do not use BP_SYM.
65098         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
65099         "bp-asm.h".
65100         (PARMS): Do not use macros from bp-asm.h.
65101         (__frexp): Do not use BP_SYM.
65102         (frexp): Likewise.
65103         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
65104         "bp-asm.h".
65105         (PARMS): Do not use macros from bp-asm.h.
65106         (__frexpf): Do not use BP_SYM.
65107         (frexpf): Likewise.
65108         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
65109         "bp-asm.h".
65110         (PARMS): Do not use macros from bp-asm.h.
65111         (__frexpl): Do not use BP_SYM.
65112         (frexpl): Likewise.
65113         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
65114         "bp-asm.h".
65115         (PARMS): Do not use macros from bp-asm.h.
65116         (__remquo): Do not use BP_SYM.
65117         (remquo): Likewise.
65118         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
65119         "bp-asm.h".
65120         (PARMS): Do not use macros from bp-asm.h.
65121         (__remquof): Do not use BP_SYM.
65122         (remquof): Likewise.
65123         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
65124         "bp-asm.h".
65125         (PARMS): Do not use macros from bp-asm.h.
65126         (__remquol): Do not use BP_SYM.
65127         (remquol): Likewise.
65128         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
65129         "bp-asm.h".
65130         (PARMS): Do not use macros from bp-asm.h.
65131         (DEST): Likewise.
65132         (SRC): Likewise.
65133         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
65134         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
65135         "bp-asm.h".
65136         (PARMS): Do not use macros from bp-asm.h.
65137         (strlen): Do not use BP_SYM.
65138         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
65139         "bp-asm.h".
65140         (PARMS): Do not use macros from bp-asm.h.
65141         (S1): Likewise.
65142         (S2): Likewise.
65143         (SIZE): Likewise.
65144         (__mpn_add_n): Do not use BP_SYM.
65145         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
65146         "bp-asm.h".
65147         (PARMS): Do not use macros from bp-asm.h.
65148         (S1): Likewise.
65149         (SIZE): Likewise.
65150         (__mpn_addmul_1): Do not use BP_SYM.
65151         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
65152         weak_alias.
65153         (bzero): Likewise.
65154         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
65155         "bp-asm.h".
65156         (PARMS): Do not use macros from bp-asm.h.
65157         (S): Likewise.
65158         (SIZE): Likewise.
65159         (__mpn_lshift): Do not use BP_SYM.
65160         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
65161         "bp-asm.h".
65162         (PARMS): Do not use macros from bp-asm.h.
65163         (DEST): Likewise.
65164         (SRC): Likewise.
65165         (LEN): Likewise.
65166         (memcpy): Likewise.  Do not use BP_SYM.
65167         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
65168         libc_hidden_def and weak_alias.
65169         (mempcpy): Do not use BP_SYM in weak_alias.
65170         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
65171         "bp-asm.h".
65172         (PARMS): Do not use macros from bp-asm.h.
65173         (DEST): Likewise.
65174         (LEN): Likewise.
65175         [!BZERO_P] (CHR): Likewise.
65176         (memset): Likewise.  Do not use BP_SYM.
65177         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
65178         "bp-asm.h".
65179         (PARMS): Do not use macros from bp-asm.h.
65180         (S1): Likewise.
65181         (SIZE): Likewise.
65182         (__mpn_mul_1): Do not use BP_SYM.
65183         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
65184         "bp-asm.h".
65185         (PARMS): Do not use macros from bp-asm.h.
65186         (S): Likewise.
65187         (SIZE): Likewise.
65188         (__mpn_rshift): Do not use BP_SYM.
65189         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
65190         "bp-asm.h".
65191         (PARMS): Do not use macros from bp-asm.h.
65192         (STR): Likewise.
65193         (CHR): Likewise.
65194         (strchr): Likewise.  Do not use BP_SYM.
65195         (index): Do not use BP_SYM in weak_alias.
65196         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
65197         "bp-asm.h".
65198         (PARMS): Do not use macros from bp-asm.h.
65199         (DEST): Likewise.
65200         (SRC): Likewise.
65201         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
65202         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
65203         "bp-asm.h".
65204         (PARMS): Do not use macros from bp-asm.h.
65205         (strlen): Do not use BP_SYM.
65206         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
65207         "bp-asm.h".
65208         (PARMS): Do not use macros from bp-asm.h.
65209         (S1): Likewise.
65210         (S2): Likewise.
65211         (SIZE): Likewise.
65212         (__mpn_sub_n): Do not use BP_SYM.
65213         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
65214         "bp-asm.h".
65215         (PARMS): Do not use macros from bp-asm.h.
65216         (S1): Likewise.
65217         (SIZE): Likewise.
65218         (__mpn_submul_1): Do not use BP_SYM.
65219         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
65220         "bp-asm.h".
65221         (PARMS): Do not use macros from bp-asm.h.
65222         (S1): Likewise.
65223         (S2): Likewise.
65224         (SIZE): Likewise.
65225         (__mpn_add_n): Do not use BP_SYM.
65226         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
65227         weak_alias.
65228         (bzero): Likewise.
65229         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
65230         "bp-asm.h".
65231         (PARMS): Do not use macros from bp-asm.h.
65232         (BLK2): Likewise.
65233         (LEN): Likewise.
65234         (memcmp): Do not use BP_SYM.
65235         (bcmp): Do not use BP_SYM in weak_alias.
65236         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
65237         "bp-asm.h".
65238         (PARMS): Do not use macros from bp-asm.h.
65239         (DEST): Likewise.
65240         (SRC): Likewise.
65241         (LEN): Likewise.
65242         (memcpy): Likewise.  Do not use BP_SYM.
65243         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
65244         "bp-asm.h".
65245         (PARMS): Do not use macros from bp-asm.h.
65246         (DEST): Likewise.
65247         (SRC): Likewise.
65248         (LEN): Likewise.
65249         (memmove): Likewise.  Do not use BP_SYM.
65250         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
65251         "bp-asm.h".
65252         (PARMS): Do not use macros from bp-asm.h.
65253         (DEST): Likewise.
65254         (SRC): Likewise.
65255         (LEN): Likewise.
65256         (__mempcpy): Likewise.  Do not use BP_SYM.
65257         (mempcpy): Do not use BP_SYM in weak_alias.
65258         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
65259         "bp-asm.h".
65260         (PARMS): Do not use macros from bp-asm.h.
65261         (DEST): Likewise.
65262         (LEN): Likewise.
65263         [!BZERO_P] (CHR): Likewise.
65264         (memset): Likewise.  Do not use BP_SYM.
65265         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
65266         "bp-asm.h".
65267         (PARMS): Do not use macros from bp-asm.h.
65268         (STR2): Likewise.
65269         (strcmp): Do not use BP_SYM.
65270         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
65271         "bp-asm.h".
65272         (PARMS): Do not use macros from bp-asm.h.
65273         (STR): Likewise.
65274         (DELIM): Likewise.
65275         [USE_AS_STRTOK_R] (SAVE): Likewise.
65276         (FUNCTION): Likewise.  Do not use BP_SYM.
65277         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
65278         aliases.
65279         (strtok_r): Likewise.
65280         (__GI___strtok_r): Likewise.
65281         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
65282         (PARMS): Do not use macros from bp-asm.h.
65283         (S): Likewise.
65284         (SIZE): Likewise.
65285         (__mpn_lshift): Do not use BP_SYM.
65286         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
65287         (PARMS): Do not use macros from bp-asm.h.
65288         (STR): Likewise.
65289         (CHR): Likewise.
65290         (__memchr): Do not use BP_SYM.
65291         (memchr): Do not use BP_SYM in weak_alias.
65292         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
65293         (PARMS): Do not use macros from bp-asm.h.
65294         (BLK2): Likewise.
65295         (LEN): Likewise.
65296         (memcmp): Do not use BP_SYM.
65297         (bcmp): Do not use BP_SYM in weak_alias.
65298         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
65299         (PARMS): Do not use macros from bp-asm.h.
65300         (S1): Likewise.
65301         (SIZE): Likewise.
65302         (__mpn_mul_1): Do not use BP_SYM.
65303         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
65304         "bp-asm.h".
65305         (PARMS): Do not use macros from bp-asm.h.
65306         (STR): Likewise.
65307         (CHR): Likewise.
65308         (__rawmemchr): Do not use BP_SYM.
65309         (rawmemchr): Do not use BP_SYM in weak_alias.
65310         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
65311         (PARMS): Do not use macros from bp-asm.h.
65312         (S): Likewise.
65313         (SIZE): Likewise.
65314         (__mpn_rshift): Do not use BP_SYM.
65315         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
65316         (PARMS): Do not use macros from bp-asm.h.
65317         (SIGMSK): Likewise.
65318         (__sigsetjmp): Likewise.  Do not use BP_SYM.
65319         * sysdeps/i386/start.S: Do not include "bp-sym.h".
65320         (_start): Do not use BP_SYM.
65321         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
65322         (PARMS): Do not use macros from bp-asm.h.
65323         (DEST): Likewise.
65324         (SRC): Likewise.
65325         (__stpcpy): Likewise.  Do not use BP_SYM.
65326         (stpcpy): Do not use BP_SYM in weak_alias.
65327         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
65328         "bp-asm.h".
65329         (PARMS): Do not use macros from bp-asm.h.
65330         (DEST): Likewise.
65331         (SRC): Likewise.
65332         (LEN): Likewise.
65333         (__stpncpy): Likewise.  Do not use BP_SYM.
65334         (stpncpy): Do not use BP_SYM in weak_alias.
65335         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
65336         (PARMS): Do not use macros from bp-asm.h.
65337         (STR): Likewise.
65338         (CHR): Likewise.
65339         (strchr): Likewise.  Do not use BP_SYM.
65340         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
65341         "bp-asm.h".
65342         (PARMS): Do not use macros from bp-asm.h.
65343         (STR): Likewise.
65344         (CHR): Likewise.
65345         (__strchrnul): Likewise.  Do not use BP_SYM.
65346         (strchrnul): Do not use BP_SYM in weak_alias.
65347         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
65348         "bp-asm.h".
65349         (PARMS): Do not use macros from bp-asm.h.
65350         (STOP): Likewise.
65351         (strcspn): Do not use BP_SYM.
65352         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
65353         "bp-asm.h".
65354         (PARMS): Do not use macros from bp-asm.h.
65355         (STR): Likewise.
65356         (STOP): Likewise.
65357         (strpbrk): Likewise.  Do not use BP_SYM.
65358         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
65359         "bp-asm.h".
65360         (PARMS): Do not use macros from bp-asm.h.
65361         (STR): Likewise.
65362         (CHR): Likewise.
65363         (strrchr): Likewise.  Do not use BP_SYM.
65364         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
65365         (PARMS): Do not use macros from bp-asm.h.
65366         (SKIP): Likewise.
65367         (strspn): Do not use BP_SYM.
65368         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
65369         (PARMS): Do not use macros from bp-asm.h.
65370         (STR): Likewise.
65371         (DELIM): Likewise.
65372         (SAVE): Likewise.
65373         (FUNCTION): Likewise.  Do not use BP_SYM.
65374         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
65375         aliases.
65376         (strtok_r): Likewise.
65377         (__GI___strtok_r): Likewise.
65378         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
65379         (PARMS): Do not use macros from bp-asm.h.
65380         (S1): Likewise.
65381         (S2): Likewise.
65382         (SIZE): Likewise.
65383         (__mpn_sub_n): Do not use BP_SYM.
65384         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
65385         "bp-asm.h".
65386         (PARMS): Do not use macros from bp-asm.h.
65387         (S1): Likewise.
65388         (SIZE): Likewise.
65389         (__mpn_submul_1): Do not use BP_SYM.
65390         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
65391         <bp-sym.h>.
65392         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
65393         and <bp-asm.h>.
65394         (PARMS): Do not use macros from bp-asm.h.
65395         (FLAGS): Likewise.
65396         (PTID): Likewise.
65397         (TLS): Likewise.
65398         (CTID): Likewise.
65399         (__clone): Do not use BP_SYM.
65400         (clone): Do not use BP_SYM in weak_alias.
65401         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
65402         and <bp-asm.h>.
65403         (PARMS): Do not use macros from bp-asm.h.
65404         (LEN): Likewise.
65405         (__mmap64): Do not use BP_SYM.
65406         (mmap64): Do not use BP_SYM in weak_alias.
65407         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
65408         <bp-sym.h> and <bp-asm.h>.
65409         (PARMS): Do not use macros from bp-asm.h.
65410         (__posix_fadvise64_l64): Do not use BP_SYM.
65411         * sysdeps/unix/sysv/linux/i386/semtimedop.S
65412         (PARMS): Do not use macros from bp-asm.h.
65413         (NSOPS): Likewise.
65414         (semtimedop): Do not use BP_SYM.
65415         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
65416         and <bp-asm.h>.
65417
65418 2013-02-21  Allan McRae  <allan@archlinux.org>
65419
65420         * manual/message.texi (Charset conversion in gettext):
65421         Move @end statement to beginning of line.
65422
65423 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
65424
65425         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
65426         static.
65427         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
65428         Likewise.
65429
65430         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
65431         (denorm): Likewise.
65432         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
65433         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
65434
65435 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
65436
65437         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
65438         tail-call to the resolved function if pltexit isn't needed.
65439
65440 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
65441
65442         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
65443         or Y being zero as being unlikely.
65444         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
65445         Likewise.
65446
65447 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
65448
65449         * manual/nss.texi (System Databases and Name Service Switch):
65450         Remove frobnicate @pxref.
65451
65452 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
65453
65454         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
65455         __attribute__ ((unused)) to __attribute__ ((__unused__)).
65456
65457 2013-02-20  Petr Machata  <pmachata@redhat.com>
65458
65459         * elf/elf.h (R_ARM_TARGET1): New macro.
65460         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
65461         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
65462         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
65463         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
65464         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
65465         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
65466         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
65467         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
65468         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
65469         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
65470         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
65471         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
65472         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
65473         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
65474         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
65475         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
65476         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
65477         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
65478         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
65479         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
65480         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
65481         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
65482         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
65483         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
65484         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
65485         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
65486         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
65487         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
65488         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
65489         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
65490         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
65491         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
65492         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
65493         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
65494         (R_ARM_THM_GOT_BREL12): Likewise.
65495         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
65496         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
65497         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
65498         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
65499         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
65500         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
65501         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
65502         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
65503         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
65504
65505 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
65506
65507         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
65508         __attribute_used__ to __attribute__ ((unused)).
65509
65510 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
65511
65512         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
65513         powerpc mpa.c.
65514         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
65515         comment formatting.
65516         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
65517
65518 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
65519
65520         [BZ #13550]
65521         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
65522         Remove macro.
65523         (ENTER): Remove both macro definitions.
65524         (LEAVE): Likewise.
65525         (CHECK_BOUNDS_LOW): Likewise.
65526         (CHECK_BOUNDS_HIGH): Likewise.
65527         (CHECK_BOUNDS_BOTH): Likewise.
65528         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
65529         (RETURN_BOUNDED_POINTER): Likewise.
65530         (RETURN_NULL_BOUNDED_POINTER): Likewise.
65531         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
65532         (POP_ERRNO_LOCATION_RETURN): Likewise.
65533         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
65534         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
65535         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
65536         macros.
65537         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
65538         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
65539         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
65540         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
65541         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
65542         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
65543         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
65544         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
65545         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
65546         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
65547         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
65548         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
65549         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
65550         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
65551         removed macros.
65552         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
65553         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
65554         macros.
65555         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
65556         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
65557         * sysdeps/i386/i586/memset.S (memset): Likewise.
65558         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
65559         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
65560         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
65561         macros.
65562         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
65563         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
65564         Change uses of L(2) to L(out).
65565         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
65566         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
65567         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
65568         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
65569         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
65570         removed macros.
65571         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
65572         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
65573         macros.
65574         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
65575         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
65576         (RETURN): Do not use macro LEAVE.
65577         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
65578         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
65579         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
65580         * sysdeps/i386/i686/memset.S (memset): Likewise.
65581         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
65582         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
65583         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
65584         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
65585         Likewise.
65586         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
65587         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
65588         L(1_2) and L(1_3) into L(1).
65589         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
65590         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
65591         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
65592         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
65593         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
65594         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
65595         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
65596         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
65597         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
65598         macros.
65599         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
65600         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
65601         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
65602         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
65603         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
65604         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
65605         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
65606         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
65607         * sysdeps/i386/strcspn.S (strcspn): Likewise.
65608         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
65609         * sysdeps/i386/strrchr.S (strrchr): Likewise.
65610         * sysdeps/i386/strspn.S (strspn): Likewise.
65611         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
65612         conditional code.
65613         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
65614         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
65615         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
65616         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
65617         L(1_3) into L(1_1).
65618         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
65619         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
65620         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
65621         macros.
65622         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
65623
65624 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
65625
65626         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
65627         macro.
65628
65629 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
65630
65631         * math/atest-exp.c (exp_mpn): Remove ROUND.
65632         * math/atest-exp2.c (exp_mpn): Likewise.
65633         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
65634
65635         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
65636         * stdlib/tst-tls-atexit-lib.c: Likewise.
65637         * stdlib/tst-tls-atexit.c: Likewise.
65638
65639 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
65640
65641         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
65642         and __attribute_alloc_size__.
65643
65644 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
65645
65646         * include/programs/xmalloc.h: Change __attribute_alloc_size to
65647         __attribute_alloc_size__.
65648         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
65649         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
65650
65651 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
65652
65653         * include/programs/xmalloc.h: New file.
65654         * catgets/gencat.c: Include it.
65655         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
65656         * elf/pldd.c: Likewise.
65657         * iconv/iconv_charmap.c: Likewise.
65658         * iconv/iconvconfig.c: Likewise.
65659         * iconv/strtab.c: Likewise.
65660         * locale/programs/locale.c: Likewise.
65661         * locale/programs/localedef.h: Likewise.
65662         * locale/programs/simple-hash.c: Likewise.
65663         * nscd/nscd.h: Likewise.
65664         * nss/makedb.c: Likewise.
65665         * sysdeps/generic/ldconfig.h: Likewise.
65666
65667 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
65668
65669         * Versions.def: Add GLIBC_2.18.
65670         * include/link.h (struct link_map): New member l_tls_dtor_count.
65671         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
65672         (__call_tls_dtors): Likewise.
65673         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
65674         __cxa_thread_atexit_impl.
65675         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
65676         Likewise.
65677         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
65678         Likewise.
65679         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
65680         Likewise.
65681         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
65682         Likewise.
65683         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
65684         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
65685         Likewise.
65686         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
65687         Likewise.
65688         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
65689         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
65690         Likewise.
65691         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
65692         (tests): Add test case tst-tls-atexit.
65693         (modules-names): Add shared library for tst-tls-atexit.
65694         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
65695         (GLIBC_PRIVATE): Add __call_tls_dtors.
65696         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
65697         for libstdc++.
65698         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
65699         * stdlib/tst-tls-atexit.c: New test case.
65700         * stdlib/tst-tls-atexit-lib.c: New test case.
65701
65702         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
65703
65704         * elf/Versions (ld): Add _dl_find_dso_for_object.
65705         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
65706         * elf/dl-open.c (_dl_find_dso_for_object): New function.
65707         (dl_open_worker): Use _dl_find_dso_for_object.
65708         * elf/dl-sym.c (do_sym): Likewise.
65709         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
65710
65711 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
65712
65713         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
65714         Syntactic changes only.
65715         (_dl_runtime_profile): Do a tail-call to the resolved function.
65716
65717 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
65718
65719         [BZ #13550]
65720         * sysdeps/x86_64/bp-asm.h: Remove file.
65721         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
65722         <bp-sym.h> and <bp-asm.h>.
65723         (__clone): Do not use BP_SYM.
65724         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
65725         <bp-sym.h> and <bp-asm.h>.
65726         * sysdeps/unix/x86_64/sysdep.S: Likewise.
65727         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
65728         "bp-asm.h".
65729         (_setjmp): Do not use BP_SYM.
65730         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
65731         "bp-asm.h".
65732         (setjmp): Do not use BP_SYM.
65733         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
65734         libc_hidden_def.
65735         (mempcpy): Do not use BP_SYM in weak_alias.
65736         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
65737         "bp-asm.h".
65738         (strchr): Do not use BP_SYM.
65739         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
65740         "bp-asm.h".
65741         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
65742         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
65743         (_start): Do not use BP_SYM.
65744         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
65745         "bp-asm.h".
65746         (strcat): Do not use BP_SYM.
65747         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
65748         "bp-asm.h".
65749         (STRCMP): Do not use BP_SYM.
65750         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
65751         "bp-asm.h".
65752         (STRCPY): Do not use BP_SYM.
65753         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
65754         "bp-asm.h".
65755         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
65756         "bp-asm.h".
65757         (FUNCTION): Do not use BP_SYM.
65758         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
65759         weak_alias.
65760         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
65761
65762 2013-02-17  Andreas Jaeger  <aj@suse.de>
65763
65764         * time/Versions: Sort entries.
65765         * string/Versions: Likewise.
65766         * resolv/Versions: Likewise.
65767         * posix/Versions: Likewise.
65768         * iconv/Versions: Likewise.
65769         * elf/Versions: Likewise.
65770         * wcsmbs/Versions: Likewise.
65771
65772 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
65773
65774         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
65775         loop termination condition.
65776
65777         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
65778         variable to calculate EZ.
65779         (__sqr): Likewise.
65780
65781         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
65782         the lower precision input.
65783
65784 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
65785
65786         [BZ #13550]
65787         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
65788         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
65789         (run-via-rtld-prefix): Do not handle %-bp tests.
65790         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
65791         (all-object-suffixes): Remove .ob.
65792         (bppfx): Remove variable.
65793         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
65794         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
65795         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
65796         [$(build-bounded) = yes] (libtype.ob): Likewise.
65797         * Makerules (elide-routines.ob): Remove variable.
65798         (do-tests-clean): Do not handle *-bp.out.
65799         (common-mostlyclean): Do not handle *-bp and *-bp.out.
65800         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
65801         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
65802         (tests): Do not include $(tests-bp.out).
65803         (xtests): Do not include $(xtests-bp.out).
65804         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
65805         [$(build-bounded) = yes] ($(addprefix
65806         $(objpfx),$(binaries-bounded))): Remove rule.
65807         ($(objpfx)%-bp.out): Remove rule.
65808         * config.make.in (build-bounded): Remove variable.
65809         * crypt/Makefile [$(build-bounded) = yes]
65810         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
65811         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
65812         append to variable.
65813         [$(build-bounded) = yes] (install-lib): Likewise.
65814         [$(build-bounded) = yes] (generated): Likewise.
65815         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
65816         Remove rule.
65817         * intl/Makefile [$(build-bounded) = yes]
65818         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
65819         * math/Makefile [$(build-bounded) = yes]
65820         ($(tests:%=$(objpfx)%-bp): Likewise.
65821         * misc/Makefile [$(build-bounded) = yes]
65822         ($(objpfx)tst-tsearch-bp): Likewise.
65823         * nptl/Makeconfig (bounded-thread-library): Remove variable.
65824         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
65825         Remove dependency.
65826         * string/Makefile (o-objects.ob): Remove variable.
65827         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
65828         (CFLAGS-.ob): Remove variable.
65829         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
65830         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
65831         both definitions of variable.
65832         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
65833         (ASFLAGS-.ob): Remove variable.
65834
65835 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
65836
65837         [BZ #13550]
65838         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
65839         Remove __BOUNDED_POINTERS__ from condition.
65840         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
65841         * string/bits/string2.h [!__NO_STRING_INLINES &&
65842         !__BOUNDED_POINTERS__]: Likewise.
65843         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
65844         Likewise.
65845         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
65846         Remove conditional code.
65847         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
65848         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
65849         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
65850         condition.
65851
65852         [BZ #13550]
65853         * csu/libc-start.c: Do not include <bp-sym.h>.
65854         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
65855         * elf/dl-open.c: Do not include <bp-sym.h>.
65856         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
65857         * math/fegetenv.c: Do not include <bp-sym.h>.
65858         (fegetenv): Do not use BP_SYM in versioned symbols.
65859         * nptl/sysdeps/pthread/bits/libc-lockP.h
65860         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
65861         <bp-sym.h>.
65862         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65863         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
65864         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65865         (__pthread_mutex_destroy): Likewise.
65866         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65867         (__pthread_mutex_lock): Likewise.
65868         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65869         (__pthread_mutex_trylock): Likewise.
65870         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65871         (__pthread_mutex_unlock): Likewise.
65872         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65873         (__pthread_mutexattr_init): Likewise.
65874         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65875         (__pthread_mutexattr_destroy): Likewise.
65876         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65877         (__pthread_mutexattr_settype): Likewise.
65878         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65879         (__pthread_rwlock_init): Likewise.
65880         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65881         (__pthread_rwlock_destroy): Likewise.
65882         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65883         (__pthread_rwlock_rdlock): Likewise.
65884         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65885         (__pthread_rwlock_tryrdlock): Likewise.
65886         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65887         (__pthread_rwlock_wrlock): Likewise.
65888         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65889         (__pthread_rwlock_trywrlock): Likewise.
65890         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65891         (__pthread_rwlock_unlock): Likewise.
65892         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65893         (__pthread_key_create): Likewise.
65894         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65895         (__pthread_setspecific): Likewise.
65896         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65897         (__pthread_getspecific): Likewise.
65898         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
65899         Likewise.
65900         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65901         (_pthread_cleanup_push_defer): Likewise.
65902         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65903         (_pthread_cleanup_pop_restore): Likewise.
65904         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65905         (pthread_setcancelstate): Likewise.
65906         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
65907         <bp-sym.h>.
65908         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
65909         (memchr): Do not use BP_SYM in weak_alias.
65910         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
65911         (fegetenv): Do not use BP_SYM in versioned symbols.
65912         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
65913         (fesetenv): Do not use BP_SYM in versioned symbols.
65914         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
65915         (feupdateenv): Do not use BP_SYM in versioned symbols.
65916         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
65917         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
65918         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
65919         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
65920         (open64): Do not use BP_SYM in weak_alias.
65921         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
65922         (fegetenv): Do not use BP_SYM in versioned symbols.
65923         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
65924         (fesetenv): Do not use BP_SYM in versioned symbols.
65925         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
65926         (feupdateenv): Do not use BP_SYM in versioned symbols.
65927         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
65928         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
65929         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
65930         (feraiseexcept): Do not use BP_SYM in versioned symbols.
65931         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
65932         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
65933         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
65934         <bp-sym.h>.
65935         (__libc_start_main): Do not use BP_SYM.
65936
65937 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
65938
65939         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
65940         redundant return line.
65941         (norm): Likewise.
65942         (denorm): Likewise.
65943         (dbl_mp): Likewise.
65944         (sub_magnitudes): Likewise.
65945         (__add): Likewise.
65946         (__sub): Likewise.
65947         (__mul): Likewise.
65948         (__inv): Likewise.
65949         (__dvd): Likewise.
65950         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
65951         (norm): Likewise.
65952         (denorm): Likewise.
65953         (dbl_mp): Likewise.
65954         (sub_magnitudes): Likewise.
65955         (__add): Likewise.
65956         (__sub): Likewise.
65957         (__mul): Likewise.
65958         (__inv): Likewise.
65959         (__dvd): Likewise.
65960
65961         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
65962         instead of __mul.
65963         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
65964         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
65965         (cc32): Likewise.
65966
65967         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
65968         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
65969         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
65970         of __mul for squares.
65971         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
65972         function
65973         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
65974         Likewise.
65975         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
65976         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
65977
65978 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
65979
65980         [BZ #13550]
65981         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
65982         code.
65983         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
65984         prototype or function definition.  Rename ubp_* variables and
65985         parameters.  Remove argv definitions conditional on
65986         [__BOUNDED_POINTERS__].
65987         * debug/backtrace.c (__backtrace): Do not use __unbounded.
65988         * elf/dl-runtime.c (_dl_fixup): Likewise.
65989         * include/set-hooks.h (RUN_HOOK): Likewise.
65990         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
65991         definition.
65992         * string/strcpy.c (strcpy): Do not use __unbounded.
65993         * sysdeps/generic/frame.h (struct layout): Likewise.
65994         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
65995         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
65996         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
65997         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
65998         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
65999         (__backtrace): Likewise.
66000         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
66001         use __ptrvalue.
66002         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
66003         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
66004         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
66005         Likewise.
66006         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
66007         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
66008         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
66009         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
66010         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
66011         Do not use __unbounded.
66012         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
66013         Rename __unboundedrlimits parameter to rlimits in prototype.
66014         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
66015         Do not use __unbounded.
66016         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
66017         not use __ptrvalue.
66018         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
66019         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
66020         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
66021         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
66022         __ptrvalue or __unbounded.
66023         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
66024         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
66025         use __unbounded.
66026         (__new_msgctl): Do not use __ptrvalue.
66027         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
66028         __unbounded.
66029         (__libc_msgrcv): Do not use __ptrvalue.
66030         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
66031         startup_info): Do not use __unbounded.
66032         (__libc_start_main): Likewise.  Rename ubp_* variables and
66033         parameters.  Remove argv definitions conditional on
66034         [__BOUNDED_POINTERS__].
66035         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
66036         __ptrvalue.
66037         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
66038         use __unbounded.
66039         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
66040         or __ptrvalue.
66041         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
66042         use __unbounded.
66043         (__new_shmctl): Do not use __ptrvalue.
66044         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
66045         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
66046         Likewise.
66047         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
66048         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
66049         (__libc_sigaction): Likewise.
66050         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
66051         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
66052         Likewise.
66053         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
66054
66055 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
66056
66057         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
66058
66059         * string/mempcpy.c: Implement by calling memcpy.
66060
66061 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
66062
66063         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
66064
66065         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
66066         evaluation.
66067
66068         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
66069         values in the mantissa.
66070
66071         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
66072         minimize writes to Z.
66073         (sub_magnitudes): Simplify code a bit.
66074
66075 2013-02-12  Roland McGrath  <roland@hack.frob.com>
66076
66077         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
66078         from the message.  The linker prefixes all warnings with that already.
66079
66080 2013-02-12  Andreas Schwab  <schwab@suse.de>
66081
66082         [BZ #15078]
66083         * posix/regexec.c (extend_buffers): Add parameter min_len.
66084         (check_matching): Pass minimum needed length.
66085         (clean_state_log_if_needed): Likewise.
66086         (get_subexp): Likewise.
66087         * posix/Makefile (tests): Add bug-regex34.
66088         (bug-regex34-ENV): Define.
66089         * posix/bug-regex34.c: New file.
66090
66091         [BZ #11561]
66092         * posix/regcomp.c (parse_bracket_exp): When looking up collating
66093         elements compare against the byte sequence of it, not its name.
66094         * posix/Makefile (tests): Add bug-regex35.
66095         (bug-regex35-ENV): Define.
66096         * posix/bug-regex35.c: New file.
66097
66098 2013-02-11  Tom de Vries  <tom@codesourcery.com>
66099
66100         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
66101         comment.
66102         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
66103         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
66104         (CHECK_EOL): Add undef.
66105
66106 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
66107
66108         * bits/stdlib-bsearch.h: New file.
66109         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
66110         * stdlib/stdlib.h: Likewise.
66111
66112 2013-02-11  Roland McGrath  <roland@hack.frob.com>
66113
66114         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
66115         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
66116         declaration.
66117         * manual/search.texi (Array Search Function): Add missing const in
66118         lfind prototype.
66119         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
66120         declaration to use rlim_t.
66121         (Basic Scheduling Functions): Remove erroneous const from
66122         sched_getparam prototype.  Remove erroneous * from
66123         sched_get_priority_max and sched_get_priority_min prototypes.
66124         (Resource Usage): Fix summary @comment on vtimes to refer to
66125         sys/vtimes.h rather than vtimes.h.
66126         Add missing *s in vtimes prototype.
66127         (Limits on Resources): Fix ulimit prototype to return long int.
66128         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
66129         prototypes to use long int rather than double.
66130         (BSD Random): Fix initstate and setstate to use char *, not void *.
66131         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
66132         prototype to make second argument 'struct aiocb64 *const[]'.
66133         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
66134         (Status of AIO Operations): Remove erroneous const in aio_return and
66135         aio_return64 prototypes.
66136         (Synchronizing I/O): Fix sync prototype to return void.
66137         * manual/startup.texi (Suboptions): Remove an erroneous const in
66138         getsubopt prototype.
66139         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
66140         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
66141         use size_t rather than int.
66142         (Scanning All Users): Likewise for getpwent_r.
66143         (Setting Groups): Add missing const to setgroups prototype.
66144         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
66145         * manual/socket.texi (Host Names): Fix gethostbyaddr and
66146         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
66147         'const void *' rather than 'const char *'.
66148         (Host Address Functions): Likewise for inet_ntop.
66149         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
66150         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
66151         ssize_t for return value.
66152         (Sending Data): Likewise for send, sendto, sendmsg.
66153         (Socket Option Functions): Add a missing const in setsockopt prototype.
66154         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
66155         use wchar_t for the argument.
66156         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
66157         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
66158         take no arguments.
66159         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
66160         double/float/long double for second argument.
66161         Fix return types of significand, significandf, significandl.
66162         * manual/filesys.texi (Setting Permissions): Use mode_t for second
66163         argument in fchmod prototype.
66164         (File Owner): Use uid_t and gid_t in fchown prototype.
66165         (File Times): Add const to utimes, futimes, and lutimes prototypes.
66166         (Making Special Files): Use mode_t and dev_t in mknod prototype.
66167         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
66168         use 'const struct dirent **' as argument types to CMP function pointer
66169         argument.
66170         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
66171         (File Times): Fix summary magic @comment for struct utimbuf and utime
66172         to refer to utime.h, not time.h.
66173         * manual/string.texi (Argz Functions): Add missing const in
66174         argz_extract and argz_next prototypes.
66175         (Finding Tokens in a String): Likewise for basename.
66176         (String/Array Comparison): Fix typo in wcscasecmp prototype.
66177         (Copying and Concatenation): Fix typo in wmemmove prototype.
66178         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
66179         (Signal Stack): Remove erroneous const in sigstack prototype.
66180         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
66181         prototype.
66182         (Simple Calendar Time): Likewise for stime.
66183         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
66184         prototype.
66185         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
66186         say sys/sysctl.h instead.
66187         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
66188         and vsyslog prototypes.
66189
66190 2013-02-11  Tom de Vries  <tom@codesourcery.com>
66191
66192         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
66193         Remove.
66194
66195 2013-02-11  Roland McGrath  <roland@hack.frob.com>
66196
66197         * misc/sys/mman.h: Fix typo in mremap comment.
66198
66199 2013-02-08  Roland McGrath  <roland@hack.frob.com>
66200
66201         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
66202         the '\0' terminator.
66203
66204 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
66205
66206         [BZ #13550]
66207         * debug/segfault.c: Don't include <bp-checks.h>.
66208         * sysdeps/generic/bp-checks.h: Remove file.
66209         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
66210         (__GETDENTS): Don't use CHECK_N.
66211         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
66212         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
66213         (__getgroups): Don't use CHECK_N.
66214         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
66215         (setgroups): Don't use CHECK_N.
66216         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
66217         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
66218         (__libc_msgrcv): Don't use CHECK_N.
66219         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
66220         (__libc_msgsnd): Don't use CHECK_N.
66221         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
66222         <bp-checks.h>.
66223         (__libc_pread): Don't use CHECK_N.
66224         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
66225         include <bp-checks.h>.
66226         (__libc_pread64): Don't use CHECK_N.
66227         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
66228         include <bp-checks.h>.
66229         (__libc_pwrite): Don't use CHECK_N.
66230         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
66231         include <bp-checks.h>.
66232         (__libc_pwrite64): Don't use CHECK_N.
66233         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
66234         <bp-checks.h>.
66235         (__libc_pread): Don't use CHECK_N.
66236         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
66237         include <bp-checks.h>.
66238         (__libc_pread64): Don't use CHECK_N.
66239         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
66240         include <bp-checks.h>.
66241         (__libc_pwrite): Don't use CHECK_N.
66242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
66243         include <bp-checks.h>.
66244         (__libc_pwrite64): Don't use CHECK_N.
66245         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
66246         (do_pread): Don't use CHECK_N.
66247         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
66248         (do_pread64): Don't use CHECK_N.
66249         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
66250         (do_pwrite): Don't use CHECK_N.
66251         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
66252         (do_pwrite64): Don't use CHECK_N.
66253         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
66254         (__libc_readv): Don't use CHECK_N.
66255         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
66256         (semop): Don't use CHECK_N.
66257         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
66258         <bp-checks.h>.
66259         (semtimedop): Don't use CHECK_N.
66260         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
66261         (__libc_pread): Don't use CHECK_N.
66262         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
66263         <bp-checks.h>.
66264         (__libc_pread64): Don't use CHECK_N.
66265         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
66266         <bp-checks.h>.
66267         (__libc_pwrite): Don't use CHECK_N.
66268         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
66269         <bp-checks.h>.
66270         (__libc_pwrite64): Don't use CHECK_N.
66271         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
66272         <bp-checks.h>.
66273         (__libc_msgrcv): Don't use CHECK_N.
66274         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
66275         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
66276         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
66277         (__libc_writev): Don't use CHECK_N.
66278
66279 2013-02-08  Roland McGrath  <roland@hack.frob.com>
66280
66281         * string/strcpy.c: Removed unused variable.
66282
66283         * Makeconfig (+sysdep-includes): Define with := rather than =.
66284         Use an existing include/ subdir of each sysdeps dir before it.
66285
66286 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
66287
66288         * nscd/connection.c (register_traced_file): Comment function.
66289         [HAVE_INOTIFY] (union __inev): Define.
66290         [HAVE_INOTIFY] (inotify_check_files): New function.
66291         [HAVE_INOTIFY] (clear_db_cache): Likewise.
66292         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
66293         clear_db_cache.
66294         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
66295
66296 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
66297
66298         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
66299         loaded if not already and that a failure is permanent.
66300
66301 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
66302
66303         [BZ #15006]
66304         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
66305         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
66306
66307 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
66308
66309         [BZ #13550]
66310         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
66311         (CHECK_1_NULL_OK): Likewise.
66312         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
66313         (__fxstat): Do not use CHECK_1.
66314         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
66315         <bp-checks.h>.
66316         (___fxstat64): Do not use CHECK_1.
66317         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
66318         <bp-checks.h>.
66319         (__fxstatat): Do not use CHECK_1.
66320         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
66321         <bp-checks.h>.
66322         (__fxstatat64): Do not use CHECK_1.
66323         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
66324         <bp-checks.h>.
66325         (__fxstat): Do not use CHECK_1.
66326         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
66327         <bp-checks.h>.
66328         (__fxstatat): Do not use CHECK_1.
66329         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
66330         <bp-checks.h>.
66331         (__getresgid): Do not use CHECK_1.
66332         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
66333         <bp-checks.h>.
66334         (__getresuid): Do not use CHECK_1.
66335         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
66336         <bp-checks.h>.
66337         (__lxstat): Do not use CHECK_1.
66338         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
66339         <bp-checks.h>.
66340         (__old_msgctl): Do not use CHECK_1.
66341         (__new_msgctl): Likewise.
66342         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
66343         <bp-checks.h>.
66344         (__new_setrlimit): Do not use CHECK_1.
66345         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
66346         <bp-checks.h>.
66347         (__old_shmctl): Do not use CHECK_1.
66348         (__new_shmctl): Likewise.
66349         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
66350         <bp-checks.h>.
66351         (__xstat): Do not use CHECK_1.
66352         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
66353         (__lxstat): Do not use CHECK_1.
66354         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
66355         <bp-checks.h>.
66356         (___lxstat64): Do not use CHECK_1.
66357         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
66358         (__old_msgctl): Do not use CHECK_1.
66359         (__new_msgctl): Likewise.
66360         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
66361         <bp-checks.h>.
66362         (__gettimeofday): Do not use CHECK_1.
66363         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
66364         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
66365         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
66366         <bp-checks.h>.
66367         (__gettimeofday): Do not use CHECK_1.
66368         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
66369         (__old_shmctl): Do not use CHECK_1_NULL_OK.
66370         (__new_shmctl): Do not use CHECK_1.
66371         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
66372         <bp-checks.h>.
66373         (do_sigtimedwait): Do not use CHECK_1.
66374         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
66375         <bp-checks.h>.
66376         (do_sigwaitinfo): Do not use CHECK_1.
66377         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
66378         <bp-checks.h>.
66379         (msgctl): Do not use CHECK_1.
66380         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
66381         <bp-checks.h>.
66382         (shmctl): Do not use CHECK_1.
66383         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
66384         (ustat): Do not use CHECK_1.
66385         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
66386         <bp-checks.h>.
66387         (__fxstat): Do not use CHECK_1.
66388         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
66389         <bp-checks.h>.
66390         (__fxstatat): Do not use CHECK_1.
66391         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
66392         <bp-checks.h>.
66393         (__lxstat): Do not use CHECK_1.
66394         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
66395         <bp-checks.h>.
66396         (__xstat): Do not use CHECK_1.
66397         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
66398         (__xstat): Do not use CHECK_1.
66399         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
66400         (___xstat64): Do not use CHECK_1.
66401
66402         [BZ #13550]
66403         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
66404         definitions.
66405         (CHECK_BOUNDS_HIGH): Likewise.
66406         * string/strcpy.c: Do not include <bp-checks.h>.
66407         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
66408
66409 2013-02-07  Roland McGrath  <roland@hack.frob.com>
66410
66411         * nscd/nscd-client.h (__nscd_drop_map_ref):
66412         Add __attribute__ ((unused)).
66413         * nis/nss-nisplus.h (niserr2nss): Likewise.
66414
66415         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
66416         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
66417
66418         * csu/libc-tls.c (init_static_tls, init_slotinfo):
66419         Remove inline keyword.
66420         * include/rounding-mode.h (round_away): Likewise.
66421         * libio/wfileops.c (adjust_wide_data): Likewise.
66422         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
66423         (__m128i_strloadu_tolower): Likewise.
66424         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
66425         (__m128i_strloadu_tolower): Likewise.
66426         * time/mktime.c (ydhms_diff): Likewise.
66427         * locale/elem-hash.h (elem_hash): Likewise.
66428         * locale/setlocale.c (setdata): Likewise.
66429         * posix/regex_internal.h (re_string_char_size_at): Likewise.
66430         (re_string_wchar_at): Likewise.
66431         (bitset_not, bitset_merge, bitset_mask): Likewise.
66432         [!(__GNUC__ > 3)] (inline): Remove macro.
66433         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
66434         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
66435         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
66436         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
66437         * string/memcmp.c (memcmp_bytes): Likewise.
66438         * locale/programs/locarchive.c (compute_hashval): Likewise.
66439         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
66440         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
66441         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
66442         * nss/getent.c (print_rpc, print_protocols): Likewise.
66443         (print_passwd, print_group, print_aliases): Likewise.
66444         * nis/nss-nisplus.h (niserr2nss): Likewise.
66445         * nscd/connections.c (restart_p): Likewise.
66446         Change return type to bool.
66447
66448 2013-02-05  Roland McGrath  <roland@hack.frob.com>
66449
66450         * Makeconfig (all-Depend-files): Add existing
66451         $(sorted-subdirs:=/Depend) files.
66452         (all-subdirs): Remove nss.
66453         * sysdeps/unix/inet/Subdirs: Add it here instead.
66454         * hesiod/Depend: New file.
66455
66456         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
66457         instead of calling alloca.
66458
66459         * io/lseek.c (__lseek): Rename to __libc_lseek.
66460         Define __lseek as an alias.
66461
66462         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
66463
66464 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
66465
66466         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
66467         else clause and remove check for non-standard endianness.
66468
66469 2013-02-04  David S. Miller  <davem@davemloft.net>
66470
66471         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66472
66473 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
66474
66475         [BZ #13550]
66476         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
66477         (__ubp_memchr): Remove prototype.
66478         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
66479         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
66480         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
66481         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
66482         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
66483         Remove alias.
66484         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
66485         (__ubp_memchr): Likewise.
66486         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
66487         (__ubp_memchr): Likewise.
66488         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
66489         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
66490         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
66491         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
66492         CHECK_STRING.
66493         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
66494         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
66495         (__getcwd): Do not use CHECK_STRING.
66496         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
66497         <bp-checks.h>.
66498         (__real_chown): Do not use CHECK_STRING.
66499         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
66500         <bp-checks.h>.
66501         (fchownat): Do not use CHECK_STRING.
66502         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
66503         CHECK_STRING.
66504         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
66505         <bp-checks.h>.
66506         (__lchown): Do not use CHECK_STRING.
66507         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
66508         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
66509         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
66510         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
66511         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
66512         include <bp-checks.h>.
66513         (truncate64): Do not use CHECK_STRING.
66514         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
66515         <bp-checks.h>.
66516         (__real_chown): Do not use CHECK_STRING.
66517         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
66518         <bp-checks.h>.
66519         (__lchown): Do not use CHECK_STRING.
66520         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
66521         <bp-checks.h>.
66522         (__chown): Do not use CHECK_STRING.
66523         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
66524         <bp-checks.h>.
66525         (truncate64): Do not use CHECK_STRING.
66526         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
66527         Likewise.
66528         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
66529         (__xmknod): Do not use CHECK_STRING.
66530         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
66531         <bp-checks.h>.
66532         (__xmknodat): Do not use CHECK_STRING.
66533         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
66534         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
66535
66536 2013-02-04  Andreas Schwab  <schwab@suse.de>
66537
66538         [BZ #14142]
66539         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
66540         * include/netdb.h: Likewise for h_errno.
66541         * elf/tst-stackguard1.c: Include <tls.h>.
66542
66543 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
66544
66545         * elf/link.h (struct link_map): Extend the l_addr comment.
66546         * include/link.h (struct link_map): Likewise.
66547
66548 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
66549
66550         [BZ #13550]
66551         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
66552         (BOUNDED_1): Remove macro.
66553         * debug/backtrace.c: Don't include <bp-checks.h>.
66554         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
66555         (__backtrace): Likewise.
66556         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
66557         <bp-checks.h>.
66558         (__backtrace): Don't use BOUNDED_1.
66559         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
66560         <bp-checks.h>.
66561         (__backtrace): Don't use BOUNDED_1.
66562         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
66563         (__backtrace): Don't use BOUNDED_1.
66564         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
66565         (shmat): Don't use BOUNDED_N.
66566
66567 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
66568
66569         [BZ #13550]
66570         * sysdeps/generic/bp-start.h: Remove file.
66571         * csu/libc-start.c: Don't include <bp-start.h>.
66572         (LIBC_START_MAIN): Set up __environ directly instead of using
66573         INIT_ARGV_and_ENVIRON.
66574         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
66575         <bp-start.h>.
66576
66577         [BZ #13550]
66578         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
66579         definitions.
66580         (CHECK_FCNTL): Likewise.
66581         (CHECK_N_PAGES): Likewise.
66582
66583         [BZ #13550]
66584         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
66585         definitions.
66586         (CHECK_SIGSET_NULL_OK): Likewise.
66587         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
66588         <bp-checks.h>.
66589         (sigpending): Don't use CHECK_SIGSET.
66590         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
66591         <bp-checks.h>.
66592         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
66593         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
66594         <bp-checks.h>.
66595         (do_sigsuspend): Don't use CHECK_SIGSET.
66596         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
66597         use CHECK_SIGSET.
66598         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
66599         (do_sigwait): Don't use CHECK_SIGSET.
66600         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
66601         use CHECK_SIGSET.
66602         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
66603         include <bp-checks.h>.
66604         (sigpending): Don't use CHECK_SIGSET.
66605         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
66606         include <bp-checks.h>.
66607         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
66608         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
66609         <bp-checks.h>.
66610         (sigpending): Don't use CHECK_SIGSET.
66611         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
66612         <bp-checks.h>.
66613         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
66614
66615         [BZ #13550]
66616         * sysdeps/generic/bp-semctl.h: Remove file.
66617         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
66618         <bp-checks.h> and <bp-semctl.h>.
66619         (__old_semctl): Don't use CHECK_SEMCTL.
66620         (__new_semctl): Likewise.
66621         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
66622         and <bp-semctl.h>.
66623         (__old_semctl): Don't use CHECK_SEMCTL.
66624         (__new_semctl): Likewise.
66625         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
66626         <bp-checks.h> and <bp-semctl.h>.
66627         (__old_semctl): Don't use CHECK_SEMCTL.
66628         (__new_semctl): Likewise.
66629         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
66630         <bp-checks.h> and <bp-semctl.h>.
66631         (semctl): Don't use CHECK_SEMCTL.
66632
66633         [BZ #13550]
66634         * Makerules (elide-bp-thunks): Remove variable.
66635         (elide-routines.oS): Don't use $(elide-bp-thunks).
66636         (elide-routines.os): Likewise.
66637         (elide-routines.o): Likewise.
66638         (elide-routines.op): Likewise.
66639         (elide-routines.og): Likewise.
66640         (objects): Don't use $(bp-thunks).
66641         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
66642         include.
66643         (common-generated): Do not add s-proto-bp.d.
66644         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
66645         (int): Likewise.
66646         (typ): Likewise.
66647         Do not generate makefile rules for bounded-pointer thunks.
66648         * sysdeps/generic/bp-thunks.h: Remove file.
66649         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
66650         * sysdeps/unix/s-proto-bp.S: Likewise.
66651
66652         [BZ #15062]
66653         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
66654         parts of result separately when argument is not close to line from
66655         -i to i and one part of argument is small.
66656         * math/k_casinhf.c (__kernel_casinhf): Likewise.
66657         * math/k_casinhl.c (__kernel_casinhl): Likewise.
66658         * math/libm-test.inc (cacos_test): Add more tests.
66659         (casin_test): Likewise.
66660         (casinh_test): Likewise.
66661         * sysdeps/i386/fpu/libm-test-ulps: Update.
66662         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66663
66664 2013-01-31  David S. Miller  <davem@davemloft.net>
66665
66666         * po/de.po: Update from translation team.
66667
66668 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
66669
66670         * time/tzfile.c: Include stdint.h for SIZE_MAX.
66671
66672 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
66673
66674         * configure.in (_AC_PROG_CC_C89): New definition.
66675         * configure: Regenerate.
66676
66677         * configure.in (AC_PROG_CPP): New definition.
66678         * configure: Regenerate.
66679
66680 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
66681
66682         * debug/tst-backtrace.h: New file.
66683         * debug/tst-backtrace2.c: Include tst-backtrace.h.
66684         (ret): Remove variable.
66685         (x): Likewise.
66686         (FAIL): Remove macro.
66687         (NO_INLINE): Likewise.
66688         (fn1): Use match function instead of strstr.
66689         * debug/tst-backtrace3.c: Include tst-backtrace.h.
66690         (ret): Remove variable.
66691         (x): Likewise.
66692         (FAIL): Remove macro.
66693         (NO_INLINE): Likewise.
66694         (fn): Use match function instead of strstr.
66695         * debug/tst-backtrace4.c: Include tst-backtrace.h.
66696         (ret): Remove variable.
66697         (x): Likewise.
66698         (FAIL): Remove macro.
66699         (NO_INLINE): Likewise.
66700         (handle_signal): Use match function instead of strstr.
66701         * debug/tst-backtrace5.c: Include tst-backtrace.h.
66702         (ret): Remove variable.
66703         (x): Likewise.
66704         (FAIL): Remove macro.
66705         (NO_INLINE): Likewise.
66706         (handle_signal): Use match function instead of strstr.
66707
66708 2013-01-23  Roland McGrath  <roland@hack.frob.com>
66709
66710         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
66711
66712 2013-01-23  David S. Miller  <davem@davemloft.net>
66713
66714         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
66715         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
66716         argument of CAS if possible.
66717         * sysdeps/sparc/sparc64/bits/atomic.h
66718         (__arch_compare_and_exchange_val_32_acq): Likewise.
66719         (__arch_compare_and_exchange_val_64_acq): Likewise.
66720
66721 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
66722
66723         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
66724         * sysdeps/posix/ulimit.c: ... this.
66725         Include <limits.h>.
66726         * sysdeps/unix/bsd/ulimit.c: Remove file.
66727
66728 2013-01-23  Adam Conrad  <adconrad@0c3.net>
66729
66730         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
66731         (LDFLAGS-tst-array5): Likewise.
66732
66733 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
66734
66735         [BZ #15036]
66736         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
66737         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
66738         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
66739         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
66740
66741 2013-01-21  David S. Miller  <davem@davemloft.net>
66742
66743         * sysdeps/sparc/backtrace.c: New file.
66744         * sysdeps/sparc/sparc32/backtrace.h: New file.
66745         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
66746         * sysdeps/sparc/sparc64/backtrace.h: New file.
66747         * sysdeps/sparc/sparc64/backtrace.c: Delete.
66748         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
66749         -funwind-tables.
66750
66751 2013-01-21  Andreas Schwab  <schwab@suse.de>
66752
66753         [BZ #15020]
66754         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
66755         closed its stdout.
66756
66757 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
66758
66759         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
66760         "mpa2.h".
66761         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
66762
66763 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
66764             Mark Mitchell  <mark@codesourcery.com>
66765             Tom de Vries  <tom@codesourcery.com>
66766             Paul Pluzhnikov  <ppluzhnikov@google.com>
66767
66768         * debug/tst-backtrace2.c: New file.
66769         * debug/tst-backtrace3.c: Likewise.
66770         * debug/tst-backtrace4.c: Likewise.
66771         * debug/tst-backtrace5.c: Likewise.
66772         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
66773         (CFLAGS-tst-backtrace3.c): Likewise.
66774         (CFLAGS-tst-backtrace4.c): Likewise.
66775         (CFLAGS-tst-backtrace5.c): Likewise.
66776         (LDFLAGS-tst-backtrace2): Likewise.
66777         (LDFLAGS-tst-backtrace3): Likewise.
66778         (LDFLAGS-tst-backtrace4): Likewise.
66779         (LDFLAGS-tst-backtrace5): Likewise.
66780         (tests): Add new tests tst-backtrace2, tst-backtrace3,
66781         tst-backtrace4 and tst-backtrace5.
66782
66783 2013-01-18  Anton Blanchard  <anton@samba.org>
66784             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
66785
66786         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
66787         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
66788         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
66789         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
66790         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
66791         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
66792         "+r" and remove output regs list as redundant.  Add explicit inline
66793         asm to specify register of return val to work around compiler codegen
66794         bug.  Remove (int) cast on return value.  Add return type parameter to
66795         use in macro so that this macro does not truncate return value for
66796         64-bit values.
66797         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
66798         pass to INTERNAL_VSYSCALL_NCS.
66799         (INLINE_VSYSCALL): Add 'long int' as return type to
66800         INTERNAL_VSYSCALL_NCS macro invocation.
66801         (INTERNAL_VSYSCALL): Add 'long int' as return type to
66802         INTERNAL_VSYSCALL_NCS macro invocation.
66803         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
66804
66805 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
66806
66807         [BZ #14496]
66808         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
66809         Fix application of SIMD FP exception mask.
66810
66811         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
66812         mp_no from a power of two.
66813         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
66814         __mpexp_twomm1.  Use __pow_mp.
66815
66816         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
66817         multiplication.
66818
66819 2013-01-17  David S. Miller  <davem@davemloft.net>
66820
66821         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66822
66823 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
66824
66825         [BZ #15023]
66826         * include/complex.h: Condition contents on [!_COMPLEX_H].
66827         (__kernel_casinhf): New prototype.
66828         (__kernel_casinh): Likewise.
66829         (__kernel_casinhl): Likewise.
66830         * math/Makefile (libm_calls): Add k_casinh.
66831         * math/k_casinh.c: New file.
66832         * math/k_casinhf.c: Likewise.
66833         * math/k_casinhl.c: Likewise.
66834         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
66835         finite nonzero arguments.
66836         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
66837         finite nonzero arguments.
66838         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
66839         finite nonzero arguments.
66840         * math/s_casinh.c: Do not include <float.h>.
66841         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
66842         * math/s_casinhf.c: Do not include <float.h>.
66843         (__casinhf): Move code for finite nonzero arguments to
66844         k_casinhf.c.
66845         * math/s_casinhl.c: Do not include <float.h>.
66846         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
66847         redefine.
66848         (__casinhl): Move code for finite nonzero arguments to
66849         k_casinhl.c.
66850         * math/libm-test.inc (cacos_test): Add more tests.
66851         * sysdeps/i386/fpu/libm-test-ulps: Update.
66852         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66853
66854 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
66855
66856         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
66857         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
66858         [!HAVE_MREMAP]: Remove [defined linux] case.
66859         * malloc/arena.c: Do not include <malloc-sysdep.h>.
66860
66861 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
66862
66863         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
66864
66865 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
66866
66867         * elf/elf.h (R_386_SIZE32): New relocation.
66868         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
66869         R_386_SIZE32.
66870         (elf_machine_rela): Likewise.
66871         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
66872         R_X86_64_SIZE64 and R_X86_64_SIZE32.
66873
66874 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
66875
66876         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
66877         (FP_FAST_FMA): Do not define.
66878         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
66879         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
66880         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
66881         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
66882         !_SOFT_FLOAT]: Likewise.
66883         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
66884         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
66885         value.
66886         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
66887         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
66888         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
66889         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
66890         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
66891         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
66892         file.
66893
66894 2013-01-16  Andreas Schwab  <schwab@suse.de>
66895
66896         [BZ #14327]
66897         * include/stdlib.h (__mktemp): Add declaration.
66898         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
66899         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
66900
66901 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
66902
66903         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
66904         definitions.
66905         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
66906         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
66907         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
66908         definitions here.
66909         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
66910         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
66911         definitions.
66912         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
66913         and ONE.
66914         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
66915         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
66916         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
66917         definitions.
66918         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
66919         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
66920         definitions.
66921         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
66922
66923         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
66924
66925 2013-01-15  David S. Miller  <davem@davemloft.net>
66926
66927         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
66928         trunc{,f} to libm-sysdep_routes.
66929         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
66930         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
66931         file.
66932         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
66933         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
66934         file.
66935         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
66936         file.
66937         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
66938         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
66939         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
66940         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
66941         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
66942         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
66943         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
66944         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
66945
66946         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
66947         nearbyint{,f} to libm-sysdep_routes.
66948         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
66949         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
66950         New file.
66951         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
66952         file.
66953         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
66954         New file.
66955         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
66956         file.
66957         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
66958         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
66959         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
66960         file.
66961         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
66962         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
66963         file.
66964         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
66965         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
66966         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
66967
66968         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
66969         libc_feholdexcept and libc_fesetenv.
66970
66971 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
66972
66973         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
66974
66975 2013-01-14  David S. Miller  <davem@davemloft.net>
66976
66977         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
66978         (SPARC_ASM_VIS2_IFUNC): Likewise.
66979         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
66980         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
66981         use of 'siam' instruction.
66982         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
66983         Likewise.
66984         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
66985         Likewise.
66986         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
66987         Likewise.
66988         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
66989         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
66990         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
66991         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
66992         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
66993         file.
66994         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
66995         file.
66996         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
66997         file.
66998         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
66999         file.
67000         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
67001         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
67002         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
67003         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
67004         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
67005         new VIS2 routines.
67006         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
67007         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
67008         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
67009         Likewise.
67010         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
67011         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
67012         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
67013         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
67014         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
67015         routines to libm-sysdep_routines.
67016         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
67017
67018         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
67019         fdim/fdimf to libm-sysdep_routines.
67020         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
67021         file.
67022         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
67023         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
67024         file.
67025         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
67026         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
67027         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
67028         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
67029         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
67030         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
67031         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
67032
67033 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
67034
67035         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
67036         to optimize copies.
67037
67038         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
67039         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
67040         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
67041
67042         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
67043         local variable MPTWO.
67044         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
67045         Likewise.
67046
67047 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
67048
67049         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
67050         GLOB_NOESCAPE.
67051
67052 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
67053
67054         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
67055
67056 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
67057
67058         * manual/pattern.texi (glob_t): Document gl_flags.
67059         (glob64_t): Likewise.
67060
67061 2013-01-11  David S. Miller  <davem@davemloft.net>
67062
67063         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
67064         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
67065         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
67066         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
67067         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
67068         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
67069         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
67070         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
67071         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
67072         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
67073         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
67074         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
67075         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
67076
67077         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
67078         sparc V9 rather than using V8 code.
67079         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
67080         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
67081
67082         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
67083         Move to...
67084         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
67085         Here.
67086
67087 2013-01-11  Roland McGrath  <roland@hack.frob.com>
67088
67089         [BZ #14941]
67090         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
67091         not in the main loop.
67092         * configure: Regenerated.
67093
67094 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
67095
67096         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
67097         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
67098         to just #else.
67099         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
67100         [!__GLIBC_HAVE_LONG_LONG] case.
67101         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
67102         condition to just #else.
67103         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
67104         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
67105         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
67106         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
67107         unconditional.
67108         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
67109         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
67110         #elif condition to just #else.
67111         * sysdeps/unix/sysv/linux/sys/sysmacros.h
67112         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
67113         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
67114         #elif condition to just #else.
67115
67116 2013-01-11  Steve Ellcey  <sellcey@mips.com>
67117
67118         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
67119         (EF_MIPS_ARCH_64): Fix value.
67120         (EF_MIPS_ARCH_32R2): New.
67121         (EF_MIPS_ARCH_64R2): New.
67122
67123 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
67124
67125         * Makeconfig (+link-pie-before-libc): New.
67126         (+link-pie-after-libc): Likewise.
67127         (+link-pie-tests): Likewise.
67128         (+link-pie): Rewritten.
67129         (link-before-libc): Remove $(config-LDFLAGS).
67130         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
67131         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
67132         (config-LDFLAGS): Renamed to ...
67133         (rtld-LDFLAGS): This.
67134         (rtld-tests-LDFLAGS): New macro.
67135         (link-libc-rpath-link): Likewise.
67136         (link-libc-tests-rpath-link): Likewise.
67137         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
67138         (link-libc): Prepand $(link-libc-rpath-link).
67139         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
67140         (test-program-prefix): New macro.
67141         (test-via-rtld-prefix): Likewise.
67142         (test-program-cmd): Likewise.
67143         (host-test-program-cmd): Likewise.
67144         * Makefile ($(common-objpfx)testrun.sh): Replace
67145         $(run-program-prefix) with $(test-program-prefix).
67146         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
67147         $(rtld-LDFLAGS).
67148         ($(common-objpfx)shlib.lds): Likewise.
67149         (build-module-helper): Likewise.
67150         ($(common-objpfx)format.lds): Likewise.
67151         * Rules (binaries-pie-tests): New.
67152         (binaries-pie-notests): Likewise.
67153         (binaries-pie): Rewritten.
67154         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
67155         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
67156         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
67157         (make-test-out): Replace $(host-built-program-cmd) with
67158         $(host-test-program-cmd).
67159         * config.make.in (build-hardcoded-path-in-tests): New variable.
67160         * configure.in (--enable-hardcoded-path-in-tests): New configure
67161         option.
67162         (hardcoded_path_in_tests): New AC_SUBST.
67163         * configure: Regenerated.
67164         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
67165         $(built-program-cmd) with $(test-program-cmd).
67166         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
67167         (test_program_cmd): This.
67168         * elf/Makefile ($(objpfx)order.out): Run test with
67169         $(test-program-prefix).
67170         ($(objpfx)order2.out): Likewise.
67171         ($(objpfx)tst-initorder.out): Likewise.
67172         ($(objpfx)tst-initorder2.out): Likewise.
67173         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
67174         $(test-program-cmd).
67175         ($(objpfx)tst-array1-static.out): Likewise.
67176         ($(objpfx)tst-array2.out): Likewise.
67177         ($(objpfx)tst-array3.out): Likewise.
67178         ($(objpfx)tst-array4.out): Likewise.
67179         ($(objpfx)tst-array5.out): Likewise.
67180         ($(objpfx)tst-array5-static.out): Likewise.
67181         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
67182         $(test-program-cmd).
67183         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
67184         $(run-program-prefix) with $(test-program-prefix).
67185         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
67186         (test_program_prefix): This.
67187         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
67188         $(run-program-prefix) with $(test-program-prefix).
67189         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
67190         (test_program_prefix): This.
67191         * iconvdata/tst-tables.sh: Likewise.
67192         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
67193         $(run-program-prefix) with $(test-program-prefix).
67194         ($(objpfx)tst-translit.out): Likewise.
67195         ($(objpfx)tst-gettext2.out): Likewise.
67196         ($(objpfx)tst-gettext4.out): Likewise.
67197         ($(objpfx)tst-gettext6.out): Likewise.
67198         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
67199         (test_program_prefix): This.
67200         * intl/tst-gettext2.sh: Likewise.
67201         * intl/tst-gettext4.sh  Likewise.
67202         * intl/tst-gettext6.sh: Likewise.
67203         * intl/tst-translit.sh: Likewise.
67204         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
67205         with $(test-program-cmd).
67206         * libio/Makefile ($(objpfx)test-freopen.out): Replace
67207         $(run-program-prefix) with $(test-program-prefix).
67208         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
67209         (test_program_prefix): This.
67210         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
67211         $(run-program-prefix) with $(test-program-prefix).
67212         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
67213         (test_program_prefix): This.
67214         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
67215         * posix/Makefile ($(objpfx)globtest.out): Replace
67216         $(run-via-rtld-prefix) and $(test-wrapper) with
67217         $(test-program-prefix) and $(test-via-rtld-prefix).
67218         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
67219         $(test-program-prefix).
67220         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
67221         $(host-test-program-cmd).
67222         (tst-spawn-ARGS): Likewise.
67223         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
67224         $(test-program-prefix).
67225         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
67226         (test_via_rtld_prefix): This.
67227         (test_wrapper): Renamed to ...
67228         (test_program_prefix): This.
67229         (run_program_prefix): Replaced by test_program_prefix.
67230         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
67231         (test_program_prefix): This.
67232         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
67233         with $(host-test-program-cmd).
67234         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
67235         $(run-program-prefix) with $(test-program-prefix).
67236         ($(objpfx)tst-printf.out): Likewise.
67237         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
67238         $(test-program-cmd).
67239         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
67240         (test_program_prefix): This.
67241         * stdio-common/tst-unbputc.sh: Likewise.
67242         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
67243         $(run-program-prefix) with $(test-program-prefix).
67244         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
67245         (test_program_prefix): This.
67246         * string/Makefile ($(objpfx)tst-svc.out):  Replace
67247         $(built-program-cmd) with $(test-program-cmd).
67248
67249 2013-01-11  Andreas Jaeger  <aj@suse.de>
67250
67251         [BZ #15003]
67252         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
67253         value. Sync with Linux 3.7.
67254
67255 2013-01-10  David S. Miller  <davem@davemloft.net>
67256
67257         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
67258         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
67259         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
67260
67261 2013-01-10  Roland McGrath  <roland@hack.frob.com>
67262
67263         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
67264         never set.
67265         * configure: Regenerated.
67266
67267 2013-01-10  David S. Miller  <davem@davemloft.net>
67268
67269         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
67270         sparc V9 rather than using V8 code.
67271         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
67272         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
67273
67274 2013-01-10  Roland McGrath  <roland@hack.frob.com>
67275
67276         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
67277         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
67278         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
67279         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
67280         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
67281         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
67282         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
67283         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
67284         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
67285         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
67286         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
67287         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
67288         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
67289         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
67290         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
67291         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
67292         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
67293         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
67294         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
67295         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
67296         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
67297         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
67298         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
67299         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
67300         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
67301         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
67302         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
67303
67304 2013-01-10  David S. Miller  <davem@davemloft.net>
67305
67306         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67307
67308 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
67309
67310         * posix/Makefile (tests-static): New variable.
67311         (tests): Add $(tests-static).
67312         (tst-exec-static-ARGS): New variable.
67313         (tst-spawn-static-ARGS): Likewise.
67314         * posix/tst-exec-static.c: New file.
67315         * posix/tst-spawn-static.c: Likewise.
67316         * posix/tst-exec.c: Support run directly.
67317         * posix/tst-spawn.c: Likewise.
67318
67319 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
67320
67321         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
67322         long.
67323         * math/bits/mathcalls.h (llrint): Likewise.
67324         (llround): Likewise.
67325         * stdlib/stdlib.h (struct drand48_data): Likewise.
67326         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
67327         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
67328         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
67329         Likewise.
67330         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
67331         Likewise.
67332         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
67333         (elf_greg_t): Likewise.
67334         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
67335         (__jmp_buf): Likewise.
67336         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
67337         definitions.
67338         (llrint): Likewise, for all definitions.
67339         (llrintl): Likewise.
67340
67341         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
67342         Remove [__GNUC__] condition.
67343         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
67344         condition to just [__USE_ISOC99].
67345         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
67346
67347 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
67348
67349         [BZ #14200]
67350         * sysdeps/unix/sysv/linux/x86/bits/environments.h
67351         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
67352         defined.
67353         (_POSIX_V6_ILP32_OFF32): Likewise.
67354         (_XBS5_ILP32_OFF32): Likewise.
67355         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
67356         (__ILP32_OFFBIG_LDFLAGS): Likewise.
67357
67358 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
67359
67360         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
67361
67362         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
67363         doubles __mpexp_twomm1.  Adjust usage.
67364         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
67365         Remove.
67366
67367 2013-01-10  Andreas Schwab  <schwab@suse.de>
67368
67369         [BZ #14964]
67370         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
67371         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
67372
67373 2013-01-09  David S. Miller  <davem@davemloft.net>
67374
67375         [BZ #15003]
67376         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
67377         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
67378         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
67379         (TCP_FASTOPEN): Define.
67380         (tcp_repair_opt): New structure.
67381         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
67382         enum values.
67383         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
67384         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
67385         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
67386         (tcp_cookie_transactions): New structure.
67387
67388 2013-01-09  Anton Blanchard  <anton@samba.org>
67389
67390         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
67391         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
67392         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
67393         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
67394
67395 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
67396
67397         * include/features.h (__USE_ANSI): Remove.
67398
67399 2013-01-09  Roland McGrath  <roland@hack.frob.com>
67400
67401         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
67402
67403         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
67404
67405 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
67406
67407         * sysdeps/s390/fpu/libm-test-ulps: Update.
67408
67409         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67410
67411         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
67412         (__acr): Likewise.
67413         (__cpy): Likewise.
67414         (norm): Likewise.
67415         (denorm): Likewise.
67416         (__mp_dbl): Likewise.
67417         (__dbl_mp): Likewise.
67418         (add_magnitudes): Likewise.
67419         (sub_magnitudes): Likewise.
67420         (__add): Likewise.
67421         (__sub): Likewise.
67422         (__mul): Likewise.
67423         (__inv): Likewise.
67424         (__dvd): Likewise.
67425         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
67426         (__acr): Likewise.
67427         (__cpy): Likewise.
67428         (norm): Likewise.
67429         (denorm): Likewise.
67430         (__mp_dbl): Likewise.
67431         (__dbl_mp): Likewise.
67432         (add_magnitudes): Likewise.
67433         (sub_magnitudes): Likewise.
67434         (__add): Likewise.
67435         (__sub): Likewise.
67436         (__mul): Likewise.
67437         (__inv): Likewise.
67438         (__dvd): Likewise.
67439         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
67440         (__acr): Likewise.
67441         (__cpy): Likewise.
67442         (norm): Likewise.
67443         (denorm): Likewise.
67444         (__mp_dbl): Likewise.
67445         (__dbl_mp): Likewise.
67446         (add_magnitudes): Likewise.
67447         (sub_magnitudes): Likewise.
67448         (__add): Likewise.
67449         (__sub): Likewise.
67450         (__mul): Likewise.
67451         (__inv): Likewise.
67452         (__dvd): Likewise.
67453
67454 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
67455
67456         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
67457         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
67458         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
67459         2 && __USE_EXTERN_INLINES]: Likewise.
67460
67461 2013-01-08  Andreas Jaeger  <aj@suse.de>
67462
67463         [BZ #14985]
67464         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
67465         Remove.
67466         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
67467         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
67468
67469 2013-01-07  Anton Blanchard  <anton@samba.org>
67470
67471         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
67472         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
67473         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
67474         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
67475         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
67476         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
67477         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
67478         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
67479         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
67480         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
67481         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
67482         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
67483         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
67484         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
67485         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
67486         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
67487         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
67488         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
67489         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
67490         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
67491         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
67492         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
67493         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
67494         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
67495         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
67496         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
67497         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
67498         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
67499         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
67500         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
67501         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
67502         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
67503         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
67504         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
67505         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
67506         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
67507         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
67508         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
67509         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
67510         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
67511         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
67512         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
67513         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
67514
67515 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
67516
67517         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
67518         (__MALLOC_PMT): Likewise.
67519         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
67520         [__GNUC__], only on [_LIBC].
67521         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
67522         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
67523         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
67524         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
67525         forward declaration.
67526         (realloc_hook_ini): Likewise.
67527         (memalign_hook_ini): Likewise.
67528         (__libc_memalign): Do not use __MALLOC_PMT in variable
67529         declaration.
67530         (__libc_valloc): Likewise.
67531         (__libc_pvalloc): Likewise.
67532         (__libc_calloc): Likewise.
67533         (__posix_memalign): Likewise.
67534
67535         [BZ #14996]
67536         * math/s_casinh.c: Include <float.h>.
67537         (__casinh): Do not do computation with squaring and square root
67538         for large arguments.
67539         * math/s_casinhf.c: Include <float.h>.
67540         (__casinhf): Do not do computation with squaring and square root
67541         for large arguments.
67542         * math/s_casinhl.c: Include <float.h>.
67543         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
67544         (__casinhl): Do not do computation with squaring and square root
67545         for large arguments.
67546         * math/libm-test.inc (casin_test): Add more tests.
67547         (casinh_test): Likewise.
67548         * sysdeps/i386/fpu/libm-test-ulps: Update.
67549         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67550
67551 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
67552
67553         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
67554         (__x86_64_raw_data_cache_size): Likewise.
67555         (__x86_64_data_cache_size_half): Likewise.
67556         (__x86_64_raw_data_cache_size_half): Likewise.
67557         (__x86_64_shared_cache_size): Likewise.
67558         (__x86_64_raw_shared_cache_size): Likewise.
67559         (__x86_64_shared_cache_size_half): Likewise.
67560         (__x86_64_raw_shared_cache_size_half): Likewise.
67561         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
67562         to ...
67563         (__x86_data_cache_size): This.
67564         (__x86_64_raw_data_cache_size): Renamed to ...
67565         (__x86_raw_data_cache_size): This.
67566         (__x86_64_data_cache_size_half): Renamed to ...
67567         (__x86_data_cache_size_half): This.
67568         (__x86_64_raw_data_cache_size_half): Renamed to ...
67569         (__x86_raw_data_cache_size_half): This.
67570         (__x86_64_shared_cache_size): Renamed to ...
67571         (__x86_shared_cache_size): This.
67572         (__x86_64_raw_shared_cache_size): Renamed to ...
67573         (__x86_raw_shared_cache_size): This.
67574         (__x86_64_shared_cache_size_half): Renamed to ...
67575         (__x86_shared_cache_size_half): This.
67576         (__x86_64_raw_shared_cache_size_half): Renamed to ...
67577         (__x86_raw_shared_cache_size_half): This.
67578         * sysdeps/x86_64/memcpy.S: Updated.
67579         * sysdeps/x86_64/memset.S: Likewise.
67580         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
67581         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
67582         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
67583
67584 2013-01-04  David S. Miller  <davem@davemloft.net>
67585
67586         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67587
67588 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
67589
67590         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
67591         1 to avoid redefinition warning.
67592         (__USE_GNU): Don't define.
67593         (init_signaling_nan): Protoize.
67594
67595         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67596
67597 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
67598
67599         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
67600         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
67601         (__cpymn): Likewise.
67602         (norm): Remove commented code.
67603         (denorm): Likewise.
67604         (__mp_dbl): Likewise.
67605         (__inv): Likewise.
67606         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
67607         (__cpymn): Likewise.
67608         (norm): Remove commented code.
67609         (denorm): Likewise.
67610         (__mp_dbl): Likewise.
67611         (__inv): Likewise.
67612
67613         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
67614         mp_no value for 1.0 and 2.0.
67615         (norm): Use RADIXI instead of radixi.d.
67616         (denorm): Likewise.
67617         (__mul): Use 0.0 instead of zero.d.
67618         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
67619         mp_no value for 1.0 and 2.0.
67620         (norm): Use RADIXI instead of radixi.d.
67621         (denorm): Likewise.
67622         (__mul): Use 0.0 instead of zero.d.
67623
67624 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
67625
67626         [BZ #14994]
67627         * math/s_casinh.c (__casinh): Reduce finite argument to first
67628         quadrant then set signs of results at the end.
67629         * math/s_casinhf.c (__casinhf): Likewise.
67630         * math/s_casinhl.c (__casinhl): Likewise.
67631         * math/libm-test.inc (casin_test): Add more tests.
67632         (casinh_test): Likewise.
67633         * sysdeps/i386/fpu/libm-test-ulps: Update.
67634         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67635
67636 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
67637
67638         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
67639
67640         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
67641
67642         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
67643         declarations.
67644         (denorm): Likewise.
67645         (__mp_dbl): Likewise.
67646         (__inv): Likewise.
67647
67648         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
67649         and adjust the header comment.
67650
67651         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
67652         variable name from declaration.
67653
67654 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
67655
67656         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
67657         Initialize COMMON_CPUID_INDEX_7 element.
67658         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
67659         (CPUID_RTM): Likewise.
67660         (HAS_RTM): Likewise.
67661         (COMMON_CPUID_INDEX_7): New enum.
67662
67663 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
67664
67665         [BZ #14981]
67666         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
67667         size is zero, record memory as freed.
67668
67669 2013-01-03  Andreas Jaeger  <aj@suse.de>
67670
67671         * po/ia.po: Add new Interlingua translation.
67672
67673 2012-01-03  Allan McRae  <allan@archlinux.org>
67674
67675         * locale/programs/localedef.c: Fix description of '--posix' flag.
67676
67677 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
67678
67679         * NEWS: Update dates in second copyright notice.
67680         * README: Update copyright dates in example.
67681         * manual/libc.texinfo: Update copyright dates.
67682         * scripts/test-installation.pl: Update copyright date in --version
67683         output.
67684
67685         * hurd/ctty-input.c: Fix copyright notice formatting.
67686         * hurd/ctty-output.c: Likewise.
67687         * hurd/dtable.c: Likewise.
67688         * hurd/hurd-raise.c: Likewise.
67689         * hurd/hurdprio.c: Likewise.
67690         * hurd/msgportdemux.c: Likewise.
67691         * misc/sys/file.h: Likewise.
67692         * misc/sys/ioctl.h: Likewise.
67693         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
67694         * sysdeps/mach/hurd/chdir.c: Likewise.
67695         * sysdeps/mach/hurd/fchdir.c: Likewise.
67696         * sysdeps/mach/hurd/rename.c: Likewise.
67697         * sysdeps/mach/hurd/rmdir.c: Likewise.
67698         * sysdeps/mach/hurd/seekdir.c: Likewise.
67699         * sysdeps/mach/hurd/setsid.c: Likewise.
67700         * sysdeps/posix/wait3.c: Likewise.
67701
67702         * All files with FSF copyright notices: Update copyright dates
67703         using scripts/update-copyrights.
67704         * intl/plural.c: Regenerated.
67705         * locale/programs/charmap-kw.h: Likewise.
67706         * locale/programs/locfile-kw.h: Likewise.
67707
67708 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
67709
67710         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
67711         four values.
67712
67713         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
67714         calculation loop and add branch prediction.
67715
67716         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
67717         check access beyond bounds of m1np.
67718
67719         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
67720         MPTWO.
67721         (__inv): Remove local variable MPTWO to use the global
67722         constant.
67723         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
67724         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
67725         variable MPTWO.
67726         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
67727         MP3HALFS static const.
67728
67729 2013-01-01  David S. Miller  <davem@davemloft.net>
67730
67731         * po/ca.po: Update from translation team.
67732
67733 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
67734
67735         * scripts/update-copyrights: New file.
67736         * Makeconfig: Reformat copyright notice.
67737         * ctype/ctype.h: Likewise.
67738         * debug/swprintf_chk.c: Likewise.
67739         * elf/dl-cache.c: Likewise.
67740         * elf/dl-debug.c: Likewise.
67741         * elf/dl-object.c: Likewise.
67742         * grp/initgroups.c: Likewise.
67743         * hurd/Makefile: Likewise.
67744         * hurd/hurd/signal.h: Likewise.
67745         * hurd/hurdfault.c: Likewise.
67746         * hurd/hurdioctl.c: Likewise.
67747         * hurd/hurdlookup.c: Likewise.
67748         * hurd/intr-msg.c: Likewise.
67749         * iconv/gconv_open.c: Likewise.
67750         * libio/swprintf.c: Likewise.
67751         * locale/lc-ctype.c: Likewise.
67752         * locale/nl_langinfo.c: Likewise.
67753         * mach/Machrules: Likewise.
67754         * mach/Makefile: Likewise.
67755         * malloc/obstack.h: Likewise.
67756         * manual/Makefile: Likewise.
67757         * manual/tsort.awk: Likewise.
67758         * misc/bits/stab.def: Likewise.
67759         * nis/nis_print_group_entry.c: Likewise.
67760         * nis/nis_table.c: Likewise.
67761         * nis/nss_compat/compat-pwd.c: Likewise.
67762         * nis/nss_compat/compat-spwd.c: Likewise.
67763         * po/Makefile: Likewise.
67764         * posix/fnmatch.c: Likewise.
67765         * posix/regex.h: Likewise.
67766         * resolv/Makefile: Likewise.
67767         * resolv/nss_dns/dns-network.c: Likewise.
67768         * resolv/res_hconf.c: Likewise.
67769         * scripts/gen-sorted.awk: Likewise.
67770         * soft-fp/soft-fp.h: Likewise.
67771         * stdio-common/printf.h: Likewise.
67772         * stdlib/monetary.h: Likewise.
67773         * stdlib/random.c: Likewise.
67774         * stdlib/random_r.c: Likewise.
67775         * sysdeps/generic/Makefile: Likewise.
67776         * sysdeps/gnu/Makefile: Likewise.
67777         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
67778         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
67779         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
67780         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
67781         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
67782         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
67783         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
67784         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
67785         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
67786         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
67787         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
67788         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
67789         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
67790         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
67791         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
67792         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
67793         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
67794         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
67795         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
67796         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
67797         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
67798         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
67799         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
67800         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
67801         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
67802         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
67803         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
67804         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
67805         * sysdeps/mach/hurd/errnos.awk: Likewise.
67806         * sysdeps/mach/hurd/fork.c: Likewise.
67807         * sysdeps/mach/hurd/getcwd.c: Likewise.
67808         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
67809         * sysdeps/mach/hurd/mmap.c: Likewise.
67810         * sysdeps/mach/hurd/utimes.c: Likewise.
67811         * sysdeps/mach/hurd/xmknod.c: Likewise.
67812         * sysdeps/posix/profil.c: Likewise.
67813         * sysdeps/posix/readdir_r.c: Likewise.
67814         * sysdeps/powerpc/bits/mathdef.h: Likewise.
67815         * sysdeps/powerpc/bits/setjmp.h: Likewise.
67816         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
67817         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
67818         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
67819         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
67820         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
67821         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
67822         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
67823         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
67824         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
67825         * sysdeps/pthread/lio_listio.c: Likewise.
67826         * sysdeps/sparc/dl-procinfo.h: Likewise.
67827         * sysdeps/unix/i386/sysdep.S: Likewise.
67828         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
67829         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
67830         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
67831         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
67832         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
67833         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
67834         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
67835         * sysdeps/unix/sysv/linux/speed.c: Likewise.
67836         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
67837         * sysdeps/wordsize-32/divdi3.c: Likewise.
67838         * time/sys/time.h: Likewise.
67839         * wcsmbs/Makefile: Likewise.
67840
67841 2013-01-01  David S. Miller  <davem@davemloft.net>
67842
67843         * po/fr.po: Update from translation team.
67844
67845         * catgets/gencat.c: Update copyright year.
67846         * csu/version.c: Likewise.
67847         * debug/catchsegv.sh: Likewise.
67848         * debug/pcprofiledump.c: Likewise.
67849         * debug/xtrace.sh: Likewise.
67850         * elf/ldconfig.c: Likewise.
67851         * elf/ldd.bash.in: Likewise.
67852         * elf/pldd.c: Likewise.
67853         * elf/sotruss.ksh: Likewise.
67854         * elf/sprof.c: Likewise.
67855         * iconv/iconv_prog.c: Likewise.
67856         * iconv/iconvconfig.c: Likewise.
67857         * locale/programs/locale.c: Likewise.
67858         * locale/programs/localedef.c: Likewise.
67859         * login/programs/pt_chown.c: Likewise.
67860         * malloc/memusage.sh: Likewise.
67861         * malloc/memusagestat.c: Likewise.
67862         * malloc/mtrace.pl: Likewise.
67863         * nscd/nscd.c: Likewise.
67864         * nss/getent.c: Likewise.
67865         * nss/makedb.c: Likewise.
67866         * posix/getconf.c: Likewise.
67867
67868 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
67869
67870         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
67871         numbers.
67872
67873 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
67874
67875         * math/bits/mathcalls.h (modf): Use __nonnull.
67876
67877 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
67878
67879         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
67880         (split): Use macro CN instead of the bare value.
67881         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
67882         could be used.
67883         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
67884         instead of the bare value.
67885         (power1): Likewise.
67886
67887 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
67888
67889         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
67890         __ATAN_TWOM.
67891         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
67892
67893         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
67894         their values.
67895         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
67896         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
67897         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
67898         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
67899
67900 2012-12-28  Andreas Jaeger  <aj@suse.de>
67901
67902         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
67903         values are from Linux 3.7.
67904
67905         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
67906         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
67907
67908 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
67909
67910         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
67911         TRUE case.
67912
67913         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
67914         (norm): Likewise.
67915         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
67916         variables with preprocessor constants.
67917         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
67918         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
67919         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
67920
67921 2012-12-27  Bruno Haible  <bruno@clisp.org>
67922
67923         [BZ #14317]
67924         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
67925         only if needed.
67926
67927 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
67928
67929         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
67930         and use variable directly.
67931         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
67932
67933         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
67934         MPONE.
67935         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
67936         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
67937         variable MPONE.
67938         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
67939         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
67940         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
67941         include directive.  Remove local variable MPONE.
67942         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
67943         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
67944         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
67945
67946 2012-12-25  David S. Miller  <davem@davemloft.net>
67947
67948         * version.h (RELEASE): Set to "development".
67949         (VERSION): Set to "2.17.90".
67950         * NEWS: Add 2.18 section.
67951
67952 2012-12-21  David S. Miller  <davem@davemloft.net>
67953
67954         * po/hr.po: Update from translation team.
67955
67956 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
67957
67958         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
67959
67960 2012-12-19  Steve Ellcey  <sellcey@mips.com>
67961
67962         * NEWS:  Mention new memcpy for MIPS.
67963
67964 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
67965
67966         * manual/contrib.texi (Contributors): Spelling correction.
67967
67968 2012-12-15  David S. Miller  <davem@davemloft.net>
67969
67970         * po/ru.po: Update from translation team.
67971
67972 2012-12-13  David S. Miller  <davem@davemloft.net>
67973
67974         * NEWS: Mention IFUNC testsuite enhancements.
67975
67976         * po/pl.po: Update from translation team.
67977         * po/bg.po: Likewise.
67978
67979         * manual/contrib.texi (Contributors): Update entries for Hongjiu
67980         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
67981
67982 2012-12-11  David S. Miller  <davem@davemloft.net>
67983
67984         * po/sv.po: Update from translation team.
67985
67986         * po/vi.po: Update from translation team.
67987
67988         * po/cs.po: Update from translation team.
67989
67990         * po/de.po: Update from translation team.
67991         * po/eo.po: Likewise.
67992         * po/nl.po: Likewise.
67993
67994 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
67995
67996         [BZ #14246]
67997         * manual/argp.texi (Argp Helper Functions): Move node to follow
67998         Argp Parsing State.
67999
68000         [BZ #14872]
68001         * manual/conf.texi (Limits on File System Capacity): Mention if
68002         terminating null is included in the max size.
68003
68004 2012-12-10  Andreas Jaeger  <aj@suse.de>
68005
68006         * po/cs.po: Update from translation team.
68007
68008 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
68009
68010         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
68011         void pointer and cast to uintptr_t.
68012         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
68013         path.
68014         * sysdeps/s390/s390-64/memcpy.S: Likewise.
68015         * sysdeps/s390/s390-64/memset.S: Likewise.
68016
68017 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
68018
68019         [BZ #14833]
68020         * menual/message.texi (Message Translation): Fix typos.
68021         (Helper programs for gettext): Likewise.
68022
68023 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
68024
68025         [BZ #14898]
68026         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
68027         Change to -1.
68028
68029 2012-12-07  David S. Miller  <davem@davemloft.net>
68030
68031         * po/libc.pot: Update.
68032
68033 2012-12-07  Richard Henderson  <rth@redhat.com>
68034
68035         [BZ #10114]
68036         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
68037         normal/normal case to before the switch.
68038         (_FP_DIV): Likewise.
68039
68040 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
68041             Mike Frysinger  <vapier@gentoo.org>
68042
68043         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
68044         check for __NR_fadvise64_64.
68045
68046 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
68047
68048         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
68049         0, not just to plain "0" as a statement.
68050         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
68051         with cw.
68052
68053 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
68054
68055         * NEWS: Use sourceware.org in Bugzilla URL.
68056
68057 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
68058
68059         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
68060         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
68061
68062         * stdio-common/tst-put-error.c (do_test): Add newline to the
68063         padded test to ensure flush.
68064
68065 2012-12-05  Jeff Law  <law@redhat.com>
68066
68067         * sunrpc/etc.rpc (fedfs_admin): Add entry.
68068
68069 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
68070
68071         * README: Don't refer to ports add-on as distributed separately.
68072         Mention AArch64 in list of systems supported in the ports add-on.
68073
68074         * LICENSES: Add more non-FSF copyright and license notices.
68075
68076         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
68077         ((unused)).
68078
68079         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
68080
68081         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
68082         10000 as width of padded output.
68083
68084 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
68085
68086         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
68087
68088         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
68089         variable LX with __attribute__ ((unused)).
68090         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
68091         Likewise.
68092         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
68093         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
68094         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
68095         with __attribute__ ((unused)).
68096
68097 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
68098
68099         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
68100
68101 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
68102
68103         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
68104         (CFLAGS-nldbl-acos.c): New variable.
68105         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
68106         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
68107         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
68108         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
68109         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
68110         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
68111         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
68112         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
68113         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
68114         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
68115         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
68116         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
68117         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
68118         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
68119         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
68120         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
68121         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
68122         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
68123         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
68124         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
68125         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
68126         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
68127         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
68128         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
68129         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
68130         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
68131         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
68132         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
68133         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
68134         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
68135         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
68136         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
68137         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
68138         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
68139         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
68140         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
68141         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
68142         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
68143         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
68144         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
68145         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
68146         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
68147         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
68148         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
68149         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
68150         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
68151         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
68152         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
68153         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
68154         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
68155         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
68156         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
68157         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
68158         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
68159         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
68160         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
68161         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
68162         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
68163         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
68164         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
68165         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
68166         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
68167         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
68168         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
68169         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
68170         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
68171         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
68172         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
68173         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
68174         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
68175         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
68176         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
68177         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
68178         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
68179         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
68180         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
68181         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
68182         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
68183         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
68184         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
68185         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
68186         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
68187         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
68188         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
68189         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
68190         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
68191         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
68192         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
68193         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
68194         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
68195         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
68196         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
68197         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
68198         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
68199         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
68200         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
68201         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
68202
68203         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
68204         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
68205
68206         [BZ #14914]
68207         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
68208         whole low double instead of just low 47 bits when splitting values
68209         into two parts.
68210
68211 2012-12-03  Allan McRae  <allan@archlinux.org>
68212
68213         * manual/stdio.texi (Predefined Printf Handlers): Remove
68214         @hsep and @vsep usage.
68215
68216 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
68217
68218         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
68219         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
68220
68221 2012-12-03  Jeff Law  <law@redhat.com>
68222
68223         * time/sys/time.h (settimeofday): Do not mark TV argument
68224         as __nonnull.
68225
68226 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
68227
68228         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
68229         when currently writing and seek to current position when not.
68230         * libio/Makefile (tests): Remove bug-fclose1.
68231         * libio/bug-fclose1.c: Delete.
68232
68233 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
68234
68235         * manual/arith.texi (feenableexcept): Fix typo.
68236         (fedisableexcept): Likewise.
68237
68238 2012-11-30  Roland McGrath  <roland@hack.frob.com>
68239
68240         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
68241         second, differently-typed declaration, rather than a cast.
68242
68243 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
68244
68245         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
68246         * include/rpc/svc.h: ... here.
68247
68248 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
68249
68250         [BZ #13013]
68251         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
68252         depending n and resplen2 to catch cases where answer
68253         equals answerp2.
68254
68255 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
68256
68257         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
68258         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
68259
68260 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
68261
68262         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
68263
68264 2012-11-29  Roland McGrath  <roland@hack.frob.com>
68265
68266         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
68267
68268 2012-11-28  Jeff Law  <law@redhat.com>
68269
68270         [BZ #13761]
68271         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
68272         dataset_temporary.  Track alloca usage into alloca_used.
68273         If dataset is large allocate and release it via malloc/free.
68274
68275 2012-06-04  Florian Weimer  <fweimer@redhat.com>
68276
68277         [BZ #14197]
68278         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
68279
68280 2012-11-28  David S. Miller  <davem@davemloft.net>
68281
68282         * sysdeps/sparc/fpu/libm-test-ulps: Update.
68283
68284 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
68285
68286         [BZ #14803]
68287         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
68288         of pi/2 rounded to nearest to 64 bits.
68289         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
68290         nearest to 64 bits.
68291         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
68292         bits.
68293
68294 2012-11-28  Jeff Law <law@redhat.com>
68295             Martin Osvald <mosvald@redhat.com>
68296
68297         [BZ #14889]
68298         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
68299         * sunrpc/svc.c: Include time.h.
68300         (__svc_accept_failed): New function.
68301         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
68302         any reason other than EINTR, call __svc_accept_failed.
68303         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
68304         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
68305
68306 2012-11-28  Andreas Schwab  <schwab@suse.de>
68307
68308         * scripts/abilist.awk: Also handle indirect functions in .opd
68309         section.
68310
68311 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
68312
68313         [BZ #13881]
68314         * sysdeps/x86/fpu/powl_helper.c: New file.
68315         * sysdeps/x86/fpu/Makefile: Likewise.
68316         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
68317         (p3): New object.
68318         (__ieee754_powl): Use __powl_helper for finite arguments except
68319         integer exponents below 8.
68320         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
68321         (p3): New object.
68322         (__ieee754_powl): Use __powl_helper for finite arguments except
68323         integer exponents below 8.
68324         * math/libm-test.inc (pow_test): Add more tests and enable some
68325         previously disabled tests.
68326         * sysdeps/i386/fpu/libm-test-ulps: Update.
68327         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68328
68329 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
68330             Carlos O'Donell  <carlos_odonell@mentor.com>
68331
68332         * nss/makedb.c (is_prime): Assert that input is odd and greater
68333         than 4.  Note that fact in a comment too.
68334         (next_prime): Add 4 to input.
68335
68336 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
68337
68338         [BZ #11741]
68339         * libio/Makefile (tests): Add test case tst-fwrite-error.
68340         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
68341         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
68342         * libio/tst-fwrite-error.c: New test case.
68343
68344 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
68345
68346         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
68347         before casting to void *.
68348         * include/libc-internal.h (__pointer_type): New macro.
68349         (__integer_if_pointer_type_sub): Likewise.
68350         (__integer_if_pointer_type): Likewise.
68351         (cast_to_integer): Likewise.
68352         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
68353         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
68354         before casting to atomic64_t.
68355         (atomic_exchange_acq): Likewise.
68356         (__arch_exchange_and_add_body): Likewise.
68357         (__arch_add_body): Likewise.
68358         (atomic_add_negative): Likewise.
68359         (atomic_add_zero): Likewise.
68360
68361 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
68362
68363         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
68364         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
68365         (add_fdes): Likewise.
68366         (linear_search_fdes): Likewise.
68367         (binary_search_unencoded_fdes): Likewise.
68368
68369 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
68370
68371         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
68372
68373 2012-11-24  Adam Conrad  <adconrad@0c3.net>
68374
68375         * configure.in: Autodetect C++ header directories.
68376         * configure: Regenerated.
68377
68378 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
68379
68380         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
68381
68382 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
68383
68384         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
68385
68386 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
68387
68388         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
68389         LDBL_MANT_DIG == 106]: Disable some tests.
68390         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
68391         Likewise.
68392         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
68393         Likewise.
68394
68395         [BZ #14871]
68396         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
68397         input for small inputs.  Return +/- pi/2 for large inputs.
68398         * math/libm-test.inc (atan_test): Add more tests.
68399
68400         * sysdeps/generic/unwind-dw2-fde-glibc.c
68401         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
68402         __attribute__ ((unused)).
68403
68404         [BZ #14645]
68405         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
68406         x * y if x and y are nonzero and z is zero.
68407
68408         [BZ #14811]
68409         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
68410         nonzero exponents with absolute value below 0x1p-117 to +/-
68411         0x1p-117.
68412
68413         [BZ #14869]
68414         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
68415         up arguments below 2**-450, not just those below 2**-500.
68416         * math/libm-test.inc (hypot_test): Add another test.
68417
68418         [BZ #14868]
68419         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
68420         Return a+b for ratio over 2**120, not 2**60.
68421         * math/libm-test.inc (hypot_test): Add another test.
68422
68423         * math/libm-test.inc (clog_test): Use
68424         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
68425         (clog10_test): Likewise.
68426
68427         [BZ #6778]
68428         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
68429
68430 2012-11-22  Andreas Schwab  <schwab@suse.de>
68431
68432         * sysdeps/i386/fpu/libm-test-ulps: Update.
68433
68434 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
68435
68436         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
68437         printf output with newline.
68438
68439 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
68440
68441         [BZ #14865]
68442         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
68443         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
68444         -z nodlopen, -z initfirst and -z execstack support.
68445         * configure: Regenerated.
68446
68447         * elf/elf.h (DF_1_NODIRECT): New macro.
68448         (DF_1_IGNMULDEF): Likewise.
68449         (DF_1_NOKSYMS): Likewise.
68450         (DF_1_NOHDR): Likewise.
68451         (DF_1_EDITED): Likewise.
68452         (DF_1_NORELOC): Likewise.
68453         (DF_1_SYMINTPOSE): Likewise.
68454         (DF_1_GLOBAUDIT): Likewise.
68455         (DF_1_SINGLETON): Likewise.
68456         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
68457         DT_1_SUPPORTED_MASK bits.
68458         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
68459
68460 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
68461
68462         * sysdeps/unix/make-syscalls.sh: Document prefixes.
68463
68464 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
68465
68466         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
68467         macro.
68468
68469         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
68470         (sendmmsg): Move declarations...
68471         * socket/sys/socket.h: ... here.
68472         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
68473         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
68474         include it from...
68475         * socket/recvmmsg.c: ... this new file.
68476         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
68477         (sendmmsg): Rename to __sendmmsg, create weak alias and make
68478         definition of __sendmmsg hidden.
68479         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
68480         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
68481         Move ENOSYS stub into and include it from...
68482         * socket/sendmmsg.c: ... this new file.
68483         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
68484         (sysdep_routines): Move recvmmsg and sendmmsg...
68485         * socket/Makefile (routines): ... here.
68486         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
68487         (GLIBC_PRIVATE): Add __sendmmsg.
68488         * include/sys/socket.h (__sendmmsg): Add declarations.
68489         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
68490         sendmmsg.
68491
68492 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
68493
68494         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
68495         variable I1 with __attribute__ ((unused)).
68496         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
68497
68498 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
68499
68500         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
68501         DUMMY variables with __attribute__ ((unused)).
68502
68503         * bits/byteswap.h: Include <bits/types.h>.
68504         (__bswap_64): Use __uint64_t instead of unsigned long long int.
68505
68506 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
68507
68508         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
68509         string_t.  Do not manually set errno.
68510         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
68511         length with __strnlen.  Make sure to both set errno and return it on
68512         failure.
68513
68514 2012-11-19  David S. Miller  <davem@davemloft.net>
68515
68516         With help from Joseph Myers.
68517         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
68518         very large arguments properly.
68519         * math/libm-test.inc (atan_test): New tests.
68520         (atan2_test): New tests.
68521         * sysdeps/sparc/fpu/libm-test-ulps: Update.
68522         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
68523
68524 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
68525
68526         [BZ #14856]
68527         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
68528         Define to 3.
68529
68530         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
68531         [POSIX] (EADDRNOTAVAIL): Likewise.
68532         [POSIX] (EAFNOSUPPORT): Likewise.
68533         [POSIX] (EALREADY): Likewise.
68534         [POSIX] (ECONNABORTED): Likewise.
68535         [POSIX] (ECONNREFUSED): Likewise.
68536         [POSIX] (ECONNRESET): Likewise.
68537         [POSIX] (EDESTADDRREQ): Likewise.
68538         [POSIX] (EDQUOT): Likewise.
68539         [POSIX] (EHOSTUNREACH): Likewise.
68540         [POSIX] (EIDRM): Likewise.
68541         [POSIX] (EISCONN): Likewise.
68542         [POSIX] (ELOOP): Likewise.
68543         [POSIX] (EMULTIHOP): Likewise.
68544         [POSIX] (ENETDOWN): Likewise.
68545         [POSIX] (ENETUNREACH): Likewise.
68546         [POSIX] (ENOBUFS): Likewise.
68547         [POSIX] (ENODATA): Likewise.
68548         [POSIX] (ENOLINK): Likewise.
68549         [POSIX] (ENOMSG): Likewise.
68550         [POSIX] (ENOPROTOOPT): Likewise.
68551         [POSIX] (ENOSR): Likewise.
68552         [POSIX] (ENOSTR): Likewise.
68553         [POSIX] (ENOTCONN): Likewise.
68554         [POSIX] (ENOTSOCK): Likewise.
68555         [POSIX] (EOPNOTSUPP): Likewise.
68556         [POSIX] (EOVERFLOW): Likewise.
68557         [POSIX] (EPROTO): Likewise.
68558         [POSIX] (EPROTONOSUPPORT): Likewise.
68559         [POSIX] (EPROTOTYPE): Likewise.
68560         [POSIX] (ESTALE): Likewise.
68561         [POSIX] (ETIME): Likewise.
68562         [POSIX] (ETXTBSY): Likewise.
68563         [POSIX] (EWOULDBLOCK): Likewise.
68564         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
68565         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
68566         [POSIX] (SEEK_CUR): Likewise.
68567         [POSIX] (SEEK_END): Likewise.
68568         [POSIX || UNIX98] (mode_t): Do not require.
68569         [POSIX] (off_t): Likewise.
68570         [POSIX] (pid_t): Likewise.
68571         [POSIX] (sys/stat.h): Do not allow header.
68572         [POSIX] (unistd.h): Likewise.
68573         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
68574         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
68575         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
68576         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
68577         require.
68578         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
68579         sigevent): Specify elements.
68580         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
68581         entry.
68582         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
68583         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
68584
68585         * conform/data/cpio.h-data [POSIX]: Disable whole file.
68586         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
68587         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
68588         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
68589         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
68590         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
68591         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
68592         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
68593         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
68594         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
68595         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
68596         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
68597         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
68598         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
68599         Likewise.
68600         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
68601         Likewise.
68602         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
68603         Likewise.
68604         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
68605         Likewise.
68606         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
68607         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
68608         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
68609         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
68610         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
68611         Specify lower bound on value.
68612         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
68613         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
68614         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
68615         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
68616         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
68617         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise.
68618         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
68619         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
68620         value.
68621         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
68622         as optional.
68623         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
68624         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
68625         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
68626         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
68627         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
68628         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
68629         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
68630         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
68631         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
68632         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
68633         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
68634         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
68635         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
68636         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
68637         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
68638         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
68639         entry.
68640         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
68641         optional.
68642         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
68643         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
68644         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
68645         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
68646         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
68647         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
68648         Likewise.
68649         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
68650         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
68651         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
68652         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
68653         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
68654         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
68655         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
68656         as optional.
68657         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
68658         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
68659         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
68660         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
68661         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
68662         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
68663         specify as optional.
68664         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
68665         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
68666         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
68667         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
68668         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
68669         [XPG3] (NL_LANGMAX): Likewise.
68670         [POSIX || XPG3] (NL_MSGMAX): Likewise.
68671         [POSIX || XPG3] (NL_NMAX): Likewise.
68672         [POSIX || XPG3] (NL_SETMAX): Likewise.
68673         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
68674         [XPG3] (NZERO): Likewise.
68675         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
68676         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
68677         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
68678         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
68679         (REG_ERANGE): Expect.
68680         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
68681         optional-constant.
68682         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
68683         Use (void) in prototype.
68684         [POSIX] (*_t): Allow.
68685         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
68686         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
68687         (WRDE_BADVAL): Expect.
68688
68689         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
68690         expect.
68691         [XPG3 || XPG4] (O_RSYNC): Likewise.
68692         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
68693         Likewise.
68694         [XPG3 || XPG4] (pthread_sigmask): Likewise.
68695         [XPG3 || XPG4] (sigqueue): Likewise.
68696         [XPG3 || XPG4] (sigtimedwait): Likewise.
68697         [XPG3 || XPG4] (sigwaitinfo): Likewise.
68698         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
68699         [XPG3 || XPG4] (vsnprintf): Likewise.
68700         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
68701         Likewise.
68702         [XPG3 || XPG4] (blksize_t): Likewise.
68703         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
68704         Likewise.
68705         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
68706         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
68707         [XPG3 || XPG4] (struct itimerspec): Likewise.
68708         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
68709         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
68710         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
68711         [XPG3 || XPG4] (clockid_t): Likewise.
68712         [XPG3 || XPG4] (timer_t): Likewise.
68713         [XPG3 || XPG4] (clock_getres): Likewise.
68714         [XPG3 || XPG4] (clock_gettime): Likewise.
68715         [XPG3 || XPG4] (clock_settime): Likewise.
68716         [XPG3 || XPG4] (nanosleep): Likewise.
68717         [XPG3 || XPG4] (timer_create): Likewise.
68718         [XPG3 || XPG4] (timer_delete): Likewise.
68719         [XPG3 || XPG4] (timer_gettime): Likewise.
68720         [XPG3 || XPG4] (timer_getoverrun): Likewise.
68721         [XPG3 || XPG4] (timer_settime): Likewise.
68722         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
68723         [XPG3 || XPG4] (getlogin_r): Likewise.
68724         [XPG3 || XPG4] (pread): Likewise.
68725         [XPG3 || XPG4] (pthread_atfork): Likewise.
68726         [XPG3 || XPG4] (pwrite): Likewise.
68727
68728         [BZ #14835]
68729         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
68730         <bits/siginfo.h>.
68731
68732 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
68733
68734         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
68735         finalizing MALLSTREAM.
68736
68737         * sysdeps/mach/hurd/syncfs.c: New file.
68738
68739 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
68740
68741         [BZ #14719]
68742         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
68743         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
68744         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
68745         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
68746         (_nss_dns_gethostbyname4_r): Likewise.
68747         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
68748         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
68749
68750 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
68751
68752         [BZ #13763]
68753         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
68754
68755 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
68756
68757         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
68758         * elf/cache.c (print_entry): Print ",AArch64" for
68759         FLAG_AARCH64_LIB64
68760
68761         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
68762         * elf/cache.c (print_entry): Print ",hard-float" for
68763         FLAG_ARM_LIBHF.
68764
68765 2012-11-18  David S. Miller  <davem@davemloft.net>
68766
68767         With help from Joseph Myers.
68768         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
68769         cutoff to 2**-13.
68770         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
68771         cutoff to 2**-25.
68772         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
68773         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
68774         small.
68775         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
68776         * math/libm-test.inc (y0_test): New tests.
68777         (y1_test): New tests.
68778         * sysdeps/i386/fpu/libm-test-ulps: Update.
68779         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
68780         * sysdeps/sparc/fpu/libm-test-ulps: Update.
68781
68782 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
68783
68784         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
68785         64-bit targets.
68786         * configure: Regenerated.
68787
68788 2012-11-17  David S. Miller  <davem@davemloft.net>
68789
68790         [BZ #14811]
68791         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
68792         nonzero exponents with absolute value below 0x1p-128 to +/-
68793         0x1p-128.
68794
68795 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
68796
68797         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
68798
68799         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
68800
68801         * posix/getconf-speclist.c: New file.
68802         * posix/posix-envs.def: Likewise.
68803         * posix/confstr.c (START_ENV_GROUP): New macro.
68804         (END_ENV_GROUP): Likewise.
68805         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
68806         (KNOWN_PRESENT_ENV_STRING): Likewise.
68807         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
68808         (UNKNOWN_ENVIRONMENT): Likewise.
68809         (confstr): Include posix-envs.def instead of handling
68810         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
68811         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
68812         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
68813         (END_ENV_GROUP): Likewise.
68814         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
68815         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
68816         (UNKNOWN_ENVIRONMENT): Likewise.
68817         (__sysconf): Include posix-envs.def instead of handling associated
68818         cases directly here.
68819         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
68820         preprocessing getconf-speclist.c rather than running getconf or
68821         generating empty file.
68822
68823 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
68824
68825         * scripts/check-local-headers.sh: Ignore 'mach' headers.
68826
68827 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
68828
68829         [BZ #14672]
68830         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
68831
68832 2012-11-16  David S. Miller  <davem@davemloft.net>
68833
68834         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
68835         smaller than LDBL_EPSILON/2.0L, just return xm1.
68836
68837 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
68838
68839         * elf/tst-array1.c (init): Set constructor priority to 1000.
68840         (fini): Set destructor priority to 1000.
68841         * elf/tst-array2dep.c: Likewise.
68842
68843 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
68844
68845         [BZ #11741]
68846         * libio/fileops.c (_IO_new_file_write): Correctly return error.
68847         (_IO_new_file_xsputn): Also return EOF if none of the input
68848         data was written when overflow failed.
68849         * libio/iopadn.c (_IO_padn): Likewise.
68850         * libio/iowpadn.c (_IO_wpadn): Likewise.
68851         * stdio-common/tst-put-error.c: Add copyright notice.
68852         (do_test): Add case for printing padded string.
68853         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
68854         _IO_padn returned error.
68855         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
68856         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
68857         return EOF.
68858
68859 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
68860
68861         * libio/libioP.h: Add comment note that the references to C++
68862         bits are now obsolete.
68863
68864 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
68865
68866         * math/libm-test.inc (check_complex): Use asprintf.
68867
68868 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
68869
68870         * debug/pcprofiledump.c (print_version): Update copyright year.
68871         * malloc/memusagestat.c (print_version): Likewise.
68872
68873 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
68874
68875         [BZ #14831]
68876         * elf/Makefile (tests): Add tst-audit8.
68877         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
68878         ($(objpfx)tst-audit8.out): New target.
68879         (tst-audit8-ENV): New variable.
68880         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
68881         audit if l_reloc_result is NULL.
68882         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
68883         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
68884         * elf/tst-audit8.c: New file.
68885
68886 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
68887
68888         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
68889         * misc/Makefile (CFLAGS-select.c): Define.
68890         * posix/Makefile (CFLAGS-pause.c): Define.
68891
68892 2012-11-13  David S. Miller  <davem@davemloft.net>
68893
68894         * crypt/Makefile: Move test targets after toplevel Rules
68895         inclusion.  Grab any necessary sysdep routines when linking.
68896         * crypt/md5.c (md5_process_block): Remove define, we will always
68897         name it __md5_process_block.
68898         (md5_finish_ctx): Update md5_process_block call.
68899         (md5_stream): Likewise.
68900         (md5_process_bytes): Likewise.
68901         (md5_process_block): Rename to __md5_process_block and move to ...
68902         * crypt/md5-block.c: ... here.
68903         * crypt/sha256.c (sha256_process_block): Move to ...
68904         * crypt/sha256-block.c: ... here.
68905         * crypt/sha512.c (sha512_process_block): Move to ...
68906         * crypt/sha512-block.c: ... here.
68907         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
68908         path.
68909         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
68910         * sysdeps/sparc/sparc64/multiarch/Makefile
68911         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
68912         crypt subdir.
68913         (localedef-aux): Add md5 crypto assembler when in locale subdir.
68914         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
68915         multiarch changes.
68916         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
68917         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
68918         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
68919         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
68920         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
68921         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
68922         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
68923         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
68924         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
68925         file.
68926         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
68927         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
68928         file.
68929         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
68930
68931 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
68932
68933         * timezone/tzselect.ksh: Update from tzcode git revision
68934         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
68935         * timezone/zdump.c: Likewise.
68936         * timezone/zic.c: Likewise.
68937         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
68938         in TZVERSION setting, not $(PKGVERSION).
68939         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
68940         REPORT_BUGS_TO settings.
68941
68942         [BZ #14838]
68943         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
68944         macro.
68945
68946 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
68947
68948         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
68949         detection to immediately after _FP_ROUND().
68950         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
68951         bits are 0.
68952
68953 2012-11-11  David S. Miller  <davem@davemloft.net>
68954
68955         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
68956         inttypes.h
68957         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
68958         __close rather than their public counterparts.
68959
68960 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
68961
68962         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
68963         file.
68964         [UNIX98] (sem_timedwait): Do not expect.
68965         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
68966         [XPG4 || UNIX98] (sockatmark): Do not expect.
68967         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
68968         (clock_getcpuclockid): Do not expect.
68969         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
68970         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
68971         Do not expect.
68972         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
68973         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
68974         [UNIX98] (vwscanf): Likewise.
68975         [UNIX98] (vswscanf): Likewise.
68976
68977 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
68978
68979         * timezone/version.h: Remove file.
68980         * timezone/README: Do not refer to version.h.
68981         * timezone/Makefile ($(objpfx)zic.o): New dependency on
68982         $(objpfx)version.h.
68983         ($(objpfx)zdump.o): Likewise.
68984         ($(objpfx)version.h): New target.
68985
68986         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
68987         2012i.
68988         * timezone/README: Don't mention modification to tzselect.ksh.
68989         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
68990         work on unmodified tzselect.ksh.  Substitute version numbers in
68991         tzselect.ksh.
68992
68993         * Makefile (format-me): Remove.
68994         (INSTALL): Adjust indentation.  Use commands directly instead of
68995         using $(format-me).
68996
68997         * aclocal.m4 (ACX_PKGVERSION): New macro.
68998         (ACX_BUGURL): Likewise.
68999         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
69000         (PKGVERSION): New AC_DEFINE_UNQUOTED.
69001         (REPORT_BUGS_TO): Likewise.
69002         * configure: Regenerated.
69003         * config.h.in (PKGVERSION): New macro.
69004         (REPORT_BUGS_TO): Likewise.
69005         * config.make.in (PKGVERSION): New variable.
69006         (PKGVERSION_TEXI): Likewise.
69007         (REPORT_BUGS_TO): Likewise.
69008         (REPORT_BUGS_TEXI): Likewise.
69009         * Makefile (format-me): Use -I$(common-objpfx)manual.
69010         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
69011         ($(common-objpfx)manual/%): New target.
69012         (manual/%): Remove target.
69013         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
69014         (print_version): Use PKGVERSION.
69015         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
69016         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
69017         and REPORT_BUGS_TO.
69018         ($(objpfx)xtrace): Likewise.
69019         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
69020         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
69021         (print_version): Use PKGVERSION.
69022         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
69023         (do_version): Use PKGVERSION.
69024         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
69025         REPORT_BUGS_TO.
69026         (common-ldd-rewrite): Likewise.
69027         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
69028         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
69029         (print_version): Use PKGVERSION.
69030         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
69031         * elf/pldd.c (argp_program_bug_address): Remove variable.
69032         (more_help): New function.
69033         (argp): Use more_help.
69034         (print_version): Use PKGVERSION.
69035         * elf/sln.c (main): Use PKGVERSION.
69036         (usage): Use REPORT_BUGS_TO.
69037         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
69038         (top level): Use PKGVERSION.
69039         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
69040         (print_version): Use PKGVERSION.
69041         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
69042         (print_version): Use PKGVERSION.
69043         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
69044         (print_version): Use PKGVERSION.
69045         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
69046         (print_version): Use PKGVERSION.
69047         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
69048         (print_version): Use PKGVERSION.
69049         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
69050         (print_version): Use PKGVERSION.
69051         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
69052         and BUGURL.
69053         ($(objpfx)memusage): Likewise.
69054         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
69055         (do_version): Use PKGVERSION.
69056         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
69057         (print_version): Use PKGVERSION.
69058         * malloc/mtrace.pl ($PACKAGE): Remove variable.
69059         ($PKGVERSION): New variable.
69060         ($REPORT_BUGS_TO): Likewise.
69061         (usage): Use $REPORT_BUGS_TO.
69062         (top level): Use $PKGVERSION.
69063         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
69064         ($(objpfx)pkgvers.texi): New rule.
69065         ($(objpfx)stamp-pkgvers): Likewise.
69066         * manual/install.texi: Include pkgvers.texi.
69067         (--with-pkgversion): Document new configure option.
69068         (--with-bugurl): Likewise.
69069         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
69070         than necessarily for this particular distribution.  Use
69071         REPORT_BUGS_TO for where to report bugs.
69072         * INSTALL: Regenerated.
69073         * manual/libc.texinfo: Include pkgvers.texi.
69074         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
69075         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
69076         (print_version): Use PKGVERSION.
69077         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
69078         (print_version): Use PKGVERSION.
69079         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
69080         (print_version): Use PKGVERSION.
69081         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
69082         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
69083         macro.
69084         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
69085         (print_version): Use PKGVERSION.
69086         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
69087         (print_version): Use PKGVERSION.
69088         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
69089         and PKGVERSION.
69090
69091         * timezone/checktab.awk: Update from tzcode 2012i.
69092         * timezone/ialloc.c: Likewise.
69093         * timezone/private.h: Likewise.
69094         * timezone/scheck.c: Likewise.
69095         * timezone/tzfile.h: Likewise.
69096         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
69097         (TZVERSION): Hardcode tzcode version number.
69098         * timezone/zdump.c: Update from tzcode 2012i.
69099         * timezone/zic.c: Likewise.
69100         * timezone/version.h: New file.
69101         * timezone/README: Describe version.h.  Update upstream location.
69102
69103         [BZ #14824]
69104         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
69105         (mktemp): Enable declaration.
69106         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
69107         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
69108         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
69109         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
69110         Likewise.
69111         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
69112         Likewise.
69113         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
69114         Likewise.
69115         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
69116         Likewise.
69117         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
69118         Likewise.
69119         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
69120         Likewise.
69121
69122         [BZ #14821]
69123         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
69124         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
69125         for copies of such integer values.
69126         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
69127         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
69128
69129 2012-11-09  Andreas Jaeger  <aj@suse.de>
69130
69131         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
69132         definitions and declarations that are provided by
69133         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
69134
69135 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
69136
69137         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
69138         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
69139         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
69140         definition.
69141
69142 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
69143
69144         * elf/elf.h: Update comment before AArch64 relocations.
69145
69146 2012-11-07  David S. Miller  <davem@davemloft.net>
69147
69148         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
69149         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
69150         (__start_context): Declare.
69151         (__makecontext_ret): Delete.
69152         (__makecontext): Hook up __start_context instead of
69153         __makecontext_ret.
69154         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
69155         (sysdep_routines): Add __start_context when in stdlib.
69156
69157 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
69158
69159         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
69160         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
69161         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
69162         hardcoded "nm".
69163         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
69164         (READELF): New variable.  Use it instead of hardcoded "readelf".
69165
69166 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
69167
69168         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
69169         * sysdeps/x86/Makefile: Here.
69170         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
69171         * sysdeps/x86/tst-xmmymm.sh: This.
69172
69173 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
69174
69175         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
69176         expectations.
69177         [UNIX98] (pthread_barrier_t): Do not expect.
69178         [UNIX98] (pthread_barrierattr_t): Likewise.
69179         [UNIX98] (pthread_spinlock_t): Likewise.
69180         [UNIX98] (pthread_barrier_destroy): Likewise.
69181         [UNIX98] (pthread_barrier_init): Likewise.
69182         [UNIX98] (pthread_barrier_wait): Likewise.
69183         [UNIX98] (pthread_barrierattr_destroy): Likewise.
69184         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
69185         [UNIX98] (pthread_barrierattr_init): Likewise.
69186         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
69187         [UNIX98] (pthread_getcpuclockid): Likewise.
69188         [UNIX98] (pthread_mutex_timedlock): Likewise.
69189         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
69190         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
69191         [UNIX98] (pthread_sigmask): Likewise.
69192         [UNIX98] (pthread_spin_destroy): Likewise.
69193         [UNIX98] (pthread_spin_init): Likewise.
69194         [UNIX98] (pthread_spin_lock): Likewise.
69195         [UNIX98] (pthread_spin_trylock): Likewise.
69196         [UNIX98] (pthread_spin_unlock): Likewise.
69197         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
69198         Do not expect.
69199         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
69200         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
69201         [XPG3 || XPG4] (pthread_cond_t): Likewise.
69202         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
69203         [XPG3 || XPG4] (pthread_key_t): Likewise.
69204         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
69205         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
69206         [XPG3 || XPG4] (pthread_once_t): Likewise.
69207         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
69208         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
69209         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
69210         [XPG3 || XPG4] (pthread_t): Likewise.
69211
69212         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
69213         not expect.
69214         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
69215
69216         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
69217         Change function return type to int.
69218
69219         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
69220         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
69221         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
69222         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
69223         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
69224         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
69225         [!POSIX] (posix_madvise): Likewise.
69226         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
69227         && !UNIX98].
69228         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
69229         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
69230         (mode_t): Likewise.
69231         (posix_mem_offset): Likewise.
69232         (posix_typed_mem_get_info): Likewise.
69233         (posix_typed_mem_open): Likewise.
69234
69235         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
69236         Change condition to [XOPEN2K8].
69237
69238         * conform/conformtest.pl: Preprocess allow-header data with -x c
69239         instead of from stdin.
69240         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
69241         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
69242         [C99-based standards] (cerfc): Likewise.
69243         [C99-based standards] (cexp2): Likewise.
69244         [C99-based standards] (cexpm1): Likewise.
69245         [C99-based standards] (clog10): Likewise.
69246         [C99-based standards] (clog1p): Likewise.
69247         [C99-based standards] (clog2): Likewise.
69248         [C99-based standards] (clgamma): Likewise.
69249         [C99-based standards] (ctgamma): Likewise.
69250         [C99-based standards] (cerff): Likewise.
69251         [C99-based standards] (cerfcf): Likewise.
69252         [C99-based standards] (cexp2f): Likewise.
69253         [C99-based standards] (cexpm1f): Likewise.
69254         [C99-based standards] (clog10f): Likewise.
69255         [C99-based standards] (clog1pf): Likewise.
69256         [C99-based standards] (clog2f): Likewise.
69257         [C99-based standards] (clgammaf): Likewise.
69258         [C99-based standards] (ctgammaf): Likewise.
69259         [C99-based standards] (cerfl): Likewise.
69260         [C99-based standards] (cerfcl): Likewise.
69261         [C99-based standards] (cexp2l): Likewise.
69262         [C99-based standards] (cexpm1l): Likewise.
69263         [C99-based standards] (clog10l): Likewise.
69264         [C99-based standards] (clog1pl): Likewise.
69265         [C99-based standards] (clog2l): Likewise.
69266         [C99-based standards] (clgammal): Likewise.
69267         [C99-based standards] (ctgammal): Likewise.
69268         * conform/data/inttypes.h-data [C99-based standards]: Include
69269         stdint.h-data.  Remove all expectations for stdint.h contents.
69270         [C99-based standards] (PRI*): Do not allow.
69271         [C99-based standards] (SCN*): Likewise.
69272         [C99-based standards] (*_t): Likewise.
69273         [C99-based-standards] (PRId8): Expect macro.
69274         [C99-based-standards] (PRIi8): Likewise.
69275         [C99-based-standards] (PRIo8): Likewise.
69276         [C99-based-standards] (PRIu8): Likewise.
69277         [C99-based-standards] (PRIx8): Likewise.
69278         [C99-based-standards] (PRIX8): Likewise.
69279         [C99-based-standards] (SCNd8): Likewise.
69280         [C99-based-standards] (SCNi8): Likewise.
69281         [C99-based-standards] (SCNo8): Likewise.
69282         [C99-based-standards] (SCNu8): Likewise.
69283         [C99-based-standards] (SCNx8): Likewise.
69284         [C99-based-standards] (PRIdLEAST8): Likewise.
69285         [C99-based-standards] (PRIiLEAST8): Likewise.
69286         [C99-based-standards] (PRIoLEAST8): Likewise.
69287         [C99-based-standards] (PRIuLEAST8): Likewise.
69288         [C99-based-standards] (PRIxLEAST8): Likewise.
69289         [C99-based-standards] (PRIXLEAST8): Likewise.
69290         [C99-based-standards] (SCNdLEAST8): Likewise.
69291         [C99-based-standards] (SCNiLEAST8): Likewise.
69292         [C99-based-standards] (SCNoLEAST8): Likewise.
69293         [C99-based-standards] (SCNuLEAST8): Likewise.
69294         [C99-based-standards] (SCNxLEAST8): Likewise.
69295         [C99-based-standards] (PRIdFAST8): Likewise.
69296         [C99-based-standards] (PRIiFAST8): Likewise.
69297         [C99-based-standards] (PRIoFAST8): Likewise.
69298         [C99-based-standards] (PRIuFAST8): Likewise.
69299         [C99-based-standards] (PRIxFAST8): Likewise.
69300         [C99-based-standards] (PRIXFAST8): Likewise.
69301         [C99-based-standards] (SCNdFAST8): Likewise.
69302         [C99-based-standards] (SCNiFAST8): Likewise.
69303         [C99-based-standards] (SCNoFAST8): Likewise.
69304         [C99-based-standards] (SCNuFAST8): Likewise.
69305         [C99-based-standards] (SCNxFAST8): Likewise.
69306         [C99-based-standards] (PRId16): Likewise.
69307         [C99-based-standards] (PRIi16): Likewise.
69308         [C99-based-standards] (PRIo16): Likewise.
69309         [C99-based-standards] (PRIu16): Likewise.
69310         [C99-based-standards] (PRIx16): Likewise.
69311         [C99-based-standards] (PRIX16): Likewise.
69312         [C99-based-standards] (SCNd16): Likewise.
69313         [C99-based-standards] (SCNi16): Likewise.
69314         [C99-based-standards] (SCNo16): Likewise.
69315         [C99-based-standards] (SCNu16): Likewise.
69316         [C99-based-standards] (SCNx16): Likewise.
69317         [C99-based-standards] (PRIdLEAST16): Likewise.
69318         [C99-based-standards] (PRIiLEAST16): Likewise.
69319         [C99-based-standards] (PRIoLEAST16): Likewise.
69320         [C99-based-standards] (PRIuLEAST16): Likewise.
69321         [C99-based-standards] (PRIxLEAST16): Likewise.
69322         [C99-based-standards] (PRIXLEAST16): Likewise.
69323         [C99-based-standards] (SCNdLEAST16): Likewise.
69324         [C99-based-standards] (SCNiLEAST16): Likewise.
69325         [C99-based-standards] (SCNoLEAST16): Likewise.
69326         [C99-based-standards] (SCNuLEAST16): Likewise.
69327         [C99-based-standards] (SCNxLEAST16): Likewise.
69328         [C99-based-standards] (PRIdFAST16): Likewise.
69329         [C99-based-standards] (PRIiFAST16): Likewise.
69330         [C99-based-standards] (PRIoFAST16): Likewise.
69331         [C99-based-standards] (PRIuFAST16): Likewise.
69332         [C99-based-standards] (PRIxFAST16): Likewise.
69333         [C99-based-standards] (PRIXFAST16): Likewise.
69334         [C99-based-standards] (SCNdFAST16): Likewise.
69335         [C99-based-standards] (SCNiFAST16): Likewise.
69336         [C99-based-standards] (SCNoFAST16): Likewise.
69337         [C99-based-standards] (SCNuFAST16): Likewise.
69338         [C99-based-standards] (SCNxFAST16): Likewise.
69339         [C99-based-standards] (PRId32): Likewise.
69340         [C99-based-standards] (PRIi32): Likewise.
69341         [C99-based-standards] (PRIo32): Likewise.
69342         [C99-based-standards] (PRIu32): Likewise.
69343         [C99-based-standards] (PRIx32): Likewise.
69344         [C99-based-standards] (PRIX32): Likewise.
69345         [C99-based-standards] (SCNd32): Likewise.
69346         [C99-based-standards] (SCNi32): Likewise.
69347         [C99-based-standards] (SCNo32): Likewise.
69348         [C99-based-standards] (SCNu32): Likewise.
69349         [C99-based-standards] (SCNx32): Likewise.
69350         [C99-based-standards] (PRIdLEAST32): Likewise.
69351         [C99-based-standards] (PRIiLEAST32): Likewise.
69352         [C99-based-standards] (PRIoLEAST32): Likewise.
69353         [C99-based-standards] (PRIuLEAST32): Likewise.
69354         [C99-based-standards] (PRIxLEAST32): Likewise.
69355         [C99-based-standards] (PRIXLEAST32): Likewise.
69356         [C99-based-standards] (SCNdLEAST32): Likewise.
69357         [C99-based-standards] (SCNiLEAST32): Likewise.
69358         [C99-based-standards] (SCNoLEAST32): Likewise.
69359         [C99-based-standards] (SCNuLEAST32): Likewise.
69360         [C99-based-standards] (SCNxLEAST32): Likewise.
69361         [C99-based-standards] (PRIdFAST32): Likewise.
69362         [C99-based-standards] (PRIiFAST32): Likewise.
69363         [C99-based-standards] (PRIoFAST32): Likewise.
69364         [C99-based-standards] (PRIuFAST32): Likewise.
69365         [C99-based-standards] (PRIxFAST32): Likewise.
69366         [C99-based-standards] (PRIXFAST32): Likewise.
69367         [C99-based-standards] (SCNdFAST32): Likewise.
69368         [C99-based-standards] (SCNiFAST32): Likewise.
69369         [C99-based-standards] (SCNoFAST32): Likewise.
69370         [C99-based-standards] (SCNuFAST32): Likewise.
69371         [C99-based-standards] (SCNxFAST32): Likewise.
69372         [C99-based-standards] (PRId64): Likewise.
69373         [C99-based-standards] (PRIi64): Likewise.
69374         [C99-based-standards] (PRIo64): Likewise.
69375         [C99-based-standards] (PRIu64): Likewise.
69376         [C99-based-standards] (PRIx64): Likewise.
69377         [C99-based-standards] (PRIX64): Likewise.
69378         [C99-based-standards] (SCNd64): Likewise.
69379         [C99-based-standards] (SCNi64): Likewise.
69380         [C99-based-standards] (SCNo64): Likewise.
69381         [C99-based-standards] (SCNu64): Likewise.
69382         [C99-based-standards] (SCNx64): Likewise.
69383         [C99-based-standards] (PRIdLEAST64): Likewise.
69384         [C99-based-standards] (PRIiLEAST64): Likewise.
69385         [C99-based-standards] (PRIoLEAST64): Likewise.
69386         [C99-based-standards] (PRIuLEAST64): Likewise.
69387         [C99-based-standards] (PRIxLEAST64): Likewise.
69388         [C99-based-standards] (PRIXLEAST64): Likewise.
69389         [C99-based-standards] (SCNdLEAST64): Likewise.
69390         [C99-based-standards] (SCNiLEAST64): Likewise.
69391         [C99-based-standards] (SCNoLEAST64): Likewise.
69392         [C99-based-standards] (SCNuLEAST64): Likewise.
69393         [C99-based-standards] (SCNxLEAST64): Likewise.
69394         [C99-based-standards] (PRIdFAST64): Likewise.
69395         [C99-based-standards] (PRIiFAST64): Likewise.
69396         [C99-based-standards] (PRIoFAST64): Likewise.
69397         [C99-based-standards] (PRIuFAST64): Likewise.
69398         [C99-based-standards] (PRIxFAST64): Likewise.
69399         [C99-based-standards] (PRIXFAST64): Likewise.
69400         [C99-based-standards] (SCNdFAST64): Likewise.
69401         [C99-based-standards] (SCNiFAST64): Likewise.
69402         [C99-based-standards] (SCNoFAST64): Likewise.
69403         [C99-based-standards] (SCNuFAST64): Likewise.
69404         [C99-based-standards] (SCNxFAST64): Likewise.
69405         [C99-based-standards] (PRIdMAX): Likewise.
69406         [C99-based-standards] (PRIiMAX): Likewise.
69407         [C99-based-standards] (PRIoMAX): Likewise.
69408         [C99-based-standards] (PRIuMAX): Likewise.
69409         [C99-based-standards] (PRIxMAX): Likewise.
69410         [C99-based-standards] (PRIXMAX): Likewise.
69411         [C99-based-standards] (SCNdMAX): Likewise.
69412         [C99-based-standards] (SCNiMAX): Likewise.
69413         [C99-based-standards] (SCNoMAX): Likewise.
69414         [C99-based-standards] (SCNuMAX): Likewise.
69415         [C99-based-standards] (SCNxMAX): Likewise.
69416         [C99-based-standards] (PRIdPTR): Likewise.
69417         [C99-based-standards] (PRIiPTR): Likewise.
69418         [C99-based-standards] (PRIoPTR): Likewise.
69419         [C99-based-standards] (PRIuPTR): Likewise.
69420         [C99-based-standards] (PRIxPTR): Likewise.
69421         [C99-based-standards] (PRIXPTR): Likewise.
69422         [C99-based-standards] (SCNdPTR): Likewise.
69423         [C99-based-standards] (SCNiPTR): Likewise.
69424         [C99-based-standards] (SCNoPTR): Likewise.
69425         [C99-based-standards] (SCNuPTR): Likewise.
69426         [C99-based-standards] (SCNxPTR): Likewise.
69427         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
69428         allow.
69429         * conform/data/stdint.h-data: Update comments to clarify
69430         requirements.
69431         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
69432         type.
69433         [C99-based standards] (INT8_MAX): Likewise.
69434         [C99-based standards] (INT16_MIN): Likewise.
69435         [C99-based standards] (INT16_MAX): Likewise.
69436         [C99-based standards] (INT32_MIN): Likewise.
69437         [C99-based standards] (INT32_MAX): Likewise.
69438         [C99-based standards] (INT64_MIN): Likewise.
69439         [C99-based standards] (INT64_MAX): Likewise.
69440         [C99-based standards] (UINT8_MAX): Likewise.
69441         [C99-based standards] (UINT16_MAX): Likewise.
69442         [C99-based standards] (UINT32_MAX): Likewise.
69443         [C99-based standards] (UINT64_MAX): Likewise.
69444         [C99-based standards] (INT_LEAST8_MIN): Likewise.
69445         [C99-based standards] (INT_LEAST8_MAX): Likewise.
69446         [C99-based standards] (INT_LEAST16_MIN): Likewise.
69447         [C99-based standards] (INT_LEAST16_MAX): Likewise.
69448         [C99-based standards] (INT_LEAST32_MIN): Likewise.
69449         [C99-based standards] (INT_LEAST32_MAX): Likewise.
69450         [C99-based standards] (INT_LEAST64_MIN): Likewise.
69451         [C99-based standards] (INT_LEAST64_MAX): Likewise.
69452         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
69453         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
69454         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
69455         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
69456         [C99-based standards] (INT_FAST8_MIN): Likewise.
69457         [C99-based standards] (INT_FAST8_MAX): Likewise.
69458         [C99-based standards] (INT_FAST16_MIN): Likewise.
69459         [C99-based standards] (INT_FAST16_MAX): Likewise.
69460         [C99-based standards] (INT_FAST32_MIN): Likewise.
69461         [C99-based standards] (INT_FAST32_MAX): Likewise.
69462         [C99-based standards] (INT_FAST64_MIN): Likewise.
69463         [C99-based standards] (INT_FAST64_MAX): Likewise.
69464         [C99-based standards] (UINT_FAST8_MAX): Likewise.
69465         [C99-based standards] (UINT_FAST16_MAX): Likewise.
69466         [C99-based standards] (UINT_FAST32_MAX): Likewise.
69467         [C99-based standards] (UINT_FAST64_MAX): Likewise.
69468         [C99-based standards] (INTPTR_MIN): Likewise.
69469         [C99-based standards] (INTPTR_MAX): Likewise.
69470         [C99-based standards] (UINTPTR_MAX): Likewise.
69471         [C99-based standards] (INTMAX_MIN): Likewise.
69472         [C99-based standards] (INTMAX_MAX): Likewise.
69473         [C99-based standards] (UINTMAX_MAX): Likewise.
69474         [C99-based standards] (PTRDIFF_MIN): Likewise.
69475         [C99-based standards] (PTRDIFF_MAX): Likewise.
69476         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
69477         [C99-based standards] (SIZE_MAX): Likewise.
69478         [C99-based standards] (WCHAR_MAX): Likewise.
69479         [C99-based standards] (WINT_MAX): Likewise.
69480         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
69481         constraint on value.
69482         [C99-based standards] (WCHAR_MIN): Likewise.
69483         [C99-based standards] (WINT_MIN): Likewise.
69484         [C99-based standards] (*_t): Allow.
69485         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
69486         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
69487         Include math.h-data and complex.h-data.  Remove all expectations
69488         of math.h and complex.h contents.
69489         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
69490         at end of line.
69491         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
69492         (struct tm): Expect tag.
69493         [C99-based-standards] (wcstof): Expect function.
69494         [C99-based-standards] (wcstold): Likewise.
69495         [C99-based-standards] (wcstoll): Likewise.
69496         [C99-based-standards] (wcstoull): Likewise.
69497         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
69498         macro-int-constant.  Specify type.
69499         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
69500         constraint on value.
69501         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
69502         Specify type.
69503         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
69504         Specify value.
69505         [ISO C standards]: Do not allow headers.
69506         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
69507         wcs[abcdefghijklmnopqrstuvwxyz]*.
69508         [ISO C standards] (*_t): Do not allow.
69509         * conform/data/wctype.h-data [C99-based standards] (iswblank):
69510         Expect function.
69511         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
69512         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
69513         Specify type.
69514         [ISO C standards]: Do not allow headers.
69515         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
69516         is[abcdefghijklmnopqrstuvwxyz]*.
69517         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
69518         to[abcdefghijklmnopqrstuvwxyz]*.
69519         [ISO C standards] (*_t): Do not allow.
69520         * conform/data/stdalign.h-data: New file.
69521         * conform/data/stdbool.h-data: Likewise.
69522         * conform/data/stdnoreturn.h-data: Likewise.
69523
69524 2012-11-07  Roland McGrath  <roland@hack.frob.com>
69525
69526         [BZ #14815]
69527         * manual/filesys.texi (Directory Entries): Typo fix.
69528         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
69529
69530 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
69531
69532         * elf/elf.h (EM_AARCH64): New macro.
69533         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
69534         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
69535         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
69536         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
69537         (R_AARCH64_TLSDESC): Likewise.
69538         (NT_ARM_TLS): Likewise.
69539         (NT_ARM_HW_BREAK): Likewise.
69540         (NT_ARM_HW_WATCH): Likewise.
69541
69542 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
69543
69544         [BZ #14811]
69545         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
69546         (__ieee754_powl): Saturate nonzero exponents with absolute value
69547         below 0x1p-79 to +/- 0x1p-79.
69548         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
69549         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
69550         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
69551         nonzero exponents with absolute value below 0x1p-32 to +/-
69552         0x1p-32.
69553         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
69554         (__ieee754_powl): Saturate nonzero exponents with absolute value
69555         below 0x1p-79 to +/- 0x1p-79.
69556         * math/libm-test.inc (pow_test): Add more tests.
69557
69558 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
69559
69560         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
69561         _dl_s390_cap_flags with kernel. Increase string length.
69562         (_dl_s390_platforms): Add z196 and zEC12.
69563
69564 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
69565
69566         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
69567         Change XOPEN21K to XOPEN2K.
69568
69569 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
69570
69571         * string/memmove.c: Use memcpy when possible.
69572
69573 2012-11-06  Andreas Jaeger  <aj@suse.de>
69574
69575         * po/eo.po: Update from translation team.
69576
69577 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
69578
69579         [BZ #14793]
69580         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
69581         exponent and small x and y exponents, scale x or y up.  Increase
69582         by 2 the exponent used in scaling up.
69583         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
69584         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
69585         * math/libm-test.inc (fma_test): Add more tests.
69586         (fma_test_towardzero): Likewise.
69587         (fma_test_downward): Likewise.
69588         (fma_test_upward): Likewise.
69589
69590 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
69591
69592         [BZ #14805]
69593         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
69594         fenv_t *.
69595
69596         [BZ #14801]
69597         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
69598         namespace for names of struct fields.
69599         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
69600         fenv_t fields.
69601         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
69602         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
69603
69604 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69605
69606         [BZ #3665]
69607         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
69608
69609 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
69610
69611         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
69612         PTR_DEMANGLE.
69613
69614         [BZ #5246]
69615         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
69616         PTR_DEMANGLE.
69617
69618 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
69619
69620         [BZ #14797]
69621         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
69622         definitely overflow as x * y not x * y + z.
69623         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
69624         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
69625         * math/libm-test.inc (fma_test): Add more tests.
69626         (fma_test_towardzero): Likewise.
69627         (fma_test_downward): Likewise.
69628         (fma_test_upward): Likewise.
69629
69630 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
69631
69632         [BZ #157]
69633
69634         * include/stub-tag.h: Remove file.
69635         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
69636         '#include' of it.
69637         * manual/maint.texi (Porting): Don't reference it.
69638         * Makerules ($(objpfx)stubs): Likewise.
69639         * dirent/closedir.c: Don't include <stub-tag.h>.
69640         * dirent/dirfd.c: Likewise.
69641         * dirent/fdopendir.c: Likewise.
69642         * dirent/getdents.c: Likewise.
69643         * dirent/getdents64.c: Likewise.
69644         * dirent/opendir.c: Likewise.
69645         * dirent/readdir.c: Likewise.
69646         * dirent/readdir64.c: Likewise.
69647         * dirent/readdir64_r.c: Likewise.
69648         * dirent/readdir_r.c: Likewise.
69649         * dirent/rewinddir.c: Likewise.
69650         * dirent/seekdir.c: Likewise.
69651         * dirent/telldir.c: Likewise.
69652         * gmon/profil.c: Likewise.
69653         * grp/setgroups.c: Likewise.
69654         * inet/if_index.c: Likewise.
69655         * io/access.c: Likewise.
69656         * io/chdir.c: Likewise.
69657         * io/chmod.c: Likewise.
69658         * io/chown.c: Likewise.
69659         * io/close.c: Likewise.
69660         * io/dup.c: Likewise.
69661         * io/dup2.c: Likewise.
69662         * io/dup3.c: Likewise.
69663         * io/euidaccess.c: Likewise.
69664         * io/faccessat.c: Likewise.
69665         * io/fchdir.c: Likewise.
69666         * io/fchmod.c: Likewise.
69667         * io/fchmodat.c: Likewise.
69668         * io/fchown.c: Likewise.
69669         * io/fchownat.c: Likewise.
69670         * io/fcntl.c: Likewise.
69671         * io/flock.c: Likewise.
69672         * io/fstatfs.c: Likewise.
69673         * io/fstatfs64.c: Likewise.
69674         * io/fstatvfs.c: Likewise.
69675         * io/fstatvfs64.c: Likewise.
69676         * io/futimens.c: Likewise.
69677         * io/fxstat.c: Likewise.
69678         * io/fxstat64.c: Likewise.
69679         * io/fxstatat.c: Likewise.
69680         * io/fxstatat64.c: Likewise.
69681         * io/getcwd.c: Likewise.
69682         * io/isatty.c: Likewise.
69683         * io/lchmod.c: Likewise.
69684         * io/lchown.c: Likewise.
69685         * io/link.c: Likewise.
69686         * io/linkat.c: Likewise.
69687         * io/lseek.c: Likewise.
69688         * io/lseek64.c: Likewise.
69689         * io/lxstat64.c: Likewise.
69690         * io/mkdir.c: Likewise.
69691         * io/mkdirat.c: Likewise.
69692         * io/mkfifo.c: Likewise.
69693         * io/mkfifoat.c: Likewise.
69694         * io/open.c: Likewise.
69695         * io/open64.c: Likewise.
69696         * io/openat.c: Likewise.
69697         * io/openat64.c: Likewise.
69698         * io/pipe.c: Likewise.
69699         * io/pipe2.c: Likewise.
69700         * io/poll.c: Likewise.
69701         * io/posix_fadvise.c: Likewise.
69702         * io/posix_fadvise64.c: Likewise.
69703         * io/posix_fallocate.c: Likewise.
69704         * io/posix_fallocate64.c: Likewise.
69705         * io/read.c: Likewise.
69706         * io/readlink.c: Likewise.
69707         * io/readlinkat.c: Likewise.
69708         * io/rmdir.c: Likewise.
69709         * io/sendfile.c: Likewise.
69710         * io/sendfile64.c: Likewise.
69711         * io/statfs.c: Likewise.
69712         * io/statfs64.c: Likewise.
69713         * io/statvfs.c: Likewise.
69714         * io/statvfs64.c: Likewise.
69715         * io/symlink.c: Likewise.
69716         * io/symlinkat.c: Likewise.
69717         * io/ttyname.c: Likewise.
69718         * io/ttyname_r.c: Likewise.
69719         * io/umask.c: Likewise.
69720         * io/unlink.c: Likewise.
69721         * io/unlinkat.c: Likewise.
69722         * io/utime.c: Likewise.
69723         * io/utimensat.c: Likewise.
69724         * io/write.c: Likewise.
69725         * io/xmknod.c: Likewise.
69726         * io/xmknodat.c: Likewise.
69727         * io/xstat.c: Likewise.
69728         * io/xstat64.c: Likewise.
69729         * login/getpt.c: Likewise.
69730         * login/grantpt.c: Likewise.
69731         * login/unlockpt.c: Likewise.
69732         * math/e_acoshl.c: Likewise.
69733         * math/e_acosl.c: Likewise.
69734         * math/e_asinl.c: Likewise.
69735         * math/e_atan2l.c: Likewise.
69736         * math/e_atanhl.c: Likewise.
69737         * math/e_coshl.c: Likewise.
69738         * math/e_expl.c: Likewise.
69739         * math/e_fmodl.c: Likewise.
69740         * math/e_gammal_r.c: Likewise.
69741         * math/e_hypotl.c: Likewise.
69742         * math/e_j0l.c: Likewise.
69743         * math/e_j1l.c: Likewise.
69744         * math/e_jnl.c: Likewise.
69745         * math/e_lgammal_r.c: Likewise.
69746         * math/e_log10l.c: Likewise.
69747         * math/e_log2l.c: Likewise.
69748         * math/e_logl.c: Likewise.
69749         * math/e_powl.c: Likewise.
69750         * math/e_rem_pio2l.c: Likewise.
69751         * math/e_sinhl.c: Likewise.
69752         * math/e_sqrtl.c: Likewise.
69753         * math/fclrexcpt.c: Likewise.
69754         * math/fedisblxcpt.c: Likewise.
69755         * math/feenablxcpt.c: Likewise.
69756         * math/fegetenv.c: Likewise.
69757         * math/fegetexcept.c: Likewise.
69758         * math/fegetround.c: Likewise.
69759         * math/feholdexcpt.c: Likewise.
69760         * math/fesetenv.c: Likewise.
69761         * math/fesetround.c: Likewise.
69762         * math/feupdateenv.c: Likewise.
69763         * math/fgetexcptflg.c: Likewise.
69764         * math/fraiseexcpt.c: Likewise.
69765         * math/fsetexcptflg.c: Likewise.
69766         * math/ftestexcept.c: Likewise.
69767         * math/k_cosl.c: Likewise.
69768         * math/k_rem_pio2l.c: Likewise.
69769         * math/k_sinl.c: Likewise.
69770         * math/k_tanl.c: Likewise.
69771         * math/s_asinhl.c: Likewise.
69772         * math/s_atanl.c: Likewise.
69773         * math/s_cbrtl.c: Likewise.
69774         * math/s_erfl.c: Likewise.
69775         * math/s_expm1l.c: Likewise.
69776         * math/s_log1pl.c: Likewise.
69777         * math/s_tanhl.c: Likewise.
69778         * misc/acct.c: Likewise.
69779         * misc/brk.c: Likewise.
69780         * misc/chflags.c: Likewise.
69781         * misc/chroot.c: Likewise.
69782         * misc/fchflags.c: Likewise.
69783         * misc/fgetxattr.c: Likewise.
69784         * misc/flistxattr.c: Likewise.
69785         * misc/fremovexattr.c: Likewise.
69786         * misc/fsetxattr.c: Likewise.
69787         * misc/fsync.c: Likewise.
69788         * misc/ftruncate.c: Likewise.
69789         * misc/futimes.c: Likewise.
69790         * misc/futimesat.c: Likewise.
69791         * misc/getdomain.c: Likewise.
69792         * misc/getdtsz.c: Likewise.
69793         * misc/gethostid.c: Likewise.
69794         * misc/gethostname.c: Likewise.
69795         * misc/getloadavg.c: Likewise.
69796         * misc/getpagesize.c: Likewise.
69797         * misc/getsysstats.c: Likewise.
69798         * misc/getxattr.c: Likewise.
69799         * misc/gtty.c: Likewise.
69800         * misc/ioctl.c: Likewise.
69801         * misc/lgetxattr.c: Likewise.
69802         * misc/listxattr.c: Likewise.
69803         * misc/llistxattr.c: Likewise.
69804         * misc/lremovexattr.c: Likewise.
69805         * misc/lsetxattr.c: Likewise.
69806         * misc/lutimes.c: Likewise.
69807         * misc/madvise.c: Likewise.
69808         * misc/mincore.c: Likewise.
69809         * misc/mlock.c: Likewise.
69810         * misc/mlockall.c: Likewise.
69811         * misc/mmap.c: Likewise.
69812         * misc/mprotect.c: Likewise.
69813         * misc/msync.c: Likewise.
69814         * misc/munlock.c: Likewise.
69815         * misc/munlockall.c: Likewise.
69816         * misc/munmap.c: Likewise.
69817         * misc/preadv.c: Likewise.
69818         * misc/preadv64.c: Likewise.
69819         * misc/ptrace.c: Likewise.
69820         * misc/pwritev.c: Likewise.
69821         * misc/pwritev64.c: Likewise.
69822         * misc/readv.c: Likewise.
69823         * misc/reboot.c: Likewise.
69824         * misc/remap_file_pages.c: Likewise.
69825         * misc/removexattr.c: Likewise.
69826         * misc/revoke.c: Likewise.
69827         * misc/select.c: Likewise.
69828         * misc/setdomain.c: Likewise.
69829         * misc/setegid.c: Likewise.
69830         * misc/seteuid.c: Likewise.
69831         * misc/sethostid.c: Likewise.
69832         * misc/sethostname.c: Likewise.
69833         * misc/setregid.c: Likewise.
69834         * misc/setreuid.c: Likewise.
69835         * misc/setxattr.c: Likewise.
69836         * misc/sstk.c: Likewise.
69837         * misc/stty.c: Likewise.
69838         * misc/swapoff.c: Likewise.
69839         * misc/swapon.c: Likewise.
69840         * misc/sync.c: Likewise.
69841         * misc/syncfs.c: Likewise.
69842         * misc/syscall.c: Likewise.
69843         * misc/truncate.c: Likewise.
69844         * misc/ualarm.c: Likewise.
69845         * misc/usleep.c: Likewise.
69846         * misc/ustat.c: Likewise.
69847         * misc/utimes.c: Likewise.
69848         * misc/vhangup.c: Likewise.
69849         * misc/writev.c: Likewise.
69850         * posix/_exit.c: Likewise.
69851         * posix/alarm.c: Likewise.
69852         * posix/execve.c: Likewise.
69853         * posix/fexecve.c: Likewise.
69854         * posix/fork.c: Likewise.
69855         * posix/fpathconf.c: Likewise.
69856         * posix/getaddrinfo.c: Likewise.
69857         * posix/getegid.c: Likewise.
69858         * posix/geteuid.c: Likewise.
69859         * posix/getgid.c: Likewise.
69860         * posix/getgroups.c: Likewise.
69861         * posix/getlogin.c: Likewise.
69862         * posix/getlogin_r.c: Likewise.
69863         * posix/getpgid.c: Likewise.
69864         * posix/getpid.c: Likewise.
69865         * posix/getppid.c: Likewise.
69866         * posix/getresgid.c: Likewise.
69867         * posix/getresuid.c: Likewise.
69868         * posix/getsid.c: Likewise.
69869         * posix/getuid.c: Likewise.
69870         * posix/glob64.c: Likewise.
69871         * posix/nanosleep.c: Likewise.
69872         * posix/pathconf.c: Likewise.
69873         * posix/pause.c: Likewise.
69874         * posix/posix_madvise.c: Likewise.
69875         * posix/pread.c: Likewise.
69876         * posix/pread64.c: Likewise.
69877         * posix/pwrite.c: Likewise.
69878         * posix/pwrite64.c: Likewise.
69879         * posix/sched_getaffinity.c: Likewise.
69880         * posix/sched_getp.c: Likewise.
69881         * posix/sched_gets.c: Likewise.
69882         * posix/sched_primax.c: Likewise.
69883         * posix/sched_primin.c: Likewise.
69884         * posix/sched_rr_gi.c: Likewise.
69885         * posix/sched_setaffinity.c: Likewise.
69886         * posix/sched_setp.c: Likewise.
69887         * posix/sched_sets.c: Likewise.
69888         * posix/sched_yield.c: Likewise.
69889         * posix/setgid.c: Likewise.
69890         * posix/setlogin.c: Likewise.
69891         * posix/setpgid.c: Likewise.
69892         * posix/setresgid.c: Likewise.
69893         * posix/setresuid.c: Likewise.
69894         * posix/setsid.c: Likewise.
69895         * posix/setuid.c: Likewise.
69896         * posix/sleep.c: Likewise.
69897         * posix/spawni.c: Likewise.
69898         * posix/sysconf.c: Likewise.
69899         * posix/times.c: Likewise.
69900         * posix/wait.c: Likewise.
69901         * posix/wait3.c: Likewise.
69902         * posix/wait4.c: Likewise.
69903         * posix/waitpid.c: Likewise.
69904         * resolv/gai_sigqueue.c: Likewise.
69905         * resource/getpriority.c: Likewise.
69906         * resource/getrlimit.c: Likewise.
69907         * resource/getrusage.c: Likewise.
69908         * resource/nice.c: Likewise.
69909         * resource/setpriority.c: Likewise.
69910         * resource/setrlimit.c: Likewise.
69911         * resource/ulimit.c: Likewise.
69912         * rt/aio_cancel.c: Likewise.
69913         * rt/aio_fsync.c: Likewise.
69914         * rt/aio_read.c: Likewise.
69915         * rt/aio_sigqueue.c: Likewise.
69916         * rt/aio_suspend.c: Likewise.
69917         * rt/aio_write.c: Likewise.
69918         * rt/clock_getres.c: Likewise.
69919         * rt/clock_gettime.c: Likewise.
69920         * rt/clock_nanosleep.c: Likewise.
69921         * rt/clock_settime.c: Likewise.
69922         * rt/lio_listio.c: Likewise.
69923         * rt/mq_close.c: Likewise.
69924         * rt/mq_getattr.c: Likewise.
69925         * rt/mq_notify.c: Likewise.
69926         * rt/mq_open.c: Likewise.
69927         * rt/mq_receive.c: Likewise.
69928         * rt/mq_send.c: Likewise.
69929         * rt/mq_setattr.c: Likewise.
69930         * rt/mq_timedreceive.c: Likewise.
69931         * rt/mq_timedsend.c: Likewise.
69932         * rt/mq_unlink.c: Likewise.
69933         * rt/shm_open.c: Likewise.
69934         * rt/shm_unlink.c: Likewise.
69935         * rt/timer_create.c: Likewise.
69936         * rt/timer_delete.c: Likewise.
69937         * rt/timer_getoverr.c: Likewise.
69938         * rt/timer_gettime.c: Likewise.
69939         * rt/timer_settime.c: Likewise.
69940         * setjmp/__longjmp.c: Likewise.
69941         * setjmp/setjmp.c: Likewise.
69942         * signal/kill.c: Likewise.
69943         * signal/killpg.c: Likewise.
69944         * signal/raise.c: Likewise.
69945         * signal/sigaction.c: Likewise.
69946         * signal/sigaltstack.c: Likewise.
69947         * signal/sigblock.c: Likewise.
69948         * signal/sigignore.c: Likewise.
69949         * signal/sigintr.c: Likewise.
69950         * signal/signal.c: Likewise.
69951         * signal/sigpause.c: Likewise.
69952         * signal/sigpending.c: Likewise.
69953         * signal/sigqueue.c: Likewise.
69954         * signal/sigreturn.c: Likewise.
69955         * signal/sigset.c: Likewise.
69956         * signal/sigsetmask.c: Likewise.
69957         * signal/sigstack.c: Likewise.
69958         * signal/sigsuspend.c: Likewise.
69959         * signal/sigtimedwait.c: Likewise.
69960         * signal/sigvec.c: Likewise.
69961         * signal/sigwait.c: Likewise.
69962         * signal/sigwaitinfo.c: Likewise.
69963         * signal/sysv_signal.c: Likewise.
69964         * socket/accept.c: Likewise.
69965         * socket/accept4.c: Likewise.
69966         * socket/bind.c: Likewise.
69967         * socket/connect.c: Likewise.
69968         * socket/getpeername.c: Likewise.
69969         * socket/getsockname.c: Likewise.
69970         * socket/getsockopt.c: Likewise.
69971         * socket/isfdtype.c: Likewise.
69972         * socket/listen.c: Likewise.
69973         * socket/recv.c: Likewise.
69974         * socket/recvfrom.c: Likewise.
69975         * socket/recvmsg.c: Likewise.
69976         * socket/send.c: Likewise.
69977         * socket/sendmsg.c: Likewise.
69978         * socket/sendto.c: Likewise.
69979         * socket/setsockopt.c: Likewise.
69980         * socket/shutdown.c: Likewise.
69981         * socket/sockatmark.c: Likewise.
69982         * socket/socket.c: Likewise.
69983         * socket/socketpair.c: Likewise.
69984         * stdio-common/ctermid.c: Likewise.
69985         * stdio-common/cuserid.c: Likewise.
69986         * stdio-common/remove.c: Likewise.
69987         * stdio-common/rename.c: Likewise.
69988         * stdio-common/renameat.c: Likewise.
69989         * stdio-common/tempname.c: Likewise.
69990         * stdlib/getcontext.c: Likewise.
69991         * stdlib/makecontext.c: Likewise.
69992         * stdlib/setcontext.c: Likewise.
69993         * stdlib/swapcontext.c: Likewise.
69994         * stdlib/system.c: Likewise.
69995         * streams/fattach.c: Likewise.
69996         * streams/fdetach.c: Likewise.
69997         * streams/getmsg.c: Likewise.
69998         * streams/getpmsg.c: Likewise.
69999         * streams/putmsg.c: Likewise.
70000         * streams/putpmsg.c: Likewise.
70001         * sysdeps/unix/bsd/getpt.c: Likewise.
70002         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
70003         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
70004         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
70005         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
70006         Likewise.
70007         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
70008         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
70009         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
70010         * sysvipc/msgctl.c: Likewise.
70011         * sysvipc/msgget.c: Likewise.
70012         * sysvipc/msgrcv.c: Likewise.
70013         * sysvipc/msgsnd.c: Likewise.
70014         * sysvipc/semctl.c: Likewise.
70015         * sysvipc/semget.c: Likewise.
70016         * sysvipc/semop.c: Likewise.
70017         * sysvipc/semtimedop.c: Likewise.
70018         * sysvipc/shmat.c: Likewise.
70019         * sysvipc/shmctl.c: Likewise.
70020         * sysvipc/shmdt.c: Likewise.
70021         * sysvipc/shmget.c: Likewise.
70022         * termios/tcdrain.c: Likewise.
70023         * termios/tcflow.c: Likewise.
70024         * termios/tcflush.c: Likewise.
70025         * termios/tcgetattr.c: Likewise.
70026         * termios/tcgetpgrp.c: Likewise.
70027         * termios/tcsendbrk.c: Likewise.
70028         * termios/tcsetattr.c: Likewise.
70029         * termios/tcsetpgrp.c: Likewise.
70030         * time/adjtime.c: Likewise.
70031         * time/clock.c: Likewise.
70032         * time/getitimer.c: Likewise.
70033         * time/gettimeofday.c: Likewise.
70034         * time/setitimer.c: Likewise.
70035         * time/settimeofday.c: Likewise.
70036         * time/stime.c: Likewise.
70037         * time/time.c: Likewise.
70038
70039 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
70040
70041         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
70042         /usr/old/bin.
70043
70044         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
70045         instead of spaces.
70046         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
70047
70048 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
70049
70050         [BZ #14796]
70051         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
70052         FE_TONEAREST before applying Dekker multiplication and Knuth
70053         addition.  Clear inexact exceptions and check for exact zero
70054         results afterwards.
70055         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
70056         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
70057         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
70058         * math/libm-test.inc (fma_test): Add more tests.
70059         (fma_test_towardzero): Likewise.
70060         (fma_test_downward): Likewise.
70061         (fma_test_upward): Likewise.
70062         * sysdeps/generic/math_private.h (default_libc_fesetround): New
70063         function.
70064         (libc_fesetround): New macro.
70065         (libc_fesetroundf): Likewise.
70066         (libc_fesetroundl): Likewise.
70067         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
70068         function.
70069         (libc_fesetround_387): Likewise.
70070         (libc_fesetroundf): New macro.
70071         (libc_fesetround): Likewise.
70072         (libc_fesetroundl): Likewise.
70073         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
70074         function.
70075         (libc_fesetroundf): New macro.
70076         (libc_fesetround): Likewise.
70077         (libc_fesetroundl): Likewise.
70078         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
70079         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
70080         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
70081         libm_hidden_ver.
70082         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
70083         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
70084         libm_hidden_def.
70085         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
70086         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
70087         libm_hidden_ver.
70088         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
70089         libm_hidden_def.
70090
70091         [BZ #3439]
70092         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
70093         integer constant usable in #if and use that to give value to enum
70094         constant.
70095         (FE_DIVBYZERO): Likewise.
70096         (FE_UNDERFLOW): Likewise.
70097         (FE_OVERFLOW): Likewise.
70098         (FE_INVALID): Likewise.
70099         (FE_INVALID_SNAN): Likewise.
70100         (FE_INVALID_ISI): Likewise.
70101         (FE_INVALID_IDI): Likewise.
70102         (FE_INVALID_ZDZ): Likewise.
70103         (FE_INVALID_IMZ): Likewise.
70104         (FE_INVALID_COMPARE): Likewise.
70105         (FE_INVALID_SOFTWARE): Likewise.
70106         (FE_INVALID_SQRT): Likewise.
70107         (FE_INVALID_INTEGER_CONVERSION): Likewise.
70108         (FE_TONEAREST): Likewise.
70109         (FE_TOWARDZERO): Likewise.
70110         (FE_UPWARD): Likewise.
70111         (FE_DOWNWARD): Likewise.
70112         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
70113         (FE_DIVBYZERO): Likewise.
70114         (FE_OVERFLOW): Likewise.
70115         (FE_UNDERFLOW): Likewise.
70116         (FE_INEXACT): Likewise.
70117         (FE_TONEAREST): Likewise.
70118         (FE_DOWNWARD): Likewise.
70119         (FE_UPWARD): Likewise.
70120         (FE_TOWARDZERO): Likewise.
70121         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
70122         (FE_UNDERFLOW): Likewise.
70123         (FE_OVERFLOW): Likewise.
70124         (FE_DIVBYZERO): Likewise.
70125         (FE_INVALID): Likewise.
70126         (FE_TONEAREST): Likewise.
70127         (FE_TOWARDZERO): Likewise.
70128         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
70129         (FE_OVERFLOW): Likewise.
70130         (FE_UNDERFLOW): Likewise.
70131         (FE_DIVBYZERO): Likewise.
70132         (FE_INEXACT): Likewise.
70133         (FE_TONEAREST): Likewise.
70134         (FE_TOWARDZERO): Likewise.
70135         (FE_UPWARD): Likewise.
70136         (FE_DOWNWARD): Likewise.
70137         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
70138         (FE_DIVBYZERO): Likewise.
70139         (FE_OVERFLOW): Likewise.
70140         (FE_UNDERFLOW): Likewise.
70141         (FE_INEXACT): Likewise.
70142         (FE_TONEAREST): Likewise.
70143         (FE_DOWNWARD): Likewise.
70144         (FE_UPWARD): Likewise.
70145         (FE_TOWARDZERO): Likewise.
70146
70147 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
70148
70149         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
70150
70151 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
70152
70153         * scripts/cross-test-ssh.sh (command): Use newlines to separate
70154         commands.  Quote $PWD.
70155         (blacklist_exports): Don't use remove_newlines.  Replace "declare
70156         -x" by "export".
70157         (remove_newlines): Remove.
70158
70159 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
70160
70161         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
70162         * stdlib/stdlib.h (atof): Moved to ...
70163         * include/bits/stdlib-float.h: Here.  New file.
70164         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
70165         * stdlib/bits/stdlib-float.h: New file.
70166         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
70167         -mno-sse -mno-mmx.
70168         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
70169         <xmmintrin.h>.
70170
70171 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
70172
70173         * conform/conformtest.pl (@headers): Add fenv.h.
70174         * conform/data/fenv.h-data: New file.
70175         * include/fenv.h [_ISOMAC]: Disable all contents of file except
70176         include of <math/fenv.h>.
70177
70178         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
70179         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
70180         && !UNIX98].  Enables tests for XOPEN2K8.
70181         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
70182         POSIX2008]: Likewise.
70183
70184         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
70185         (struct rusage): Do not expect type or its members.
70186
70187         [BZ #3439]
70188         * math/math.h (FP_NAN): Define macro to integer constant usable in
70189         #if and use that to give value to enum constant.
70190         (FP_INFINITE): Likewise.
70191         (FP_ZERO): Likewise.
70192         (FP_SUBNORMAL): Likewise.
70193         (FP_NORMAL): Likewise.
70194
70195 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
70196
70197         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
70198         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
70199         arguments.
70200
70201 2012-11-02  Roland McGrath  <roland@hack.frob.com>
70202
70203         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
70204         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
70205         autoconf-time if not.
70206         * configure.in: Remove AC_PREREQ.
70207
70208 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
70209
70210         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
70211         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
70212         of the internal implementation.
70213
70214 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
70215
70216         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
70217         except include of <misc/sys/syslog.h>.
70218
70219 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
70220
70221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
70222         function returns with a NULL context exit with zero.
70223
70224 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
70225
70226         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
70227
70228 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
70229
70230         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
70231         (run_program_cmd): This.
70232         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
70233         (tst_langinfo): New variable.  Use it.
70234
70235 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
70236
70237         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
70238         floating point opcodes.
70239
70240 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
70241
70242         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
70243         variable.
70244
70245         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
70246
70247         * sysdeps/mach/hurd/powerpc: Remove directory.
70248         * sysdeps/mach/powerpc: Likewise.
70249
70250 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
70251
70252         * scripts/check-local-headers.sh: Ignore c++ headers.
70253
70254 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
70255
70256         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
70257         __libc_cleanup_region_start argument.
70258
70259 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
70260
70261         [BZ #14784]
70262         [BZ #14785]
70263         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
70264         x * y using scaling, not as x * y + z.
70265         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
70266         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
70267         * math/libm-test.inc (fma_test): Add more tests.
70268         (fma_test_towardzero): Likewise.
70269         (fma_test_downward): Likewise.
70270         (fma_test_upward): Likewise.
70271
70272 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
70273
70274         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
70275
70276 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
70277
70278         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
70279         New variable.
70280
70281 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
70282
70283         * rt/tst-shm.c (worker): Correct checking for mmap failure.
70284
70285 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
70286
70287         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
70288         Fix sort order.
70289         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
70290         Likewise.
70291
70292 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
70293
70294         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
70295         Fix the order of the list for glibc 2.17.
70296         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
70297         Likewise.
70298
70299 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
70300
70301         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
70302
70303 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
70304
70305         [BZ #14610]
70306         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
70307         for low part of x being zero before using __atanl (y).
70308         * math/libm-test.inc (atan2_test): Add another test.
70309
70310         * manual/install.texi (Configuring and compiling): Document
70311         general use of test-wrapper and test-wrapper-env.
70312         * INSTALL: Regenerated.
70313
70314         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
70315         (__fma): Do not extract and scale down low bits on after-rounding
70316         systems when result rounded to normal precision would have normal
70317         exponent.
70318         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
70319         (__fmal): Do not extract and scale down low bits on after-rounding
70320         systems when result rounded to normal precision would have normal
70321         exponent.
70322         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
70323         (__fmal): Do not extract and scale down low bits on after-rounding
70324         systems when result rounded to normal precision would have normal
70325         exponent.
70326         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
70327         macro.
70328         (fma_test): Add more tests.
70329         (fma_test_towardzero): Likewise.
70330         (fma_test_downward): Likewise.
70331         (fma_test_upward): Likewise.
70332
70333 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
70334
70335         * sysdeps/i386/tininess.h: Renamed to ...
70336         * sysdeps/x86/tininess.h: This.
70337         * sysdeps/x86_64/tininess.h: Removed.
70338
70339 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
70340
70341         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
70342         input.  Use $(build-program-cmd).
70343         ($(objpfx)tst-array1-static.out): Likewise.
70344         ($(objpfx)tst-array2.out): Likewise.
70345         ($(objpfx)tst-array3.out): Likewise.
70346         ($(objpfx)tst-array4.out): Likewise.
70347         ($(objpfx)tst-array5.out): Likewise.
70348         ($(objpfx)tst-array5-static.out): Likewise.
70349
70350 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
70351
70352         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
70353         if defined.
70354
70355         * nss/nsswitch.h (nss_interface_function): Provide new
70356         macro for use with NSS functions.
70357         * grp/initgroups.c: Use new macro.
70358         * nss/getXXbyYY.c: Likewise.
70359         * nss/getXXbyYY_r.c: Likewise.
70360         * nss/getXXent.c: Likewise.
70361         * nss/getXXent_r.c: Likewise.
70362         * sysdeps/posix/getaddrinfo.c: Likewise.
70363
70364 2012-10-30  Andreas Jaeger  <aj@suse.de>
70365
70366         * po/ru.po: Update Russion translation from translation project.
70367
70368 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
70369
70370         [BZ #14152]
70371         [BZ #14783]
70372         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
70373         result and shift together with sticky bit instead of replicating
70374         round-to-nearest rounding.
70375         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
70376         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
70377         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
70378         missing underflow exceptions.
70379         (fma_test_towardzero): Add more tests.
70380         (fma_test_downward): Likewise.
70381         (fma_test_upward): Likewise.
70382
70383         [BZ #14047]
70384         * sysdeps/generic/tininess.h: New file.
70385         * sysdeps/i386/tininess.h: Likewise.
70386         * sysdeps/sh/tininess.h: Likewise.
70387         * sysdeps/x86_64/tininess.h: Likewise.
70388         * stdlib/tst-strtod-underflow.c: Likewise.
70389         * stdlib/tst-tininess.c: Likewise.
70390         * stdlib/strtod_l.c: Include <tininess.h>.
70391         (round_and_return): Do not set errno for exact underflow cases.
70392         Force an underflow exception when setting errno for underflow.
70393         Determine underflow based on rounding to normal precision if
70394         TININESS_AFTER_ROUNDING.
70395         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
70396         ERANGE for exact underflow cases.
70397         * stdlib/Makefile (tests): Add tst-tininess and
70398         tst-strtod-underflow.
70399         ($(objpfx)tst-tininess): Use $(link-libm).
70400         ($(objpfx)tst-strtod-underflow): Likewise.
70401
70402 2012-10-30  Andreas Jaeger  <aj@suse.de>
70403
70404         [BZ #14767]
70405         * elf/Makefile (tests): Remove conditional for have-initfini-array
70406         since this is now always required and the variable does not exist
70407         anymore.
70408         (tests-static): Likewise.
70409         (modules-names): Likewise.
70410
70411         * po/eo.po: Add Esperanto translation from translation project.
70412
70413         * elf/tst-array1.c (fini_array): Make writeable so that it can be
70414         merged with constructor/destructor.
70415         (init_array): Likewise.
70416         * elf/tst-array2dep.c (fini_array): Likewise.
70417         (init_array): Likewise.
70418
70419 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
70420
70421         * manual/message.texi: Delete @cartouche tags.
70422
70423 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
70424
70425         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
70426         EOPNOTSUPP.
70427         * sysdeps/mach/hurd/fsync.c: Likewise.
70428
70429         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
70430         [_POSIX_REALTIME_SIGNALS]: Change condition to
70431         [_POSIX_REALTIME_SIGNALS > 0].
70432
70433 2012-10-27  Andreas Jaeger  <aj@suse.de>
70434
70435         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
70436         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
70437         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
70438         [__WORDSIZE != 64]: Likewise.
70439
70440 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
70441
70442         *  iconvdata/tst-table.sh: Remove ${SHELL}.
70443         *  iconvdata/tst-tables.sh: Likewise.
70444
70445 2012-10-25  David S. Miller  <davem@davemloft.net>
70446
70447         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
70448         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
70449         of strtoull.
70450
70451         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
70452         ifunc-impl-list.c
70453         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
70454         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
70455         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
70456         file.
70457
70458 2012-10-25  Roland McGrath  <roland@hack.frob.com>
70459
70460         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
70461         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
70462         __getdirentries.
70463
70464 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
70465             Jim Blandy  <jimb@codesourcery.com>
70466
70467         * scripts/cross-test-ssh.sh: New file.
70468         * manual/install.texi (Configuring and compiling): Document use of
70469         cross-test-ssh.sh.
70470         * INSTALL: Regenerated.
70471
70472 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
70473
70474         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
70475         EOPNOTSUPP.
70476
70477 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
70478
70479         * Makeconfig (run-program-prefix): Fix comment.
70480
70481 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
70482             Jim Blandy  <jimb@codesourcery.com>
70483
70484         * Makeconfig (test-wrapper): New variable,
70485         (test-wrapper-env): Likewise.
70486         [$(cross-compiling) = yes && $(test-wrapper) != ""]
70487         (run-built-tests): Define to yes.
70488         (run-program-prefix): Use $(test-wrapper).
70489         (built-program-cmd): Likewise.
70490         * Rules (make-test-out): Use $(test-wrapper-env) and
70491         $(host-built-program-cmd).
70492         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
70493         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
70494         tst-pathopt.sh.
70495         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
70496         $(test-wrapper-env) to tst-rtld-load-self.sh.
70497         ($(objpfx)order2.out): Use $(test-wrapper).
70498         ($(objpfx)tst-initorder.out): Likewise.
70499         ($(objpfx)tst-initorder2.out): Likewise.
70500         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
70501         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
70502         (test_wrapper_env): New variable.  Use it to run ld.so.
70503         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
70504         Use it to run ld.so.
70505         (test_wrapper_env): Likewise.
70506         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
70507         $(test-wrapper) to run-iconv-test.sh.
70508         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
70509         (ICONV): Use $test_wrapper.
70510         * posix/Makefile ($(objpfx)globtest.out): Pass
70511         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
70512         globtest.sh, not $(run-program-prefix).
70513         * posix/globtest.sh (run_via_rtld_prefix): New variable.
70514         (test_wrapper): Likewise.
70515         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
70516         set together with run_via_rtld_prefix.
70517         (run_program_prefix): Define in terms of test_wrapper and
70518         run_via_rtld_prefix.
70519
70520 2012-10-24  Roland McGrath  <roland@hack.frob.com>
70521
70522         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
70523         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
70524         Targets removed.
70525
70526         [BZ #14743]
70527         * include/time.h: Remove librt_hidden_proto (clock_gettime).
70528         Declare __clock_getres, __clock_gettime, __clock_settime,
70529         __clock_nanosleep, and __clock_getcpuclockid.
70530         * rt/clock_gettime.c: Define __clock_gettime as an alias.
70531         Remove librt_hidden_def (clock_gettime).
70532         * sysdeps/unix/clock_gettime.c: Likewise.
70533         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
70534         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
70535         * rt/clock_getres.c: Define __clock_getres as an alias.
70536         * sysdeps/posix/clock_getres.c: Likewise.
70537         * rt/clock_settime.c: Define __clock_settime as an alias.
70538         * sysdeps/unix/clock_settime.c: Likewise.
70539         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
70540         * sysdeps/unix/clock_nanosleep.c: Likewise.
70541         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
70542         * rt/clock-compat.c: New file.
70543         * rt/Makefile (librt-routines): Add clock-compat and move
70544         $(clock-routines) to ...
70545         (routines): ... here, new variable.
70546         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
70547         Don't add get_clockfreq here.
70548         * rt/Versions (libc: GLIBC_2.17): New version set.
70549         Add clock_* symbols here.
70550         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
70551         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
70552         (GLIBC_2.17): Add clock_* symbols.
70553         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
70554         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
70555         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
70556         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
70557         Likewise.
70558         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
70559         Likewise.
70560         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
70561         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
70562         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
70563         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
70564         * NEWS: Mention the move.
70565
70566         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
70567         Use __open, __read, __close rather than their public counterparts.
70568         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
70569         (__get_clockfreq_via_cpuinfo): Likewise.
70570         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
70571         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
70572
70573         * config.h.in (HAVE_IFUNC): New #undef.
70574         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
70575         was successful.
70576         * configure: Regenerated.
70577
70578 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
70579
70580         * configure.in: Move READELF check to start of file.
70581         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
70582         libc_cv_asm_gnu_indirect_function in the process.
70583         * configure: Regenerated.
70584
70585 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
70586
70587         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
70588         send the output to /dev/null.
70589         (libc_cv_cc_with_libunwind): Likewise.
70590         (libc_cv_as_noexecstack): Likewise.
70591         * configure: Regenerate.
70592
70593 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
70594
70595         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
70596
70597         * posix/globtest.sh (TMPDIR): Do not set.
70598         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
70599         (testout): Likewise.
70600
70601 2012-10-24  Andreas Jaeger  <aj@suse.de>
70602
70603         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
70604         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
70605         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
70606         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
70607         posix_fadvise64, posix_fallocate64.
70608
70609         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
70610         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
70611         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
70612         Likewise.
70613         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
70614         Likewise.
70615         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
70616
70617         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
70618         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
70619         <bits/fcntl-linux.h>.
70620         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
70621
70622         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
70623         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
70624         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
70625         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
70626         [__WORDSIZE != 64]: Likewise.
70627
70628 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
70629
70630         * Makeconfig (run-built-tests): New variable.
70631         * Rules [$(cross-compiling) = yes]: Change condition to
70632         [$(run-built-tests) = no].
70633         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
70634         to [$(run-built-tests) = yes].
70635         * elf/Makefile [$(cross-compiling) = no]: Likewise.
70636         * grp/Makefile [$(cross-compiling) = no]: Likewise.
70637         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
70638         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
70639         * intl/Makefile [$(cross-compiling) = no]: Likewise.
70640         * io/Makefile [$(cross-compiling) = no]: Likewise.
70641         * libio/Makefile [$(cross-compiling) = no]: Likewise.
70642         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
70643         * misc/Makefile [$(cross-compiling) = no]: Likewise.
70644         * posix/Makefile [$(cross-compiling) = no]: Likewise.
70645         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
70646         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
70647         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
70648         * string/Makefile [$(cross-compiling) = no]: Likewise.
70649
70650         * posix/Makefile ($(objpfx)globtest.out): Pass
70651         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
70652         $(rtld-installed-name).
70653         * posix/globtest.sh (elf_objpfx): Remove variable.
70654         (rtld_installed_name): Likewise.
70655         (library_path): Likewise.
70656         (run_program_prefix): New variable.  Use for running globtest
70657         binary.
70658
70659 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
70660             Joseph Myers  <joseph@codesourcery.com>
70661
70662         * Makeconfig (host-built-program-cmd): New variable.
70663         * elf/Makefile (tst-stackguard1-ARGS): Use
70664         $(host-built-program-cmd).
70665         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
70666         (tst-spawn-ARGS): Likewise.
70667         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
70668
70669 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
70670             Jim Blandy  <jimb@codesourcery.com>
70671
70672         * Makeconfig (run-via-rtld-prefix): New variable.
70673         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
70674         (built-program-cmd): Likewise.
70675
70676 2012-10-22  Andreas Jaeger  <aj@suse.de>
70677
70678         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
70679         __O_RSYNC if it exists, otherwise to O_SYNC.
70680
70681 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
70682             Joseph Myers  <joseph@codesourcery.com>
70683
70684         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
70685         /dev/null.
70686         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
70687         from /dev/null
70688         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
70689         /dev/null.
70690
70691 2012-10-22  Andreas Jaeger  <aj@suse.de>
70692
70693         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
70694         Define always.
70695         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
70696
70697         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
70698         bits/fcntl-linux.h.
70699
70700         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
70701         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
70702
70703         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
70704         to __O_LARGEFILE.
70705         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
70706         to __O_LARGEFILE.
70707
70708 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
70709             Joseph Myers  <joseph@codesourcery.com>
70710
70711         * config.make.in (NM): New variable.
70712
70713 2012-10-21  Andreas Jaeger  <aj@suse.de>
70714
70715         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
70716         definitions and declarations that are provided by
70717         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
70718
70719 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
70720
70721         [BZ #14683]
70722         * elf/Makefile (tests-static): Add tst-leaks1-static.
70723         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
70724         ($(objpfx)tst-leaks1-static): New rule.
70725         ($(objpfx)tst-leaks1-static-mem): Likewise.
70726         (tst-leaks1-static-ENV): New macro.
70727         * elf/dl-open.c (dl_open_worker): Check the main application
70728         only if SHARED is defined.
70729         * elf/tst-leaks1-static.c: New file.
70730
70731 2012-10-20  Andreas Jaeger  <aj@suse.de>
70732
70733         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
70734         generic values for Linux.
70735         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
70736         and declarations that are provided by <bits/fcntl-linux.h> and
70737         include <bits/fcntl-linux.h>.
70738         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
70739         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
70740
70741 2012-10-20  Roland McGrath  <roland@hack.frob.com>
70742
70743         * io/fcntl.h: Move include of <bits/types.h> to the top and
70744         include it unconditionally.
70745
70746 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
70747
70748         * wcsmbs/Makefile (tests-ifunc): New variable.
70749         (tests): Add $(tests-ifunc).
70750         * wcsmbs/test-wcschr-ifunc.c: New file.
70751         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
70752         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
70753         * wcsmbs/test-wcslen-ifunc.c: Likewise.
70754         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
70755         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
70756
70757         * string/Makefile (tests-ifunc): New variable.
70758         (tests): Add $(tests-ifunc).
70759         * string/test-memccpy.c (TEST_NAME): New macro.
70760         * string/test-memchr.c (TEST_NAME): Likewise.
70761         * string/test-memcmp.c (TEST_NAME): Likewise.
70762         * string/test-memcpy.c (TEST_NAME): Likewise.
70763         * string/test-memmem.c (TEST_NAME): Likewise.
70764         * string/test-memmove.c (TEST_NAME): Likewise.
70765         * string/test-memset.c (TEST_NAME): Likewise.
70766         * string/test-rawmemchr.c (TEST_NAME): Likewise.
70767         * string/test-stpcpy.c (TEST_NAME): Likewise.
70768         * string/test-stpncpy.c (TEST_NAME): Likewise.
70769         * string/test-strcasecmp.c (TEST_NAME): Likewise.
70770         * string/test-strcasestr.c (TEST_NAME): Likewise.
70771         * string/test-strcat.c (TEST_NAME): Likewise.
70772         * string/test-strchr.c (TEST_NAME): Likewise.
70773         * string/test-strcmp.c(TEST_NAME): Likewise.
70774         * string/test-strcpy.c (TEST_NAME): Likewise.
70775         * string/test-strcspn.c (TEST_NAME): Likewise.
70776         * string/test-strlen.c (TEST_NAME): Likewise.
70777         * string/test-strncasecmp.c (TEST_NAME): Likewise.
70778         * string/test-strncmp.c (TEST_NAME): Likewise.
70779         * string/test-strncpy.c (TEST_NAME): Likewise.
70780         * string/test-strnlen.c (TEST_NAME): Likewise.
70781         * string/test-strpbrk.c (TEST_NAME): Likewise.
70782         * string/test-strrchr.c (TEST_NAME): Likewise.
70783         * string/test-strspn.c (TEST_NAME): Likewise.
70784         * string/test-strstr.c (TEST_NAME): Likewise.
70785         * string/test-bcopy-ifunc.c: New file.
70786         * string/test-bzero-ifunc.c: Likewise.
70787         * string/test-memccpy-ifunc.c: Likewise.
70788         * string/test-memchr-ifunc.c: Likewise.
70789         * string/test-memcmp-ifunc.c: Likewise.
70790         * string/test-memcpy-ifunc.c: Likewise.
70791         * string/test-memmem-ifunc.c: Likewise.
70792         * string/test-memmove-ifunc.c: Likewise.
70793         * string/test-mempcpy-ifunc.c: Likewise.
70794         * string/test-memset-ifunc.c: Likewise.
70795         * string/test-rawmemchr-ifunc.c: Likewise.
70796         * string/test-stpcpy-ifunc.c: Likewise.
70797         * string/test-stpncpy-ifunc.c: Likewise.
70798         * string/test-strcasecmp-ifunc.c: Likewise.
70799         * string/test-strcasestr-ifunc.c: Likewise.
70800         * string/test-strcat-ifunc.c: Likewise.
70801         * string/test-strchr-ifunc.c: Likewise.
70802         * string/test-strchrnul-ifunc.c: Likewise.
70803         * string/test-strcmp-ifunc.c: Likewise.
70804         * string/test-strcpy-ifunc.c: Likewise.
70805         * string/test-strcspn-ifunc.c: Likewise.
70806         * string/test-strlen-ifunc.c: Likewise.
70807         * string/test-strncasecmp-ifunc.c: Likewise.
70808         * string/test-strncat-ifunc.c: Likewise.
70809         * string/test-strncmp-ifunc.c: Likewise.
70810         * string/test-strncpy-ifunc.c: Likewise.
70811         * string/test-strnlen-ifunc.c: Likewise.
70812         * string/test-strpbrk-ifunc.c: Likewise.
70813         * string/test-strrchr-ifunc.c: Likewise.
70814         * string/test-strspn-ifunc.c: Likewise.
70815         * string/test-strstr-ifunc.c: Likewise.
70816
70817         * debug/Makefile (tests-ifunc): New variable.
70818         (tests): Add $(tests-ifunc).
70819         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
70820         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
70821         * debug/test-stpcpy_chk-ifunc.c: New file.
70822         * debug/test-strcpy_chk-ifunc.c: Likewise.
70823
70824 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
70825
70826         [BZ #13601]
70827         * elf/dl-load.c (open_verify): Retry read if the entire ELF
70828         header is not read in.
70829
70830 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
70831
70832         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
70833         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
70834         directly.  Pass built executable to script as
70835         $(built-program-cmd).
70836         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
70837         $testprogram without using LD_LIBRARY_PATH and $ldso.
70838
70839         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
70840         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
70841         $(rtld-installed-name).
70842         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
70843         (rtld_installed_name): Likewise.
70844         (library_path): Likewise.
70845         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
70846         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
70847         $(run-program-prefix) to tst-tables.sh.
70848         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
70849         it to run tst-table-from and tst-table-to.
70850         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
70851         Pass it to tst-table.sh.
70852         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
70853         $(run-program-prefix) to tst-gettext.sh.
70854         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
70855         tst-translit.sh.
70856         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
70857         tst-gettext2.sh.
70858         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
70859         to run tst-gettext.
70860         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
70861         to run tst-gettext2.
70862         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
70863         to run tst-translit.
70864         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
70865         $(run-program-prefix) to tst-mtrace.sh.
70866         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
70867         to run tst-mtrace.
70868         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
70869         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
70870         $(rtld-installed-name).
70871         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
70872         (rtld_installed_name): Likewise.
70873         (run_program_prefix): New variable.  Use it to run wordexp-test.
70874
70875         * Makeconfig (ARCH): Remove all definitions.
70876         (machine): Likewise.
70877         [ARCH]: Remove conditional code.
70878         [!objdir]: Give error.
70879         [!objdir] (objpfx): Remove.
70880         [!objdir] (common-objpfx): Likewise.
70881         [!objdir] (common-objdir): Likewise.
70882         * configure.in (config_makefile): Remove.  Hardcode Makefile in
70883         AC_CONFIG_FILES call.
70884         * configure: Regenerated.
70885
70886         [BZ #13888]
70887         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
70888         or TMPDIR.
70889         (testout): Likewise.
70890
70891         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
70892         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
70893         $(rtld-installed-name).
70894         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
70895         (rtld_installed_name): Likewise.
70896         (runit): Remove function.
70897         (run_getconf): New variable,  Use it for running getconf binary.
70898
70899 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
70900
70901         [BZ #14716]
70902         * string/test-memmem.c (check_result): New function.
70903         (do_one_test): Use it.
70904         (check1): New function.
70905         (test_main): Use it.
70906
70907 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
70908
70909         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
70910
70911 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
70912
70913         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
70914         (_G_LSEEK64): Likewise.
70915         (_G_MMAP64): Likewise.
70916         (_G_FSTAT64): Likewise.
70917         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
70918         (_G_LSEEK64): Likewise.
70919         (_G_MMAP64): Likewise.
70920         (_G_FSTAT64): Likewise.
70921         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
70922         unconditional.  Call __mmap64 directly.
70923         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
70924         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
70925         __lseek64 directly.
70926         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
70927         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
70928         __mmap64 directly.
70929         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
70930         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
70931         __lseek64 directly.
70932         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
70933         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
70934         __lseek64 directly.
70935         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
70936         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
70937         __lseek64 directly.
70938         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
70939         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
70940         __fxstat64 directly.
70941         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
70942         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
70943         unconditional.
70944         (freopen64) [!_G_OPEN64]: Remove conditional code.
70945         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
70946         unconditional.
70947         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
70948         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
70949         unconditional.
70950         (ftello64) [!_G_LSEEK64]: Remove conditional code.
70951         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
70952         unconditional.
70953         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
70954         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
70955         unconditional.
70956         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
70957         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
70958         unconditional.
70959         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
70960         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
70961         unconditional.
70962         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
70963         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
70964         unconditional.
70965         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
70966
70967 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
70968
70969         [BZ #12140]
70970         * manual/memory.texi (Malloc Tunable Parameters): Add note
70971         about free list pointers overwriting some perturb bytes.
70972         Wording suggested by Roland McGrath.
70973
70974 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
70975
70976         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
70977         (lgamma_test): Likewise.
70978         (tgamma_test): Likewise.
70979
70980 2012-10-16  Florian Weimer  <fweimer@redhat.com>
70981
70982         [BZ #14700]
70983         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
70984         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
70985
70986 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
70987
70988         * NEWS: Mention BZ #14716.
70989         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
70990         when removing AVAILABLE1_USES_J macro.
70991
70992 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
70993
70994         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
70995         (__bswap_64): __uint64_t for unsigned 64-bit int.
70996
70997 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
70998
70999         * include/string.h (memmem): Declare libc hidden alias.
71000         * string/memmem.c (memmem): Define libc hidden alias.
71001         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
71002         __read, __close instead of open, read, close.
71003
71004 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
71005
71006         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
71007         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
71008         global and hidden.
71009         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
71010         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
71011         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
71012         Likewise.
71013         (__rawmemchr_sse2): Likewise.
71014         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
71015         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
71016         (__strchr_sse2): Likewise.
71017         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
71018         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
71019         (__strcasecmp_sse2): Likewise.
71020         (__strncasecmp_sse2): Likewise.
71021         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
71022         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
71023         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
71024         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
71025         (__strrchr_sse2): Likewise.
71026         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
71027         ifunc-impl-list.c.
71028         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
71029         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
71030         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
71031         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
71032         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
71033         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
71034         * sysdeps/x86_64/multiarch/memset.S: Likewise.
71035         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
71036         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
71037         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
71038         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
71039         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
71040         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
71041         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
71042         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
71043         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
71044         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
71045         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
71046         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
71047         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
71048         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
71049         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
71050         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
71051         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
71052         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
71053         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
71054         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
71055         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
71056         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
71057         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
71058
71059         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
71060         global and hidden.
71061         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
71062         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
71063         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
71064         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
71065         Likewise.
71066         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
71067         Likewise.
71068         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
71069         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
71070         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
71071         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
71072         ifunc-impl-list.c.
71073         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
71074         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
71075         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
71076         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
71077         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
71078         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
71079         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
71080         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
71081         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
71082         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
71083         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
71084         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
71085         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
71086         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
71087         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
71088         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
71089         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
71090         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
71091         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
71092         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
71093         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
71094         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
71095         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
71096         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
71097         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
71098         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
71099         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
71100         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
71101         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
71102         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
71103         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
71104         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
71105         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
71106         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
71107         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
71108         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
71109         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
71110         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
71111         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
71112         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
71113         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
71114
71115         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
71116         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
71117         * include/ifunc-impl-list.h: New file.
71118         * misc/ifunc-impl-list.c: Likewise.
71119         * misc/Makefile (routines): Add ifunc-impl-list.
71120         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
71121         * string/test-string.h: Include <ifunc-impl-list.h>.
71122         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
71123         TEST_NAME]: New variables.
71124         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
71125         are defined.
71126         (test_init): Call __libc_ifunc_impl_list to initialize
71127         func_list if TEST_IFUNC and TEST_NAME are defined.
71128
71129         * string/Makefile (strop-tests): Add bcopy and bzero.
71130         * string/test-bcopy.c: New file.
71131         * string/test-bzero.c: Likewise.
71132         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
71133         defined.
71134         * string/test-memset.c: Support bzero test if TEST_BZERO is
71135         defined.
71136         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
71137         __libc_memmove.
71138         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
71139         __libc_memset.
71140         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
71141         of memset.
71142
71143 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
71144
71145         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
71146         * configure: Regenerated.
71147
71148         * Makeconfig (+link-static-before-libc): Don't include
71149         $(link-static-libc).
71150
71151         * libio/libio.h (_IO_pos_t): Remove.
71152
71153 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
71154
71155         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
71156         McGrath.
71157
71158 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
71159
71160         * crypt/crypt-entry.c: Include fips-private.h.
71161         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
71162         * crypt/md5c-test.c (main): Tolerate disabled MD5.
71163         * sysdeps/unix/sysv/linux/fips-private.h: New file.
71164         * sysdeps/generic/fips-private.h: New file, dummy fallback.
71165
71166 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
71167
71168         * crypt/crypt-private.h: Include stdbool.h.
71169         (_ufc_setup_salt_r): Return bool.
71170         * crypt/crypt-entry.c: Include errno.h.
71171         (__crypt_r): Return NULL with EINVAL for bad salt.
71172         * crypt/crypt_util.c (bad_for_salt): New.
71173         (_ufc_setup_salt_r): Check that salt is long enough and within
71174         the specified alphabet.
71175         * crypt/badsalttest.c: New file.
71176         * crypt/Makefile (tests): Add it.
71177         ($(objpfx)badsalttest): New.
71178
71179 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
71180
71181         * NEWS: Add entry for BZ #14602.
71182
71183 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
71184
71185         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
71186         type-generic.
71187         * math/libm-test.inc: Update comment listing what functions and
71188         macros are tested.
71189         (isgreater_test): New function.
71190         (isgreaterequal_test): Likewise.
71191         (isless_test): Likewise.
71192         (islessequal_test): Likewise.
71193         (islessgreater_test): Likewise.
71194         (isunordered_test): Likewise.
71195         (main): Call the new functions.
71196
71197 2012-10-09  Roland McGrath  <roland@hack.frob.com>
71198
71199         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
71200         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
71201         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
71202         * sysdeps/i386/configure: Regenerated.
71203         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
71204         * sysdeps/mach/configure: Regenerated.
71205         * sysdeps/mach/hurd/configure: Regenerated.
71206         * sysdeps/powerpc/configure: Regenerated.
71207         * sysdeps/powerpc/powerpc32/configure: Regenerated.
71208         * sysdeps/powerpc/powerpc64/configure: Regenerated.
71209         * sysdeps/s390/s390-32/configure: Regenerated.
71210         * sysdeps/s390/s390-64/configure: Regenerated.
71211         * sysdeps/sh/configure: Regenerated.
71212         * sysdeps/sparc/configure: Regenerated.
71213         * sysdeps/unix/sysv/linux/configure: Regenerated.
71214         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
71215         * sysdeps/x86_64/configure: Regenerated.
71216
71217         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
71218         defined.  Don't check if MAP is NULL.
71219
71220 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
71221
71222         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
71223         (_G_stat64): Likewise.
71224         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
71225         (_G_stat64): Likewise.
71226         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
71227         instead of struct _G_stat64.
71228         * libio/fileops.c (mmap_remap_check): Likewise.
71229         (decide_maybe_mmap): Likewise.
71230         (_IO_new_file_seekoff): Likewise.
71231         (_IO_file_stat): Likewise.
71232         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
71233         _G_off64_t.
71234         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
71235         instead of struct _G_stat64.
71236         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
71237
71238 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
71239
71240         [BZ #14602]
71241         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
71242         Replace with ...
71243         (CHECK_EOL): New macro.
71244         (two_way_short_needle): Check beginning of haystack for EOL.  Use
71245         CHECK_EOL.
71246         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
71247         Replace with CHECK_EOL.
71248         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
71249         Replace with CHECK_EOL.
71250
71251 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
71252
71253         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
71254         type-generic.
71255         * math/libm-test.inc: Update comment listing what functions and
71256         macros are tested.
71257         (finite_test): New function.
71258         (isinf_test): Likewise.
71259         (isnan_test): Likewise.
71260         (fpclassify_test): Test subnormal input.
71261         (isfinite_test): Likewise.
71262         (isnormal_test): Likewise.
71263         (main): Call the new functions.
71264
71265 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
71266
71267         [BZ #14660]
71268         * Makerules (%.dynsym): Force C locale when running
71269         $(OBJDUMP) --dynamic-syms.
71270
71271 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
71272
71273         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
71274         <stdint.h>.
71275
71276 2012-10-06  David S. Miller  <davem@davemloft.net>
71277
71278         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
71279         upper 32-bits of the length value in %o2 since we use branch-on-register
71280         tests which consider the entire 64-bit register.
71281
71282 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
71283
71284         * string/test-strstr.c (check2): Add a test for page boundary.
71285
71286 2012-10-05  David S. Miller  <davem@davemloft.net>
71287
71288         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
71289         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
71290         file.
71291         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
71292         sysdep_routines.
71293         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
71294         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
71295         and bzero when HWCAP_SPARC_CRYPTO is present.
71296
71297 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
71298
71299         [BZ #14602]
71300         * string/test-strstr.c (check2): New function.
71301         (test_main): Call check2.
71302
71303         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
71304         and bug-strchr1.
71305         * string/bug-strcasestr1.c (do_test): Moved to ...
71306         * string/test-strcasestr.c (check1): Here.  New function.
71307         (do_one_test): Break out result checking code into ...
71308         (check_result): This.  New function.
71309         (do_one_test): Call check_result.
71310         (test_main): Call check1.
71311         * string/bug-strchr1.c (do_test): Moved to ...
71312         * string/test-strchr.c (check1): Here.  New function.
71313         (do_one_test): Break out result checking code into ...
71314         (check_result): This.  New function.
71315         (do_one_test): Call check_result.
71316         (test_main): Call check1.
71317         * string/bug-strstr1.c (main): Moved to ...
71318         * string/test-strstr.c (check1): Here.  New function.
71319         (do_one_test): Break out result checking code into ...
71320         (check_result): This.  New function.
71321         (do_one_test): Call check_result.
71322         (test_main): Call check1.
71323         * string/bug-strcasestr1.c: Removed.
71324         * string/bug-strchr1.c: Likewise.
71325         * string/bug-strstr1.c: Likewise.
71326
71327         * elf/Makefile (dl-routines): Add hwcaps.
71328         * elf/dl-support.c (_dl_important_hwcaps): Removed.
71329         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
71330         (_dl_important_hwcaps): Moved to ...
71331         * elf/dl-hwcaps.c: Here.  New file.
71332         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
71333
71334         [BZ #14557]
71335         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
71336         if IS_IN_rtld isn't defined.
71337
71338         * elf/dl-support.c (_dl_sysinfo_map): New.
71339         Include "get-dynamic-info.h" and "setup-vdso.h".
71340         (_dl_non_dynamic_init): Call setup_vdso.
71341         * elf/dynamic-link.h: Don't include <assert.h>.
71342         (elf_get_dynamic_info): Moved to ...
71343         * elf/get-dynamic-info.h: Here.  New file.
71344         * elf/dynamic-link.h: Include "get-dynamic-info.h".
71345         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
71346         * elf/setup-vdso.h: Here.  New file.
71347         * elf/rtld.c: Include "setup-vdso.h".
71348         (dl_main): Call setup_vdso.
71349
71350 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
71351
71352         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
71353         creal in comment listing functions tested.  List finite, isinf,
71354         isnan, isless, islessequal, isgreater, isgreaterequal,
71355         islessgreater, isunordered, lgamma_r and pow10 as functions and
71356         macros not tested.  Mention which functions not tested are aliases
71357         for other functions.  Fix typo.  Note that signs of NaNs are not
71358         tested.
71359
71360         * scripts/config.guess: Update from config.git.
71361         * scripts/config.sub: Likewise.
71362
71363 2012-10-04  Roland McGrath  <roland@hack.frob.com>
71364
71365         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
71366         * misc/madvise.c (madvise): Renamed to __madvise.
71367         Make madvise a weak alias.
71368         * include/sys/mman.h: Declare __madvise.
71369         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
71370         * sysdeps/unix/syscalls.list
71371         (madvise): Make __madvise the strong name, and madvise a weak alias.
71372         * sysdeps/unix/sysv/linux/syscalls.list
71373         (madvise, mmap): Remove redundant entries.
71374         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
71375         * malloc/malloc.c (mtrim): Likewise.
71376         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
71377
71378 2012-10-03  Roland McGrath  <roland@hack.frob.com>
71379
71380         * sysdeps/mach/hurd/dl-cache.c: File removed.
71381         * config.h.in (USE_LDCONFIG): New #undef.
71382         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
71383         * configure: Regenerated.
71384         * elf/Makefile (dl-routines): Add dl-cache only under
71385         [$(use-ldconfig) = yes].
71386         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
71387         cache on [USE_LDCONFIG].
71388         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
71389         [USE_LDCONFIG].
71390         * elf/rtld.c (dl_main): Likewise.
71391
71392 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
71393
71394         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
71395         _SC_LEVEL4_CACHE_LINESIZE.
71396
71397 2012-10-03  Roland McGrath  <roland@hack.frob.com>
71398
71399         * sysdeps/unix/bsd/confstr.h: File removed.
71400
71401 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
71402
71403         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
71404         sys/sdt-config.h.
71405
71406 2012-10-02  Roland McGrath  <roland@hack.frob.com>
71407
71408         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
71409         Make 'mapoff' field ElfW(Off) rather than off_t.
71410
71411 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
71412
71413         * nscd/Makefile: Remove nscd-cflags and all its users.
71414         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
71415         (CFLAGS-nonlib): Add compiler flags for nscd modules.
71416
71417         [BZ #10631]
71418         * malloc.c (malloc_printerr): Clarify error message.
71419
71420 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
71421
71422         [BZ #14648]
71423         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
71424         Set bit_FMA_Usable if FMA is supported.
71425         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
71426         macro.
71427         (bit_FMA4_Usable): Updated.
71428         (index_FMA_Usable): New macro.
71429         (CPUID_FMA): Likewise.
71430         (HAS_FMA): Defined with bit_FMA_Usable.
71431
71432 2012-10-01  Roland McGrath  <roland@hack.frob.com>
71433
71434         * bits/types.h (__swblk_t): Type removed.
71435         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
71436         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
71437         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
71438         (__SWBLK_T_TYPE): Likewise.
71439         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
71440         (__SWBLK_T_TYPE): Likewise.
71441         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
71442         (__SWBLK_T_TYPE): Likewise.
71443         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
71444         (__SWBLK_T_TYPE): Likewise.
71445
71446 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
71447             Honza Horak <hhorak@redhat.com>
71448
71449         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
71450         (xdr_mapname): Use YPMAXMAP as maxsize.
71451         (xdr_peername): Use YPMAXPEER as maxsize.
71452         (xdr_keydat): Use YPAXRECORD as maxsize.
71453         (xdr_valdat): Use YPMAXRECORD as maxsize.
71454
71455 2012-10-01  Roland McGrath  <roland@hack.frob.com>
71456
71457         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
71458
71459         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
71460         * csu/init-first.c: ... here.
71461         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
71462         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
71463         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
71464         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
71465         * sysdeps/i386/init-first.c: File removed.
71466         * sysdeps/sh/init-first.c: File removed.
71467
71468 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
71469
71470         [BZ #14645]
71471         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
71472         if x * y might underflow to zero and z is zero.
71473         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
71474         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
71475         * math/libm-test.inc (min_subnorm_value): New variable.
71476         (fma_test): Add more tests.
71477         (fma_test_towardzero): Likewise.
71478         (fma_test_downward): Likewise.
71479         (fma_test_upward): Likewise.
71480         (initialize): Set min_subnorm_value.
71481
71482 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
71483
71484         [BZ #14638]
71485         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
71486         0 + 0.
71487         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
71488         mode for addition resulting in exact zero.
71489         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
71490         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
71491         exact 0 + 0.
71492         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
71493         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
71494         * math/libm-test.inc (fma_test): Add more tests.
71495         (fma_test_towardzero): New function.
71496         (fma_test_downward): Likewise.
71497         (fma_test_upward): Likewise.
71498         (main): Call the new functions.
71499
71500 2012-09-28  David S. Miller  <davem@davemloft.net>
71501
71502         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
71503
71504 2012-09-28  Roland McGrath  <roland@hack.frob.com>
71505
71506         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
71507         instead of SIGALRM.
71508
71509         * sysdeps/gnu/_G_config.h: Moved to ...
71510         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
71511         * sysdeps/mach/hurd/_G_config.h: Moved to ...
71512         * sysdeps/generic/_G_config.h: ... here.
71513
71514         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
71515
71516         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
71517
71518         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
71519         Conditionalize target on [libnss_test1.so-version].
71520
71521         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
71522
71523         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
71524         (elfobjdir): Move out of conditionals.
71525
71526         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
71527         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
71528         (__nss_lookup_function): Conditionalize label remove_from_tree on
71529         [!DO_STATIC_NSS || SHARED], matching its only use.
71530
71531 2012-09-28  David S. Miller  <davem@davemloft.net>
71532
71533         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
71534         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
71535         file.
71536         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
71537         sysdep_routines.
71538         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
71539         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
71540         when HWCAP_SPARC_CRYPTO is present.
71541
71542 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
71543
71544         * io/tst-mknodat.c: Create a FIFO instead of a socket.
71545
71546 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
71547
71548         [BZ #6530]
71549         * stdio-common/vfprintf.c (process_string_arg): Revert
71550         2000-07-22 change.
71551
71552 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
71553
71554         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
71555         for testcase.
71556         * stdio-common/tst-sprintf.c: Include <locale.h>
71557         (main): Test sprintf's handling of incomplete multibyte
71558         characters.
71559
71560 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
71561
71562         * elf/dl-runtime.c (VERSYMIDX): Removed.
71563         * elf/dl-version.c (VERSYMIDX): Likewise.
71564         * elf/do-rel.h (VERSYMIDX): Likewise.
71565         (VALIDX): Likewise.
71566         * elf/dynamic-link.h (VERSYMIDX): Likewise.
71567         * elf/rtld.c (VALIDX): Likewise.
71568         (ADDRIDX): Likewise.
71569         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
71570         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
71571         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
71572         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
71573         (VALIDX): Likewise.
71574         (ADDRIDX): Likewise.
71575
71576 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
71577
71578         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
71579
71580 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
71581
71582         [BZ #11438]
71583         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
71584         to global scope.
71585         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
71586         addresses are in the same scope as 192.0.2/24.
71587         * posix/gai.conf: Document new scope table defaults.
71588
71589 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
71590
71591         [BZ #5298]
71592         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
71593         for ftell.  Compute offsets from write pointers instead.
71594         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
71595
71596 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
71597
71598         [BZ #14543]
71599         * libio/Makefile (tests): New test case tst-fseek.
71600         * libio/tst-fseek.c: New test case to verify that fseek/ftell
71601         combination works in wide mode.
71602         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
71603         state when the external buffer state changes.
71604
71605 2012-09-27  David S. Miller  <davem@davemloft.net>
71606
71607         [BZ #14376]
71608         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
71609         pass reloc->r_addend in as the 'high' argument to
71610         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
71611
71612         * sysdeps/sparc/fpu/libm-test-ulps: Update.
71613
71614 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
71615
71616         * rt/tst-aio2.c: Include <pthread.h>.
71617         * rt/tst-aio3.c: Likewise.
71618
71619 2012-09-27  Steve Ellcey  <sellcey@mips.com>
71620
71621         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
71622
71623 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
71624
71625         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
71626         contents on [SHARED].
71627
71628 2012-09-26  Marek Polacek  <polacek@redhat.com>
71629
71630         [BZ #14530]
71631         [BZ #13741]
71632         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
71633         for C++ and GCC <4.3 as well as for non GCC compilers.
71634
71635 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
71636
71637         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71638
71639 2012-09-25  Roland McGrath  <roland@hack.frob.com>
71640
71641         * Makefile.in (all, install): Declare with .PHONY.
71642         Reported by Michael Hope <michael.hope@linaro.org>.
71643
71644 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
71645
71646         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
71647         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
71648         system header.
71649         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
71650         Likewise.
71651         (sydep_routines): Add the new and the internal functions.
71652         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
71653         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
71654         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
71655         (GLIBC_2.17): Add the new function.
71656         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
71657         (GLIBC_2.17): Likewise.
71658         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
71659         (GLIBC_2.17): Likewise.
71660         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
71661         (GLIBC_2.17): Likewise.
71662         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
71663
71664 2012-09-25  Alan Modra  <amodra@gmail.com>
71665
71666         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
71667         Add release barrier before setting once_control to say
71668         initialisation is done.  Add hints on lwarx.  Use macro in
71669         place of isync.
71670         (clear_once_control): Add release barrier.
71671
71672 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
71673
71674         [BZ #13629]
71675         * math/s_clog.c (__clog): Handle more values close to |z| = 1
71676         specially.
71677         * math/s_clog10.c (__clog10): Likewise.
71678         * math/s_clog10f.c (__clog10f): Likewise.
71679         * math/s_clog10l.c (__clog10l): Likewise.
71680         * math/s_clogf.c (__clogf): Likewise.
71681         * math/s_clogl.c (__clogl): Likewise.
71682         * math/Makefile (libm-calls): Add x2y2m1.
71683         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
71684         (__x2y2m1): Likewise.
71685         (__x2y2m1l): Likewise.
71686         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
71687         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
71688         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
71689         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
71690         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
71691         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
71692         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
71693         * sysdeps/i386/fpu/libm-test-ulps: Update.
71694         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
71695
71696         [BZ #14621]
71697         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
71698         int as type of variable DEPTH.
71699         (glob): Use size_t instead of int as type of variables NEWCOUNT
71700         and OLD_PATHC.
71701
71702 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71703
71704         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
71705         Add s_sincosf-sse2.
71706         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
71707         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
71708         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
71709         macros for using routine as __sincosf_ia32.
71710         Use macro for function declaration and weak_alias.
71711         * sysdeps/i386/fpu/libm-test-ulps: Update.
71712
71713         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
71714         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71715
71716         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
71717         subnormal argument.
71718         * math/s_cexpf.c (__cexpf): Likewise.
71719         * math/s_csinf.c (__csinf): Likewise.
71720         * math/s_csinhf.c (__csinhf): Likewise.
71721         * math/s_ctanf.c (__ctanf): Likewise.
71722         * math/s_ctanhf.c (__ctanhf): Likewise.
71723         * math/s_ccosh.c (__ccoshf): Likewise.
71724         * math/s_cexp.c (__cexpl): Likewise.
71725         * math/s_csin.c (__csin): Likewise.
71726         * math/s_csinh.c (__csinh): Likewise.
71727         * math/s_ctan.c (__ctan): Likewise.
71728         * math/s_ctanh.c (ctanh): Likewise.
71729         * math/s_ccoshl.c (__ccoshl): Likewise.
71730         * math/s_cexpl.c (__cexpl): Likewise.
71731         * math/s_csinl.c (__csinl): Likewise.
71732         * math/s_csinhl.c (__csinhl): Likewise.
71733         * math/s_ctanl.c (__ctanl): Likewise.
71734         * math/s_ctanhl.c (__ctanhl): Likewise.
71735
71736 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
71737
71738         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
71739         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
71740         (_IO_off_t): Define to __off_t, not _G_off_t.
71741         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
71742         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
71743         (_IO_wint_t): Define to wint_t, not _G_wint_t.
71744         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
71745         type of __dummy and __dummy2 fields.
71746         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
71747         (_G_ssize_t): Likewise.
71748         (_G_off_t): Likewise.
71749         (_G_pid_t): Likewise.
71750         (_G_uid_t): Likewise.
71751         (_G_wchar_t): Likewise.
71752         (_G_wint_t): Likewise.
71753         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
71754         (_G_ssize_t): Likewise.
71755         (_G_off_t): Likewise.
71756         (_G_pid_t): Likewise.
71757         (_G_uid_t): Likewise.
71758         (_G_wchar_t): Likewise.
71759         (_G_wint_t): Likewise.
71760         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
71761         (_G_ssize_t): Likewise.
71762         (_G_off_t): Likewise.
71763         (_G_pid_t): Likewise.
71764         (_G_uid_t): Likewise.
71765         (_G_wchar_t): Likewise.
71766         (_G_wint_t): Likewise.
71767
71768 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
71769
71770         * malloc/arena.c: Include malloc-sysdep.h.
71771         (shrink_heap): Use check_may_shrink_heap to decide if madvise
71772         is sufficient to shrink the heap or an unmap is needed.
71773         * sysdeps/generic/malloc-sysdep.h: New file.  Define
71774         new function check_may_shrink_heap.
71775         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
71776         new function check_may_shrink_heap.
71777
71778 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
71779
71780         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
71781         comments.
71782
71783 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
71784
71785         * catgets/test-gencat.sh: Add "set -e".
71786         * elf/tst-pathopt.sh: Likewise.
71787         * grp/tst_fgetgrent.sh: Likewise.
71788         * iconvdata/run-iconv-test.sh: Likewise.
71789         * intl/tst-gettext.sh: Likewise.
71790         * intl/tst-gettext2.sh: Likewise.
71791         * intl/tst-gettext4.sh: Likewise.
71792         * intl/tst-gettext6.sh: Likewise.
71793         * intl/tst-translit.sh: Likewise.
71794         * io/ftwtest-sh: Likewise.
71795         * libio/test-freopen.sh: Likewise.
71796         * malloc/tst-mtrace.sh: Likewise.
71797         * posix/globtest.sh: Likewise.
71798         * posix/tst-getconf.sh: Likewise.
71799         * posix/wordexp-tst.sh: Likewise.
71800         * stdio-common/tst-printf.sh: Likewise.
71801         * stdio-common/tst-unbputc.sh: Likewise.
71802         * stdlib/tst-fmtmsg.sh: Likewise.
71803         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
71804         * catgets/Makefile: Do not specify -e option when running
71805         testsuite shell scripts.
71806         * elf/Makefile: Likewise.
71807         * grp/Makefile: Likewise.
71808         * iconvdata/Makefile: Likewise.
71809         * intl/Makefile: Likewise.
71810         * io/Makefile: Likewise.
71811         * libio/Makefile: Likewise.
71812         * malloc/Makefile: Likewise.
71813         * posix/Makefile: Likewise.
71814         * stdio-common/Makefile: Likewise.
71815         * stdlib/Makefile: Likewise.
71816         * sysdeps/x86_64/Makefile: Likewise.
71817
71818         * io/ftwtest-sh: Add copyright header.
71819         * posix/globtest.sh: Likewise.
71820         * posix/tst-getconf.sh: Likewise.
71821         * posix/wordexp-tst.sh: Likewise.
71822         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
71823
71824 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
71825
71826         [BZ #13679]
71827         * Makeconfig (+link): Defined as $(+link-static) if
71828         $(build-shared) isn't yes.
71829         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
71830         isn't yes.
71831         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
71832
71833         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
71834
71835         [BZ #14562]
71836         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
71837         new chunk size with MALLOC_ALIGN_MASK.
71838
71839 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
71840
71841         [BZ #5044]
71842         * stdio-common/printf_fphex.c: Include <stdbool.h> and
71843         <rounding-mode.h>.
71844         (__printf_fphex): Determine rounding using get_rounding_mode and
71845         round_away.
71846         * stdio-common/tst-printf-round.c (struct hex_test): New
71847         structure.
71848         (hex_tests): New variable.
71849         (test_hex_in_one_mode): New function.
71850         (do_test): Also run tests for hex float output.
71851
71852 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
71853
71854         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
71855         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
71856         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
71857         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
71858         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
71859         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
71860         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
71861         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
71862
71863 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
71864
71865         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
71866         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
71867         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
71868         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
71869
71870 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
71871
71872         [BZ #14579]
71873         * elf/rtld.c (dl_main): Limit the check for self loading to normal
71874         mode only.
71875         * elf/tst-rtld-load-self.sh: New test.
71876         * elf/Makefile: Run it.
71877
71878 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
71879
71880         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
71881         (tst-writev-ENV): Remove.
71882         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
71883
71884 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
71885
71886         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
71887
71888 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
71889
71890         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
71891         unconditional.
71892         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
71893         Likewise.
71894         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
71895         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
71896         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
71897         Likewise.
71898
71899 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
71900
71901         [BZ #14587]
71902         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
71903         * config.make.in (have-cpp-asm-debuginfo): Removed.
71904         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
71905         * configure: Regenerated.
71906
71907 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
71908
71909         [BZ #5044]
71910         * stdio-common/printf_fp.c: Include <stdbool.h> and
71911         <rounding-mode.h>.
71912         (___printf_fp): Determine rounding using get_rounding_mode and
71913         round_away.
71914         * stdio-common/tst-printf-round.c: New file.
71915         * stdio-common/Makefile (tests): Add tst-printf-round.
71916         (link-libm): New variable.
71917         ($(objpfx)tst-printf-round): Depend in $(link-libm).
71918
71919 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
71920
71921         [BZ #14576]
71922         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
71923         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
71924         Likewise.
71925         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
71926         Likewise.
71927
71928 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
71929
71930         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
71931         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
71932         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
71933         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
71934
71935 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
71936
71937         [BZ #14518]
71938         * include/rounding-mode.h: New file.
71939         * sysdeps/generic/get-rounding-mode.h: Likewise.
71940         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
71941         * stdlib/strtod_l.c: Include <rounding-mode.h>.
71942         (MAX_VALUE): New macro.
71943         (MIN_VALUE): Likewise.
71944         (overflow_value): New function.
71945         (underflow_value): Likewise.
71946         (round_and_return): Use overflow_value and underflow_value to
71947         determine return values in overflow and underflow cases.  Use
71948         round_away to determine rounding depending on rounding mode.
71949         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
71950         determine return values in overflow and underflow cases.
71951         * stdlib/tst-strtod-round.c: Include <fenv.h>.
71952         (struct test_results): New structure.
71953         (struct test): Use struct test_results to store expected results
71954         for all rounding modes.
71955         (TEST): Include expected results for all rounding modes.
71956         (test_in_one_mode): New function.
71957         (do_test): Use test_in_one_mode to compute and check results.
71958         Check results for all rounding modes.
71959         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
71960         $(link-libm).
71961
71962 2012-12-09  Allan McRae  <allan@archlinux.org>
71963
71964         * sysdeps/i386/fpu/libm-test-ulps: Update
71965
71966 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
71967
71968         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
71969         (_G_int32_t): Likewise.
71970         (_G_uint16_t): Likewise.
71971         (_G_uint32_t): Likewise.
71972         (_G_HAVE_BOOL): Likewise.
71973         (_G_HAVE_ATEXIT): Likewise.
71974         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
71975         (_G_HAVE_IO_FILE_OPEN): Likewise.
71976         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
71977         (_G_int32_t): Likewise.
71978         (_G_uint16_t): Likewise.
71979         (_G_uint32_t): Likewise.
71980         (_G_HAVE_BOOL): Likewise.
71981         (_G_HAVE_ATEXIT): Likewise.
71982         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
71983         (_G_HAVE_IO_FILE_OPEN): Likewise.
71984         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
71985         (_G_int32_t): Likewise.
71986         (_G_uint16_t): Likewise.
71987         (_G_uint32_t): Likewise.
71988         (_G_HAVE_BOOL): Likewise.
71989         (_G_HAVE_ATEXIT): Likewise.
71990         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
71991         (_G_HAVE_IO_FILE_OPEN): Likewise.
71992
71993 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
71994
71995         * csu/libc-tls.c: Update copyright years.
71996
71997 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
71998
71999         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
72000         [!_G_USING_THUNKS]: Remove conditional code.
72001         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
72002         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
72003
72004         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
72005         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
72006         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
72007         (_G_VTABLE_LABEL_PREFIX): Likewise.
72008         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
72009         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
72010         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
72011         (_G_VTABLE_LABEL_PREFIX): Likewise.
72012         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
72013         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
72014         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
72015         (_G_VTABLE_LABEL_PREFIX): Likewise.
72016         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
72017
72018 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
72019
72020         * libio/Makefile: Include ../Makeconfig before tests.
72021         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
72022         only if $(build-shared) is yes.
72023
72024         * iconv/gconv_db.c: Update copyright years.
72025
72026 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72027
72028         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
72029         unwind info if defined PIC. Fix special cases description.
72030         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
72031
72032         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
72033         DP_HI_MASK entry.
72034         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
72035
72036 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
72037
72038         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
72039
72040         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
72041         is NULL.
72042
72043         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
72044         (LDLIBS-tst-chk4): This.
72045         (LDFLAGS-tst-chk5): Renamed to ...
72046         (LDLIBS-tst-chk5): This.
72047         (LDFLAGS-tst-chk6): Renamed to ...
72048         (LDLIBS-tst-chk6): This.
72049         (LDFLAGS-tst-lfschk4): Renamed to ...
72050         (LDLIBS-tst-lfschk4): This.
72051         (LDFLAGS-tst-lfschk5): Renamed to ...
72052         (LDLIBS-tst-lfschk5): This.
72053         (LDFLAGS-tst-lfschk6): Renamed to ...
72054         (LDLIBS-tst-lfschk6): This.
72055
72056         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
72057         on $(common-objpfx)soversions.mk.
72058
72059 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
72060
72061         [BZ #10014]
72062         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
72063         example host name.
72064
72065 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
72066
72067         * malloc/arena.c (arena_get_retry): New function that gets
72068         another arena for the caller to try its request on.
72069         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
72070         current arena cannot fulfill the request.
72071         (__libc_memalign): Likewise.
72072         (__libc_memalign): Likewise.
72073         (__libc_pvalloc): Likewise.
72074         (__libc_calloc): Likewise.
72075
72076 2012-09-05  John Tobey  <john.tobey@gmail.com>
72077
72078         [BZ #13542]
72079         * manual/arith.texi (Operations on Complex): Fix description
72080         of carg branch cut.
72081
72082 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
72083
72084         [BZ #10014]
72085         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
72086         host name.
72087
72088         [BZ #10038]
72089         * manual/memory.texi (Memory): Make order of menu items match
72090         order of sections.
72091
72092 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
72093
72094         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
72095         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
72096         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
72097
72098 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
72099
72100         * csu/libc-tls.c (static_dtv): Renamed to ...
72101         (_dl_static_dtv): This.  Make it global.
72102         (_dl_initial_dtv): Removed.
72103         (__libc_setup_tls): Updated.
72104         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
72105         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
72106         DL_INITIAL_DTV.
72107
72108 2012-09-06  Petr Machata  <pmachata@redhat.com>
72109
72110         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
72111         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
72112         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
72113         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
72114
72115 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
72116
72117         [BZ #14545]
72118         * csu/libc-tls.c (_dl_initial_dtv): New variable.
72119         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
72120         freeing dtv[-1].
72121
72122 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
72123
72124         [BZ #14544]
72125         * Makeconfig (link-static-before-libc): Replace $(+prector)
72126         with $(+prectorT).
72127         (link-static-after-libc): Replace $(+postctor) with
72128         $(+postctorT).
72129         (link-bounded): Replace $(+prector)/$(+postctor) with
72130         $(+prectorT)/$(+postctorT).
72131         (+prectorT): New macro.
72132         (+postctorT): Likewise.
72133
72134 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
72135
72136         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
72137         (round_str): Handle values above the maximum for IBM long double
72138         as inexact.
72139         * stdlib/tst-strtod-round.c (tests): Regenerated.
72140
72141 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
72142
72143         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
72144         assembler flag.
72145         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
72146         zarch_nohighgprs around the zarch optimized routines.
72147         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
72148         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
72149         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
72150         for zarch.
72151
72152 2012-09-05  David S. Miller  <davem@davemloft.net>
72153
72154         * sysdeps/sparc/fpu/libm-test-ulps: Update.
72155
72156         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
72157         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
72158         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
72159         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
72160         entries.
72161
72162 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
72163
72164         * malloc/arena.c: Fold copyright years.
72165         * malloc/mcheck.c, malloc/memusage.c: Likewise.
72166
72167 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
72168
72169         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
72170
72171 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
72172
72173         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
72174
72175 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
72176
72177         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
72178         change internal state upon failure.
72179
72180 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
72181
72182         * malloc/mcheck.c (mcheck_check_all): Fix typo.
72183         * malloc/memusage.c (mmap): Likewise.
72184         (mmap64, mremap): Likewise.  Adjust name in comment.
72185
72186 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
72187
72188         * libio/fileops.c: Fix typos in comments.
72189         * libio/oldfileops.c: Likewise.
72190         * libio/wfileops.c: Likewise.
72191
72192 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
72193
72194         [BZ #1349]
72195         * malloc/Makefile (tests): Add tst-malloc-usable test case.
72196         (tst-malloc-usable-ENV): Set environment for test case.
72197         * malloc/hooks.c (malloc_check_get_size): New function to get
72198         requested size.
72199         * malloc/malloc.c (musable): Use malloc_check_get_size.
72200         * malloc/tst-malloc-usable.c: New test case.
72201
72202 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
72203
72204         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
72205
72206 2012-09-05  Allan McRae  <allan@archlinux.org>
72207
72208         [BZ #13966]
72209         * configure.in (CXX_SYSINCLUDES): Use compiler output to
72210         determine header location.
72211         * configure: Regenerated.
72212
72213 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
72214
72215         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
72216         float format.
72217         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
72218         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
72219         format.
72220         (test): Regenerate.
72221
72222 2012-09-04  David S. Miller  <davem@davemloft.net>
72223
72224         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
72225         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
72226         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
72227
72228 2012-09-04  Florian Weimer  <fweimer@redhat.com>
72229
72230         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
72231         failures.
72232
72233         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
72234
72235 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
72236
72237         [BZ #9914]
72238         * libio/iogetdelim.c: Include <limits.h>.
72239         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
72240         + len + 1 would overflow.
72241
72242 2012-09-03  Andreas Jaeger  <aj@suse.de>
72243
72244         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
72245         * sysdeps/i386/fpu/libm-test-ulps: Update.
72246
72247 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72248
72249         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
72250         Add s_sinf-sse2, s_conf-sse2.
72251
72252         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
72253         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
72254         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
72255         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
72256
72257         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
72258         for using routine as __sinf_ia32.
72259         Use macro for function declaration and weak_alias.
72260         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
72261         for using routine as __cosf_ia32.
72262         Use macro for function declaration and weak_alias.
72263
72264         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
72265         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
72266
72267         * sysdeps/x86_64/fpu/s_sinf.S: New file.
72268         * sysdeps/x86_64/fpu/s_cosf.S: New file.
72269         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
72270
72271         * math/libm-test.inc (cos_test): Add more test cases.
72272         (sin_test): Likewise.
72273         (sincos_test): Likewise.
72274
72275 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
72276
72277         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
72278         (IFUNC_RESOLVE): Make pointers to the specialized implementations
72279         hidden.
72280         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
72281
72282 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
72283
72284         [BZ #14538]
72285         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
72286         first element of the GOT.
72287         (elf_machine_load_address): Return the difference between
72288         the runtime address of _DYNAMIC and elf_machine_dynamic ().
72289
72290 2012-09-01  Allan McRae  <allan@archlinux.org>
72291
72292         [BZ #13412]
72293         * configure.in (AWK): Require gawk version 3.0 or later.
72294         * configure: Regenerated.
72295
72296 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
72297
72298         * sysdeps/unix/sysv/linux/kernel-features.h
72299         (__ASSUME_POSIX_CPU_TIMERS): Remove.
72300         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
72301         [__NR_clock_getres]: Make code unconditional.
72302         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
72303         (clock_getcpuclockid): Remove code left unreachable by removal of
72304         conditionals.
72305         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
72306         code unconditional.
72307         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
72308         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
72309         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
72310         Make code unconditional.
72311         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
72312         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
72313         * sysdeps/unix/sysv/linux/clock_settime.c
72314         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
72315         conditional code.
72316         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
72317         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
72318
72319 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
72320
72321         [BZ #14476]
72322         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
72323         scripts/test-installation.pl.
72324
72325         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
72326         and $ld_so_version if it is set.
72327
72328 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
72329
72330         [BZ #14516]
72331         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
72332         failure if reading from procfs failed.
72333         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
72334
72335 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
72336
72337         * sysdeps/unix/sysv/linux/kernel-features.h
72338         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
72339         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
72340         Remove conditional code.
72341         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
72342         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
72343         Remove conditional code.
72344         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
72345         * sysdeps/unix/sysv/linux/i386/fxstat.c
72346         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
72347         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
72348         * sysdeps/unix/sysv/linux/i386/fxstatat.c
72349         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
72350         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
72351         * sysdeps/unix/sysv/linux/i386/lxstat.c
72352         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
72353         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
72354         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
72355         Remove conditional code.
72356         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
72357         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
72358         Remove conditional code.
72359         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
72360         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
72361         <kernel-features.h>.
72362         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
72363         Remove.
72364         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
72365         Remove conditional code.
72366         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
72367         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
72368         Remove conditional.
72369
72370 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
72371
72372         [BZ #5400]
72373         * NEWS: Add fixed bug number.
72374
72375 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
72376
72377         [BZ #14519]
72378         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
72379         underflowing exponent in case of negative sign.
72380         * stdlib/tst-strtod-round-data: Add more tests.
72381         * stdlib/tst-strtod-round.c (tests): Regenerated.
72382
72383         [BZ #3479]
72384         * stdlib/strtod_l.c (NDIG): Remove.
72385         (HEXNDIG): Likewise.
72386         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
72387         smallest representable value.
72388         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
72389         lie within an exact representation of 1/2 ulp of the result.
72390         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
72391         unconditionally.
72392         (TENS_P9_IDX): Define unconditionally.
72393         (TENS_P9_SIZE): Likewise.
72394         (TENS_P10_IDX): Likewise.
72395         (TENS_P10_SIZE): Likewise.
72396         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
72397         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
72398         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
72399         entries for 10^2^13 and 10^2^14.
72400         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
72401         (TENS_P13_IDX): Define.
72402         (TENS_P13_SIZE): Likewise.
72403         (TENS_P14_IDX): Likewise.
72404         (TENS_P14_SIZE): Likewise.
72405         (_fpioconst_pow10): Change array size to
72406         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
72407         unconditional.
72408         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
72409         1024]: Add entries for 10^2^13 and 10^2^14.
72410         [LAST_POW10 > _LAST_POW10]: Remove #error.
72411         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
72412         (_fpioconst_pow10): Change array size to
72413         FPIOCONST_POW10_ARRAY_SIZE.
72414         * stdlib/gen-fpioconst.c: New file.
72415         * stdlib/gen-tst-strtod-round.c: Likewise.
72416         * stdlib/tst-strtod-round-data: Likewise.
72417         * stdlib/tst-strtod-round.c: Likewise.
72418         * stdlib/Makefile (tests): Add tst-strtod-round.
72419
72420         [BZ #14459]
72421         * stdlib/strtod_l.c: Include <stdint.h>.
72422         (NDEBUG): Do not define.
72423         (round_and_return): Change EXPONENT parameter to type intmax_t.
72424         Rearrange calculations to avoid internal overflow possibilities.
72425         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
72426         Rearrange calculations to avoid internal overflow possibilities.
72427         Assert that number fits inside MPNSIZE limbs.
72428         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
72429         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
72430         calculations and add assertions to avoid internal overflow
72431         possibilities.  Add casts to avoid signed/unsigned operations.
72432         * stdlib/tst-strtod-overflow.c: New file.
72433         * stdlib/Makefile (tests): Add tst-strtod-overflow.
72434
72435 2012-08-25  Marek Polacek  <polacek@redhat.com>
72436
72437         * time/time.h: Fix some typos in comments.
72438
72439 2012-08-23  Roland McGrath  <roland@hack.frob.com>
72440
72441         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
72442         * posix/tst-rfc3484-2.c: Likewise.
72443         * posix/tst-rfc3484-3.c: Likewise.
72444
72445 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
72446
72447         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
72448         (EF_ARM_ABI_FLOAT_HARD): Likewise.
72449
72450 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
72451
72452         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
72453         #include of fxstatat64.c.
72454
72455 2012-08-22  Roland McGrath  <roland@hack.frob.com>
72456
72457         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
72458         * shadow/getspent_r.c: Likewise.
72459         * shadow/getspnam.c: Likewise.
72460         * shadow/getspnam_r.c: Likewise.
72461         * gshadow/getsgent.c: Likewise.
72462         * gshadow/getsgent_r.c: Likewise.
72463         * gshadow/getsgnam.c: Likewise.
72464         * gshadow/getsgnam_r.c: Likewise.
72465         * inet/getnetbyad.c: Likewise.
72466         * inet/getnetbyad_r.c: Likewise.
72467         * inet/getnetbynm.c: Likewise.
72468         * inet/getnetbynm_r.c: Likewise.
72469         * inet/getnetent.c: Likewise.
72470         * inet/getnetent_r.c: Likewise.
72471         * inet/getproto.c: Likewise.
72472         * inet/getproto_r.c: Likewise.
72473         * inet/getprtent.c: Likewise.
72474         * inet/getprtent_r.c: Likewise.
72475         * inet/getprtname.c: Likewise.
72476         * inet/getprtname_r.c: Likewise.
72477         * inet/getrpcbyname.c: Likewise.
72478         * inet/getrpcbyname_r.c: Likewise.
72479         * inet/getrpcbynumber.c: Likewise.
72480         * inet/getrpcbynumber_r.c: Likewise.
72481         * inet/getrpcent.c: Likewise.
72482         * inet/getrpcent_r.c: Likewise.
72483         * inet/getaliasent.c: Likewise.
72484         * inet/getaliasent_r.c: Likewise.
72485         * inet/getaliasname.c: Likewise.
72486         * inet/getaliasname_r.c: Likewise.
72487         * nscd/getgrgid_r.c: Likewise.
72488         * nscd/getgrnam_r.c: Likewise.
72489         * nscd/gethstbyad_r.c: Likewise.
72490         * nscd/gethstbynm3_r.c: Likewise.
72491         * nscd/getpwnam_r.c: Likewise.
72492         * nscd/getpwuid_r.c: Likewise.
72493         * nscd/getsrvbynm_r.c: Likewise.
72494         * nscd/getsrvbypt_r.c: Likewise.
72495         * nscd/gai.c: Likewise.
72496
72497         * configure.in (build_nscd): New substituted variable, set
72498         by --disable-build-nscd and defaults to $use_nscd.
72499         * configure: Regenerated.
72500         * config.make.in (build-nscd): New substituted variable.
72501         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
72502         Change conditional to require [$(build-nscd) = yes] as well.
72503         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
72504
72505         [BZ #13696]
72506         * configure.in (use_nscd): New substituted variable, set by
72507         --disable-nscd.  If enabled, define USE_NSCD.
72508         * configure: Regenerated.
72509         * config.h.in: Add USE_NSCD.
72510         * config.make.in (use-nscd): New substituted variable.
72511         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
72512         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
72513         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
72514         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
72515         (CFLAGS-getgrnam_r.c): Likewise.
72516         (CFLAGS-initgroups.c): Likewise.
72517         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
72518         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
72519         Variables removed.
72520         * inet/getnetgrent_r.c
72521         (nscd_setnetgrent): New function, broken out of ...
72522         (setnetgrent): ... here.  Call it.
72523         (innetgr): Conditionalize nscd bits on [USE_NSCD].
72524         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
72525         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
72526         * nscd/Makefile (routines, aux): Move definitions after include of
72527         Makeconfig.  Conditionalize on [$(use-nscd) != no].
72528         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
72529         Conditionalize on [USE_NSCD].
72530         (is_nscd, nscd_init_cb): Likewise.
72531         (nss_load_library): Conditionalize init callback on [USE_NSCD].
72532         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
72533         * nss/nss_db/db-init.c: Likewise.
72534         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
72535         [USE_NSCD].
72536         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
72537         (make_request): Use it.
72538         (cache_valid_p): New function.
72539         (__check_pf): Use it.
72540         * NEWS: Add item for --disable-nscd.
72541
72542 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
72543
72544         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
72545         to support sed >= 4.2.1-20-ga9bf076.
72546         * configure: Regenerated.
72547
72548 2012-08-22  Roland McGrath  <roland@hack.frob.com>
72549
72550         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
72551         Conditionalize whole body on [IREL].
72552
72553 2012-08-22  Jeff Law <law@redhat.com>
72554
72555         [BZ #14505]
72556         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
72557         if the family is PF_UNSPEC.
72558
72559 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
72560
72561         * Makerules (lib-version): Rename from V.
72562         (install-lib-nosubdir): Change V to lib-version.
72563
72564 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
72565
72566         [BZ #14252]
72567         * powerpc32/power6/wcschr.c: New file.
72568         * powerpc32/power6/wcscpy.c: New file.
72569         * powerpc32/power6/wcsrchr.c: New file.
72570         * powerpc64/power6/wcschr.c: New file.
72571         * powerpc64/power6/wcscpy.c: New file.
72572         * powerpc64/power6/wcsrchr.c: New file.
72573
72574 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
72575
72576         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
72577         (two_way_short_needle): Use it.
72578         * string/strstr.c (AVAILABLE1_USES_J): Define.
72579         * string/strcasestr.c: Likewise.
72580
72581         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
72582         array references.
72583         * string/strcasestr.c (TOLOWER): Make side-effect safe.
72584
72585         [BZ #11607]
72586         * NEWS: Add an entry.
72587         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
72588         define their defaults.
72589         (two_way_short_needle): Detect end-of-string on-the-fly.
72590         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
72591         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
72592         * string/bug-strcasestr1.c: New test.
72593         * string/Makefile: Run it.
72594
72595 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
72596
72597         [BZ #11607]
72598         * string/str-two-way.h (two_way_short_needle): Optimize matching of
72599         the first character.
72600
72601 2012-08-21  Roland McGrath  <roland@hack.frob.com>
72602
72603         * csu/elf-init.c (__libc_csu_irel): Function removed.
72604         * csu/libc-start.c (apply_irel): New function.
72605         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
72606
72607 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
72608
72609         * sysdeps/unix/sysv/linux/kernel-features.h
72610         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
72611         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
72612         <kernel-features.h>.
72613         [__NR_fadvise64_64]: Make code unconditional.
72614         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
72615         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
72616         !__NR_fadvise64_64)]: Likewise.
72617         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
72618         !__NR_fadvise64_64))]: Likewise.
72619         [__NR_fadvise64]: Make code unconditional.
72620         [!__NR_fadvise64]: Remove conditional code.
72621         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
72622         <kernel-features.h>.
72623         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
72624         unconditional.
72625         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
72626         conditional code.
72627         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
72628         not include <kernel-features.h>.
72629         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
72630         unconditional.
72631         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
72632         conditional code.
72633         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
72634         include <kernel-features.h>.
72635         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
72636         unconditional.
72637         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
72638         conditional code.
72639
72640 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
72641
72642         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
72643         slight instruction rearrangements per scrollpipe analysis.
72644         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
72645
72646 2012-08-20  Roland McGrath  <roland@hack.frob.com>
72647
72648         * manual/syslog.texi (syslog; vsyslog, closelog):
72649         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
72650         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
72651
72652         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
72653         DSOCAPS to match condition on defining it.
72654
72655 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
72656
72657         * sysdeps/unix/sysv/linux/kernel-features.h
72658         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
72659         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
72660         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
72661         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
72662         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
72663         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
72664         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
72665         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
72666         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
72667         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
72668
72669         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
72670         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
72671
72672         * sysdeps/unix/sysv/linux/kernel-features.h
72673         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
72674         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
72675         unconditional.
72676         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
72677         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
72678         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
72679         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
72680         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
72681         Make code unconditional.
72682         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
72683         (__mmap64) [!__NR_mmap2]: Likewise.
72684         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
72685         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
72686         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
72687         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
72688         [__NR_mmap2]: Make code unconditional.
72689         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
72690         (__mmap64) [!__NR_mmap2]: Likewise.
72691
72692 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
72693
72694         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
72695
72696 2012-08-18  Andreas Jaeger  <aj@suse.de>
72697
72698         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
72699
72700 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
72701
72702         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
72703         * include/unistd.h (__have_sock_cloexec): Likewise.
72704         (__have_pipe2): Likewise.
72705         (__have_dup3): Likewise.
72706
72707 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
72708
72709         [BZ #9685]
72710         * include/unistd.h (__have_pipe2): Change define into an extern int.
72711         (__have_dup3): Likewise.
72712         * socket/have_sock_cloexec.c: Include fcntl.h.
72713         (__have_pipe2): New variable.
72714         (__have_dup3): Likewise.
72715
72716 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
72717
72718         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
72719
72720 2012-08-17  Marek Polacek  <polacek@redhat.com>
72721
72722         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
72723         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
72724
72725 2012-08-17  Roland McGrath  <roland@hack.frob.com>
72726
72727         * configure.in: Add AC_SUBST for sysheaders.
72728         * configure: Regenerated.
72729         * config.make.in (sysheaders): New substituted variable.
72730
72731         * sysdeps/unix/mkfifo.c: Moved ...
72732         * sysdeps/posix/mkfifo.c: ... here.
72733         * sysdeps/unix/mkfifoat.c: Moved ...
72734         * sysdeps/posix/mkfifoat.c: ... here.
72735
72736         * sysdeps/unix/utime.c: Moved ...
72737         * sysdeps/posix/utime.c: ... here.
72738
72739         * sysdeps/unix/time.c: Moved ...
72740         * sysdeps/posix/time.c: ... here.
72741         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
72742         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
72743
72744         * sysdeps/unix/nice.c: Moved ...
72745         * sysdeps/posix/nice.c: ... here.
72746
72747         * sysdeps/unix/alarm.c: Moved ...
72748         * sysdeps/posix/alarm.c: ... here.
72749
72750         * intl/Makefile ($(codeset_mo)): Depend on the input file.
72751
72752 2012-08-17  Jeff Law <law@redhat.com>
72753
72754         * intl/Makefile (codeset_mo): New variable.
72755         ($(codeset_mo)): New target.
72756         (tst-codeset.out): Depend on that.  Remove explicit rule.
72757         (tst-gettext3.out, tst-gettext5.out): Likewise.
72758         (LOCPATH-ENV, tst-codeset-ENV): New variables.
72759         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
72760         * intl/tst-codeset.sh: Remove.
72761         * intl/tst-gettext3.sh: Likewise.
72762         * intl/tst-gettext5.sh: Likewise.
72763
72764 2012-08-17  Roland McGrath  <roland@hack.frob.com>
72765
72766         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
72767         * sysdeps/unix/syscalls.list: ... here.
72768
72769         * sysdeps/posix/getaddrinfo.c
72770         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
72771         (gaiconf_init, gaiconf_reload): Use them.
72772         [!_STATBUF_ST_NSEC]
72773         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
72774         Define using time_t rather than struct timespec.
72775
72776         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
72777         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
72778         Macros removed.
72779         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
72780         [!NO_THREADS].
72781         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
72782         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
72783         Likewise.
72784
72785         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
72786         __libc_cleanup_push argument.
72787
72788         * bits/param.h: New file.
72789         * misc/sys/param.h: New file.
72790         * include/sys/param.h: New file.
72791         * misc/Makefile (headers): Add bits/param.h.
72792         * sysdeps/generic/sys/param.h: File removed.
72793         * sysdeps/unix/sysv/linux/bits/param.h: New file.
72794         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
72795         * sysdeps/mach/hurd/bits/param.h: New file.
72796         * sysdeps/mach/hurd/sys/param.h: File removed.
72797
72798         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
72799         last change.
72800
72801         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
72802         [_IO_MTSAFE_IO].
72803         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
72804         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
72805         New macros.
72806
72807         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
72808         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
72809         rather than -D_IO_MTSAFE_IO conditionally.
72810         * stdio-common/Makefile (CPPFLAGS): Likewise.
72811         * wcsmbs/Makefile (CPPFLAGS): Likewise.
72812         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
72813         Use $(libio-mtsafe).
72814         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
72815         of -D_IO_MTSAFE_IO.
72816         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
72817         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
72818         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
72819         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
72820         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
72821         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
72822         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
72823         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
72824         (CFLAGS-fread_u_chk.c): Likewise.
72825         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
72826         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
72827         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
72828         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
72829         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
72830         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
72831         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
72832         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
72833         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
72834
72835         * libio/Makefile: Test [$(libc-reentrant) = yes]
72836         instead of [$(filter %REENTRANT, $(defines)) nonempty].
72837
72838         * Makeconfig
72839         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
72840         * sysdeps/pthread/configure: File removed.
72841         * sysdeps/pthread/Makeconfig: New file.
72842         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
72843         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
72844
72845 2012-08-16  Gary Benson  <gbenson@redhat.com>
72846
72847         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
72848         unmapping the first object in a namespace.
72849
72850 2012-08-16  Roland McGrath  <roland@hack.frob.com>
72851
72852         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
72853         (__internal_setnetgrent): ... this.  Add internal_function to
72854         definition.  Add libc_hidden_def.
72855         (setnetgrent): Update caller.
72856         (internal_endnetgrent): Renamed to ...
72857         (__internal_endnetgrent): ... this.  Add internal_function to
72858         definition.  Add libc_hidden_def.
72859         (endnetgrent): Update caller.
72860         (internal_getnetgrent_r): Renamed to ...
72861         (__internal_getnetgrent_r): ... this.  Add internal_function to
72862         definition.  Add libc_hidden_def.
72863         (__getnetgrent_r): Update caller.
72864         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
72865
72866 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
72867
72868         * stdlib/longlong.h: Update from GCC.
72869
72870 2012-08-16  Roland McGrath  <roland@hack.frob.com>
72871
72872         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
72873         on _QL, which is set by umul_ppmm but never used.
72874         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
72875         variables, which are set by GMP macros but never used.
72876         * stdio-common/_itowa.c (_itowa): Likewise.
72877         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
72878         * stdlib/mod_1.c (mpn_mod_1): Likewise.
72879
72880 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
72881
72882         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
72883         struct La_sh_regs is not constant.
72884         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
72885         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
72886         and struct La_sparc64_regs are not constant.
72887
72888 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
72889
72890         * sysdeps/unix/sysv/linux/kernel-features.h
72891         (__ASSUME_POSIX_TIMERS): Remove.
72892         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
72893         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
72894         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
72895         Make code unconditional.
72896         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
72897         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
72898         Make code unconditional.
72899         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
72900         * sysdeps/unix/sysv/linux/clock_nanosleep.c
72901         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
72902         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
72903         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
72904         Make code unconditional.
72905         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
72906         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
72907         (__libc_missing_posix_timers): Remove.
72908
72909 2012-08-15  Roland McGrath  <roland@hack.frob.com>
72910
72911         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
72912         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
72913
72914         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
72915
72916         * elf/dl-sym.c: Include <stdlib.h>.
72917
72918         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
72919         constants, which avoids warnings in 32-bit builds.
72920
72921         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
72922         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
72923
72924         * misc/lseek.c: File moved to ...
72925         * io/lseek.c: ... here.
72926
72927         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
72928
72929         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
72930         shifting LEN more than 31 bits at once.
72931
72932 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72933
72934         [BZ #14195]
72935         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
72936         segmentation fault for a case of two empty input strings.
72937         * string/test-strncasecmp.c (check1): Renamed to...
72938         (bz12205): ...this.
72939         (bz14195): Add new testcase for two empty input strings and N > 0.
72940         (test_main): Call new testcase, adapt for renamed function.
72941
72942 2012-08-15  Andreas Jaeger  <aj@suse.de>
72943
72944         [BZ #14090]
72945         * crypt/md5test2.c: New test, based on test supplied by Serge
72946         Belyshev <belyshev@depni.sinp.msu.ru>.
72947         * crypt/Makefile (xtests): Add md5test-giant..
72948         * crypt/Makefile ($(objpfx)md5test-giant): Add.
72949
72950 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72951
72952         [BZ #14090]
72953         * crypt/md5.c (md5_process_block): Don't assume the buffer
72954         length is less than 2**32.
72955         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
72956         length is less than 2**64.
72957
72958 2012-08-15  Roland McGrath  <roland@hack.frob.com>
72959
72960         * string/str-two-way.h: Include <sys/param.h>.
72961         (MAX): Macro removed.
72962
72963         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
72964         Move #define and #undef of memmove to just before and after
72965         including <string.h>.
72966
72967         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
72968         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
72969         and after including <string.h>.  Move declarations of
72970         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
72971         to before #include "string/memmove.c".
72972
72973         * include/dirent.h: Declare __getdirentries.
72974
72975         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
72976         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
72977
72978 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
72979
72980         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
72981         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
72982         * sysdeps/i386/configure: Regenerated.
72983         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
72984         STABS_CURRENT_FILE, and STABS_FUN.
72985         (END): Remove call to STABS_FUN_END.
72986         (STABS_CURRENT_FILE1): Delete.
72987         (STABS_CURRENT_FILE): Likewise.
72988         (STABS_FUN): Likewise.
72989         (STABS_FUN_END): Likewise.
72990         (STABS_FUN2): Likewise.
72991         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
72992         * sysdeps/x86_64/configure: Regenerated.
72993
72994 2012-08-14  Roland McGrath  <roland@hack.frob.com>
72995
72996         * elf/dl-open.c: Include <atomic.h>.
72997         * elf/dl-lookup.c: Likewise.
72998
72999 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
73000
73001         * sysdeps/unix/sysv/linux/kernel-features.h
73002         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
73003         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
73004         unconditionally.
73005         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
73006         unconditionally.
73007         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
73008         condition on __ASSUME_CLONE_THREAD_FLAGS.
73009
73010 2012-08-14  Andreas Jaeger  <aj@suse.de>
73011
73012         * sysdeps/i386/fpu/libm-test-ulps: Update.
73013
73014 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
73015
73016         * include/atomic.h (atomic_exchange_and_add): Split into ...
73017         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
73018         New atomic macros.
73019
73020 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
73021
73022         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
73023
73024 2012-08-13  Jeff Law <law@redhat.com>
73025
73026         * manual/stdio.texi (snprintf): Clarify handling of the trailing
73027         null byte in the output string.
73028
73029 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
73030
73031         * sysdeps/unix/sysv/linux/kernel-features.h
73032         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
73033         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
73034         (__ASSUME_ARG_MAX_STACK_BASED): Define.
73035         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
73036         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
73037         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
73038         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
73039
73040 2012-08-09  Jeff Law <law@redhat.com>
73041
73042         [BZ #13939]
73043         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
73044         When avoid_arena is set, don't retry in the that arena.  Pick the
73045         next one, whatever it might be.
73046         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
73047         (arena_lock): Pass in new parameter to arena_get2.
73048         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
73049         arena_get2.
73050         (__libc_malloc): Unify retrying after main arena failure with
73051         __libc_memalign version.
73052         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
73053
73054 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
73055
73056         [BZ #14166]
73057         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
73058         to __redirect_strstr.
73059         (__strstr_sse42): Use typeof __redirect_strstr.
73060         (__strstr_ia32): Likewise.
73061         (__libc_strstr): New prototype.
73062         (strstr): Renamed to ...
73063         (__libc_strstr): This.
73064         (strstr): New strong alias of __libc_strstr.
73065         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
73066         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
73067         __redirect_time.
73068         Include <time.h>.
73069         (__libc_time): New prototype.
73070         (time_ifunc): Replace time with __libc_time.
73071         (time): New strong alias and hidden definition of __libc_time.
73072         (__GI_time): Remove strong alias.
73073         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
73074         Include <stddef.h>.
73075         (memmove): Redefined to __redirect_memmove.
73076         (__memmove_sse2): Use typeof __redirect_memmove.
73077         (__memmove_ssse3): Likewise.
73078         (__memmove_ssse3_back): Likewise.
73079         (__libc_memmove): New prototype.
73080         (memmove): Renamed to ...
73081         (__libc_memmove): This.
73082         (memmove): New strong alias of __libc_memmove.
73083
73084 2012-08-08  Mark Salter  <msalter@redhat.com>
73085
73086         * elf/elf.h
73087         (R_MN10300_TLS_GD): Define.
73088         (R_MN10300_TLS_LD): Likewise.
73089         (R_MN10300_TLS_LDO): Likewise.
73090         (R_MN10300_TLS_GOTIE): Likewise.
73091         (R_MN10300_TLS_IE): Likewise.
73092         (R_MN10300_TLS_LE): Likewise.
73093         (R_MN10300_TLS_DTPMOD): Likewise.
73094         (R_MN10300_TLS_DTPOFF): Likewise.
73095         (R_MN10300_TLS_TPOFF): Likewise.
73096         (R_MN10300_SYM_DIFF): Likewise.
73097         (R_MN10300_ALIGN): Likewise.
73098         (R_MN10300_NUM): Update.
73099
73100 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
73101
73102         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
73103         Remove.
73104
73105 2012-08-08  Roland McGrath  <roland@hack.frob.com>
73106
73107         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
73108
73109         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
73110         sysdeps/unix -> sysdeps/posix move.
73111         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
73112
73113 2012-08-07      Allan McRae     <allan@archlinux.org>
73114
73115         [BZ #14303]
73116         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
73117         (SUNOS_CPP): Likewise.
73118         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
73119         not found.
73120         (open_input): Call CPP using execvp.
73121
73122 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
73123
73124         * sysdeps/unix/sysv/linux/kernel-features.h
73125         (__ASSUME_PROT_GROWSUPDOWN): Remove.
73126         (__ASSUME_NO_CLONE_DETACHED): Likewise.
73127         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
73128         (__ASSUME_WAITID_SYSCALL): Likewise.
73129         * sysdeps/unix/sysv/linux/dl-execstack.c
73130         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
73131         code unconditional.
73132         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
73133         conditional code.
73134         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
73135         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
73136         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
73137         code.
73138         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
73139         unconditional.
73140         [__ASSUME_WAITID_SYSCALL]: Likewise.
73141         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
73142
73143 2012-08-07  Roland McGrath  <roland@hack.frob.com>
73144
73145         * sysdeps/unix/closedir.c: Renamed to ...
73146         * sysdeps/posix/closedir.c: ... here.
73147         * sysdeps/unix/dirfd.c: Renamed to ...
73148         * sysdeps/posix/dirfd.c: ... here.
73149         * sysdeps/unix/dirstream.h: Renamed to ...
73150         * sysdeps/posix/dirstream.h: ... here.
73151         * sysdeps/unix/fdopendir.c: Renamed to ...
73152         * sysdeps/posix/fdopendir.c: ... here.
73153         * sysdeps/unix/opendir.c: Renamed to ...
73154         * sysdeps/posix/opendir.c: ... here.
73155         * sysdeps/unix/readdir.c: Renamed to ...
73156         * sysdeps/posix/readdir.c: ... here.
73157         * sysdeps/unix/readdir_r.c: Renamed to ...
73158         * sysdeps/posix/readdir_r.c: ... here.
73159         * sysdeps/unix/rewinddir.c: Renamed to ...
73160         * sysdeps/posix/rewinddir.c: ... here.
73161         * sysdeps/unix/seekdir.c: Renamed to ...
73162         * sysdeps/posix/seekdir.c: ... here.
73163         * sysdeps/unix/telldir.c: Renamed to ...
73164         * sysdeps/posix/telldir.c: ... here.
73165         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
73166         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
73167         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
73168         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
73169
73170         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
73171         * bits/fcntl.h: ... here.
73172
73173         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
73174         not 0.
73175         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
73176         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
73177         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
73178         (struct flock): Move l_start, l_len to the beginning.
73179         Use __pid_t for l_pid.
73180         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
73181         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
73182         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
73183         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
73184         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
73185         [__USE_LARGEFILE64] (struct flock64): New type.
73186         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
73187
73188         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
73189         * bits/dirent.h: ... here.
73190
73191         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
73192         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
73193
73194 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
73195
73196         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
73197         Change from 2.6.0 to 2.6.16.
73198         * sysdeps/unix/sysv/linux/configure: Regenerated.
73199         * sysdeps/unix/sysv/linux/kernel-features.h
73200         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
73201         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
73202         version.
73203         (__ASSUME_UTIMES): Likewise.
73204         (__ASSUME_CLONE_STOPPED): Remove.
73205         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
73206         architectures, not kernel version.
73207         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
73208         (__ASSUME_NO_CLONE_DETACHED): Likewise.
73209         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
73210         (__ASSUME_WAITID_SYSCALL): Likewise.
73211         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
73212         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
73213         * README: State 2.6.16 as minimum Linux kernel version.  Do not
73214         refer to older versions.
73215
73216 2012-08-06  Roland McGrath  <roland@hack.frob.com>
73217
73218         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
73219         Define alphasort64 as an alias.
73220         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
73221         Define versionsort64 as an alias.
73222         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
73223         Define scandir64 as an alias.
73224         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
73225         Define scandirat64 as an alias.
73226         * dirent/alphasort64.c (alphasort64):
73227         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
73228         * dirent/versionsort64.c: Likewise.
73229         * dirent/scandir64.c: Likewise.
73230         * dirent/scandirat64.c: Likewise.
73231         * sysdeps/wordsize-64/alphasort.c: File removed.
73232         * sysdeps/wordsize-64/alphasort64.c: File removed.
73233         * sysdeps/wordsize-64/scandir.c: File removed.
73234         * sysdeps/wordsize-64/scandir64.c: File removed.
73235         * sysdeps/wordsize-64/scandirat.c: File removed.
73236         * sysdeps/wordsize-64/scandirat64.c: File removed.
73237         * sysdeps/wordsize-64/versionsort.c: File removed.
73238         * sysdeps/wordsize-64/versionsort64.c: File removed.
73239         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
73240         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
73241         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
73242         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
73243         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
73244         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
73245         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
73246         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
73247
73248         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
73249         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
73250         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
73251         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
73252         [defined __arch64__ || defined __sparcv9]
73253         (__INO_T_MATCHES_INO64_T): New macro.
73254         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
73255         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
73256         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
73257         * sysdeps/unix/sysv/linux/bits/dirent.h
73258         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
73259         (_DIRENT_MATCHES_DIRENT64): New macro.
73260
73261         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
73262         Define lockf64 as an alias.
73263         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
73264         Define fseeko64 as an alias.
73265         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
73266         Define ftello64 as an alias.
73267         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
73268         Define _IO_fgetpos64 and fgetpos64 as aliases.
73269         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
73270         Define _IO_fsetpos64 and fsetpos64 as aliases.
73271         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
73272         Conditionalize body on this.
73273         * libio/fseeko64.c: Likewise.
73274         * libio/ftello64.c: Likewise.
73275         * libio/iofgetpos64.c: Likewise.
73276         * libio/iofsetpos64.c: Likewise.
73277         * sysdeps/wordsize-64/lockf.c: File removed.
73278         * sysdeps/wordsize-64/lockf64.c: File removed.
73279         * sysdeps/wordsize-64/fseeko.c: File removed.
73280         * sysdeps/wordsize-64/fseeko64.c: File removed.
73281         * sysdeps/wordsize-64/ftello.c: File removed.
73282         * sysdeps/wordsize-64/ftello64.c: File removed.
73283         * sysdeps/wordsize-64/iofgetpos.c: File removed.
73284         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
73285         * sysdeps/wordsize-64/iofsetpos.c: File removed.
73286         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
73287         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
73288         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
73289         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
73290         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
73291         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
73292         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
73293         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
73294         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
73295         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
73296         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
73297
73298         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
73299         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
73300         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
73301         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
73302         [defined __arch64__ || defined __sparcv9]
73303         (__OFF_T_MATCHES_OFF64_T): New macro.
73304         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
73305         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
73306         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
73307         (__OFF_T_MATCHES_OFF64_T): New macro.
73308
73309 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
73310
73311         * stdlib/secure-getenv.c (__secure_getenv): Replace
73312         GLIBC_2_16 with GLIBC_2_17.
73313
73314 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
73315
73316         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
73317         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
73318
73319 2012-08-03  David S. Miller  <davem@davemloft.net>
73320
73321         * sysdeps/sparc/fpu/libm-test-ulps: Update.
73322
73323 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
73324
73325         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
73326         Remove.
73327         (__ASSUME_CORRECT_SI_PID): Likewise.
73328         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
73329         (__ASSUME_TMPFS_NAME): Likewise.
73330         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
73331         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
73332         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
73333         (HAVE_AUX_SECURE): Make definition unconditional.
73334         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
73335         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
73336
73337 2012-08-03  Roland McGrath  <roland@hack.frob.com>
73338
73339         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
73340         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
73341         * sysdeps/mach/hurd/eloop-threshold.h: New file.
73342         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
73343         __eloop_threshold instead of SYMLOOP_MAX.
73344
73345         * sysdeps/generic/eloop-threshold.h: New file.
73346         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
73347         of MAXSYMLINKS.
73348         * elf/chroot_canon.c (chroot_canon): Likewise.
73349
73350 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
73351
73352         [BZ #13717]
73353         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
73354         Change to 2.6.0 everywhere.
73355         * sysdeps/unix/sysv/linux/configure: Regenerated.
73356         * sysdeps/unix/sysv/linux/kernel-features.h
73357         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
73358         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
73359         kernel versions.
73360         (__ASSUME_POSIX_TIMERS): Define unconditionally.
73361         (__ASSUME_FUTEX_REQUEUE): Remove.
73362         (__ASSUME_STATFS64): Define unconditionally.
73363         (__ASSUME_AT_SECURE): Likewise.
73364         (__ASSUME_CORRECT_SI_PID): Likewise.
73365         (__ASSUME_TGKILL): Define without depending on kernel version for
73366         i386.
73367         (__ASSUME_UTIMES): Likewise.
73368         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
73369         kernel version.
73370         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
73371         (__ASSUME_TMPFS_NAME): Likewise.
73372         * README: Update reference to Linux kernel versions.
73373
73374 2012-08-02  Marek Polacek  <polacek@redhat.com>
73375
73376         [BZ #14150]
73377         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
73378         libc_cv_asm_type_prefix with %.
73379         * configure: Regenerated.
73380         * include/libc-symbols.h: Remove comment about
73381         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
73382         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
73383         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
73384         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
73385         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
73386         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
73387         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
73388         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
73389         * elf/tst-unique2mod1.c: Likewise.
73390         * elf/tst-unique1mod2.c: Likewise.
73391         * elf/tst-unique1mod1.c: Likewise.
73392         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
73393         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
73394         Replace ASM_TYPE_DIRECTIVE with .type.
73395         * sysdeps/s390/s390-64/sysdep.h: Likewise.
73396         * sysdeps/i386/sysdep.h: Likewise.
73397         * sysdeps/x86_64/sysdep.h: Likewise.
73398         * sysdeps/sh/sysdep.h: Likewise.
73399         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
73400         Do not define ASM_TYPE_DIRECTIVE.
73401         * sysdeps/powerpc/sysdep.h: Likewise.
73402         * sysdeps/powerpc/powerpc32/sysdep.h:
73403         Replace ASM_TYPE_DIRECTIVE with .type.
73404         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
73405         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
73406         * sysdeps/i386/fpu/e_powf.S: Likewise.
73407         * sysdeps/i386/fpu/e_expl.S: Likewise.
73408         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
73409         * sysdeps/i386/fpu/e_acosh.S: Likewise.
73410         * sysdeps/i386/fpu/e_pow.S: Likewise.
73411         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
73412         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
73413         * sysdeps/i386/fpu/s_expm1.S: Likewise.
73414         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
73415         * sysdeps/i386/fpu/e_log2.S: Likewise.
73416         * sysdeps/i386/fpu/e_log2l.S: Likewise.
73417         * sysdeps/i386/fpu/e_scalb.S: Likewise.
73418         * sysdeps/i386/fpu/e_powl.S: Likewise.
73419         * sysdeps/i386/fpu/e_log10f.S: Likewise.
73420         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
73421         * sysdeps/i386/fpu/e_logl.S: Likewise.
73422         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
73423         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
73424         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
73425         * sysdeps/i386/fpu/e_log2f.S: Likewise.
73426         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
73427         * sysdeps/i386/fpu/e_log.S: Likewise.
73428         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
73429         * sysdeps/i386/fpu/e_logf.S: Likewise.
73430         * sysdeps/i386/fpu/e_log10l.S: Likewise.
73431         * sysdeps/i386/fpu/e_atanh.S: Likewise.
73432         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
73433         * sysdeps/i386/fpu/e_log10.S: Likewise.
73434         * sysdeps/i386/fpu/s_frexp.S: Likewise.
73435         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
73436         * sysdeps/i386/fpu/s_asinh.S: Likewise.
73437         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
73438         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
73439         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
73440         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
73441         * sysdeps/i386/i686/strtok.S: Likewise.
73442         * sysdeps/i386/i386-mcount.S: Likewise.
73443         * sysdeps/i386/strtok.S: Likewise.
73444         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
73445         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
73446         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
73447         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
73448         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
73449         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
73450         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
73451         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
73452         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
73453         * sysdeps/x86_64/_mcount.S: Likewise.
73454         * sysdeps/x86_64/strtok.S: Likewise.
73455         * sysdeps/sh/_mcount.S: Likewise.
73456
73457 2012-08-01  Roland McGrath  <roland@hack.frob.com>
73458
73459         * libio/iofopen.c: Include <fcntl.h>.
73460         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
73461         (_IO_fopen64, fopen64): Define as aliases.
73462         * libio/iofopen64.c: Include <fcntl.h>.
73463         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
73464         Conditionalize body on this.
73465         * sysdeps/wordsize-64/iofopen.c: File removed.
73466         * sysdeps/wordsize-64/iofopen64.c: File removed.
73467
73468 2012-08-01  Marek Polacek  <polacek@redhat.com>
73469
73470         * libc/Makeconfig: Use elf in place of binfmt-subdir.
73471         Use dlfcn directly instead of a variable.
73472         (binfmt-subdir): Do not define.
73473         (dlfcn): Likewise.
73474
73475 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
73476
73477         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
73478         Remove all definitions.
73479         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
73480         <kernel-features.h>.
73481         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
73482         (miss_F_GETOWN_EX): Remove all definitions.
73483         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
73484         macro definition.
73485         [!__ASSUME_FCNTL64]: Remove conditional code.
73486         [__ASSUME_FCNTL64]: Make code unconditional.
73487         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
73488         <kernel-features.h>.
73489         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
73490         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
73491         (lockf64) [__NR_fcntl64]: Make code unconditional.
73492         (lockf64) [__ASSUME_FCNTL64]: Likewise.
73493
73494         * sysdeps/unix/sysv/linux/kernel-features.h
73495         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
73496         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
73497         Make code unconditional.
73498         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
73499         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
73500         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
73501         [__NR_vfork]: Make code unconditional.
73502         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
73503         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
73504         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
73505         [__NR_vfork]: Make code unconditional.
73506         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
73507         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
73508
73509 2012-08-01  Roland McGrath  <roland@hack.frob.com>
73510
73511         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
73512         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
73513
73514         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
73515         Define mkstemp64 as an alias.
73516         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
73517         Define mkstemps64 as an alias.
73518         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
73519         Define mkostemp64 as an alias.
73520         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
73521         Define mkostemps64 as an alias.
73522         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
73523         Conditionalize body on this.
73524         * misc/mkostemp64.c: Likewise.
73525         * misc/mkostemps64.c: Likewise.
73526         * misc/mkstemps64.c: Likewise.
73527         * sysdeps/wordsize-64/mkstemp64.c: File removed.
73528         * sysdeps/wordsize-64/mkostemp64.c: File removed.
73529         * sysdeps/wordsize-64/mkostemp.c: File removed.
73530         * sysdeps/wordsize-64/mkstemp.c: File removed.
73531         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
73532         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
73533         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
73534         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
73535
73536         [BZ #14138]
73537         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
73538         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
73539         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
73540         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
73541
73542         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
73543         compat_symbol macros from <shlib-compat.h> rather than the underlying
73544         default_symbol_version and symbol_version macros, so that DEFAULT
73545         lines in shlib-versions are respected.
73546         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
73547
73548 2012-08-01  Florian Weimer  <fweimer@redhat.com>
73549
73550         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
73551         Declare with warn_unused_result.
73552         (setgid, setregid, setegid, setresgid): Likewise.
73553         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
73554         Likewise.
73555         * WUR-REPORT: Remove set*id functions.
73556
73557 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
73558
73559         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
73560
73561 2012-07-31  Roland McGrath  <roland@hack.frob.com>
73562
73563         [BZ #10191]
73564         * include/sys/socket.h (__libc_accept, __libc_accept4):
73565         Add attribute_hidden.
73566         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
73567
73568         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
73569         use of PTR_MANGLE.
73570         * inet/getnetgrent_r.c (setup): Likewise.
73571
73572         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
73573
73574 2012-07-31  David S. Miller  <davem@davemloft.net>
73575
73576         * sysdeps/sparc/fpu/libm-test-ulps: Update.
73577
73578 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
73579
73580         [BZ #13629]
73581         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
73582         value between 1.0 and 2.0 and smaller part has absolute value less
73583         than 1.0.
73584         * math/s_clog10.c (__clog10): Likewise.
73585         * math/s_clog10f.c (__clog10f): Likewise.
73586         * math/s_clog10l.c (__clog10l): Likewise.
73587         * math/s_clogf.c (__clogf): Likewise.
73588         * math/s_clogl.c (__clogl): Likewise.
73589         * math/libm-test.inc (clog_test): Add more tests.
73590         (clog10_test): Likewise.
73591         * sysdeps/i386/fpu/libm-test-ulps: Update.
73592         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73593
73594 2012-07-31  Florian Weimer  <fweimer@redhat.com>
73595
73596         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
73597         Exit with zero in case no suitable GID is found, and write a
73598         message to standard error.
73599
73600 2012-07-30  Roland McGrath  <roland@hack.frob.com>
73601
73602         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
73603         rather than to 1.
73604         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
73605         (MAXPATHLEN): Removed.
73606         (NOGROUP, NODEV): New macros.
73607         (setbit, clrbit, isset, isclr): New macros.
73608         (howmany, roundup, powerof2): New macros.
73609         (DEV_BSIZE): New macro.
73610
73611         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
73612         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
73613
73614         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
73615         definition on [!__NO_LONG_DOUBLE_MATH].
73616
73617         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
73618         PTR_MANGLE and PTR_DEMANGLE.
73619
73620         * socket/accept4.c (accept4): Rename to __libc_accept4.
73621         Define accept4 as a weak alias.
73622
73623         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
73624         on [_DIRENT_HAVE_D_TYPE].
73625         * io/ftw.c (ftw_dir): Likewise.
73626
73627         * io/xmknod.c (__xmknod): Don't check PATH for being null.
73628
73629         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
73630
73631         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
73632         Use the BSD numbers rather than the arbitrary ones we had.
73633         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
73634         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
73635         (SIGXCPU, SIGXFSZ): New macros.
73636         (_NSIG): Now 32.
73637
73638         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
73639         initializer on [_LIBC_REENTRANT].
73640
73641         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
73642         definitions inside [_POSIX_MAPPED_FILES].
73643
73644         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
73645
73646         * dirent/opendir.c: Include <fcntl.h>.
73647
73648         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
73649         (__libc_getspecific): Likewise.
73650         (__libc_key_create): Likewise.
73651
73652         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
73653         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
73654         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
73655         (tmpfile64): Define as alias.
73656         * sysdeps/wordsize-64/tmpfile.c: File removed.
73657         * sysdeps/wordsize-64/tmpfile64.c: File removed.
73658         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
73659         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
73660
73661         * stdio-common/vfscanf.c: Include <stdbool.h>.
73662         * nss/makedb.c: Likewise.
73663         * stdio-common/_i18n_number.h: Likewise.
73664         * argp/argp-help.c: Likewise.
73665         * posix/wordexp.c: Likewise.
73666         * sysdeps/posix/spawni.c: Likewise.
73667         * nss/nss_files/files-initgroups.c: Likewise.
73668         * stdio-common/reg-modifier.c: Include <stdlib.h>.
73669         * nss/nss_files/files-initgroups.c: Likewise.
73670         * nss/nss_db/db-netgrp.c: Likewise.
73671         * nss/nss_db/db-initgroups.c: Likewise.
73672         * io/fchmodat.c: Include <sys/stat.h>.
73673
73674         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
73675         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
73676
73677         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
73678         [HAVE_MMAP].
73679
73680         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
73681         Add multiple inclusion protection.
73682
73683 2012-07-27  David S. Miller  <davem@davemloft.net>
73684
73685         * sysdeps/sparc/fpu/libm-test-ulps: Update.
73686
73687 2012-07-27  Gary Benson  <gbenson@redhat.com>
73688
73689         [BZ #14298]
73690         * elf/rtld.c: Include <stap-probe.h>.
73691         (dl_main): Added static probes "init_start" and "init_complete".
73692         * elf/dl-load.c: Include <stap-probe.h>.
73693         (lose): Take new parameter "nsid".
73694         Added static probe "map_failed".
73695         (_dl_map_object_from_fd): Pass namespace id to lose.
73696         Added static probe "map_start".
73697         (open_verify): Pass namespace id to lose.
73698         * elf/dl-open.c: Include <stap-probe.h>.
73699         (dl_open_worker) Added static probes "map_complete", "reloc_start"
73700         and "reloc_complete".
73701         * elf/dl-close.c: Include <stap-probe.h>.
73702         (_dl_close_worker): Added static probes "unmap_start" and
73703         "unmap_complete".
73704         * elf/rtld-debugger-interface.txt: New file documenting the above.
73705
73706 2012-07-26  Roland McGrath  <roland@hack.frob.com>
73707
73708         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
73709         rather than a string variable.
73710         * sunrpc/rpc_main.c (h_output): Likewise.
73711         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
73712
73713 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
73714
73715         * inet/check_native.c: New file.
73716
73717 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
73718
73719         [BZ #13629]
73720         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
73721         if larger part has absolute value 1.0.
73722         * math/s_clog10.c (__clog10): Likewise.
73723         * math/s_clog10f.c (__clog10f): Likewise.
73724         * math/s_clog10l.c (__clog10l): Likewise.
73725         * math/s_clogf.c (__clogf): Likewise.
73726         * math/s_clogl.c (__clogl): Likewise.
73727         * math/libm-test.inc (clog_test): Add more tests.
73728         (clog10_test): Likewise.
73729         * sysdeps/i386/fpu/libm-test-ulps: Update.
73730         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73731
73732         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
73733         (pltexit): Likewise.
73734         (La_regs): Likewise.
73735         (La_retval): Likewise.
73736         (int_retval): Likewise.
73737         Update #error for removed macros to refer only to definitions in
73738         tst-audit.h.
73739         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
73740         macro.
73741         (pltexit): Likewise.
73742         (La_regs): Likewise.
73743         (La_retval): Likewise.
73744         (int_retval): Likewise.
73745         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
73746         macro.
73747         (pltexit): Likewise.
73748         (La_regs): Likewise.
73749         (La_retval): Likewise.
73750         (int_retval): Likewise.
73751         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
73752         macro.
73753         (pltexit): Likewise.
73754         (La_regs): Likewise.
73755         (La_retval): Likewise.
73756         (int_retval): Likewise.
73757         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
73758         macro.
73759         (pltexit): Likewise.
73760         (La_regs): Likewise.
73761         (La_retval): Likewise.
73762         (int_retval): Likewise.
73763         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
73764         macro.
73765         (pltexit): Likewise.
73766         (La_regs): Likewise.
73767         (La_retval): Likewise.
73768         (int_retval): Likewise.
73769         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
73770         macro.
73771         (pltexit): Likewise.
73772         (La_regs): Likewise.
73773         (La_retval): Likewise.
73774         (int_retval): Likewise.
73775         * sysdeps/generic/tst-audit.h: Update comment to refer only to
73776         macro definitions in tst-audit.h.
73777         * sysdeps/i386/tst-audit.h: New file.
73778         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
73779         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
73780         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
73781         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
73782         * sysdeps/sh/tst-audit.h: Likewise.
73783         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
73784         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
73785         * sysdeps/x86_64/tst-audit.h: Likewise.
73786
73787 2012-07-26  Andreas Jaeger  <aj@suse.de>
73788
73789         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
73790         ptrace.
73791
73792         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
73793         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
73794         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
73795         PTRACE_O_MASK.
73796         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
73797         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
73798         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
73799
73800         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
73801         value.
73802
73803         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
73804         _sigsys.
73805         (si_call_addr, si_syscall, si_arch): Define new macro.
73806         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
73807         _sigsys.
73808         (si_call_addr, si_syscall, si_arch): Define new marcro.
73809         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
73810         _sigsys.
73811         (si_call_addr, si_syscall, si_arch): Define new macro.
73812         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
73813         _sigsys.
73814         (si_call_addr, si_syscall, si_arch): Define new macro.
73815
73816 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
73817
73818         [BZ #13717]
73819         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
73820         Change to 2.4.21 where previously 2.4.1.
73821         * sysdeps/unix/sysv/linux/configure: Regenerated.
73822         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
73823         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
73824         Linux kernel version.
73825         (__ASSUME_STD_AUXV): Remove.
73826         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
73827         kernel version.
73828         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
73829         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
73830         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
73831         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
73832         (__ASSUME_NETLINK_SUPPORT): Likewise.
73833         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
73834         (__no_netlink_support): Remove conditional definition.
73835         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
73836         Remove.
73837         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
73838         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
73839         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
73840         (if_nameindex_ioctl): Remove.
73841         (if_nameindex_netlink): Do not handle __no_netlink_support.
73842         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
73843         code.
73844         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
73845         Remove conditional code.
73846         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
73847         code.
73848         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
73849         unconditional.
73850         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
73851         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
73852         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
73853         Remove.
73854         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
73855         [!__ASSUME_STD_AUXV]: Remove conditional code.
73856         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
73857         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
73858         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
73859         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
73860         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
73861         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
73862         code.
73863         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
73864         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
73865         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
73866         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
73867         conditional code.
73868         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
73869         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
73870         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
73871         code.
73872         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
73873         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
73874         conditional code.
73875         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
73876         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
73877         code unconditional.
73878         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
73879         conditional code.
73880         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
73881         unconditional.
73882         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
73883         conditional code.
73884         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
73885         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
73886         unconditional.
73887         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
73888         conditional code.
73889         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
73890         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
73891         code unconditional.
73892         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
73893         conditional code.
73894         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
73895         unconditional.
73896         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
73897         conditional code.
73898         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
73899         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
73900         code unconditional.
73901         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
73902         conditional code.
73903         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
73904         unconditional.
73905         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
73906         conditional code.
73907
73908 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
73909
73910         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
73911         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
73912         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
73913         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
73914         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
73915         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
73916         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
73917         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
73918         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
73919         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
73920         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
73921         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
73922         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
73923         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
73924         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
73925         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
73926         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
73927         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
73928         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
73929         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
73930         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
73931         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
73932         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
73933
73934 2012-07-25  Florian Weimer  <fweimer@redhat.com>
73935
73936         * Versions.def: Add GLIBC_2.17.
73937         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
73938         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
73939         Introduce __libc_secure_getenv.
73940         * stdlib/Versions (2.17): Add secure_getenv
73941         (GLIBC_PRIVATE): Add __libc_secure_getenv.
73942         * stdlib/secure-getenv.c: Rename __secure_getenv to
73943         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
73944         symbol __secure_getenv for GLIBC_2.0.
73945         * stdlib/tst-secure-getenv.c: New.
73946         * stdlib/Makefile (tests): Add testcase.
73947         * manual/startup.texi (Environment Access): Document
73948         secure_getenv.
73949         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
73950         __libc_secure_getenv.
73951         * inet/ruserpass.c (ruserpass): Likewise.
73952         * malloc/mtrace.c (mtrace): Likewise.
73953         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
73954         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
73955         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
73956         * sysdeps/posix/tempname.c: Likewise.  Evaluate
73957         HAVE_SECURE_GETENV.
73958         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
73959         __secure_getenv to __libc_secure_getenv.
73960         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
73961         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
73962         Likewise.
73963         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
73964         Likewise.
73965         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
73966         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
73967         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
73968         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
73969         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
73970         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
73971         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
73972
73973 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
73974
73975         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
73976         (struct La_i86_retval): Likewise.
73977         (struct La_x86_64_regs): Likewise.
73978         (struct La_x86_64_retval): Likewise.
73979         (struct La_x32_regs): Likewise.
73980         (struct La_x32_retval): Likewise.
73981         (struct La_ppc32_regs): Likewise.
73982         (struct La_ppc32_retval): Likewise.
73983         (struct La_ppc64_regs): Likewise.
73984         (struct La_ppc64_retval): Likewise.
73985         (struct La_sh_regs): Likewise.
73986         (struct La_sh_retval): Likewise.
73987         (struct La_s390_32_regs): Likewise.
73988         (struct La_s390_32_retval): Likewise.
73989         (struct La_s390_64_regs): Likewise.
73990         (struct La_s390_64_retval): Likewise.
73991         (struct La_sparc32_regs): Likewise.
73992         (struct La_sparc32_retval): Likewise.
73993         (struct La_sparc64_regs): Likewise.
73994         (struct La_sparc64_retval): Likewise.
73995         (struct audit_ifaces): Remove architecture-specific pltenter and
73996         pltexit members.
73997         * sysdeps/i386/ldsodefs.h: New file.
73998         * sysdeps/powerpc/ldsodefs.h: Likewise.
73999         * sysdeps/s390/ldsodefs.h: Likewise.
74000         * sysdeps/sh/ldsodefs.h: Likewise.
74001         * sysdeps/sparc/ldsodefs.h: Likewise.
74002         * sysdeps/x86_64/ldsodefs.h: Likewise.
74003
74004 2012-07-25  Marek Polacek  <polacek@redhat.com>
74005
74006         [BZ #6808]
74007         * math/libm-test.inc (yn_test): Add another test.
74008         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
74009         to ERANGE when the result is +-Inf.
74010         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
74011         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
74012         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
74013         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
74014
74015 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
74016
74017         * conform/data/time.h-data (NULL): Use macro-constant.  Require
74018         equal to 0.
74019         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
74020         clock_t.
74021         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
74022
74023 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
74024
74025         * configure.in <sysdeps resolving>: Correct printing
74026         Implies_before.
74027         * configure: Regenerate.
74028
74029 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
74030
74031         * math/w_ilogb.c: Include <limits.h>.
74032         * math/w_ilogbl.c: Likewise.
74033
74034 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
74035
74036         * manual/lang.texi (__va_copy): Document primarily as ISO C99
74037         va_copy.  Document allowing for unavailable va_copy only as
74038         pre-C99 compatibility.
74039         * manual/string.texi (Copying and Concatenation): Use va_copy
74040         instead of __va_copy in concat example.
74041
74042 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
74043
74044         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
74045         (__sendto): Use create_address_port.  Initialize APORT and deallocate
74046         it if not null.
74047
74048         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
74049         with O_NOLINK passed to __file_name_lookup.
74050
74051         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
74052         with O_NOLINK passed to __file_name_lookup.
74053
74054         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
74055         negative N or less than NGIDS.
74056
74057         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
74058         type to string_t.  Set ERANGE as errno and return it if NAME is not big
74059         enough.  Use memcpy instead of strncpy.
74060
74061 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
74062
74063         * elf/Makefile (check-data): Remove.
74064         (localplt.data): New vpath directive.
74065         ($(objpfx)check-localplt.out): Use localplt.data from vpath
74066         instead of $(check-data).
74067         * scripts/data/localplt-generic.data: Move to ...
74068         * sysdeps/generic/localplt.data: ... here.
74069         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
74070         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
74071         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
74072         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
74073         ... here.
74074         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
74075         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
74076         ... here.
74077         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
74078         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
74079         ... here.
74080         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
74081         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
74082         ... here.
74083         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
74084         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
74085         ... here.
74086         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
74087         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
74088         ... here.
74089
74090 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
74091
74092         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
74093         PPC32 and PPC64 files.
74094         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
74095         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
74096
74097 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74098
74099         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
74100         __makecontext_ret to ...
74101         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
74102         ... here and call exit if uc_link is NULL.  New file.
74103         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
74104         __makecontext_ret.S.
74105         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
74106         __makecontext_ret to ...
74107         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
74108         ... here and call exit if uc_link is NULL.  New file.
74109         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
74110         __makecontext_ret.S.
74111
74112 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74113
74114         * elf/elf.h (R_390_IRELATIVE): New definition.
74115         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
74116         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
74117         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
74118         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
74119         (elf_machine_lazy_rel): Likewise.
74120         * sysdeps/s390/dl-irel.h: New file.
74121         * sysdeps/s390/s390-64/memcpy.S: New asm code.
74122         * sysdeps/s390/s390-64/memset.S: New asm code.
74123         * sysdeps/s390/s390-64/memcmp.S: New asm code.
74124         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
74125         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
74126         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
74127         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
74128         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
74129         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
74130         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
74131         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
74132         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
74133         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
74134         * sysdeps/s390/s390-32/memcpy.S: New asm code.
74135         * sysdeps/s390/s390-32/memset.S: New asm code.
74136         * sysdeps/s390/s390-32/memcmp.S: New asm code.
74137
74138 2012-07-17  Marek Polacek  <polacek@redhat.com>
74139
74140         [BZ #14349]
74141         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
74142         * sysdeps/s390/s390-64/configure.in: Likewise.
74143         * sysdeps/sparc/configure.in: Likewise.
74144         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
74145         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
74146         * sysdeps/i386/configure.in: Likewise.
74147         * sysdeps/x86_64/configure.in: Likewise.
74148         * sysdeps/sh/configure.in: Likewise.
74149         * sysdeps/s390/s390-32/configure: Regenerated.
74150         * sysdeps/s390/s390-64/configure: Likewise.
74151         * sysdeps/x86_64/configure: Likewise.
74152         * sysdeps/sh/configure: Likewise.
74153         * sysdeps/powerpc/powerpc64/configure: Likewise.
74154         * sysdeps/powerpc/powerpc32/configure: Likewise.
74155         * sysdeps/sparc/configure: Likewise.
74156         * sysdeps/i386/configure: Likewise.
74157
74158         * elf/dl-open.c: Comment fixes.
74159
74160 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
74161
74162         * Makefile [CXX] (check-data): Remove.
74163         [CXX] (c++-types.data): New vpath directive.
74164         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
74165         vpath.  Do not allow for C++ type data being missing.
74166         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
74167         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
74168         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
74169         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
74170         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
74171         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
74172         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
74173         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
74174         ... here.
74175         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
74176         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
74177         ... here.
74178         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
74179         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
74180         ... here.
74181         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
74182         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
74183         ... here.
74184         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
74185         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
74186         ... here.
74187         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
74188         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
74189         ... here.
74190         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
74191         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
74192         ... here.
74193         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
74194         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
74195
74196         * elf/tls-macros.h (TLS_LE): Move architecture-specific
74197         definitions to architecture-specific files.
74198         (TLS_IE): Likewise.
74199         (TLS_LD): Likewise.
74200         (TLS_GD): Likewise.
74201         * sysdeps/i386/tls-macros.h: New file.
74202         * sysdeps/powerpc/tls-macros.h: Likewise.
74203         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
74204         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
74205         * sysdeps/sh/tls-macros.h: Likewise.
74206         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
74207         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
74208         * sysdeps/x86_64/tls-macros.h: Likewise.
74209
74210 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
74211
74212         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
74213         zero value for regular exit case.
74214
74215         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
74216         (__start_context): Preserve zero value for regular exit case.
74217
74218 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
74219             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74220
74221         * manual/setjmp.texi (setcontext): Clarify normal process
74222         termination when uc_link is the null pointer.
74223         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
74224         exit call.
74225
74226 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
74227
74228         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
74229         preprocessor.  Test for each exception mask separately.
74230
74231 2012-07-16  Andreas Jaeger  <aj@suse.de>
74232
74233         * po/ru.po: Update from translation team.
74234
74235 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
74236
74237         * conform/data/string.h-data (NULL): Use macro-constant.  Require
74238         equal to 0.
74239         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
74240         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
74241         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
74242         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
74243         [ISO || ISO99 || ISO11] (*_t): Do not allow.
74244
74245 2012-07-13  Andreas Jaeger  <aj@suse.de>
74246
74247         * po/fr.po: Update from translation team.
74248
74249 2012-07-12  Marek Polacek  <polacek@redhat.com>
74250
74251         [BZ #14173]
74252         * math/libm-test.inc (yn_test): Add test for BZ #14173.
74253         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
74254         loop condition.
74255
74256 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
74257
74258         [BZ #13717]
74259         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
74260         Change to 2.4.1 where previously 2.4.0.
74261         * sysdeps/unix/sysv/linux/configure: Regenerated.
74262         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
74263         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
74264         version.
74265         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
74266         (__ASSUME_AT_CLKTCK): Remove.
74267         (__ASSUME_AT_PAGESIZE): Likewise.
74268         (__ASSUME_AT_XID): Likewise.
74269         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
74270         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
74271         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
74272         unconditionally.
74273         (HAVE_AUX_PAGESIZE): Likewise.
74274         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
74275         [__ASSUME_AT_CLKTCK]: Make code unconditional.
74276         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
74277
74278 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
74279
74280         [BZ #14307]
74281         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
74282         the temporary buffer used to invoke __gethostbyname2_r,
74283         __gethostbyaddr_r and gethostbyname4_r to make room for struct
74284         host_data / struct gaih_addrtuple.
74285         * resolv/nss_dns/dns-host.c (global scope): Move definition of
74286         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
74287         header file nss/nsswitch.h.
74288         * nss/nsswitch.h (global scope): Add definition of implementation
74289         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
74290         resolv/nss_dns/dns-host.c).
74291
74292 2012-07-11  Andreas Jaeger  <aj@suse.de>
74293
74294         * po/fr.po: Update from translation team.
74295
74296         * po/sv.po: Update from translation team
74297         * po/fr.po: Another update from translation team.
74298
74299 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
74300
74301         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
74302         for subnormals or multiply small sinh result by itself.
74303         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
74304         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
74305
74306 2012-07-11  David S. Miller  <davem@davemloft.net>
74307
74308         * sysdeps/sparc/fpu/libm-test-ulps: Update.
74309
74310 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
74311
74312         [BZ #14347]
74313         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
74314         (INTERNAL_MARK): Shift it here.
74315
74316 2012-07-10  Marek Polacek  <polacek@redhat.com>
74317
74318         [BZ #14151]
74319         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
74320         libc_cv_asm_global_directive with .globl.
74321         * configure: Regenerated.
74322         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
74323         with .globl.
74324         * sysdeps/i386/configure: Regenerated.
74325         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
74326         with .globl.
74327         * sysdeps/x86_64/configure: Regenerated.
74328         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
74329         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
74330         * elf/tst-unique2mod2.c: Likewise.
74331         * elf/tst-unique2mod1.c: Likewise.
74332         * elf/tst-unique1mod2.c: Likewise.
74333         * elf/tst-unique1mod1.c: Likewise.
74334         * sysdeps/s390/s390-32/sysdep.h: Likewise.
74335         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
74336         * sysdeps/s390/s390-64/sysdep.h: Likewise.
74337         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
74338         * sysdeps/mach/sysdep.h: Likewise.
74339         * sysdeps/i386/sysdep.h: Likewise.
74340         * sysdeps/i386/i386-mcount.S: Likewise.
74341         * sysdeps/x86_64/_mcount.S: Likewise.
74342         * sysdeps/x86_64/sysdep.h: Likewise.
74343         * sysdeps/sh/_mcount.S: Likewise.
74344         * sysdeps/sh/sysdep.h: Likewise.
74345         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
74346         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
74347         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
74348         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
74349         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
74350         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
74351         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
74352         * locale/localeinfo.h: Likewise.
74353         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
74354         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
74355
74356 2012-07-09  Roland McGrath  <roland@hack.frob.com>
74357
74358         [BZ #14336]
74359         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
74360         system".
74361         * manual/message.texi (The Uniforum approach): Likewise.
74362         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
74363         (glibc iconv Implementation): Likewise.
74364
74365 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
74366
74367         [BZ #14337]
74368         * math/s_clog.c (__clog): Avoid scaling a value down where that
74369         could result in underflow.
74370         * math/s_clog10.c (__clog10): Likewise.
74371         * math/s_clog10f.c (__clog10f): Likewise.
74372         * math/s_clog10l.c (__clog10l): Likewise.
74373         * math/s_clogf.c (__clogf): Likewise.
74374         * math/s_clogl.c (__clogl): Likewise.
74375         * math/libm-test.inc (clog_test): Add more tests.
74376         (clog10_test): Likewise.
74377         * sysdeps/i386/fpu/libm-test-ulps: Update.
74378         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74379
74380 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
74381
74382         [BZ #14283]
74383         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
74384         by 7 not 8 to examine high bit of fractional part.
74385
74386         [BZ #14042]
74387         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
74388         for call to __mcount_internal.
74389         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
74390         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
74391         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
74392
74393 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
74394
74395         [BZ #14154]
74396         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
74397         approximation for values within 0x1p-13f of an odd multiple of
74398         pi/4.
74399         * math/libm-test.inc (tan_test): Do not allow spurious underflow
74400         exception.  Add more tests.
74401         * sysdeps/i386/fpu/libm-test-ulps: Update.
74402
74403         [BZ #6778]
74404         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
74405         inputs and return -1 for them.  Do not check for +Inf in case not
74406         reachable for +Inf.
74407         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
74408         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
74409         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
74410         and return -1 for them.  Do not check for +Inf in case not
74411         reachable for +Inf.
74412         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
74413         define.
74414         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
74415         and return -1 for them.  Do not check for +Inf in case not
74416         reachable for +Inf.
74417         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
74418         spurious underflow.
74419         * sysdeps/i386/fpu/libm-test-ulps: Update.
74420         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74421
74422 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
74423
74424         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
74425
74426 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
74427
74428         [BZ #14157]
74429         [BZ #14331]
74430         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
74431         could result in spurious underflow.  Scale down values above
74432         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
74433         * math/s_csqrtf.c (__csqrtf): Likewise.
74434         * math/s_csqrtl.c (__csqrtl): Likewise.
74435         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
74436         spurious underflow.
74437         * sysdeps/i386/fpu/libm-test-ulps: Update.
74438         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74439
74440 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
74441
74442         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
74443         xopen-msg.sed.
74444         * catgets/xopen-msg.awk: New file.
74445         * catgets/xopen-msg.sed: Removed.
74446
74447         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
74448         po2text.sed.
74449         * intl/po2test.awk: New file.
74450         * intl/po2test.sed: Removed.
74451
74452 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
74453
74454         [BZ #14328]
74455         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
74456         or multiply small sinh result by itself.
74457         * math/s_ctanf.c (__ctanf): Likewise.
74458         * math/s_ctanh.c (__ctanh): Likewise.
74459         * math/s_ctanhf.c (__ctanhf): Likewise.
74460         * math/s_ctanhl.c (__ctanhl): Likewise.
74461         * math/s_ctanl.c (__ctanl): Likewise.
74462         * math/libm-test.inc (ctan_test_tonearest): New function.
74463         (ctan_test_towardzero): Likewise.
74464         (ctan_test_downward): Likewise.
74465         (ctan_test_upward): Likewise.
74466         (ctanh_test_tonearest): Likewise.
74467         (ctanh_test_towardzero): Likewise.
74468         (ctanh_test_downward): Likewise.
74469         (ctanh_test_upward): Likewise.
74470         (main): Call these new functions.
74471         * sysdeps/i386/fpu/libm-test-ulps: Update.
74472         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74473
74474 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
74475
74476         * .gitignore: Delete /ports entry.
74477
74478 2012-07-03  Andreas Jaeger  <aj@suse.de>
74479
74480         * po/bg.po: Update from translation team.
74481         * po/cs.po: Likewise.
74482         * po/de.po: Likewise.
74483         * po/hr.po: Likewise.
74484         * po/nl.pl: Likewise.
74485         * po/pl.po: Likewise.
74486         * po/vi.po: Likewise.
74487
74488 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
74489
74490         * Makeconfig [!+link] (+link-before-libc): New variable.
74491         [!+link] (+link-after-libc): Likewise.
74492         [!+link] (+link-tests): Likewise.
74493         [!+link] (+link): Define in terms of $(+link-before-libc) and
74494         $(+link-after-libc).
74495         [!+link-static] (+link-static-before-libc): New variable.
74496         [!+link-static] (+link-static-after-libc): Likewise.
74497         [!+link-static] (+link-static-tests): Likewise.
74498         [!+link-static] (+link-static): Define in terms of
74499         $(+link-static-before-libc) and $(+link-static-after-libc).
74500         [build-shared] (link-libc-before-gnulib): New variable.
74501         [build-shared] (link-libc-tests): Likewise.
74502         [build-shared] (link-libc): Define in terms of
74503         $(link-libc-before-gnulib).
74504         [!build-shared] (link-libc-tests): New variable.
74505         (link-libc-static-tests): New variable.
74506         [!gnulib] (gnulib-arch): New variable.
74507         [!gnulib] (gnulib-tests): Likewise.
74508         [!gnulib] (static-gnulib-arch): Likewise.
74509         [!gnulib] (static-gnulib-tests): Likewise.
74510         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
74511         Define with "=" instead of ":=".
74512         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
74513         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
74514         * Rules (binaries-all-notests): New variable.
74515         (binaries-all-tests): Likewise.
74516         (binaries-static-notests): Likewise.
74517         (binaries-static-tests): Likewise.
74518         (binaries-all): Define using $(binaries-all-notests) and
74519         $(binaries-all-tests).
74520         (binaries-static): Define using $(binaries-static-notests) and
74521         $(binaries-static-tests).
74522         (binaries-shared-tests): New variable.
74523         (binaries-shared-notests): Likewise.
74524         (binaries-shared): Remove variable.
74525         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
74526         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
74527         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
74528         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
74529         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
74530         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
74531         * elf/Makefile (sln-modules): New variable.
74532         (extra-objs): Add $(sln-modules:=.o).
74533         (ldconfig-modules): Add static-stubs.
74534         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
74535         * elf/static-stubs.c: New file.
74536
74537         [BZ #14283]
74538         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
74539         by 7 not 8 to examine high bit of fractional part.  Use volatile
74540         variables when splitting into final array of floats if
74541         __FLT_EVAL_METHOD__ != 0.
74542         * math/libm-test.inc (cos_test): Add another test.
74543         (sin_test): Likewise.
74544         * sysdeps/i386/fpu/libm-test-ulps: Update.
74545
74546         [BZ #14273]
74547         * math/libm-test.inc (cosh_test): Add more tests.
74548
74549         * version.h (RELEASE): Set to "development".
74550         (VERSION): Set to "2.16.90".
74551
74552 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
74553
74554         * NEWS: Update copyright. Remove last-updated date.
74555         Mention math library bug fixes and timezone data changes.
74556         * README: Mention GNU/Hurd, x32, and HPPA support status.
74557
74558 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
74559
74560         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
74561
74562 2012-06-27  Andreas Jaeger  <aj@suse.de>
74563
74564         * manual/contrib.texi (Contributors): Add Samuel Thibault.
74565
74566 2012-06-25  Andreas Jaeger  <aj@suse.de>
74567
74568         * sysdeps/s390/fpu/libm-test-ulps: Update.
74569
74570 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
74571             Thomas Schwinge  <thomas@codesourcery.com>
74572
74573         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
74574         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
74575         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
74576         fanotify_mark.
74577
74578 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
74579
74580         * sysdeps/mach/start.c: Remove file.
74581         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
74582         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
74583         * sysdeps/sh/init-first.c: Likewise.
74584
74585         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
74586         registers for frame unwinding purposes, add CFI directives.
74587         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
74588         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise.
74589         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
74590         Likewise.
74591
74592         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
74593         __fortify_fail returning.
74594         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
74595
74596         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
74597         sysdeps/sh/____longjmp_chk.S.
74598         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
74599         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
74600         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
74601         (gen-as-const-headers): Append sigaltstack-offsets.sym.
74602
74603         * sysdeps/sh/abort-instr.h: New file.
74604         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
74605         process in case exit returns.
74606
74607         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
74608         initialize the GOT register before use.
74609
74610         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
74611         calculation of ARGC > 4.
74612
74613         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
74614         meaningful names to some local labels.
74615
74616 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
74617             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
74618
74619         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
74620         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
74621         (__arch_compare_and_exchange_val_16_acq): Likewise.
74622         (__arch_compare_and_exchange_val_32_acq): Likewise.
74623         (atomic_exchange_and_add): Fix gUSA sequence.
74624         (atomic_add): Likewise.
74625         (atomic_add_negative): Likewise.
74626         (atomic_add_zero): Likewise.
74627         (atomic_bit_test_set): Likewise.
74628
74629 2012-06-22  Andreas Schwab  <schwab@redhat.com>
74630
74631         [BZ #13579]
74632         * include/link.h (struct link_map): Add l_free_initfini.
74633         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
74634         l_initfini.
74635         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
74636         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
74637         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
74638         set.
74639
74640 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
74641
74642         * configure.in: Use AC_LANG_SOURCE.
74643         * configure: Regenerate.
74644
74645 2012-06-22  Roland McGrath  <roland@hack.frob.com>
74646
74647         * configure.in (libc_cv_localstatedir): New substituted variable.
74648         * configure: Regenerated.
74649         * config.make.in (localstatedir): New variable, substituted from
74650         libc_cv_localstatedir.
74651         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
74652         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
74653         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
74654         * sysdeps/gnu/configure: Regenerated.
74655
74656 2012-06-21  Jeff Law  <law@redhat.com>
74657
74658         [BZ #14277]
74659         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
74660         free.  Simplify list management for _LIBC case.
74661
74662 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
74663
74664         [BZ #14273]
74665         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
74666         Clear sign bit of 64-bit integer value before comparing against
74667         overflow value.
74668
74669         * sysdeps/mach/configure: Regenerated.
74670
74671 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
74672
74673         [BZ #14278]
74674         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
74675
74676 2012-06-21  Jeff Law  <law@redhat.com>
74677
74678         [BZ #13882]
74679         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
74680         uint16_t for elements in the "seen" array to avoid char overflows.
74681         * elf/dl-fini.c (_dl_sort_fini): Likewise.
74682         * elf/dl-open.c (dl_open_worker): Likewise.
74683
74684 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
74685
74686         * scripts/list-sources.sh: Scan PORTS for translations.
74687         * po/libc.pot: Regenerated.
74688
74689 2012-06-21  Andreas Jaeger  <aj@suse.de>
74690
74691         [BZ #12194]
74692         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
74693         warning.
74694         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
74695         * bits/byteswap-16.h (__bswap_16): Likewise.
74696         * bits/byteswap.h (__bswap_constant_16): Likewise.
74697
74698 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
74699
74700         [BZ #14117]
74701         * sysdeps/i386/fpu_control.h: Removed.
74702         * sysdeps/x86_64/fpu_control.h: Moved to ...
74703         * sysdeps/x86/fpu_control.h: Here.
74704
74705         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
74706         (_FPU_SETCW): Likewise.
74707
74708 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
74709
74710         [BZ #14117]
74711         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
74712         * sysdeps/x86/fpu/bits/mathinline.h: This.
74713         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
74714
74715         [BZ #14050]
74716         [BZ #14117]
74717         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
74718         functions if __x86_64__ is defined.
74719
74720 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
74721
74722         * string/endian.h: Add !__ASSEMBLER__ condition for including
74723         conversion interfaces.
74724
74725 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
74726
74727         [BZ #14241]
74728         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
74729         of ABS(x) in calculating zero to negative powers other than odd
74730         integers.
74731         * math/libm-test.inc (pow_test): Add more tests.
74732
74733 2012-06-15  Andreas Jaeger  <aj@suse.de>
74734
74735         * manual/contrib.texi (Contributors): Update entry of Liubov
74736         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
74737         Machado Filho.
74738
74739 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
74740
74741         * string/string.h: Add __wur to GNU version of strerror_r.
74742
74743 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
74744
74745         [BZ #14229]
74746         * string/Makefile (tests): Add tst-strtok_r.
74747         * string/tst-strtok_r.c: New file.
74748         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
74749         RAX_LP/RDX_LP on SAVE_PTR.
74750
74751 2012-06-14  Roland McGrath  <roland@hack.frob.com>
74752
74753         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
74754
74755 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
74756
74757         * libm_test.inc (csqrt_test): Allow more spurious underflow
74758         exceptions.
74759         (j0_test): Likewise.
74760         (j1_test): Likewise.
74761         (y0_test): Likewise.
74762         (y1_test): Likewise.
74763
74764 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
74765
74766         * po/Makefile (libc.pot): Use UTF-8 charset.
74767
74768 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
74769
74770         [BZ #14210]
74771         Suppress sign-conversion warning from FD_SET.
74772         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
74773         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
74774         not unsigned long int.
74775         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
74776
74777 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
74778
74779         [BZ #14050]
74780         [BZ #14117]
74781         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
74782         __extern_always_inline instead of __extern_inline.
74783         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
74784         (__signbit): Likewise.
74785         (__signbitl): Support C++ namespace.
74786         (lrintf): New inline function.
74787         (lrint): Likewise.
74788         (llrintf): Likewise.
74789         (llrint): Likewise.
74790         (fmaxf): Likewise.
74791         (fmax): Likewise.
74792         (fminf): Likewise.
74793         (fmin): Likewise.
74794         (rint): Likewise.
74795         (rintf): Likewise.
74796         (ceil): Likewise.
74797         (ceilf): Likewise.
74798         (floor): Likewise.
74799         (floorf): Likewise.
74800         (nearbyint): Likewise.
74801         (nearbyintf): Likewise.
74802
74803 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
74804
74805         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
74806         non-default versions.
74807
74808 2012-06-11  Roland McGrath  <roland@hack.frob.com>
74809
74810         [BZ #14218]
74811         * manual/argp.texi (Argp): Reword argp_parse description slightly.
74812
74813 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
74814
74815         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
74816         (FE_UPWARD, FE_DOWNWARD): Don't define.
74817         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
74818         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
74819
74820         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
74821         reading it.
74822         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
74823         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
74824
74825 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
74826
74827         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
74828         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
74829         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
74830         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
74831
74832 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
74833
74834         [BZ #14117]
74835         * sysdeps/i386/fpu/bits/fenv.h: Removed.
74836         * sysdeps/i386/fpu/Implies: New file.
74837         * sysdeps/x86_64/fpu/Implies: Likewise.
74838         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
74839         * sysdeps/x86/fpu/bits/fenv.h: This.
74840
74841         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
74842         __SSE_MATH__.
74843
74844 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
74845
74846         [BZ #14134]
74847         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
74848         character 0xffff that matches the last element of the
74849         conversion table.
74850
74851 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
74852
74853         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
74854         fmodl commit.
74855
74856 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
74857
74858         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
74859         values higher than 25.6283.
74860
74861 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
74862
74863         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
74864         subnormal exponent extraction and add some __builtin_expect.
74865         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
74866         Fix for subnormal mantissa calculation.
74867
74868 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
74869
74870         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
74871         cpu2 is -1 and errno is not ENOSYS.
74872
74873 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
74874
74875         [BZ #14117]
74876         * sysdeps/i386/i486/bits/string.h: Renamed to ...
74877         * sysdeps/x86/bits/string.h: This.
74878         * sysdeps/x86_64/bits/string.h: Removed.
74879
74880         * sysdeps/i386/i486/bits/string.h: Define inline functions only
74881         if not compiling for x86-64, but compiling for >= i486.
74882
74883         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
74884         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
74885
74886         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
74887         New macro from Linux kernel 3.4.0.
74888         (FP_XSTATE_MAGIC2): Likewise.
74889         (FP_XSTATE_MAGIC2_SIZE): Likewise.
74890         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
74891         (struct _fpx_sw_bytes): New struct.
74892         (struct _xsave_hdr): Likewise.
74893         (struct _ymmh_state): Likewise.
74894         (struct _xstate): Likewise.
74895
74896         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
74897         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
74898         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
74899         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
74900         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
74901         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
74902
74903         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
74904         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
74905         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
74906         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
74907         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
74908         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
74909
74910 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
74911
74912         [BZ #13743]
74913         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
74914         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
74915         (sysdep_headers): Include sys/platform/ppc.h.
74916         * sysdeps/powerpc/test-gettimebase.c: Test for
74917         __ppc_get_timebase() to catch future ISA opcode/insn changes.
74918         * manual/Makefile (appendices): Include platform.texi.
74919         * manual/contrib.texi (Contributors): Update @node pointers.
74920         * manual/maint.texi (Maintenance): Likewise.
74921         (Platform): New node.
74922         * manual/platform.texi: New file.  Document the new features.
74923
74924 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
74925             Jakub Jelinek  <jakub@redhat.com>
74926
74927         [BZ #14188]
74928         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
74929         where __builtin_expect is unavailable.
74930
74931 2012-06-03  David S. Miller  <davem@davemloft.net>
74932
74933         * stdlib/longlong.h: Updated from GCC.
74934
74935 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
74936
74937         [BZ #14042]
74938         * sysdeps/powerpc/powerpc32/mcount.c: New file.
74939         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
74940         __mcount_internal.
74941         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
74942         (GLIBC_2.16): Likewise.
74943
74944 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
74945
74946         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
74947
74948 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
74949
74950         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
74951         (default-abi): New variable.
74952         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
74953         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
74954         variable.
74955         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
74956         Likewise.
74957         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
74958         Likewise.
74959         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
74960         Likewise.
74961
74962         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
74963         definition.  Document in comment.
74964
74965 2012-06-01  David S. Miller  <davem@davemloft.net>
74966
74967         * stdlib/longlong.h: Updated from GCC.
74968
74969 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
74970
74971         [BZ #14117]
74972         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
74973         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
74974         sys/debugreg.h sys/io.h here.
74975         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
74976         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
74977         sys/io.h.
74978         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
74979         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
74980         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
74981         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
74982         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
74983         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
74984
74985         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
74986         Define only if __x86_64__ is defined.
74987
74988 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
74989
74990         [BZ #14048]
74991         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
74992         Use int64_t for variable i.
74993         * math/libm-test.inc (fmod_test): Add more tests.
74994
74995         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
74996         z computation is not scheduled after fetestexcept.
74997         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
74998         Use math_force_eval instead of asm to ensure calculation scheduled
74999         before exception test.
75000         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
75001         Ensure a1 + u.d computation is not scheduled after fetestexcept.
75002
75003 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
75004
75005         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
75006         computation is not scheduled after fetestexcept.
75007
75008 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
75009
75010         [BZ #14117]
75011         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
75012         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
75013
75014 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
75015
75016         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
75017         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
75018
75019 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
75020
75021         [BZ #14117]
75022         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
75023         <bits/wordsize.h>.
75024         (__WCHAR_MIN): Support __WORDSIZE == 64.
75025         (__WCHAR_MAX): Likewise.
75026
75027         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
75028         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
75029
75030         [BZ #14183]
75031         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
75032         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
75033
75034         [BZ #14117]
75035         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
75036         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
75037
75038         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
75039         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
75040
75041         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
75042         Defined to 1 if __x86_64__ isn't defined.
75043         (_STAT_VER_LINUX_OLD): New.
75044         (st_atime): Remove duplicate.
75045         (st_mtime): Likewise.
75046         (st_ctime): Likewise.
75047
75048 2012-05-31  David S. Miller  <davem@davemloft.net>
75049
75050         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
75051         entries.
75052
75053 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
75054
75055         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
75056         gen-libm-test.pl.
75057
75058         [BZ #14132]
75059         * elf/dl-reloc.c: Include <_itoa.h>.
75060         (_dl_reloc_bad_type): Remove use of INTUSE.
75061         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
75062         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
75063         * stdio-common/psiginfo.c (psiginfo): Likewise.
75064         * stdio-common/psignal.c (psignal): Likewise.
75065         * string/strsignal.c (strsignal): Likewise.
75066         * include/signal.h (_sys_siglist): Declare hidden proto.
75067         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
75068         INTVARDEF with libc_hidden_data_def.
75069         * stdio-common/itoa-udigits.c: Likewise.
75070         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
75071         (_itoa_lower_digits_internal): Remove declaration.
75072         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
75073         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
75074         (_sys_sigabbrev_internal): Remove aliases.
75075         (_sys_siglist): Define hidden alias.
75076
75077 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
75078
75079         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
75080         bits/sysctl.h.
75081
75082 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
75083
75084         [BZ #14117]
75085         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
75086         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
75087
75088         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
75089         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
75090         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
75091         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
75092         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
75093         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
75094
75095         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
75096         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
75097         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
75098
75099         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
75100         with __addr.
75101         (insw): Likewise.
75102         (insl): Likewise.
75103         (outsb): Likewise.
75104         (outsw): Likewise.
75105         (outsl): Likewise.
75106
75107         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
75108         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
75109         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
75110
75111         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
75112         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
75113         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
75114         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
75115         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
75116         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
75117
75118         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
75119         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
75120
75121         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
75122         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
75123
75124         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
75125         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
75126         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
75127
75128         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
75129         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
75130         to ...
75131         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
75132
75133         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
75134         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
75135         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
75136
75137         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
75138         for x86-64.
75139         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
75140
75141 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
75142
75143         * math/math.h (M_El): Use two more decimal places.
75144         (M_LOG2El): Likewise.
75145         (M_LOG10El): Likewise.
75146         (M_LN2l): Likewise.
75147         (M_LN10l): Likewise.
75148         (M_PIl): Likewise.
75149         (M_PI_2l): Likewise.
75150         (M_PI_4l): Likewise.
75151         (M_1_PIl): Likewise.
75152         (M_2_PIl): Likewise.
75153         (M_2_SQRTPIl): Likewise.
75154         (M_SQRT2l): Likewise.
75155         (M_SQRT1_2l): Likewise.
75156
75157 2012-05-31  David S. Miller  <davem@davemloft.net>
75158
75159         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
75160         values between float registers.
75161         * sysdeps/sparc/sparc64/memset.S: Likewise.
75162         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
75163
75164 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
75165
75166         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
75167         -D_FORTIFY_SOURCE=1.
75168         (CPPFLAGS-tst-longjmp_chk.c): Define.
75169         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
75170         (CPPFLAGS-tst-longjmp_chk2.c): Define.
75171         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
75172         CFLAGS-tst-wchar-h.c.
75173
75174 2012-05-31  Marek Polacek  <polacek@redhat.com>
75175
75176         [BZ #14132]
75177         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
75178         __endmntent_internal): Remove declaration.
75179         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
75180         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
75181         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
75182
75183 2012-05-30  David S. Miller  <davem@davemloft.net>
75184
75185         * sysdeps/sparc/sparc32/soft-fp/q_util.c
75186         (___Q_simulate_exceptions): Use real FP ops rather than writing
75187         into the %fsr.
75188         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
75189         Likewise.
75190
75191 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
75192
75193         [BZ #14117]
75194         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
75195         * sysdeps/x86/bits/xtitypes.h: This.
75196
75197         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
75198         * sysdeps/x86/bits/wordsize.h: This.
75199
75200         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
75201         * sysdeps/x86/bits/huge_vall.h: This.
75202
75203         * sysdeps/i386/bits/select.h: Removed.
75204         * sysdeps/x86_64/bits/select.h: Renamed to ...
75205         * sysdeps/x86/bits/select.h: This.
75206
75207         * sysdeps/i386/bits/setjmp.h: Removed.
75208         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
75209         * sysdeps/x86/bits/setjmp.h: This.
75210
75211         * sysdeps/i386/bits/mathdef.h: Removed.
75212         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
75213         * sysdeps/x86/bits/mathdef.h: This.
75214
75215 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
75216
75217         [BZ #14132]
75218         * include/sys/socket.h (__connect_internal)
75219         (__libc_sa_len_internal): Remove declaration.
75220         (__connect, __libc_sa_len): Declare hidden_proto.
75221         (SA_LEN): Remove use of INTUSE.
75222         * socket/connect.c: Add libc_hidden_def.
75223         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
75224         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
75225         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
75226         alias.
75227         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
75228         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
75229         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
75230         of adding _internal alias.
75231
75232 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
75233
75234         [BZ #14117]
75235         * sysdeps/i386/bits/link.h: Removed.
75236         * sysdeps/i386/bits/linkmap.h: Likewise.
75237         * sysdeps/x86_64/bits/link.h: Renamed to ...
75238         * sysdeps/x86/bits/link.h: This.
75239         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
75240         * sysdeps/x86/bits/linkmap.h: This.
75241
75242         * sysdeps/i386/bits/endian.h: Removed.
75243         * sysdeps/x86_64/bits/endian.h: Renamed to ...
75244         * sysdeps/x86/bits/endian.h: This.
75245
75246         * sysdeps/i386/bits/byteswap.h: Removed.
75247         * sysdeps/i386/bits/byteswap-16.h: Likewise.
75248         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
75249         * sysdeps/x86/bits/byteswap.h: This.
75250         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
75251         * sysdeps/x86/bits/byteswap-16.h: This.
75252         * sysdeps/i386/Implies: Add x86.
75253         * sysdeps/x86_64/Implies: Likewise.
75254
75255 2012-05-30  David S. Miller  <davem@davemloft.net>
75256
75257         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
75258         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
75259         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
75260         (FP_TRAPPING_EXCEPTIONS): Define.
75261         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
75262         (FP_TRAPPING_EXCEPTIONS): Define.
75263         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
75264         subnormals only when inexact has been signalled or underflow
75265         exceptions are enabled.
75266         (_FP_PACK_CANONICAL): Likewise.
75267
75268 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
75269
75270         [BZ #14183]
75271         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
75272         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
75273
75274 2012-05-30  Richard Henderson  <rth@twiddle.net>
75275
75276         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
75277         with #ifndef NOT_IN_libc.
75278
75279         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
75280         marked to avoid plt entry.
75281
75282 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
75283
75284         [BZ #14112]
75285         * Makeconfig (default-abi): New macro.
75286         (abi-includes): Likewise.
75287         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
75288         $(abi-$(default-abi)-lib-soname) for soname if defined.
75289         ($(common-objpfx)gnu/lib-names.stmp): Generate from
75290         abi-variants.
75291         * Makefile (installed-stubs): Likewise.
75292         * include/stubs-biarch.h: Removed.
75293         * scripts/lib-names.awk: Only handle one library at a time.
75294         * scripts/soversions.awk: Remove WORDSIZE support.
75295         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
75296         entries.
75297         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
75298         Removed.
75299         (syscall-list-default-condition): Likewise.
75300         (syscall-list-default-condition): Likewise.
75301         (syscall-list-includes): Likewise.
75302         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
75303         syscall-list-* with abi-*.  Handle undefined abi-variants.
75304         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
75305         * sysdeps/unix/sysv/linux/i386/Implies: New file.
75306         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
75307         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
75308         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
75309         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
75310         Removed.
75311         (syscall-list-32-options): Likewise.
75312         (syscall-list-32-condition): Likewise.
75313         (syscall-list-64-options): Likewise.
75314         (syscall-list-64-condition): Likewise.
75315         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
75316         macro.
75317         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
75318         Renamed to ...
75319         (abi-*): This.
75320         (abi-64-ld-soname): New macro.
75321         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
75322         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
75323         Renamed to ...
75324         (abi-*): This.
75325         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
75326         * sysdeps/x86_64/x32/shlib-versions: Likewise.
75327
75328 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
75329
75330         * sysdeps/unix/sysv/linux/kernel-features.h
75331         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
75332         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
75333         include <kernel-features.h>.
75334         [!__NR_ftruncate64]: Remove conditional code.
75335         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
75336         [__NR_ftruncate64]: Make code unconditional.
75337         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
75338         * sysdeps/unix/sysv/linux/truncate64.c: Do not
75339         include <kernel-features.h>.
75340         [!__NR_ftruncate64]: Remove conditional code.
75341         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
75342         [__NR_ftruncate64]: Make code unconditional.
75343         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
75344         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
75345         include <kernel-features.h>.
75346         [!__NR_ftruncate64]: Remove conditional code.
75347         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
75348         [__NR_ftruncate64]: Make code unconditional.
75349         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
75350         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
75351         include <kernel-features.h>.
75352         [!__NR_ftruncate64]: Remove conditional code.
75353         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
75354         [__NR_ftruncate64]: Make code unconditional.
75355         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
75356
75357         * configure.in (libc_cv_fpie): Weaken to a compile test using
75358         LIBC_TRY_CC_OPTION.
75359         * configure: Regenerated.
75360
75361 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75362
75363         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
75364         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
75365         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
75366         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
75367         Refreshed.
75368         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
75369         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
75370         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
75371         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
75372         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
75373         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
75374         Refreshed.
75375
75376 2012-05-27  David S. Miller  <davem@davemloft.net>
75377
75378         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
75379         (___Q_zero): New.
75380         (__Q_simulate_exceptions): Return void.  Change to simulate
75381         exceptions by writing into the %fsr.
75382         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
75383         (__Qp_handle_exceptions): Likewise.
75384         (numbers): Delete.
75385         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
75386         __Qp_handle_exceptions.
75387         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
75388         __Qp_handle_exceptions.
75389         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
75390         as unused and give dummy FP_RND_NEAREST initializer.
75391         (FP_INHIBIT_RESULTS): Define.
75392         (___Q_simulate_exceptions): Update declaration.
75393         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
75394         formatting.
75395         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
75396         as unused and give dummy FP_RND_NEAREST initializer.
75397         (__Qp_handle_exceptions): Update declaration.
75398         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
75399         formatting.
75400
75401 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
75402
75403         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
75404         the temporary FPU control word.
75405         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
75406         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
75407         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
75408         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
75409         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
75410         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
75411         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
75412         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
75413         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
75414         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
75415         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
75416
75417 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
75418
75419         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
75420         fields.
75421
75422 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
75423
75424         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
75425         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
75426         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
75427         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
75428         Likewise.
75429         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
75430         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
75431         Likewise.
75432
75433 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
75434
75435         * po/h.po: Update from translation team.
75436
75437 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
75438
75439         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
75440
75441         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
75442         handling of denormals.
75443         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
75444         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
75445         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
75446         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
75447         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
75448         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
75449         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
75450         Likewise.
75451
75452 2012-05-26  Marek Polacek  <polacek@redhat.com>
75453
75454         [BZ #14152]
75455         * math/libm-test.inc (fma_test): Don't always expect underflow
75456         exception.
75457
75458 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
75459
75460         [BZ #12416]
75461         * elf/tst-execstack.c: Include stackinfo.h.
75462         (do_test): Adjust test case to ensure that pthread_getattr_np
75463         behaviour remains the same after marking stack executable.
75464
75465 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
75466
75467         * sysdeps/unix/sysv/linux/kernel-features.h
75468         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
75469         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
75470         kernel-features.h.
75471         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
75472         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
75473         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
75474         kernel-features.h.
75475         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
75476         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
75477
75478 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
75479
75480         * configure.in: Define the default includes to being none.
75481         * configure: Regenerated.
75482
75483 2012-05-25  Roland McGrath  <roland@hack.frob.com>
75484
75485         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
75486         * sysdeps/x86_64/setjmp.S: Likewise.
75487         * sysdeps/i386/bsd-setjmp.S: Likewise.
75488         * sysdeps/i386/bsd-_setjmp.S: Likewise.
75489         * sysdeps/i386/setjmp.S: Likewise.
75490         * sysdeps/i386/__longjmp.S: Likewise.
75491         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
75492         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
75493
75494         * include/stap-probe.h: New file.
75495         * configure.in: Handle --enable-systemtap.
75496         * configure: Regenerated.
75497         * config.h.in (USE_STAP_PROBE): New #undef.
75498         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
75499         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
75500         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
75501
75502 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
75503
75504         [BZ #13717]
75505         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
75506         to 2.4.0 where earlier.
75507         * sysdeps/unix/sysv/linux/configure: Regenerated.
75508         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
75509         <kernel-features.h>.
75510         [__ASSUME_32BITUIDS]: Make code unconditional.
75511         [!__ASSUME_32BITUIDS]: Remove conditional code.
75512         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
75513         <kernel-features.h>.
75514         [__ASSUME_32BITUIDS]: Make code unconditional.
75515         [!__ASSUME_32BITUIDS]: Remove conditional code.
75516         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
75517         [__ASSUME_32BITUIDS]: Make code unconditional.
75518         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
75519         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
75520         <kernel-features.h>.
75521         [__ASSUME_32BITUIDS]: Make code unconditional.
75522         [!__ASSUME_32BITUIDS]: Remove conditional code.
75523         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
75524         <kernel-features.h>.
75525         [__ASSUME_32BITUIDS]: Make code unconditional.
75526         [!__ASSUME_32BITUIDS]: Remove conditional code.
75527         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
75528         <kernel-features.h>.
75529         [__ASSUME_32BITUIDS]: Make code unconditional.
75530         [!__ASSUME_32BITUIDS]: Remove conditional code.
75531         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
75532         <kernel-features.h>.
75533         [__ASSUME_32BITUIDS]: Make code unconditional.
75534         [!__ASSUME_32BITUIDS]: Remove conditional code.
75535         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
75536         <kernel-features.h>.
75537         [__ASSUME_32BITUIDS]: Make code unconditional.
75538         [!__ASSUME_32BITUIDS]: Remove conditional code.
75539         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
75540         <kernel-features.h>.
75541         [__ASSUME_32BITUIDS]: Make code unconditional.
75542         [!__ASSUME_32BITUIDS]: Remove conditional code.
75543         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
75544         <kernel-features.h>.
75545         [__ASSUME_32BITUIDS]: Make code unconditional.
75546         [!__ASSUME_32BITUIDS]: Remove conditional code.
75547         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
75548         <kernel-features.h>.
75549         [__ASSUME_32BITUIDS]: Make code unconditional.
75550         [!__ASSUME_32BITUIDS]: Remove conditional code.
75551         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
75552         <kernel-features.h>.
75553         [__ASSUME_32BITUIDS]: Make code unconditional.
75554         [!__ASSUME_32BITUIDS]: Remove conditional code.
75555         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
75556         <kernel-features.h>.
75557         [__ASSUME_32BITUIDS]: Make code unconditional.
75558         [!__ASSUME_32BITUIDS]: Remove conditional code.
75559         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
75560         <kernel-features.h>.
75561         [__NR_setresgid] (__setresgid): Do not declare.
75562         [__ASSUME_32BITUIDS]: Make code unconditional.
75563         [!__ASSUME_32BITUIDS]: Remove conditional code.
75564         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
75565         <kernel-features.h>.
75566         [__NR_setresuid] (__setresuid): Do not declare.
75567         [__ASSUME_32BITUIDS]: Make code unconditional.
75568         [!__ASSUME_32BITUIDS]: Remove conditional code.
75569         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
75570         <kernel-features.h>.
75571         [__ASSUME_32BITUIDS]: Make code unconditional.
75572         [!__ASSUME_32BITUIDS]: Remove conditional code.
75573         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
75574         <kernel-features.h>.
75575         [__ASSUME_32BITUIDS]: Make code unconditional.
75576         [!__ASSUME_32BITUIDS]: Remove conditional code.
75577         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
75578         <kernel-features.h>.
75579         [__ASSUME_32BITUIDS]: Make code unconditional.
75580         [!__ASSUME_32BITUIDS]: Remove conditional code.
75581         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
75582         <kernel-features.h>.
75583         [__ASSUME_32BITUIDS]: Make code unconditional.
75584         [!__ASSUME_32BITUIDS]: Remove conditional code.
75585         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
75586         <kernel-features.h>.
75587         [__ASSUME_32BITUIDS]: Make code unconditional.
75588         [!__ASSUME_32BITUIDS]: Remove conditional code.
75589         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
75590         <kernel-features.h>.
75591         [__ASSUME_32BITUIDS]: Make code unconditional.
75592         [!__ASSUME_32BITUIDS]: Remove conditional code.
75593         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
75594         <kernel-features.h>.
75595         [__ASSUME_32BITUIDS]: Make code unconditional.
75596         [!__ASSUME_32BITUIDS]: Remove conditional code.
75597         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
75598         <kernel-features.h>.
75599         [__ASSUME_32BITUIDS]: Make code unconditional.
75600         [!__ASSUME_32BITUIDS]: Remove conditional code.
75601         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
75602         <kernel-features.h>.
75603         [__ASSUME_32BITUIDS]: Make code unconditional.
75604         [!__ASSUME_32BITUIDS]: Remove conditional code.
75605         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
75606         <kernel-features.h>.
75607         [__ASSUME_32BITUIDS]: Make code unconditional.
75608         [!__ASSUME_32BITUIDS]: Remove conditional code.
75609         * sysdeps/unix/sysv/linux/kernel-features.h
75610         (__ASSUME_SETRESUID_SYSCALL): Remove.
75611         (__ASSUME_SETRESGID_SYSCALL): Likewise.
75612         (__ASSUME_32BITUIDS): Likewise.
75613         (__ASSUME_LDT_WORKS): Likewise.
75614         (__ASSUME_O_DIRECTORY): Likewise.
75615         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
75616         architecture but not kernel version.
75617         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
75618         (__ASSUME_MMAP2_SYSCALL): Likewise.
75619         (__ASSUME_STAT64_SYSCALL): Likewise.
75620         (__ASSUME_IPC64): Likewise.
75621         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
75622         <kernel-features.h>.
75623         [__ASSUME_32BITUIDS]: Make code unconditional.
75624         [!__ASSUME_32BITUIDS]: Remove conditional code.
75625         * sysdeps/unix/sysv/linux/opendir.c: Do not include
75626         <kernel-features.h>.
75627         [__ASSUME_O_DIRECTORY]: Make code unconditional.
75628         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
75629         132096]: Remove conditional code.
75630         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
75631         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
75632         <kernel-features.h>.
75633         [__ASSUME_32BITUIDS]: Make code unconditional.
75634         [!__ASSUME_32BITUIDS]: Remove conditional code.
75635         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
75636         <kernel-features.h>.
75637         [__ASSUME_32BITUIDS]: Make code unconditional.
75638         [!__ASSUME_32BITUIDS]: Remove conditional code.
75639         * sysdeps/unix/sysv/linux/setegid.c: Do not include
75640         <kernel-features.h>.
75641         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
75642         unconditional.
75643         (__setresgid): Do not declare.
75644         [__ASSUME_32BITUIDS]: Make code unconditional.
75645         [!__ASSUME_32BITUIDS]: Remove conditional code.
75646         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
75647         <kernel-features.h>.
75648         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
75649         unconditional.
75650         (__setresuid): Do not declare.
75651         [__ASSUME_32BITUIDS]: Make code unconditional.
75652         [!__ASSUME_32BITUIDS]: Remove conditional code.
75653         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
75654         <kernel-features.h>.
75655         [__ASSUME_32BITUIDS]: Make code unconditional.
75656         [!__ASSUME_32BITUIDS]: Remove conditional code.
75657         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
75658         <kernel-features.h>.
75659         [__ASSUME_32BITUIDS]: Make code unconditional.
75660         [!__ASSUME_32BITUIDS]: Remove conditional code.
75661
75662 2012-05-25  Richard Henderson  <rth@twiddle.net>
75663
75664         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
75665         dl_hwcap to ifunc resolver.
75666         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
75667         elf_ifunc_invoke.
75668         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
75669         dl_hwcap to ifunc resolver.
75670         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
75671
75672 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
75673
75674         [BZ #14153]
75675         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
75676         for |x| <= 2**-26, not 2**-57.
75677         * math/libm-test.inc (acos_test): Do not allow spurious underflow
75678         exception.
75679
75680 2012-05-24  Jeff Law  <law@redhat.com>
75681
75682         * stdio-common/Makefile (tests): Add bug25.
75683         * stdio-common/bug25.c: New test.
75684
75685 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
75686
75687         [BZ #13576]
75688         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
75689         multiple of MALLOC_ALIGNMENT in size.
75690         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
75691
75692 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
75693
75694         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
75695         Require >= 256.
75696         (FILENAME_MAX): Use macro-int-constant.
75697         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
75698         (_IOFBF): Use macro-int-constant.
75699         (_IOLBF): Likewise.
75700         (_IONBF): Likewise.
75701         (SEEK_CUR): Likewise.
75702         (SEEK_END): Likewise.
75703         (SEEK_SET): Likewise.
75704         (TMP_MAX): Likewise.
75705         (EOF): Use macro-int-constant.  Require < 0.
75706         (NULL): Use macro-constant.  Require == 0.
75707         (stdin): Require type to be FILE *.
75708         (stdout): Likewise.
75709         (stderr): Likewise.
75710         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
75711         macro-int-constant.
75712         (EXIT_SUCCESS): Likewise.
75713         (NULL): Use macro-constant.  Require == 0.
75714         (RAND_MAX): Use macro-int-constant.
75715         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
75716         [C99-based standards] (strtof): Require function.
75717         [C99-based standards] (strtold): Likewise.
75718         [C99-based standards] (strtoll): Likewise.
75719         [C99-based standards] (strtoull): Likewise.
75720         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
75721         [ISO || ISO99 || ISO11] (limits.h): Likewise.
75722         [ISO || ISO99 || ISO11] (math.h): Likewise.
75723         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
75724         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
75725         [ISO || ISO99 || ISO11] (*_t): Do not allow.
75726
75727 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
75728
75729         [BZ #14132]
75730         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
75731         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
75732         * intl/dgettext.c (DCGETTEXT): Likewise.
75733         * intl/gettext.c (DCGETTEXT): Likewise.
75734         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
75735         * posix/regex_internal.h (gettext): Likewise.
75736         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
75737         Remove declaration.
75738         * include/argz.h (__argz_count_internal)
75739         (__argz_stringify_internal): Remove declaration.
75740         (__argz_count, __argz_stringify): Declare hidden proto.
75741         * intl/dcgettext.c: Remove use of INTDEF.
75742         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
75743         * string/argz-stringify.c: Likewise.
75744         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
75745         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
75746         Declare hidden proto.
75747         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
75748         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
75749         Declare hidden proto.
75750         * include/stdio.h (__asprintf_internal): Don't declare.
75751         (__asprintf): Don't define as macro.  Declare hidden proto.
75752         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
75753         (__fsetlocking): Declare hidden proto.
75754         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
75755         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
75756         hidden proto.
75757         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
75758         (_IO_setlinebuf): Remove use of INTUSE.
75759         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
75760         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
75761         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
75762         Remove declaration.
75763         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
75764         (_IO_do_flush): Remove use of INTUSE.
75765         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
75766         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
75767         (_IO_adjust_column, _IO_least_wmarker)
75768         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
75769         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
75770         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
75771         (_IO_default_doallocate, _IO_wdefault_doallocate)
75772         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
75773         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
75774         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
75775         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
75776         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
75777         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
75778         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
75779         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
75780         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
75781         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
75782         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
75783         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
75784         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
75785         proto.
75786         (_IO_flush_all_internal, _IO_adjust_column_internal)
75787         (_IO_default_uflow_internal, _IO_default_finish_internal)
75788         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
75789         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
75790         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
75791         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
75792         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
75793         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
75794         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
75795         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
75796         (_IO_file_close_internal, _IO_file_close_it_internal)
75797         (_IO_file_underflow_internal, _IO_file_overflow_internal)
75798         (_IO_file_init_internal, _IO_file_attach_internal)
75799         (_IO_file_fopen_internal, _IO_file_read_internal)
75800         (_IO_file_sync_internal, _IO_file_seek_internal)
75801         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
75802         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
75803         (_IO_str_underflow_internal, _IO_str_overflow_internal)
75804         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
75805         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
75806         (_IO_list_all_internal, _IO_link_in_internal)
75807         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
75808         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
75809         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
75810         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
75811         (_IO_do_write_internal, _IO_padn_internal)
75812         (_IO_getline_info_internal, _IO_getline_internal)
75813         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
75814         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
75815         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
75816         (_IO_vfscanf_internal, _IO_vfprintf_internal)
75817         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
75818         (_IO_init_internal, _IO_un_link_internal): Don't declare.
75819         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
75820         with libc_hidden_ver, remove use of INTUSE.
75821         * libio/genops.c: Likewise.
75822         * libio/freopen.c: Likewise.
75823         * libio/freopen64.c: Likewise.
75824         * libio/iofclose.c: Likewise.
75825         * libio/iofdopen.c: Likewise.
75826         * libio/iofflush.c: Likewise.
75827         * libio/iofflush_u.c: Likewise.
75828         * libio/iofgets.c: Likewise.
75829         * libio/iofgets_u.c: Likewise.
75830         * libio/iofopen.c: Likewise.
75831         * libio/iofopncook.c: Likewise.
75832         * libio/iofread.c: Likewise.
75833         * libio/iofread_u.c: Likewise.
75834         * libio/ioftell.c: Likewise.
75835         * libio/iofwrite.c: Likewise.
75836         * libio/iogetline.c: Likewise.
75837         * libio/iogets.c: Likewise.
75838         * libio/iogetwline.c: Likewise.
75839         * libio/iopadn.c: Likewise.
75840         * libio/iopopen.c: Likewise.
75841         * libio/ioseekoff.c: Likewise.
75842         * libio/ioseekpos.c: Likewise.
75843         * libio/iosetbuffer.c: Likewise.
75844         * libio/iosetvbuf.c: Likewise.
75845         * libio/ioungetc.c: Likewise.
75846         * libio/ioungetwc.c: Likewise.
75847         * libio/iovdprintf.c: Likewise.
75848         * libio/iovsprintf.c: Likewise.
75849         * libio/iovsscanf.c: Likewise.
75850         * libio/memstream.c: Likewise.
75851         * libio/obprintf.c: Likewise.
75852         * libio/oldfileops.c: Likewise.
75853         * libio/oldiofclose.c: Likewise.
75854         * libio/oldiofdopen.c: Likewise.
75855         * libio/oldiofopen.c: Likewise.
75856         * libio/oldiopopen.c: Likewise.
75857         * libio/oldstdfiles.c: Likewise.
75858         * libio/putc.c: Likewise.
75859         * libio/setbuf.c: Likewise.
75860         * libio/setlinebuf.c: Likewise.
75861         * libio/stdfiles.c: Likewise.
75862         * libio/strops.c: Likewise.
75863         * libio/vasprintf.c: Likewise.
75864         * libio/vscanf.c: Likewise.
75865         * libio/vsnprintf.c: Likewise.
75866         * libio/vswprintf.c: Likewise.
75867         * libio/wfiledoalloc.c: Likewise.
75868         * libio/wfileops.c: Likewise.
75869         * libio/wgenops.c: Likewise.
75870         * libio/wmemstream.c: Likewise.
75871         * libio/wstrops.c: Likewise.
75872         * libio/__fpurge.c: Likewise.
75873         * libio/__fsetlocking.c: Likewise.
75874         * assert/assert.c: Likewise.
75875         * debug/fgets_chk.c: Likewise.
75876         * debug/fgets_u_chk.c: Likewise.
75877         * debug/fread_chk.c: Likewise.
75878         * debug/fread_u_chk.c: Likewise.
75879         * debug/gets_chk.c: Likewise.
75880         * debug/obprintf_chk.c: Likewise.
75881         * debug/vasprintf_chk.c: Likewise.
75882         * debug/vdprintf_chk.c: Likewise.
75883         * debug/vsnprintf_chk.c: Likewise.
75884         * debug/vsprintf_chk.c: Likewise.
75885         * malloc/mtrace.c: Likewise.
75886         * misc/error.c: Likewise.
75887         * misc/syslog.c: Likewise.
75888         * stdio-common/asprintf.c: Likewise.
75889         * stdio-common/fxprintf.c: Likewise.
75890         * stdio-common/getw.c: Likewise.
75891         * stdio-common/isoc99_fscanf.c: Likewise.
75892         * stdio-common/isoc99_scanf.c: Likewise.
75893         * stdio-common/isoc99_vfscanf.c: Likewise.
75894         * stdio-common/isoc99_vscanf.c: Likewise.
75895         * stdio-common/isoc99_vsscanf.c: Likewise.
75896         * stdio-common/printf-prs.c: Likewise.
75897         * stdio-common/printf_fp.c: Likewise.
75898         * stdio-common/printf_fphex.c: Likewise.
75899         * stdio-common/printf_size.c: Likewise.
75900         * stdio-common/putw.c: Likewise.
75901         * stdio-common/scanf.c: Likewise.
75902         * stdio-common/sprintf.c: Likewise.
75903         * stdio-common/tmpfile.c: Likewise.
75904         * stdio-common/vfprintf.c: Likewise.
75905         * stdio-common/vfscanf.c: Likewise.
75906         * stdlib/strfmon_l.c: Likewise.
75907         * sunrpc/openchild.c: Likewise.
75908         * sunrpc/xdr_stdio.c: Likewise.
75909         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
75910         * sysdeps/mach/hurd/tmpfile.c: Likewise.
75911
75912 2012-05-24  Roland McGrath  <roland@hack.frob.com>
75913
75914         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
75915
75916         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
75917         in the third column, to generate for the shared library an IFUNC
75918         that uses _dl_vdso_vsym.
75919         * Makerules (COMPILE.c, compile-stdin.c): New variables.
75920         * Makeconfig (object-suffixes-noshared): New variable.
75921
75922         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
75923         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
75924         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
75925         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
75926
75927         [BZ #14132]
75928         * include/sys/time.h (__gettimeofday): Remove macro.
75929         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
75930         * time/gettimeofday.c (__gettimeofday): Remove #undef.
75931         Remove INTDEF.
75932         (__gettimeofday): Add libc_hidden_def.
75933         (gettimeofday): Add libc_hidden_weak.
75934         * sysdeps/mach/gettimeofday.c: Likewise.
75935         * sysdeps/posix/gettimeofday.c: Likewise.
75936         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
75937         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
75938         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
75939         (__gettimeofday_internal): Remove strong_alias.
75940         (__gettimeofday): Add libc_hidden_def.
75941         (gettimeofday): Add libc_hidden_weak.
75942         * sysdeps/unix/syscalls.list (gettimeofday):
75943         Remove __gettimeofday_internal alias.
75944
75945 2012-05-24  Daniel Jacobowitz  <drow@false.org>
75946             H.J. Lu  <hongjiu.lu@intel.com>
75947
75948         [BZ #12495]
75949         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
75950         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
75951         (largebin_index_32_big): New.
75952         (largebin_index): Use it for 16-byte alignment.
75953         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
75954         correction with front_misalign.
75955
75956 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
75957
75958         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
75959         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
75960         Likewise.
75961         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
75962         Likewise.
75963         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
75964         Likewise.
75965         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
75966         Likewise.
75967         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
75968         Likewise.
75969         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
75970         Likewise.
75971         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
75972         Likewise.
75973         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
75974         Likewise.
75975         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
75976         Likewise.
75977         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
75978         Likewise.
75979         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
75980         Likewise.
75981         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
75982         Likewise.
75983
75984         * scripts/data/c++-types-x32-linux-gnu.data: New file.
75985         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
75986
75987 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
75988
75989         [BZ #10846]
75990         [BZ #14036]
75991         * math/libm-test.inc (exp_test): Add test from bug 14036.
75992         (pow_test): Add test from bug 10846.
75993
75994         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
75995         and other flags.
75996         (special_function): Do not include flags in test name.
75997         (parse_args): Likewise.
75998         * sysdeps/i386/fpu/libm-test-ulps: Update.
75999         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
76000         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
76001         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
76002         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
76003
76004         * math/gen-libm-test.pl (%beautify): Add entries for underflow
76005         exceptions.
76006         * math/libm-test.inc ("Philosophy"): Update comment about
76007         exception testing.
76008         (UNDERFLOW_EXCEPTION): New macro.
76009         (UNDERFLOW_EXCEPTION_OK): Likewise.
76010         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
76011         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
76012         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
76013         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
76014         (INVALID_EXCEPTION_OK): Update value.
76015         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
76016         (OVERFLOW_EXCEPTION_OK): Likewise.
76017         (IGNORE_ZERO_INF_SIGN): Likewise.
76018         (test_exceptions): Handle underflow exceptions.
76019         (acos_test): Update for underflow exception expectations.
76020         (cexp_test): Likewise.
76021         (clog_test): Likewise.
76022         (clog10_test): Likewise.
76023         (csqrt_test): Likewise.
76024         (ctan_test): Likewise.
76025         (ctanh_test): Likewise.
76026         (exp_test): Likewise.
76027         (exp10_test): Likewise.
76028         (exp2_test): Likewise.
76029         (expm1_test): Likewise.
76030         (fma_test): Likewise.
76031         (j0_test): Likewise.
76032         (jn_test): Likewise.
76033         (nexttoward_test): Likewise.
76034         (pow_test): Likewise.
76035         (scalbn_test): Likewise.
76036         (scalbln_test): Likewise.
76037         (tan_test): Likewise.
76038         (y1_test): Likewise.
76039         * sysdeps/i386/fpu/libm-test-ulps: Update.
76040         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
76041
76042 2012-05-23  David S. Miller  <davem@davemloft.net>
76043
76044         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
76045         (__libc_sigaction): Remove unused local variables.
76046
76047 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
76048
76049         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
76050
76051 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
76052
76053         mktime: avoid signed integer overflow
76054         * time/mktime.c (__mktime_internal): Do not mishandle the case
76055         where diff == INT_MIN.
76056
76057         mktime: simplify computation of average
76058         * time/mktime.c (ranged_convert): Use new time_t_avg function
76059         instead of rolling our own (probably-slower) code.
76060
76061         mktime: do not assume signed right shift propagates sign bit
76062         * time/mktime.c (isdst_differ): New static function.
76063         (__mktime_internal): No need to normalize tm_isdst now.
76064         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
76065         tm_isdst values.
76066
76067         mktime: merge another wrapv change from gnulib
76068         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
76069         from some compilers.
76070
76071         mktime: remove incorrect attempt at unusual arithmetics
76072         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
76073         The code didn't really work on such machines anyway.
76074         (TYPE_MINIMUM): Assume two's complement.
76075         (twos_complement_arithmetic): Verify that long_int and time_t
76076         are two's complement (or unsigned, in the latter case).
76077
76078         mktime: check signed shifts on long_int and time_t, too
76079         * time/mktime.c (SHR): Check that shifts work as desired
76080         on the types long_int and time_t too, as SHR is used on
76081         such types.
76082
76083         mktime: do not assume 'long' is wide enough
76084         * time/mktime.c (verify): Move decl up.
76085         (long_int): New type.
76086         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
76087         to remove assumption in the code that 'long' is wide enough to
76088         store year values.  This assumption is not true on x32 and on
76089         some non-glibc platforms.
76090
76091         mktime: merge wrapv change from gnulib
76092         * time/mktime.c (WRAPV): New macro.
76093         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
76094         (guess_time_tm, __mktime_internal): Do not assume that signed
76095         integer overflow wraps around; modern compilers generate code
76096         where this assumption is no longer valid.
76097
76098 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
76099
76100         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
76101         Replace "jmp L(pseudo_end)" with "ret".
76102         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
76103         Likewise.
76104
76105 2012-05-23  Andreas Jaeger  <aj@suse.de>
76106
76107         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
76108         * sysdeps/unix/sysv/linux/poll.c: Remove file.
76109
76110 2012-05-23  Andreas Jaeger  <aj@suse.de>
76111             Maximilian Attems  <max@stro.at>
76112
76113         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
76114         New macros.
76115
76116 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
76117
76118         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
76119         code so that pseudo_end is just ret and the stack pointer is
76120         correct also for static library in error case.
76121
76122 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
76123
76124         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
76125         move to syscalls.list.
76126         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
76127         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
76128         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
76129         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
76130
76131         * manual/install.texi (Running make install): Do not mention Linux
76132         kernel version for which pt_chown is not needed.
76133         (Linux): Do not mention problems with nscd with 2.0 kernels.
76134         * INSTALL: Regenerated.
76135
76136 2012-05-23  Andreas Jaeger  <aj@suse.de>
76137
76138         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
76139         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
76140         macro.
76141         * sysdeps/unix/sysv/linux/s390/bits/mman.h
76142         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
76143         * sysdeps/unix/sysv/linux/sh/bits/mman.h
76144         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
76145         * sysdeps/unix/sysv/linux/i386/bits/mman.h
76146         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
76147         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
76148         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
76149         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
76150         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
76151         * sysdeps/unix/sysv/linux/bits/in.h
76152         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
76153
76154 2012-05-22  Roland McGrath  <roland@hack.frob.com>
76155
76156         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
76157         (PREPARE_VERSION): Just use assert instead, it will be elided
76158         under [NDEBUG] anyway.
76159
76160 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
76161
76162         * sysdeps/unix/sysv/linux/Makefile: Include
76163         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
76164         (sysdep_routines): Remove sysctl.
76165         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
76166         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
76167         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
76168         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
76169         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
76170
76171 2012-05-22  Andreas Jaeger  <aj@suse.de>
76172
76173         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
76174         that pseudo_end is just ret and the stack pointer is correct also
76175         for static library in error case.
76176
76177 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
76178
76179         [BZ #14122]
76180         * nss/nsswitch.c (defconfig_entries): New variable.
76181         (__nss_database_lookup): Don't leak defconfig entries.
76182         (nss_parse_service_list): Don't leak on error paths.
76183         (free_database_entries): New function.
76184         (free_defconfig): New function.
76185         (free_mem): Move common code to free_database_entries.
76186
76187 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
76188
76189         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
76190         Add arch_prctl.
76191         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
76192
76193         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
76194         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
76195         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
76196         New macro.
76197         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
76198         (INTERNAL_SYSCALL_TYPES): Likewise.
76199         (LOAD_ARGS_TYPES_[1-6]): Likewise.
76200         (LOAD_REGS_TYPES_[1-6]): Likewise.
76201         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
76202         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
76203
76204 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
76205
76206         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
76207         copysignl for GLIBC_2_0.
76208         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
76209         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
76210         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
76211         logbl for GLIBC_2_0.
76212         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
76213         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
76214
76215 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
76216
76217         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
76218         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
76219
76220         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
76221         Use "neg %eax".
76222
76223         * time/mktime.c: Update copyright years.
76224
76225 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76226
76227         mktime: merge comment-quoting-style change from gnulib
76228         * time/mktime.c: Quote 'like this' in comments.
76229         The GNU coding standards suggest that we no longer quote `like this',
76230         as "`" and "'" are typically rendered asymmetrically nowadays.
76231         The typical gnulib style is to quote 'like this' when quoting
76232         code, and "like this" when quoting English.
76233
76234         * time/mktime.c (compile-command): Add "-I.".
76235
76236         mktime: merge mktime-internal.h change from gnulib
76237         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
76238
76239         mktime: merge time_r change from gnulib
76240         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
76241
76242         mktime: merge DEBUG change from gnulib
76243         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
76244         case system <time.h> has a #define.
76245
76246         mktime: merge <sys/types.h> change from gnulib
76247         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
76248         since <time.t> is now guaranteed to define time_t.
76249
76250         mktime: merge HAVE_CONFIG_H change from gnulib
76251         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
76252
76253 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
76254
76255         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
76256         Use "neg %eax".
76257
76258         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
76259         __rlim_t cast.
76260         (struct rusage): Use anonymous union to pad each field to
76261         __syscall_slong_t.
76262
76263 2012-05-21  David S. Miller  <davem@davemloft.net>
76264
76265         * Makefules (o-iterator): Remove .s cases.
76266         (compile-command.s): Delete.
76267         (COMPILE.s): Delete.
76268         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
76269
76270 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
76271
76272         * configure.in (libc_cv_predef_stack_protector): Only consider
76273         "foobar" and "__stack_chk_fail" lines in libc_undefs.
76274         * configure: Regenerated.
76275
76276 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
76277
76278         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
76279         New macro.  Use R*LP on int and pointer.
76280         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
76281         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
76282         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
76283         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
76284
76285         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
76286         [__WORDSIZE_TIME64_COMPAT32] instead of
76287         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
76288         (struct utmp): Likewise.
76289         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
76290         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
76291         Renamed to ...
76292         (__WORDSIZE_TIME64_COMPAT32): This.
76293         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
76294         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
76295         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
76296         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
76297         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
76298         (__WORDSIZE_TIME64_COMPAT32): New macro.
76299
76300 2012-05-21  Andreas Jaeger  <aj@suse.de>
76301
76302         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
76303         only if [SHARED]. Add prototype for __wcschr_ia32.
76304
76305 2012-05-21  Roland McGrath  <roland@hack.frob.com>
76306
76307         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
76308         of %rbp unmolested in the jmp_buf while mangling the low bits.
76309         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
76310         unmolested high bits of %rbp while demangling the low bits.
76311         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
76312
76313 2012-05-21  Andreas Jaeger  <aj@suse.de>
76314
76315         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
76316         * sunrpc/svc_simple.c: Use it for registerrpc.
76317         * sunrpc/xcrypt.c: Use it for passwd2des.
76318
76319         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
76320
76321 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
76322
76323         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
76324         Don't define if [__SYSCALL_WORDSIZE != 32].
76325         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
76326         New macro.
76327
76328 2012-05-21  Bruno Haible  <bruno@clisp.org>
76329             Andreas Jaeger  <aj@suse.de>
76330
76331         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
76332         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
76333         inptr and inend for must_buffer_ch.
76334         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
76335         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
76336         * stdio-common/Makefile (tests): Remove bug15.
76337         (bug15-ENV): Remove macro.
76338         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
76339         anymore.
76340
76341 2012-05-19  Andreas Jaeger  <aj@suse.de>
76342             Roland McGrath  <roland@hack.frob.com>
76343
76344         * manual/contrib.texi: Completely rewritten. It contains now an
76345         alphabetical list of contributors and their contributions.
76346
76347 2012-05-21  Richard Henderson  <rth@twiddle.net>
76348
76349         * misc/getauxval.c (__getauxval): Use unsigned long int.
76350         * misc/sys/auxv.h: Include <sys/cdefs.h>.
76351         (getauxval): Use unsigned long int.
76352
76353 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
76354
76355         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
76356
76357 2012-05-21  Roland McGrath  <roland@hack.frob.com>
76358
76359         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
76360         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
76361         __alignof__ (long double).
76362
76363 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
76364
76365         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
76366
76367 2012-05-20  Richard Henderson  <rth@twiddle.net>
76368
76369         * misc/getauxval.c: New file.
76370         * misc/sys/auxv.h: New file.
76371         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
76372         (routines): Add getauxval.
76373         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
76374         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
76375         * elf/dl-sysdep.c (_dl_auxv): Remove.
76376         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
76377         * elf/dl-support.c (_dl_auxv): New variable.
76378         (_dl_aux_init): Initialize it.
76379         * manual/startup.texi (Auxiliary Vector): New node.
76380         * sysdeps/generic/bits/hwcap.h: New file.
76381         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
76382         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
76383         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
76384         * sysdeps/sparc/sysdep.h: ... here.  Include it.
76385         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
76386         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
76387         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
76388         Update.
76389         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
76390         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
76391         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
76392         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
76393         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
76394         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
76395         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
76396         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
76397
76398 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
76399
76400         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
76401
76402 2012-05-19  David S. Miller  <davem@davemloft.net>
76403
76404         * sysdeps/sparc/fpu/libm-test-ulps: Update.
76405
76406 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
76407
76408         [BZ #14123]
76409         * math/s_ccosh.c: Include <float.h>
76410         (__ccosh): Avoid internal overflow calculating sinh and cosh
76411         values before multiplying by sin and cos values.
76412         * math/s_ccoshf.c: Likewise.
76413         * math/s_ccoshl.c: Likewise.
76414         * math/s_csin.c: Likewise.
76415         * math/s_csinf.c: Likewise.
76416         * math/s_csinl.c: Likewise.
76417         * math/s_csinh.c: Likewise.
76418         * math/s_csinhf.c: Likewise.
76419         * math/s_csinhl.c: Likewise.
76420         * math/libm-test.inc (ccos_test): Add more tests.
76421         (ccosh_test): Likewise.
76422         (csin_test): Likewise.
76423         (csinh_test): Likewise.
76424         * sysdeps/i386/fpu/libm-test-ulps: Update.
76425         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
76426
76427 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
76428
76429         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
76430         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
76431
76432         * sysdeps/x86_64/x32/_itoa.h: Add comment.
76433
76434 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
76435
76436         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
76437         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
76438         * sysdeps/powerpc/soft-fp/Versions: Likewise.
76439         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
76440         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
76441         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
76442         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
76443         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
76444         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
76445         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
76446         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
76447         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
76448         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
76449         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
76450         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
76451         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
76452         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
76453         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
76454         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
76455         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
76456         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
76457         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
76458         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
76459         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
76460         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
76461         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
76462         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
76463         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
76464         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
76465         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
76466         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
76467
76468 2012-05-18  Andreas Jaeger  <aj@suse.de>
76469
76470         * csu/.gitignore: Delete.
76471
76472 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
76473
76474         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
76475         (timex): Use __syscall_slong_t.
76476
76477 2012-05-18  Andreas Jaeger  <aj@suse.de>
76478             Carlos O'Donell  <carlos_odonell@mentor.com>
76479
76480         * manual/install.texi (Configuring and compiling): Update
76481         description about files modified in the source directory.
76482         * INSTALL: Regenerated.
76483
76484 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
76485
76486         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
76487         value.  Use "or" to set return value to -1.
76488         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
76489         negate return value.
76490
76491 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
76492
76493         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
76494         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
76495         failure if the compiler has Graphite support disabled.
76496         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
76497         Likewise.
76498         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
76499         (CFLAGS-memmove.c): Likewise.
76500         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
76501         Likewise.
76502
76503 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
76504
76505         * sysdeps/x86_64/x32/_itoa.h: New file.
76506
76507         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
76508         getdents system call only if kernel and user dirents have the
76509         same d_ino and d_off.
76510
76511         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
76512         LLONG_MAX != LONG_MAX.
76513         (_itoa_word): Use _ITOA_WORD_TYPE on value.
76514         (_fitoa_word): Likewise.
76515
76516         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
76517         years.
76518         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
76519         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
76520         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
76521
76522         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
76523         include <bits/wordsize.h>.  Check __x86_64__ instead of
76524         __WORDSIZE.
76525         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
76526         if __x86_64__ is defined.  Use anonymous union on fpstate.
76527
76528         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
76529         anonymous union.
76530
76531 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
76532
76533         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
76534         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
76535         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
76536         Refer to _rtld_local_ro instead of _rtld_global_ro.
76537         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
76538         Likewise.
76539         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
76540         Likewise.
76541         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
76542         Likewise.
76543         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
76544         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
76545         of _rtld_global, and rtld_progname instead of _dl_argv[0].
76546
76547         [BZ #10882]
76548         * sysdeps/powerpc/powerpc32/dl-machine.c
76549         (__elf_machine_runtime_setup) [PROF]: Don't reference
76550         _dl_prof_resolve.
76551
76552 2012-05-18  Andreas Jaeger  <aj@suse.de>
76553
76554         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
76555         function only available for GCCs before 3.4 since GCC 3.4
76556         introduced a builtin.
76557         (lrint): Likewise.
76558         (llrintf): Likewise.
76559         (llrint): Likewise.
76560         (fmaxf): Likewise.
76561         (fmax): Likewise.
76562         (fminf): Likewise.
76563         (fmin): Likewise.
76564         (rint): Likewise.
76565         (rintf): Likewise.
76566         (nearbyint): Likewise.
76567         (nearbyintf): Likewise.
76568         (ceil): Likewise.
76569         (ceilf): Likewise.
76570         (floor): Likewise.
76571         (floorf): Likewise.
76572
76573 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
76574
76575         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
76576         on both fields and cast pointer to __syscall_ulong_t.
76577
76578         * bits/types.h (__fsword_t): New type.
76579         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
76580         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
76581         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
76582         (__FSWORD_T_TYPE): Likewise.
76583         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
76584         (__FSWORD_T_TYPE): Likewise.
76585         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
76586         (__FSWORD_T_TYPE): Likewise.
76587         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
76588         (__FSWORD_T_TYPE): Likewise.
76589         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
76590         __SWORD_TYPE with __fsword_t.
76591         (statfs64): Likewise.
76592
76593 2012-05-17  David S. Miller  <davem@davemloft.net>
76594
76595         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
76596
76597 2012-05-17  Andreas Jaeger  <aj@suse.de>
76598
76599         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
76600         warning.
76601
76602 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
76603
76604         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
76605
76606 2012-05-17  Andreas Jaeger  <aj@suse.de>
76607
76608         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
76609         when it is used.
76610
76611 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
76612
76613         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
76614
76615 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
76616
76617         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
76618         * sysdeps/x86_64/tst-mallocalign1.c: New file.
76619
76620 2012-05-17  Andreas Jaeger  <aj@suse.de>
76621             Carlos O'Donell  <carlos_odonell@mentor.com>
76622
76623         [BZ #14059]
76624         * sysdeps/x86_64/multiarch/init-arch.h
76625         (bit_YMM_Usable): Rename to...
76626         (bit_AVX_Usable): ... this.
76627         (bit_FMA4_Usable): New macro.
76628         (bit_XMM_state): New macro.
76629         (bit_YMM_state): New macro.
76630         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
76631         [__ASSEMBLER__] (index_AVX_Usable): ... this.
76632         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
76633         (CPUID_OSXSAVE): New macro.
76634         (CPUID_AVX): New macro.
76635         (CPUID_FMA4): New macro.
76636         (index_YMM_Usable): Rename to...
76637         (index_AVX_Usable): ... this.
76638         (HAS_AVX): Use HAS_ARCH_FEATURE.
76639         (HAS_FMA4): Likewise.
76640         (HAS_YMM_USABLE): Remove.
76641         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
76642         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
76643         are present.
76644         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
76645         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
76646         * sysdeps/x86_64/multiarch/Makefile: Likewise.
76647         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
76648         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
76649
76650 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
76651
76652         * math/libm-test.c: Support platforms without multiple rounding modes.
76653         * math/bug-nextafter.c: Support platforms without FP exceptions.
76654         * math/bug-nexttoward.c: Likewise.
76655         * math/test-fenv.c: Likewise.
76656         * math/test-misc.c: Likewise.
76657         * stdlib/bug-getcontext.c: Likewise.
76658
76659 2012-05-17  Andreas Jaeger  <aj@suse.de>
76660
76661         * manual/examples/search.c (critter_cmp): Change signature to
76662         avoid warnings.
76663         * manual/string.texi (Collation Functions): Likewise.
76664
76665 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
76666
76667         * bits/types.h: Fold copyright years.
76668         * bits/typesizes.h: Likewise.
76669         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
76670         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
76671         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
76672         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
76673         * time/time.h: Likewise.
76674
76675 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
76676
76677         [BZ #208]
76678         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
76679         in instead of returning them.  Return void.
76680         (__libc_mallinfo): Accumulate over all arenas.
76681         (__malloc_stats): Adjust for change in int_mallinfo interface.
76682
76683 2012-05-16  Roland McGrath  <roland@hack.frob.com>
76684
76685         [BZ #10375]
76686         * configure.in (NM): Add AC_CHECK_TOOL for it.
76687         (libc_extra_cflags): New substituted variable.
76688         Check for -fstack-protector being used implicitly.
76689         * configure: Regenerated.
76690         * config.make.in (config-extra-cflags): New variable,
76691         gets @libc_extra_cflags@.
76692         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
76693
76694         [BZ #10375]
76695         * configure.in: Check for _FORTIFY_SOURCE being predefined.
76696         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
76697         * configure: Regenerated.
76698         * config.make.in (CPPUNDEFS): New substituted variable.
76699         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
76700         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
76701         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
76702
76703 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
76704
76705         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
76706         (mq_attr): Use __syscall_slong_t.
76707
76708 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
76709
76710         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
76711         Check __x86_64__ instead of __WORDSIZE.
76712         (_STAT_VER_LINUX): Likewise.
76713         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
76714         __syscall_ulong_t and __syscall_slong_t.
76715         (stat64): Likewise.
76716
76717 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
76718
76719         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
76720
76721 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
76722
76723         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
76724
76725 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
76726
76727         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
76728         __syscall_ulong_t.
76729
76730         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
76731         include <bits/wordsize.h>.  Check __x86_64__ instead of
76732         __WORDSIZE.
76733         (greg_t): Use "__extension__ long long int" if __x86_64__ is
76734         defined.
76735         (mcontext_t): Replace "unsigned long" with "unsigned long long".
76736
76737         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
76738         include <bits/wordsize.h>.  Check __x86_64__ instead of
76739         __WORDSIZE.
76740         (user_regs_struct): Use "__extension__ unsigned long long"
76741         instead of "unsigned long" if __x86_64__ is defined.
76742         (user): Likewise.  Pad after pointer field if __ILP32__ is
76743         defined.
76744
76745 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
76746
76747         * configure.in (makeinfo): Require version 4.5 or later.  Allow
76748         versions 5 to 9.
76749         * configure: Regenerated.
76750         * manual/install.texi (texinfo): Increase version requirement to
76751         4.5 or later.
76752         * INSTALL: Regenerated.
76753
76754         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
76755
76756 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
76757
76758         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
76759
76760         * sysdeps/x86_64/x32/ffs.c: New file.
76761
76762         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
76763         __syscall_ulong_t.
76764         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
76765         defined.  Use __syscall_ulong_t.
76766         (shminfo): Use __syscall_ulong_t.
76767         (shm_info): Likewise.
76768
76769         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
76770         __syscall_ulong_t.
76771
76772         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
76773         <bits/wordsize.h>.
76774         (msgqnum_t): Use __syscall_ulong_t.
76775         (msglen_t): Likewise.
76776         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
76777         __syscall_ulong_t.
76778
76779         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
76780         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
76781
76782         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
76783
76784         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
76785         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
76786
76787         * sysvipc/sys/msg.h (msgbuf): Replace long int with
76788         __syscall_slong_t.
76789
76790         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
76791         include <bits/wordsize.h>.  Check __x86_64__ instead of
76792         __WORDSIZE.
76793
76794         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
76795         "unsigned long long int" if __x86_64__ is defined.
76796         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
76797
76798         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
76799         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
76800         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
76801
76802         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
76803         <stdint.h>.
76804         (GET_PC): Cast to uintptr_t first.
76805         (GET_FRAME): Likewise.
76806         (GET_STACK): Likewise.
76807
76808         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
76809         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
76810         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
76811         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
76812         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
76813         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
76814         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
76815         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
76816         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
76817         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
76818         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
76819         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
76820         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
76821         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
76822         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
76823         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
76824         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
76825         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
76826         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
76827         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
76828         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
76829         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
76830         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
76831         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
76832         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
76833         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
76834         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
76835         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
76836         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
76837
76838 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
76839
76840         * Makerules (+depfiles): Also collect depfiles from .oS in
76841         $(extra-objs).
76842         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
76843         .oS, $(libnldbl-routines)).
76844
76845         * Makerules (native-compile-mkdep-flags): Define.
76846         * sunrpc/Makefile (extra-objs): Add $(addprefix
76847         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
76848         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
76849         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
76850         calling $(make-target-directory).
76851
76852 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76853
76854         * bits/types.h (__snseconds_t): Removed.
76855         * time/time.h (struct timespec): Replace __snseconds_t with
76856         __syscall_slong_t.
76857         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
76858         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
76859         Likewise.
76860         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
76861         (__SNSECONDS_T_TYPE): Likewise.
76862         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
76863         (__SNSECONDS_T_TYPE): Likewise.
76864         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
76865         (__SNSECONDS_T_TYPE): Likewise.
76866
76867 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76868
76869         * sysdeps/mach/hurd/bits/typesizes.h
76870         (__SYSCALL_SLONG_TYPE): New macro.
76871         (__SYSCALL_ULONG_TYPE): Likewise.
76872
76873 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76874
76875         * bits/types.h (__syscall_slong_t): New type.
76876         (__syscall_ulong_t): Likewise.
76877
76878         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
76879         (__SYSCALL_ULONG_TYPE): Likewise.
76880         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
76881         (__SYSCALL_SLONG_TYPE): Likewise.
76882         (__SYSCALL_ULONG_TYPE): Likewise.
76883         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
76884         (__SYSCALL_SLONG_TYPE): Likewise.
76885         (__SYSCALL_ULONG_TYPE): Likewise.
76886         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
76887         (__SYSCALL_SLONG_TYPE): Likewise.
76888         (__SYSCALL_ULONG_TYPE): Likewise.
76889
76890 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76891
76892         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
76893         Add sigaltstack-offsets.sym.
76894         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
76895         <sigaltstack-offsets.h>.
76896         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
76897         longjmp_msg pointer.
76898         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
76899         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
76900         signal stack.
76901         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
76902
76903 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
76904
76905         * elf/stackguard-macros.h: Remove file.
76906         * sysdeps/generic/stackguard-macros.h: New file.
76907         * sysdeps/i386/stackguard-macros.h: Likewise.
76908         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
76909         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
76910         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
76911         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
76912         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
76913         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
76914         * sysdeps/x86_64/stackguard-macros.h: Likewise.
76915         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
76916         <elf/stackguard-macros.h>.
76917
76918         [BZ #14109]
76919         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
76920         __aligned__ in attribute.
76921         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
76922         (gregset_t): Likewise.
76923
76924 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76925
76926         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
76927         * sysdeps/x86_64/64/Implies-after: Here.  New file.
76928         * sysdeps/x86_64/x32/Implies-after: New file.
76929
76930 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76931
76932         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
76933         and access return value for _dl_profile_fixup.  Use R10_LP to
76934         load frame size.
76935
76936 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76937
76938         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
76939
76940 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76941
76942         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
76943         * sysdeps/x86_64/x32/sysdep.h: New file.
76944
76945 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76946
76947         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
76948         * sysdeps/x86_64/setjmp.S: Likewise.
76949
76950 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
76951
76952         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
76953         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
76954         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
76955         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
76956         remove unused global constant.
76957
76958 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
76959
76960         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
76961         include of <not-cancel.h>.
76962
76963 2012-05-15  Roland McGrath  <roland@hack.frob.com>
76964
76965         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
76966
76967 2012-05-15  Jeff Law  <law@redhat.com>
76968             Andreas Jaeger  <aj@suse.de>
76969
76970         [BZ #13594]
76971         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
76972         out from...
76973         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
76974         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
76975         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
76976         code changing __hst_map_handle.map.
76977
76978 2012-05-15  Roland McGrath  <roland@hack.frob.com>
76979
76980         * configure.in (sysnames): Look for Implies-before and Implies-after
76981         files.
76982         * configure: Regenerated.
76983
76984 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76985
76986         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
76987         8-byte data alignment with LP_SIZE alignment.
76988
76989 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76990
76991         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
76992         into R10_LP.
76993
76994 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76995
76996         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
76997
76998 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76999
77000         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
77001         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
77002         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
77003         Likewise.
77004         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
77005
77006 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
77007
77008         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
77009         (stackinfo_sub_sp): Likewise.
77010
77011 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
77012
77013         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
77014         RAX_LP.
77015
77016 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
77017
77018         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
77019         into R*_LP.
77020
77021 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
77022
77023         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
77024         sizes into R*_LP.
77025
77026 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
77027
77028         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
77029
77030 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
77031
77032         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
77033         into R11_LP and load __x86_64_shared_cache_size_half into
77034         R8_LP.
77035
77036 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
77037
77038         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
77039         R8_LP.
77040
77041 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
77042
77043         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
77044         logb for POWER7.
77045         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
77046         logbf for POWER7.
77047         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
77048         logbl for POWER7.
77049         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
77050         powerpc32/power7/fpu/s_logb.c via #include.
77051         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
77052         powerpc32/power7/fpu/s_logbf.c via #include.
77053         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
77054         powerpc32/power7/fpu/s_logbl.c via #include.
77055
77056 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
77057
77058         * README.libm: Remove file.
77059
77060 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
77061
77062         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
77063         count for x32.  Use R*_LP and omit operand-size suffix.
77064
77065 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
77066
77067         * shlib-versions: Move x86_64-.*-linux.* entries to ...
77068         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
77069         * sysdeps/x86_64/x32/shlib-versions: New file.
77070
77071 2012-05-14  Roland McGrath  <roland@hack.frob.com>
77072
77073         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
77074         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
77075         Use _dl_fatal_printf instead.
77076
77077 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
77078
77079         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
77080         set if not set by the user.  Do not allow for being unset.
77081         * sysdeps/unix/sysv/linux/configure: Regenerated.
77082
77083 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
77084
77085         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
77086         the `q' suffix from lea and replace .quad with ASM_ADDR.
77087
77088 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
77089
77090         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
77091         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
77092         instead of $17.
77093         (PTR_DEMANGLE): Likewise.
77094
77095 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
77096
77097         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
77098         (LP_OP): Likewise.
77099         (ASM_ADDR): Likewise.
77100         (RAX_LP): Likewise.
77101         (RBP_LP): Likewise.
77102         (RBX_LP): Likewise.
77103         (RCX_LP): Likewise.
77104         (RDI_LP): Likewise.
77105         (RSI_LP): Likewise.
77106         (RSP_LP): Likewise.
77107         (R8_LP): Likewise.
77108         (R9_LP): Likewise.
77109         (R10_LP): Likewise.
77110         (R10_LP): Likewise.
77111         (R11_LP): Likewise.
77112         (R12_LP): Likewise.
77113         (R13_LP): Likewise.
77114         (R14_LP): Likewise.
77115         (R15_LP): Likewise.
77116
77117 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
77118
77119         * sysdeps/x86_64/x32/dl-machine.h: New file.
77120
77121 2012-05-14  Andreas Jaeger  <aj@suse.de>
77122
77123         * manual/Makefile (subdir): Remove export of subdir.
77124         (all): Remove target.
77125         (.PHONY): Remove all from list.
77126         (mkinstalldirs): Remove.
77127         (.PHONY): Remove installdirs from list.
77128         ($(inst_infodir)/libc.info): Use make-target-directory.
77129         (installdirs): Remove.
77130         (subdir_%): Remove.
77131         (glibc-targets): Remove.
77132         (lib): Remove.
77133         (stubs): Remove.
77134         ($(objpfx)stubs ../po/manual.pot): Remove.
77135         ($(objpfx)stamp%): Remove.
77136         (make-target-directory): Remove.
77137         (subdir_install): Remove.
77138         (routines): Remove.
77139         (aux): Remove.
77140         (sources): Remove.
77141         (objects): Remove.
77142         (headers): Remove.
77143
77144         [BZ #13750]
77145         * manual/.gitignore: Remove, it's not needed anymore.
77146         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
77147         all files in it.
77148         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
77149         directory.
77150         (texis): Renamed to $(objpfx)texis.
77151         (texis-path): New, contains path to generated files.
77152         (chapters.%): Use texis-path for complete path, add extra argument
77153         libc-texinfo.sh.
77154         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
77155         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
77156         (summary,texi, stamp-summary): Use complete path of
77157         files. Generate files in build dir.
77158         (dir-add.texi): Build in build dir.
77159         (libm-err.texi,stamp-libm-err): Likewise.
77160         (version.texi, stamp-version): Likewise.
77161         (.%c.texi): Likewise.
77162         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
77163         (mostlyclean): Remove target.
77164         (realclean): Remove target.
77165         (generated): Add new variable with contents from mostlyclean and
77166         realclean, remove entries duplicated in common-mostlyclean, add
77167         stamp-libm-err and stamp-version.
77168         (generated-dirs): Add libc directory.
77169         ($(inst_infodir)/libc.info): Install files from build dir.
77170
77171         * manual/install.texi (Configuring and compiling): Adjust since
77172         the info files are not part of the tar ball anymore.
77173
77174 2012-05-14  Andreas Jaeger  <aj@suse.de>
77175
77176         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
77177         variable.
77178
77179 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
77180
77181         [BZ #13717]
77182         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
77183         to 2.2.0 where earlier.
77184         * sysdeps/unix/sysv/linux/configure: Regenerated.
77185         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
77186         Remove conditional code.
77187         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
77188         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
77189         Remove conditional code.
77190         [!__NR_lchown]: Likewise.
77191         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
77192         [__NR_lchown]: Likewise.
77193         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
77194         comment referencing __ASSUME_LCHOWN_SYSCALL.
77195         * sysdeps/unix/sysv/linux/i386/sigaction.c
77196         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
77197         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
77198         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
77199         Remove conditional code.
77200         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
77201         (__protocol_available): Remove #if 0 code.
77202         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
77203         conditional code.
77204         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
77205         * sysdeps/unix/sysv/linux/kernel-features.h
77206         (__ASSUME_GETCWD_SYSCALL): Don't define.
77207         (__ASSUME_REALTIME_SIGNALS): Likewise.
77208         (__ASSUME_PREAD_SYSCALL): Likewise.
77209         (__ASSUME_PWRITE_SYSCALL): Likewise.
77210         (__ASSUME_POLL_SYSCALL): Likewise.
77211         (__ASSUME_LCHOWN_SYSCALL): Likewise.
77212         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
77213         non-SPARC.
77214         (__ASSUME_SIOCGIFNAME): Don't define.
77215         (__ASSUME_MSG_NOSIGNAL): Likewise.
77216         (__ASSUME_SENDFILE): Define unconditionally.
77217         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
77218         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
77219         conditional code.
77220         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
77221         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
77222         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
77223         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
77224         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
77225         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
77226         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
77227         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
77228         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
77229         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
77230         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
77231         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
77232         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
77233         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
77234         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
77235         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
77236         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
77237         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
77238         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
77239         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
77240         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
77241         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
77242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
77243         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
77244         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
77245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
77246         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
77247         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
77248         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
77249         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
77250         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
77251         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
77252         Remove conditional code.
77253         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
77254         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
77255         Remove conditional code.
77256         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
77257         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
77258         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
77259         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
77260         Remove conditional code.
77261         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
77262         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
77263         Remove conditional code.
77264         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
77265         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
77266         Remove conditional code.
77267         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
77268         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
77269         Remove conditional code.
77270         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
77271         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
77272         Remove conditional code.
77273         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
77274         * sysdeps/unix/sysv/linux/sh/pwrite64.c
77275         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
77276         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
77277         * sysdeps/unix/sysv/linux/sigaction.c
77278         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
77279         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
77280         * sysdeps/unix/sysv/linux/sigpending.c
77281         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
77282         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
77283         * sysdeps/unix/sysv/linux/sigprocmask.c
77284         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
77285         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
77286         * sysdeps/unix/sysv/linux/sigsuspend.c
77287         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
77288         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
77289         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
77290         (__libc_missing_rt_sigs): Remove.
77291         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
77292         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
77293         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
77294         Remove conditional code.
77295         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
77296         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
77297         return 1.
77298         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
77299         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
77300         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
77301         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
77302
77303 2012-05-14  Andreas Jaeger  <aj@suse.de>
77304
77305         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
77306         it's not used in glibc.
77307         (__coshm1): Likewise.
77308         (__acosh1p): Likewise.
77309         (__sgn): Likewise.
77310
77311         * manual/string.texi (Copying and Concatenation): Add missing
77312         variable in concat example.
77313         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
77314
77315 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
77316
77317         [BZ #14103]
77318         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
77319         __builtin_clzl with __builtin_clzll.
77320
77321 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
77322
77323         [BZ #14104]
77324         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
77325         libc_freeres_ptr.
77326
77327 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
77328
77329         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
77330         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
77331         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
77332         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
77333
77334 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
77335
77336         * NEWS: Update ia64 info.
77337
77338 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
77339
77340         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
77341         used as bcopy.
77342
77343 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
77344
77345         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
77346         * sysdeps/unix/syscalls.list (dup3): Likewise.
77347         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
77348         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
77349
77350 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
77351
77352         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
77353         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
77354
77355 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
77356
77357         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
77358         thread pointer.
77359         (TLS_IE): Use mov/add instead of movq/addq to load thread
77360         pointer.
77361         (TLS_GD_PREFIX): New.
77362         (TLS_GD): Use it.
77363
77364 2012-05-11  David S. Miller  <davem@davemloft.net>
77365
77366         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
77367         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
77368         (_FPU_SETCW): Likewise.
77369
77370 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
77371
77372         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
77373         is 32-byte aligned.
77374
77375 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
77376
77377         [BZ #11837]
77378         * iconvdata/gb18030.c: Update tables.
77379         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
77380         characters specially.
77381         (BODY for TO_LOOP): Add encoding of missing ranges.
77382
77383 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
77384
77385         [BZ #13673]
77386         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
77387         * sysdeps/mach/hurd/dup3.c: Likewise.
77388         * sysdeps/mach/hurd/readlinkat.c: Likewise.
77389         * sysdeps/powerpc/memmove.c:: Likewise.
77390
77391 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
77392
77393         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
77394         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
77395
77396 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
77397
77398         * elf/elf.h (R_X86_64_RELATIVE64): New.
77399         (R_X86_64_NUM): Updated.
77400         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
77401         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
77402         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
77403         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
77404         tst-quad1pie tst-quad2pie
77405         (modules-names): Add tst-quadmod1 tst-quadmod2.
77406         ($(objpfx)tst-quad1): New dependency.
77407         ($(objpfx)tst-quad2): Likewise.
77408         ($(objpfx)tst-quad1pie): Likewise.
77409         ($(objpfx)tst-quad2pie): Likewise.
77410         * sysdeps/x86_64/tst-quad1.c: New file.
77411         * sysdeps/x86_64/tst-quad1pie.c: New file.
77412         * sysdeps/x86_64/tst-quad2.c: Likewise.
77413         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
77414         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
77415         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
77416         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
77417         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
77418
77419 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77420
77421         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
77422         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
77423         * streams/stropts.h (t_scalar_t): Define type.
77424
77425         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
77426         (_PATH_PRESERVE): Set to "/var/lib".
77427         (_PATH_RWHODIR): Set to "/var/spool/rwho".
77428
77429         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
77430         instead of int.
77431
77432         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
77433         if __dir_mkfile succeeded.
77434
77435         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
77436         checking for _hurd_dtablesize.  Unlock it right after having
77437         finished _hurd_dtable allocation.
77438
77439 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77440
77441         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
77442         * sysdeps/mach/hurd/configure: Regenerated.
77443         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
77444         special-casing to...
77445         * sysdeps/gnu/configure.in: ... this new file.
77446         * sysdeps/unix/sysv/linux/configure: Regenerated.
77447         * sysdeps/gnu/configure: New generated file.
77448
77449         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
77450         for Linux: use nsec instead of usec, as well as:
77451         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
77452         members of type struct timespec.
77453         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
77454         New macros.
77455         (struct stat64): Likewise.
77456         (_STATBUF_ST_NSEC): New macro.
77457         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
77458
77459         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
77460         __strtoul_internal rather than strtoul.
77461
77462 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
77463
77464         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
77465         and reject them.
77466
77467 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77468
77469         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
77470         which preserves existing values.
77471         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
77472
77473 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
77474
77475         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
77476         TIMEOUT values.  Return EINVAL for NFDS values either negative or
77477         greater than FD_SETSIZE.
77478
77479 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77480
77481         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
77482         allocated, call __vm_protect to finish enabling the existing space, and
77483         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
77484         allocate the remainder.
77485
77486 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
77487
77488         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
77489         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
77490
77491 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77492
77493         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
77494         sysdeps/mach/hurd/readlink.c.
77495
77496         * posix/tst-sysconf.c (posix_options): Only use
77497         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
77498         _POSIX_SYNCHRONIZED_IO when they are defined
77499         * sysdeps/mach/hurd/bits/posix_opt.h:
77500         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
77501         (_XOPEN_REALTIME): Undefine macro.
77502         (_XOPEN_REALTIME_THREADS): Undefine macro.
77503         (_XOPEN_SHM): Undefine macro.
77504         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
77505         macro to -1.
77506         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
77507         macro to -1.
77508         (_POSIX_ASYNC_IO): Undefine macro.
77509         (_POSIX_PRIORITIZED_IO): Undefine macro.
77510         (_POSIX_SPIN_LOCKS): Define macro to -1.
77511
77512         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
77513         SA_NODEFER, SA_RESETHAND.
77514         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
77515         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
77516         F_DUPFD_CLOEXEC.
77517
77518 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77519
77520         * elf/Makefile (pldd-modules): Define unconditionally.
77521
77522 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77523
77524         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
77525
77526 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77527
77528         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
77529         Return ENOENT when name is empty.
77530         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
77531
77532 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77533
77534         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
77535
77536         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
77537
77538 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77539
77540         Fix mlock in all cases except non-readable pages.
77541         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
77542         instead of VM_PROT_ALL as parameter to __vm_wire function.
77543
77544         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
77545         (__mkdir): When path is `/', just fail with EEXIST.
77546         * sysdeps/mach/hurd/mkdirat.c: Likewise.
77547
77548 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77549
77550         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
77551         <sys/uio.h> (for writev).
77552         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
77553         and <sys/param.h> (for MIN).
77554
77555 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
77556
77557         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
77558         REQUESTED_TIME.  Properly set the remaining time and return EINTR
77559         if interrupted.
77560
77561 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77562
77563         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
77564         Depend on against $(link-rpcuserlibs).
77565
77566 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77567
77568         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
77569         (__libc_stack_end): Do not use attribute_relro.
77570         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
77571         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
77572         to libthread-provided value.
77573         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
77574         attribute_relro.
77575
77576 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77577
77578         [BZ #3748]
77579         * bits/libc-lock.h (__libc_once_get): New macro.
77580         * sysdeps/mach/bits/libc-lock.h: Likewise.
77581         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
77582         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
77583         instead of using implementation details.
77584
77585         * libio/fileops.c: Unconditionally include <kernel-features.h>.
77586         * libio/freopen.c: Likewise.
77587         * libio/freopen64.c: Likewise.
77588         * misc/syslog.c: Likewise.
77589         * nscd/connections.c: Likewise.
77590         * nscd/netgroupcache.c: Likewise.
77591         * sysdeps/posix/getcwd.c: Likewise.
77592
77593 2012-05-10  Roland McGrath  <roland@hack.frob.com>
77594
77595         * math/w_ilogbf.c: Add #include <limits.h>.
77596
77597 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77598
77599         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
77600         path instead of returning without unlocking.
77601
77602         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
77603         immediate-write ioctls.
77604         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
77605
77606 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77607
77608         * sysdeps/mach/hurd/i386/init-first.c (init): Use
77609         __builtin_frame_address instead of making assumptions about the
77610         location of the return address relative to DATA.  Force early load of
77611         the return address.
77612         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
77613         __builtin_frame_address.
77614
77615         dup3 for GNU Hurd.
77616         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
77617         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
77618         implement dup3 and do some further code clean-ups.
77619         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
77620         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
77621
77622 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77623
77624         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
77625
77626         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
77627         HURD_CRITICAL_END around holding _hurd_dtable_lock.
77628         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
77629         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
77630         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
77631         d->port.lock.
77632
77633         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
77634         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
77635         when handler == SIG_ERR, not when handler != SIG_ERR.
77636
77637 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77638
77639         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
77640         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
77641         definitions.
77642
77643         accept4 for GNU Hurd.
77644         * include/sys/socket.h (__libc_accept4): New prototype.
77645         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
77646         to implement __libc_accept4.
77647         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
77648         __libc_accept4.
77649         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
77650
77651         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
77652         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
77653         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
77654         signal-defines.sym.
77655
77656 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77657
77658         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
77659
77660 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77661
77662         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
77663         assertion on O_CLOEXEC flag.
77664         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
77665         * hurd/intern-fd.c: Likewise.
77666         * hurd/port2fd.c: Likewise.
77667
77668 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77669
77670         [BZ #3906]
77671         * bits/in.h (IPV6_PKTINFO): Define new macro.
77672         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
77673
77674 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
77675
77676         [BZ #13954]
77677         [BZ #13955]
77678         [BZ #13956]
77679         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
77680         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
77681         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
77682         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
77683         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
77684         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
77685         * math/libm-test.inc (logb_test) : Additional logb tests.
77686
77687 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
77688             Andreas Jaeger  <aj@suse.de>
77689
77690         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
77691         * configure: Regenerated.
77692         * config.h.in (LINK_OBSOLETE_RPC): New macro.
77693         * config.make.in (link-obsolete-rpc): New substituted variable.
77694         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
77695         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
77696         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
77697         (shared-only-routines): Don't set it under [link-obsolete-rpc],
77698         so that libc.a contains the symbols.
77699         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
77700         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
77701         * sunrpc/auth_none.c: Likewise.
77702         * sunrpc/auth_unix.c: Likewise.
77703         * sunrpc/authdes_prot.c: Likewise.
77704         * sunrpc/authuxprot.c: Likewise.
77705         * sunrpc/clnt_gen.c: Likewise.
77706         * sunrpc/clnt_perr.c: Likewise.
77707         * sunrpc/clnt_raw.c: Likewise.
77708         * sunrpc/clnt_simp.c: Likewise.
77709         * sunrpc/clnt_tcp.c: Likewise.
77710         * sunrpc/clnt_udp.c: Likewise.
77711         * sunrpc/clnt_unix.c: Likewise.
77712         * sunrpc/des_crypt.c: Likewise.
77713         * sunrpc/des_soft.c: Likewise.
77714         * sunrpc/get_myaddr.c: Likewise.
77715         * sunrpc/key_call.c: Likewise.
77716         * sunrpc/key_prot.c: Likewise.
77717         * sunrpc/netname.c: Likewise.
77718         * sunrpc/pm_getmaps.c: Likewise.
77719         * sunrpc/pm_getport.c: Likewise.
77720         * sunrpc/pmap_clnt.c: Likewise.
77721         * sunrpc/pmap_prot.c: Likewise.
77722         * sunrpc/pmap_prot2.c: Likewise.
77723         * sunrpc/pmap_rmt.c: Likewise.
77724         * sunrpc/publickey.c: Likewise.
77725         * sunrpc/rpc_cmsg.c: Likewise.
77726         * sunrpc/rpc_common.c: Likewise.
77727         * sunrpc/rpc_dtable.c: Likewise.
77728         * sunrpc/rpc_prot.c: Likewise.
77729         * sunrpc/rpc_thread.c: Likewise.
77730         * sunrpc/rtime.c: Likewise.
77731         * sunrpc/svc.c: Likewise.
77732         * sunrpc/svc_auth.c: Likewise.
77733         * sunrpc/svc_raw.c: Likewise.
77734         * sunrpc/svc_run.c: Likewise.
77735         * sunrpc/svc_tcp.c: Likewise.
77736         * sunrpc/svc_udp.c: Likewise.
77737         * sunrpc/svc_unix.c: Likewise.
77738         * sunrpc/svcauth_des.c: Likewise.
77739         * sunrpc/xcrypt.c: Likewise.
77740         * sunrpc/xdr.c: Likewise.
77741         * sunrpc/xdr_array.c: Likewise.
77742         * sunrpc/xdr_float.c: Likewise.
77743         * sunrpc/xdr_intXX_t.c: Likewise.
77744         * sunrpc/xdr_mem.c: Likewise.
77745         * sunrpc/xdr_rec.c: Likewise.
77746         * sunrpc/xdr_ref.c: Likewise.
77747         * sunrpc/xdr_sizeof.c: Likewise.
77748         * sunrpc/xdr_stdio.c: Likewise.
77749
77750 2012-05-10  Roland McGrath  <roland@hack.frob.com>
77751
77752         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
77753         change.  Update copyright years.
77754
77755 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
77756
77757         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
77758
77759 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
77760             Joseph Myers  <joseph@codesourcery.com>
77761             Paul Pluzhnikov  <ppluzhnikov@google.com>
77762
77763         [BZ #14012]
77764         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
77765         requiring rpcgen.
77766         [cross-compiling] (extra-libs): Likewise.
77767         [cross-compiling] (extra-libs-others): Likewise.
77768         [cross-compiling] (librpcsvc-routines): Likewise.
77769         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
77770         [cross-compiling] (omit-deps): Likewise.
77771         (sunrpc-CPPFLAGS): New variable.
77772         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
77773         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
77774         (cross-rpcgen-objs): New variable.
77775         (extra-objs): Append $(cross-rpcgen-objs).
77776         ($(cross-rpcgen-objs)): New rule.
77777         ($(objpfx)cross-rpcgen): Likewise.
77778         (rpcgen-cmd): Define to use $(built-program-file).  Expand
77779         comment.
77780         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
77781         ($(objpfx)x%.stmp): Likewise.
77782         * sunrpc/proto.h [IS_IN_build] (_): Define.
77783         [IS_IN_build] (_libc_intl_domainname): Likewise.
77784
77785 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
77786
77787         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
77788         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
77789         and R_X86_64_TPOFF64.
77790
77791 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
77792
77793         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
77794         sysdeps/unix/sysv/syscalls.list.
77795         (stime): Likewise.
77796         (utime): Likewise.
77797         * sysdeps/unix/sysv/syscalls.list: Remove file.
77798
77799 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
77800
77801         [BZ #3440]
77802         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
77803         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
77804         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
77805         (__LC_IDENTIFICATION): Make these macros useful in #if
77806         expressions, as required by C99.
77807
77808 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
77809
77810         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
77811         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
77812         after this.
77813
77814 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
77815
77816         * stdlib/longlong.h: Updated from GCC.
77817
77818 2012-05-09  Andreas Jaeger  <aj@suse.de>
77819
77820         * nscd/nscd.c (run_modes): Make named enum, reorder so that
77821         default is first entry.
77822         (run_mode): Set type.
77823         (main): Remove informal message about syslog.
77824         (options): Fix typo.
77825
77826         [BZ #14053]
77827         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
77828         to asm.
77829         (lrint): Likewise.
77830         (llrintf): Likewise.
77831         (llrint): Likewise.
77832         (rint): Likewise.
77833         (rintf): Likewise.
77834         (nearbyint): Likewise.
77835         (nearbyintf): Likewise.
77836
77837 2012-05-09  Andreas Jaeger  <aj@suse.de>
77838             Pedro Alves  <palves@redhat.com>
77839
77840         * nscd/nscd.c (run_mode): Use enum.
77841         (main): Cleanup coding style issue.
77842
77843 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
77844             Andreas Jaeger  <aj@suse.de>
77845
77846         * nscd/nscd.c (go_background): Replaced with...
77847         (run_mode): ... this.
77848         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
77849         (options): Add -F --foreground.
77850         (main): Implement it.
77851         (parse_opt): Parse it.
77852
77853 2012-05-09  Andreas Jaeger  <aj@suse.de>
77854
77855         [BZ #14083]
77856         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
77857         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
77858         -Wconversion warning.
77859         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
77860         Likewise.
77861
77862 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
77863
77864         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
77865         == 0.
77866         (LC_ALL): Use macro-int-constant.
77867         (LC_COLLATE): Likewise.
77868         (LC_CTYPE): Likewise.
77869         (LC_MESSAGES): Likewise.
77870         (LC_MONETARY): Likewise.
77871         (LC_NUMERIC): Likewise.
77872         (LC_TIME): Likewise.
77873         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
77874         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
77875         [ISO || ISO99 || ISO11] (*_t): Do not allow.
77876         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
77877         Specify type.
77878         [C99-based standards] (float_t): Expect type.
77879         [C99-based standards] (double_t): Expect type.
77880         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
77881         type.
77882         [C99-based standards] (HUGE_VALL): Likewise.
77883         [C99-based standards] (INFINITY): Likewise.
77884         [C99-based standards] (NAN): Likewise.
77885         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
77886         [C99-based standards] (FP_NAN): Likewise.
77887         [C99-based standards] (FP_NORMAL): Likewise.
77888         [C99-based standards] (FP_SUBNORMAL): Likewise.
77889         [C99-based standards] (FP_ZERO): Likewise.
77890         [C99-based standards] (FP_FAST_FMA): Use
77891         optional-macro-int-constant.  Specify type.  Require == 1.
77892         [C99-based standards] (FP_FAST_FMAF): Likewise.
77893         [C99-based standards] (FP_FAST_FMAL): Likewise.
77894         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
77895         [C99-based standards] (FP_ILOGBNAN): Likewise.
77896         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
77897         Specify type.
77898         [C99-based standards] (MATH_ERREXCEPT): Likewise.
77899         [C99-based standards] (math_errhandling): Specify type.
77900         [ISO99 || ISO11] (signgam): Do not allow.
77901         [non-C99-based standards] (copysignf): Do not allow.
77902         [non-C99-based standards] (exp2f): Likewise.
77903         [non-C99-based standards] (log2f): Likewise.
77904         [non-C99-based standards] (modff): Allow.
77905         [non-C99-based standards] (erff): Do not allow.
77906         [non-C99-based standards] (erfcf): Likewise.
77907         [non-C99-based standards] (gammaf): Likewise.
77908         [non-C99-based standards] (hypotf): Likewise.
77909         [non-C99-based standards] (j0f): Likewise.
77910         [non-C99-based standards] (j1f): Likewise.
77911         [non-C99-based standards] (jnf): Likewise.
77912         [non-C99-based standards] (lgammaf): Likewise.
77913         [non-C99-based standards] (tgammaf): Likewise.
77914         [non-C99-based standards] (y0f): Likewise.
77915         [non-C99-based standards] (y1f): Likewise.
77916         [non-C99-based standards] (ynf): Likewise.
77917         [non-C99-based standards] (isnanf): Likewise.
77918         [non-C99-based standards] (acoshf): Likewise.
77919         [non-C99-based standards] (asinhf): Likewise.
77920         [non-C99-based standards] (atanhf): Likewise.
77921         [non-C99-based standards] (cbrtf): Likewise.
77922         [non-C99-based standards] (expm1f): Likewise.
77923         [non-C99-based standards] (ilogbf): Likewise.
77924         [non-C99-based standards] (log1pf): Likewise.
77925         [non-C99-based standards] (logbf): Likewise.
77926         [non-C99-based standards] (nextafterf): Likewise.
77927         [non-C99-based standards] (remainderf): Likewise.
77928         [non-C99-based standards] (rintf): Likewise.
77929         [non-C99-based standards] (scalbf): Likewise.
77930         [non-C99-based standards] (copysignl): Likewise.
77931         [non-C99-based standards] (exp2l): Likewise.
77932         [non-C99-based standards] (log2l): Likewise.
77933         [non-C99-based standards] (modfl): Allow.
77934         [non-C99-based standards] (erfl): Do not allow.
77935         [non-C99-based standards] (erfcl): Likewise.
77936         [non-C99-based standards] (gammal): Likewise.
77937         [non-C99-based standards] (hypotl): Likewise.
77938         [non-C99-based standards] (j0l): Likewise.
77939         [non-C99-based standards] (j1l): Likewise.
77940         [non-C99-based standards] (jnl): Likewise.
77941         [non-C99-based standards] (lgammal): Likewise.
77942         [non-C99-based standards] (tgammal): Likewise.
77943         [non-C99-based standards] (y0l): Likewise.
77944         [non-C99-based standards] (y1l): Likewise.
77945         [non-C99-based standards] (ynl): Likewise.
77946         [non-C99-based standards] (isnanl): Likewise.
77947         [non-C99-based standards] (acoshl): Likewise.
77948         [non-C99-based standards] (asinhl): Likewise.
77949         [non-C99-based standards] (atanhl): Likewise.
77950         [non-C99-based standards] (cbrtl): Likewise.
77951         [non-C99-based standards] (expm1l): Likewise.
77952         [non-C99-based standards] (ilogbl): Likewise.
77953         [non-C99-based standards] (log1pl): Likewise.
77954         [non-C99-based standards] (logbl): Likewise.
77955         [non-C99-based standards] (nextafterl): Likewise.
77956         [non-C99-based standards] (remainderl): Likewise.
77957         [non-C99-based standards] (rintl): Likewise.
77958         [non-C99-based standards] (scalbl): Likewise.
77959         [ISO || ISO99 || ISO11] (*_t): Do not allow.
77960         [non-C99-based standards] (FP_*): Do not allow.
77961         [C99-based standards] (FP_*): Change to
77962         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
77963         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
77964         allow.
77965         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
77966         (SIG_ERR): Likewise.
77967         [X/Open-based standards] (SIG_HOLD): Likewise.
77968         (SIG_IGN): Likewise.
77969         (SIGABRT): Use macro-int-constant.  Specify type.  Require
77970         positive value.
77971         (SIGFPE): Likewise.
77972         (SIGILL): Likewise.
77973         (SIGINT): Likewise.
77974         (SIGSEGV): Likewise.
77975         (SIGTER): Likewise.
77976         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
77977         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
77978         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
77979         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
77980         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
77981         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
77982         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
77983         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
77984         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
77985         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
77986         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
77987         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
77988         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
77989         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
77990         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
77991         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
77992         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
77993         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
77994         [X/Open-based standards] (SIGTRAP): Likewise.
77995         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
77996         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
77997         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
77998         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
77999         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
78000         allow.
78001
78002 2012-05-08  Ian Wienand  <ianw@vmware.com>
78003
78004         [BZ #14080]
78005         * time/tzset.c (__tzset_parse_tz): Update default rules for
78006         daylight time changes in the Energy Policy Act of 2005.
78007
78008 2012-05-09  Andreas Jaeger  <aj@suse.de>
78009
78010         [BZ #13983]
78011         * elf/ldconfig.c (parse_conf): Change string to make clear that
78012         ldconfig only issued a warning if ld.so.conf does not exist.
78013
78014 2012-05-08  David S. Miller  <davem@davemloft.net>
78015
78016         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
78017         movxtod instead of popping the value on the stack.
78018
78019         * sysdeps/sparc/fpu/libm-test-ulps: Update.
78020
78021 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
78022
78023         * config.h.in: Add HAVE_ARM_PCS_VFP.
78024
78025 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
78026
78027         [BZ #13979]
78028         * include/features.h: Warn if user requests __FORTIFY_SOURCE
78029         checking but the checks are disabled for any reason.
78030
78031 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
78032
78033         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
78034         and ELF64_R_TYPE with ELFW(R_TYPE).
78035
78036 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
78037
78038         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
78039         (ulimit): Likewise.
78040
78041         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
78042         (settimeofday): Likewise.
78043
78044 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
78045
78046         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
78047         a struct th_u2 inside the union, and move tu_block/tu_code into
78048         a new th_u3 union of tu_block/tu_code inside of that.  Move
78049         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
78050         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
78051         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
78052         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
78053         (th_stuff): Change to th_u1.tu_stuff.
78054         (th_data): Define.
78055         (th_msg): Change to th_u1.th_u2.tu_data.
78056
78057 2012-05-07  David S. Miller  <davem@davemloft.net>
78058
78059         * sysdeps/sparc/fpu/libm-test-ulps: Update.
78060
78061         [BZ #14074]
78062         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
78063         (SETUP_PIC_REG): Use it.
78064         (SETUP_PIC_REG_LEAF): Use it.
78065
78066 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
78067
78068         [BZ #13885]
78069         [BZ #13923]
78070         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
78071         USE_AS_EXPM1L.
78072         (EXPL_FINITE): Likewise.
78073         (FLDLOG): Likewise.
78074         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
78075         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
78076         e_expl.S.
78077         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
78078         USE_AS_EXPM1L.
78079         (EXPL_FINITE): Likewise.
78080         (FLDLOG): Likewise.
78081         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
78082         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
78083         e_expl.S.
78084         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
78085         test of -max_value argument for long double.
78086         * sysdeps/i386/fpu/libm-test-ulps: Update.
78087         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
78088
78089 2012-05-06  David S. Miller  <davem@davemloft.net>
78090
78091         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
78092         quad soft-float symbols whose references which are compiler
78093         generated.
78094         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
78095
78096 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
78097
78098         [BZ #13884]
78099         [BZ #13914]
78100         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
78101         USE_AS_EXP10L.
78102         (EXPL_FINITE): Likewise.
78103         (FLDLOG): Likewise.
78104         (c0): Likewise.
78105         (c1): Likewise.
78106         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
78107         Adjust comments for base varying.
78108         (__expl_finite): Change alias to EXPL_FINITE.
78109         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
78110         e_expl.S.
78111         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
78112         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
78113         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
78114         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
78115         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
78116         USE_AS_EXP10L.
78117         (EXPL_FINITE): Likewise.
78118         (FLDLOG): Likewise.
78119         (c0): Likewise.
78120         (c1): Likewise.
78121         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
78122         Adjust comments for base varying.
78123         (__expl_finite): Change alias to EXPL_FINITE.
78124         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
78125         tests for bugs.
78126         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
78127
78128         [BZ #14064]
78129         * math/libm-test.inc (check_float_internal): Correct ulp
78130         calculation for subnormal expected results.
78131
78132 2012-05-06  Andreas Jaeger  <aj@suse.de>
78133
78134         * Makeconfig (+math-flags): New, set to -frounding-math.
78135         (+cflags): Add +math-flags so that all of glibc gets compiled with
78136         it.
78137
78138         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
78139
78140 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
78141
78142         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
78143         Disable one test.
78144
78145         [BZ #13787]
78146         [BZ #13922]
78147         [BZ #14036]
78148         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
78149         (__ieee754_expl): Allow for and saturate large arguments.
78150         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
78151         (u_threshold): Likewise.
78152         (__exp): Call __ieee754_exp before checking for overflow and
78153         underflow.
78154         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
78155         (u_threshold): Likewise.
78156         (__expf): Call __ieee754_expf before checking for overflow and
78157         underflow.
78158         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
78159         (u_threshold): Likewise.
78160         (__expl): Call __ieee754_expl before checking for overflow and
78161         underflow.
78162         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
78163         (__ieee754_expl): Allow for and saturate large arguments.
78164         * math/libm-test.inc (exp_test): Add another test.  Do not allow
78165         missing overflow exception on overflow.
78166         (expm1_test): Do not allow missing overflow exception on overflow.
78167
78168         * sysdeps/i386/fpu/e_expl.c: Move to ...
78169         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
78170         rather than using inline asm.
78171         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
78172         * sysdeps/x86_64/fpu/e_expl.S: Copy from
78173         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
78174
78175         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
78176         (nice): Likewise.
78177         (poll): Likewise.
78178         (signal): Likewise.
78179         (time): Likewise.
78180         (times): Likewise.
78181
78182 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
78183
78184         * sysdeps/unix/syscalls.list (adjtime): Add entry from
78185         sysdeps/unix/common/syscalls.list.
78186         (fchmod): Likewise.
78187         (fchown): Likewise.
78188         (ftruncate): Likewise.
78189         (getrusage): Likewise.
78190         (gettimeofday): Likewise.
78191         (setpgid): Likewise.
78192         (setregid): Likewise.
78193         (setreuid): Likewise.
78194         (sigaction): Likewise.
78195         (truncate): Likewise.
78196         (vhangup): Likewise.
78197         * sysdeps/unix/common/syscalls.list: Remove file.
78198         * sysdeps/unix/bsd/Implies: Don't include unix/common.
78199         * sysdeps/unix/sysv/linux/Implies: Likewise.
78200
78201 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
78202
78203         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
78204         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
78205         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
78206         Moved to ...
78207         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
78208         Here.
78209         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
78210         to ...
78211         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
78212         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
78213         to ...
78214         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
78215         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
78216         to ...
78217         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
78218         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
78219         to ...
78220         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
78221         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
78222         to ...
78223         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
78224         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
78225         to ...
78226         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
78227         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
78228         to ...
78229         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
78230         Here.
78231         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
78232         to ...
78233         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
78234         Here.
78235         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
78236         to ...
78237         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
78238         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
78239         Moved to ...
78240         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
78241         Here.
78242         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
78243         to ...
78244         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
78245
78246 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
78247
78248         * sysdeps/unix/common/bits/dirent.h: Remove file.
78249         * sysdeps/unix/common/bits/fcntl.h: Likewise.
78250
78251         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
78252         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
78253         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
78254         * sysdeps/unix/bsd/isatty.c: Likewise.
78255         * sysdeps/unix/bsd/tcdrain.c: Likewise.
78256         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
78257         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
78258
78259 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
78260
78261         [BZ #13563]
78262         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
78263         long double comparison inaccuracies.
78264         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
78265         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
78266
78267 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
78268
78269         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
78270         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
78271
78272 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
78273
78274         [BZ #14049]
78275         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
78276         nonzero digits before rounding a hex value.
78277         * stdlib/tst-strtod.c (tests): Add another test.
78278
78279 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
78280
78281         * sysdeps/s390/fpu/libm-test-ulps: Update.
78282
78283 2012-05-03  Andreas Jaeger  <aj@suse.de>
78284
78285         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
78286         does not get optimized out.
78287         (malloc_opt_barrier): New.
78288
78289 2012-05-03  Andreas Jaeger  <aj@suse.de>
78290             Roland McGrath  <roland@hack.frob.com>
78291
78292         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
78293         intermediate file deletion.
78294         (generated): Add .symlist files.
78295
78296 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
78297
78298         [BZ #13775]
78299         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
78300         Redirect under this condition.
78301         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
78302         [__USE_GNU] (__dprintf_chk): Not under this condition.
78303         [__USE_GNU] (__vdprintf_chk): Likewise.
78304         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
78305         under this condition.
78306         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
78307         [__USE_XOPEN2K8] (dprintf): Define under this condition.
78308         [__USE_XOPEN2K8] (vdprintf): Likewise.
78309         [__USE_GNU] (__dprintf_chk): Not under this condition.
78310         [__USE_GNU] (__vdprintf_chk): Likewise.
78311         [__USE_GNU] (dprintf): Likewise.
78312         [__USE_GNU] (vdprintf): Likewise.
78313
78314 2012-05-03  Roland McGrath  <roland@hack.frob.com>
78315
78316         * elf/Makefile (common-generated): Set this instead of generated for
78317         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
78318         $(all-built-dso)-derived lists.
78319
78320 2012-05-03  Andreas Jaeger  <aj@suse.de>
78321
78322         * sysdeps/i386/fpu/libm-test-ulps: Update.
78323
78324         * FAQ: Removed.
78325         * FAQ.in: Likewise.
78326         * scripts/gen-FAQ.pl: Likewise.
78327         * manual/install.texi (Installation): Point to online location of
78328         FAQ.
78329         * Makefile (files-for-dist): Remove FAQ.
78330         (FAQ): Remove.
78331
78332 2012-05-02  Allan McRae  <allan@archlinux.org>
78333
78334         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
78335         (LDFLAGS-reldepmod5.so): Likewise.
78336         (LDFLAGS-reldep6mod1.so): Likewise.
78337         (LDFLAGS-reldep6mod4.so): Likewise.
78338         (LDFLAGS-reldep8mod3.so): Likewise.
78339         (LDFLAGS-unload4mod1.so): Likewise.
78340         (LDFLAGS-unload4mod2.so): Likewise.
78341         (LDFLAGS-tst-initorder): Likewise.
78342         (LDFLAGS-tst-initordera2.so): Likewise.
78343         (LDFLAGS-tst-initordera3.so): Likewise.
78344         (LDFLAGS-tst-initordera4.so): Likewise.
78345         (LDFLAGS-tst-initorderb2.so): Likewise.
78346         (LDFLAGS-noload): Likewise.
78347         (LDFLAGS-next): Likewise.
78348         (LDFLAGS-order2mod1.so): Likewise.
78349         (LDFLAGS-order2mod2.so): Likewise.
78350         (LDFLAGS-tst-initorder2): Likewise.
78351         (LDFLAGS-tst-initorder2a.so): Likewise.
78352         (LDFLAGS-tst-initorder2b.so): Likewise.
78353         (LDFLAGS-tst-initorder2c.so): Likewise.
78354         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
78355
78356 2012-05-02  David S. Miller  <davem@davemloft.net>
78357
78358         * sysdeps/sparc/fpu/libm-test-ulps: Update.
78359
78360 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
78361
78362         [BZ #14055]
78363         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
78364
78365 2012-05-02  Andreas Jaeger  <aj@suse.de>
78366
78367         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
78368         since we manipulate rounding mode.
78369         (CPPFLAGS-test-idouble.c): Likewise.
78370         (CPPFLAGS-test-ifloat.c): Likewise.
78371         (CFLAGS-test-ldouble.c): Likewise.
78372         (CFLAGS-test-double.c): Likewise.
78373         (CFLAGS-test-float.c): Likewise.
78374         (CFLAGS-test-misc.c): Likewise.
78375         (CFLAGS-test-test-fenv.c): Likewise.
78376
78377 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
78378
78379         [BZ #2550]
78380         [BZ #2570]
78381         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
78382         comparisons to determine direction to adjust input.
78383
78384 2012-05-01  Roland McGrath  <roland@hack.frob.com>
78385
78386         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
78387         output to the target.
78388
78389         * scripts/localplt.awk: New file.
78390         * elf/Makefile ($(objpfx)check-localplt): Target removed.
78391         (check-localplt-CFLAGS): Variable removed.
78392         ($(all-built-dso:=.jmprel)): New static pattern rule.
78393         (generated): Add those targets.
78394         (localplt-built-dso): New variable.
78395         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
78396
78397         * elf/check-localplt.c: File removed.
78398
78399         * scripts/check-execstack.awk: New file.
78400         * elf/Makefile ($(objpfx)check-execstack): Target removed.
78401         (check-execstack-CFLAGS): Variable removed.
78402         ($(objpfx)check-execstack.h): Target removed.
78403         ($(objpfx)execstack-default): New target.
78404         (generated): Add that instead of check-execstack.h.
78405         ($(all-built-dso:=.phdr)): New static pattern rule.
78406         (generated): Add those targets.
78407         * elf/check-execstack.c: File removed.
78408
78409         * scripts/check-textrel.awk: New file.
78410         * elf/Makefile ($(objpfx)check-textrel): Target removed.
78411         (check-textrel-CFLAGS): Variable removed.
78412         (all-built-dso): Use := to define.o
78413         ($(all-built-dso:=.dyn)): New static pattern rule.
78414         (generated): Add those targets.
78415         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
78416         * config.make.in (READELF): New substituted variable.
78417         * elf/check-textrel.c: File removed.
78418
78419 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
78420
78421         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
78422         allow.
78423         * conform/data/ctype.h-data [C99-based standards] (isblank):
78424         Expect function.
78425         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
78426         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
78427         [ISO || ISO99 || ISO11] (*_t): Do not allow.
78428         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
78429         Specify type.  Require positive value.
78430         (EILSEQ): Likewise.
78431         (ERANGE): Likewise.
78432         [ISO || POSIX] (EILSEQ): Do not expect.
78433         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
78434         Specify type.  Require positive value.
78435         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
78436         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
78437         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
78438         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
78439         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
78440         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
78441         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
78442         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
78443         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
78444         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
78445         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
78446         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
78447         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
78448         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
78449         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
78450         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
78451         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
78452         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
78453         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
78454         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
78455         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
78456         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
78457         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
78458         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
78459         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
78460         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
78461         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
78462         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
78463         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
78464         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
78465         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
78466         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
78467         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
78468         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
78469         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
78470         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
78471         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
78472         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
78473         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
78474         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
78475         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
78476         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
78477         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
78478         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
78479         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
78480         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
78481         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
78482         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
78483         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
78484         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
78485         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
78486         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
78487         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
78488         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
78489         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
78490         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
78491         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
78492         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
78493         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
78494         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
78495         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
78496         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
78497         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
78498         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
78499         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
78500         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
78501         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
78502         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
78503         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
78504         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
78505         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
78506         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
78507         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
78508         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
78509         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
78510         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
78511         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
78512         Require >= 2.
78513         (FLT_ROUNDS): Expect as macro, not constant.
78514         (FLT_MANT_DIG): Use macro-int-constant.
78515         (DBL_MANT_DIG): Likewise.
78516         (LDBL_MANT_DIG): Likewise.
78517         (FLT_DIG): Likewise.
78518         (DBL_DIG): Likewise.
78519         (LDBL_DIG): Likewise.
78520         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
78521         (DBL_MIN_EXP): Likewise.
78522         (LDBL_MIN_EXP): Likewise.
78523         (FLT_MAX_EXP): Use macro-int-constant.
78524         (DBL_MAX_EXP): Likewise.
78525         (LDBL_MAX_EXP): Likewise.
78526         (FLT_MAX_10_EXP): Likewise.
78527         (DBL_MAX_10_EXP): Likewise.
78528         (LDBL_MAX_10_EXP): Likewise.
78529         (FLT_MAX): Use macro-constant.
78530         (DBL_MAX): Likewise.
78531         (LDBL_MAX): Likewise.
78532         (FLT_EPSILON): Use macro-constant.  Give upper bound.
78533         (DBL_EPSILON): Likewise.
78534         (LDBL_EPSILON): Likewise.
78535         (FLT_MIN): Likewise.
78536         (DBL_MIN): Likewise.
78537         (LDBL_MIN): Likewise.
78538         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
78539         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
78540         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
78541         [ISO11] (FLT_HAS_SUBNORM): Likewise.
78542         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
78543         [ISO11] (DBL_DECIMAL_DIG): Likewise.
78544         [ISO11] (FLT_DECIMAL_DIG): Likewise.
78545         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
78546         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
78547         [ISO11] (FLT_TRUE_MIN): Likewise.
78548         [ISO11] (LDBL_TRUE_MIN): Likewise.
78549         [ISO || ISO99 || ISO11] (*_t): Do not allow.
78550         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
78551         (SCHAR_MIN): Use macro-int-constant.  Specify type.
78552         (SCHAR_MAX): Likewise.
78553         (UCHAR_MAX): Likewise.
78554         (CHAR_MIN): Likewise.
78555         (CHAR_MAX): Likewise.
78556         (MB_LEN_MAX): Use macro-int-constant.
78557         (SHRT_MIN): Use macro-int-constant.  Specify type.
78558         (SHRT_MAX): Likewise.
78559         (USHRT_MAX): Likewise.
78560         (INT_MAX): Likewise.
78561         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
78562         bound negative.
78563         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
78564         bound with "U".
78565         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
78566         bound with "L".
78567         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
78568         bound negative.  Suffix upper bound with "L".
78569         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
78570         bound with "UL".
78571         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
78572         Specify type.
78573         [C99-based standards] (LLONG_MAX): Likewise.
78574         [C99-based standards] (ULLONG_MAX): Likewise.
78575         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
78576         == 0.
78577         [ISO11] (max_align_t): Require type.
78578         [ISO || ISO99 || ISO11] (*_t): Do not allow.
78579
78580         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
78581         from $CFLAGS, without defining away __attribute__ calls.
78582         (checknamespace): Use $CFLAGS_namespace.
78583
78584         * conform/conformtest.pl (@keywords): Only include C99 keywords
78585         for standards based on C99 or C11.
78586
78587         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
78588         Disable tests.
78589         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
78590         UNIX98]: Likewise.
78591
78592         * conform/conformtest.pl: Handle "macro-int-constant" and test for
78593         usability of symbols in #if.
78594
78595         * conform/conformtest.pl: If macro or constant types start
78596         "promoted:", expect the symbol to be of the following type
78597         promoted by the integer promotions.
78598
78599         * conform/conformtest.pl: Parse all "constant" and "macro" lines
78600         in one place.  Also handle "macro-constant".
78601
78602         * conform/conformtest.pl: Only accept expected macro values with
78603         "==".  Parse all "macro" lines in one place.
78604         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
78605
78606         * conform/conformtest.pl: Handle braced types on "constant" lines
78607         instead of handling "typed-constant".
78608         * conform/data/signal.h-data: Use "constant" instead of
78609         "typed-constant".
78610
78611         * conform/conformtest.pl: Handle "optional-" at start of lines in
78612         one place rather than duplicating several cases.  Handle each
78613         format of "macro" line with initial "optional-".
78614
78615         * conform/conformtest.pl: Only accept expected constant or
78616         optional-constant values with "==".  Parse all "constant" lines in
78617         one place.  Parse all "optional-constant" lines in one place.
78618         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
78619         * conform/data/fmtmsg.h-data: Likewise.
78620         * conform/data/netinet/in.h-data: Likewise.
78621         * conform/data/tar.h-data: Likewise.
78622         * conform/data/limits.h-data: Use "==" form on "constant" and
78623         "optional-constant" lines.
78624
78625         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
78626         Use -std=c99 for XOPEN2K.
78627         (@knownproblems): Remove.
78628         (newtoken): Don't check %isknown.
78629
78630         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
78631         Do not expect macro.
78632         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
78633         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
78634         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
78635         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
78636         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
78637         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
78638         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
78639         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
78640         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
78641         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
78642         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
78643         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
78644         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
78645         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
78646         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
78647         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
78648         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
78649         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
78650         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
78651         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
78652         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
78653         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
78654         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
78655         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
78656         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
78657         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
78658         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
78659         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
78660         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
78661         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
78662         [XPG3] (acosh): Likewise.
78663         [XPG3] (asinh): Likewise.
78664         [XPG3] (atanh): Likewise.
78665         [XPG3] (cbrt): Likewise.
78666         [XPG3] (expm1): Likewise.
78667         [XPG3] (ilogb): Likewise.
78668         [XPG3] (log1p): Likewise.
78669         [XPG3] (logb): Likewise.
78670         [XPG3] (nextafter): Likewise.
78671         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
78672         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
78673         [XPG3] (remainder): Likewise.
78674         [XPG3] (rint): Likewise.
78675         [XPG3 || XPG4 || UNIX98] (round): Likewise.
78676         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
78677         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
78678         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
78679         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
78680         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
78681         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
78682         [UNIX98 || XOPEN2K] (scalb): Expect.
78683         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
78684         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
78685         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
78686         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
78687         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
78688         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
78689         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
78690         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
78691         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
78692         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
78693         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
78694         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
78695         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
78696         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
78697         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
78698         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
78699         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
78700         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
78701         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
78702         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
78703         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
78704         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
78705         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
78706         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
78707         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
78708         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
78709         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
78710         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
78711         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
78712         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
78713         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
78714         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
78715         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
78716         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
78717         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
78718         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
78719         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
78720         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
78721         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
78722         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
78723         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
78724         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
78725         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
78726         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
78727         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
78728         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
78729         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
78730         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
78731         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
78732         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
78733         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
78734         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
78735         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
78736         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
78737         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
78738         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
78739         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
78740         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
78741         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
78742         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
78743         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
78744         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
78745         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
78746         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
78747         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
78748         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
78749         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
78750         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
78751         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
78752         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
78753         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
78754         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
78755         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
78756         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
78757         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
78758         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
78759         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
78760         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
78761         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
78762         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
78763         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
78764         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
78765         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
78766         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
78767         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
78768         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
78769         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
78770         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
78771         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
78772         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
78773         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
78774         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
78775         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
78776         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
78777         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
78778         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
78779         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
78780         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
78781         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
78782         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
78783         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
78784         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
78785         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
78786         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
78787         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
78788         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
78789         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
78790         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
78791         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
78792         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
78793         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
78794         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
78795         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
78796         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
78797         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
78798         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
78799         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
78800         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
78801         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
78802         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
78803         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
78804         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
78805         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
78806         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
78807         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
78808         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
78809         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
78810         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
78811         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
78812         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
78813         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
78814         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
78815         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
78816         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
78817         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
78818         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
78819         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
78820
78821         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
78822         _XOPEN_SOURCE_EXTENDED for XPG4.
78823
78824         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
78825
78826         * Makeconfig (localtime): Remove variable.
78827         (inst_localtime-file): Likewise.
78828
78829 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
78830
78831         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
78832         Update.
78833         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
78834         Update.
78835         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
78836         Update.
78837         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
78838         Update.
78839         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
78840         Update.
78841         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
78842         Update.
78843         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
78844         Update.
78845         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
78846         Update.
78847         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
78848         Update.
78849
78850 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
78851
78852         [BZ #2550]
78853         [BZ #2570]
78854         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
78855         comparisons to determine direction to adjust input.
78856         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
78857         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
78858         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
78859         Likewise.
78860         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
78861         Likewise.
78862         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
78863         Likewise.
78864         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
78865         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
78866         Likewise.
78867         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
78868         Likewise.
78869         * math/libm-test.inc (nexttoward_test): Add more tests.
78870
78871 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
78872
78873         [BZ #14040]
78874         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
78875         in version GLIBC_2.1, not GLIBC_2.0.
78876         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
78877         Likewise.
78878
78879 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
78880
78881         [BZ #13942]
78882         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
78883         (1 - x) * (1 + x).
78884         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
78885         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
78886         * math/libm-test.inc (acos_test): Add more tests.
78887         (asin_test): Likewise.
78888         * sysdeps/i386/fpu/libm-test-ulps: Update.
78889         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
78890
78891         [BZ #14034]
78892         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
78893         of square root.
78894         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
78895         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
78896         * math/libm-test.inc (acos_test_tonearest): New function.
78897         (acos_test_towardzero): Likewise.
78898         (acos_test_downward): Likewise.
78899         (acos_test_upward): Likewise.
78900         (asin_test_tonearest): Likewise.
78901         (asin_test_towardzero): Likewise.
78902         (asin_test_downward): Likewise.
78903         (asin_test_upward): Likewise.
78904         (main): Call the new functions.
78905         * sysdeps/i386/fpu/libm-test-ulps: Update.
78906         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
78907
78908         [BZ #13884]
78909         [BZ #13924]
78910         * math/e_exp10.c: Include <float.h>.
78911         (__ieee754_exp10): Handle underflow here rather than multiplying
78912         large negative argument by M_LN10.
78913         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
78914         of __ieee754_expf.
78915         * math/e_exp10l.c: Include <float.h>.
78916         (__ieee754_exp10l): Handle underflow here rather than multiplying
78917         large negative argument by M_LN10l.
78918         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
78919         spurious overflow exception on underflow.
78920
78921 2012-04-29  Marek Polacek  <polacek@redhat.com>
78922
78923         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
78924         (__fortify_function): New macro.
78925         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
78926         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
78927         __extern_always_inline.
78928         * libio/bits/stdio2.h: Likewise.
78929         * libio/bits/stdio.h: Likewise.
78930         * string/string.h: Likewise.
78931         * string/bits/string3.h: Likewise.
78932         * include/stdio.h: Likewise.
78933         * stdlib/bits/stdlib.h: Likewise.
78934         * stdlib/stdlib.h: Likewise.
78935         * rt/bits/mqueue2.h: Likewise.
78936         * rt/mqueue.h: Likewise.
78937         * posix/bits/unistd.h: Likewise.
78938         * posix/unistd.h: Likewise.
78939         * io/bits/poll2.h: Likewise.
78940         * io/bits/fcntl2.h: Likewise.
78941         * io/fcntl.h: Likewise.
78942         * io/sys/poll.h: Likewise.
78943         * misc/bits/syslog.h: Likewise.
78944         * misc/bits/syslog-ldbl.h: Likewise.
78945         * misc/sys/syslog.h: Likewise.
78946         * socket/bits/socket2.h: Likewise.
78947         * socket/sys/socket.h: Likewise.
78948         * debug/tst-chk1.c: Likewise.
78949         * wcsmbs/bits/wchar2.h: Likewise.
78950         * wcsmbs/bits/wchar-ldbl.h: Likewise.
78951         * wcsmbs/wchar.h: Likewise.
78952
78953 2012-04-29  Andreas Jaeger  <aj@suse.de>
78954
78955         * Makerules (tests): Remove enable-check-abi protection.
78956         (check-abi-warn): Remove.
78957         (check-abi-%): Remove check-abi-warn usage.
78958
78959         * configure.in: Remove check-abi configure option.
78960         * configure: Regenerated.
78961         * config.make.in (enable-check-abi): Remove.
78962
78963 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
78964
78965         [BZ #14033]
78966         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
78967         double functions to double *_finite functions.
78968
78969         [BZ #13941]
78970         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
78971         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
78972         LDBL_MIN_EXP.
78973         * stdio-common/Makefile (tests): Add tst-sprintf3.
78974         * stdio-common/tst-sprintf3.c: New file.
78975
78976         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
78977         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
78978
78979 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
78980
78981         * conform/conformtest.pl: Remove duplicate typed-constant
78982         handling.
78983
78984 2012-04-28  David S. Miller  <davem@davemloft.net>
78985
78986         * Makerules (%.abilist): Add vpath on sysdep_dirs.
78987         (check-abi-%): Remove AWK script prerequisite and explicit
78988         abilist directory.
78989         (check-abi): Rewrite to just diff the symlist with the abilist.
78990         (config-tls, config-abi-config): Delete, no longer used.
78991         (update-abi-%): Remove AWK script and explicit abilist directory.
78992         (update-abi): Rewrite to simply compare and conditionally copy the
78993         symlist and the sysdep abilist file.  Remove update-abi-config
78994         checks.
78995         * abilist/ld.abilist: Remove.
78996         * abilist/libBrokenLocale.abilist: Remove.
78997         * abilist/libanl.abilist: Remove.
78998         * abilist/libcrypt.abilist: Remove.
78999         * abilist/libdl.abilist: Remove.
79000         * abilist/librt.abilist: Remove.
79001         * abilist/libthread_db.abilist: Remove.
79002         * abilist/libutil.abilist: Remove.
79003         * scripts/extract-abilist.awk: Remove.
79004         * scripts/merge-abilist.awk: Remove.
79005         * sysdeps/generic/libcidn.abilist: New file.
79006         * sysdeps/generic/libnss_compat.abilist: New file.
79007         * sysdeps/generic/libnss_db.abilist: New file.
79008         * sysdeps/generic/libnss_dns.abilist: New file.
79009         * sysdeps/generic/libnss_files.abilist: New file.
79010         * sysdeps/generic/libnss_hesiod.abilist: New file.
79011         * sysdeps/generic/libnss_nis.abilist: New file.
79012         * sysdeps/generic/libnss_nisplus.abilist: New file.
79013         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
79014         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
79015         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
79016         file.
79017         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
79018         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
79019         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
79020         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
79021         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
79022         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
79023         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
79024         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
79025         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
79026         file.
79027         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
79028         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
79029         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
79030         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
79031         file.
79032         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
79033         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
79034         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
79035         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
79036         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
79037         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
79038         file.
79039         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
79040         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
79041         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
79042         file.
79043         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
79044         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
79045         New file.
79046         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
79047         New file.
79048         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
79049         New file.
79050         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
79051         New file.
79052         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
79053         New file.
79054         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
79055         New file.
79056         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
79057         New file.
79058         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
79059         New file.
79060         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
79061         New file.
79062         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
79063         New file.
79064         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
79065         New file.
79066         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
79067         New file.
79068         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
79069         New file.
79070         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
79071         file.
79072         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
79073         New file.
79074         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
79075         New file.
79076         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
79077         file.
79078         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
79079         New file.
79080         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
79081         New file.
79082         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
79083         file.
79084         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
79085         New file.
79086         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
79087         New file.
79088         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
79089         New file.
79090         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
79091         New file.
79092         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
79093         New file.
79094         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
79095         New file.
79096         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
79097         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
79098         file.
79099         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
79100         New file.
79101         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
79102         file.
79103         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
79104         file.
79105         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
79106         file.
79107         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
79108         file.
79109         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
79110         file.
79111         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
79112         New file.
79113         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
79114         file.
79115         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
79116         file.
79117         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
79118         New file.
79119         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
79120         file.
79121         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
79122         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
79123         file.
79124         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
79125         New file.
79126         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
79127         file.
79128         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
79129         file.
79130         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
79131         file.
79132         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
79133         file.
79134         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
79135         file.
79136         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
79137         New file.
79138         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
79139         file.
79140         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
79141         file.
79142         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
79143         New file.
79144         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
79145         file.
79146         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
79147         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
79148         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
79149         file.
79150         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
79151         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
79152         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
79153         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
79154         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
79155         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
79156         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
79157         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
79158         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
79159         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
79160         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
79161         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
79162         file.
79163         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
79164         New file.
79165         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
79166         file.
79167         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
79168         file.
79169         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
79170         file.
79171         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
79172         file.
79173         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
79174         file.
79175         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
79176         New file.
79177         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
79178         New file.
79179         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
79180         file.
79181         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
79182         New file.
79183         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
79184         file.
79185         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
79186         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
79187         file.
79188         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
79189         New file.
79190         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
79191         file.
79192         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
79193         file.
79194         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
79195         file.
79196         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
79197         file.
79198         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
79199         file.
79200         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
79201         New file.
79202         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
79203         New file.
79204         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
79205         file.
79206         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
79207         New file.
79208         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
79209         file.
79210
79211 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
79212
79213         * conform/conformtest.pl: Fix typo in handling typed-constant from
79214         allow-header.
79215
79216 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
79217
79218         * README: Cut down references to pre-2.6 Linux kernels and
79219         Linuxthreads.  Update lists of configurations in libc and ports
79220         and sort alphabetically.  Say "or newer" with Linux kernel version
79221         requirements.
79222
79223         * config.h.in [IS_IN_build]: Allow compiling without optimization.
79224
79225 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
79226
79227         [BZ #887]
79228         * math/libm-test.inc (logb_test_downward): New test to expose
79229         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
79230         rounding mode.
79231
79232 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
79233
79234         [BZ #14027]
79235         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
79236         to be done.
79237         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
79238         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
79239
79240 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
79241
79242         * sysdeps/unix/i386/brk.S: Remove file.
79243         * sysdeps/unix/i386/dl-brk.S: Likewise.
79244         * sysdeps/unix/i386/pipe.S: Likewise.
79245         * sysdeps/unix/i386/sigreturn.S: Likewise.
79246         * sysdeps/unix/i386/syscall.S: Likewise.
79247         * sysdeps/unix/i386/vfork.S: Likewise.
79248         * sysdeps/unix/i386/wait.S: Likewise.
79249
79250         * sysdeps/unix/common/tcsendbrk.c: Move to ...
79251         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
79252
79253         * configure.in (arm*-none*): Do not allow without
79254         --enable-hacker-mode.
79255         (netbsd*): Remove case setting base_os.
79256         (386bsd*): Likewise.
79257         (freebsd*): Likewise.
79258         (bsdi*): Likewise.
79259         (osf*): Likewise.
79260         (sunos*): Likewise.
79261         (ultrix*): Likewise.
79262         (newsos*): Likewise.
79263         (dynix*): Likewise.
79264         (*bsd*): Likewise.
79265         (sysv*): Likewise.
79266         (isc*): Likewise.
79267         (esix*): Likewise.
79268         (sco*): Likewise.
79269         (minix*): Likewise.
79270         (irix4*): Likewise.
79271         (irix6*): Likewise.
79272         (solaris[2-9]*): Likewise.
79273         (none): Likewise.
79274         * configure: Regenerated.
79275
79276 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
79277
79278         [BZ #11521]
79279         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
79280         overflow or cancellation in calculating denominator.
79281         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
79282         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
79283         down expression to avoid unexpected rounding in newer GCCs.
79284         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
79285
79286 2012-04-26  David S. Miller  <davem@davemloft.net>
79287
79288         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
79289         long-double compat symbols.
79290         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
79291         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
79292         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
79293         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
79294         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
79295         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
79296         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
79297         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
79298         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
79299         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
79300         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
79301         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
79302         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
79303
79304 2012-04-25  David S. Miller  <davem@davemloft.net>
79305
79306         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
79307         HWCAP_* values only after the memory barriers have been defined.
79308         (atomic_full_barrier): Define.
79309         (atomic_read_barrier): Define.
79310         (atomic_write_barrier): Define.
79311
79312 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
79313
79314         * shlib-versions: Add libgcc_s version information.
79315         * sysdeps/generic/libgcc_s.h: Remove.
79316         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
79317         libgcc_s.h.
79318         * sysdeps/gnu/unwind-resume.c: Likewise.
79319         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
79320
79321 2012-04-25  David S. Miller  <davem@davemloft.net>
79322
79323         * sysdeps/unix/sparc/brk.S: Delete.
79324         * sysdeps/unix/sparc/dl-brk.S: Delete.
79325         * sysdeps/unix/sparc/pipe.S: Delete.
79326         * sysdeps/unix/sparc/sysdep.S: Delete.
79327         * sysdeps/unix/sparc/sysdep.h: Delete.
79328         * sysdeps/unix/sparc/vfork.S: Delete.
79329         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
79330         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
79331         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
79332         (ret_ERRVAL, r0, r1, MOVE): Define.
79333         (JUMPTARGET): Remove.
79334         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
79335         sysdeps/unix/sparc/sysdep.h
79336         (ENTRY, END): Remove.
79337         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
79338
79339 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
79340
79341         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
79342         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
79343         -DIS_IN_build.
79344
79345         * timezone/README: Update upstream location and email address for
79346         tzcode and tzdata.
79347         * timezone/zdump.c: Update from tzcode 2012b.
79348         * timezone/zic.c: Likewise.
79349
79350         * configure.in (libc_cv_as_needed): Remove test.
79351         * configure: Regenerated.
79352         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
79353         conditional definition.
79354         [$(have-as-needed) != yes] (no-as-needed): Likewise.
79355         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
79356         * config.make.in (have-as-needed): Remove variable.
79357
79358 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
79359             Paul Pluzhnikov  <ppluzhnikov@google.com>
79360
79361         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
79362         strings correctly.
79363
79364 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
79365
79366         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
79367         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
79368         * sysdeps/sh/strlen.S: Likewise.
79369
79370 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
79371
79372         * sysdeps/unix/fork.S: Remove file.
79373         * sysdeps/unix/i386/fork.S: Likewise.
79374         * sysdeps/unix/sparc/fork.S: Likewise.
79375
79376         * sysdeps/unix/system.c: Remove file.
79377         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
79378
79379         * sysdeps/unix/getegid.S: Remove file.
79380         * sysdeps/unix/geteuid.S: Likewise.
79381
79382 2012-04-24  Roland McGrath  <roland@hack.frob.com>
79383
79384         * scripts/check-localplt.awk: New file.
79385         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
79386         of diff.
79387         * scripts/data/localplt-generic.data: Add a comment.
79388
79389         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
79390         NODE when __dir_mkfile failed.
79391         * sysdeps/mach/hurd/symlinkat.c: Likewise.
79392         Reported by Ludovic Courtès <ludo@gnu.org>.
79393
79394 2012-04-24  Andreas Jaeger  <aj@suse.de>
79395
79396         * Makerules (common-clean): Also remove gen-as-const-headers
79397         files.
79398
79399 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
79400
79401         * Makerules (native-compile): Do not change working directory for
79402         build.  Use $(OUTPUT_OPTION) in command.
79403         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
79404
79405 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
79406
79407         [BZ #13886]
79408         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
79409         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
79410         * math/libm-test.inc (floor_test): Add more tests.
79411         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
79412
79413 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
79414
79415         * sysdeps/unix/getdents.c: Remove file.
79416         * sysdeps/unix/sysv/getdents.c: Likewise.
79417         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
79418
79419         * sysdeps/unix/syscalls.list (madvise): Add syscall from
79420         sysdeps/unix/mman/syscalls.list.
79421         (mmap): Likewise.
79422         (mprotect): Likewise.
79423         (msync): Likewise.
79424         (munmap): Likewise.
79425         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
79426         * sysdeps/unix/mman/syscalls.list: Remove.
79427         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
79428
79429         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
79430         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
79431         * configure: Regenerated.
79432         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
79433         $(libgcc_s_suffix).
79434         * config.make.in (libgcc_s_suffix): Remove variable.
79435
79436 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
79437
79438         * sysdeps/unix/sysv/gethostname.c: Move to ...
79439         * sysdeps/posix/gethostname.c: ... here.
79440
79441         * sysdeps/unix/execve.S: Remove file.
79442
79443         * sysdeps/unix/_exit.S: Remove file.
79444
79445 2012-04-23  Andreas Jaeger  <aj@suse.de>
79446
79447         [BZ #13739]
79448         * manual/Makefile: Remove make dist support, there's no
79449         need for a stand-alone documentation tar ball.
79450         (TEXI2DVI): Define always, it's not in Makeconfig.
79451         (dist): Removed.
79452         (tar-it): Removed.
79453         (edition): Removed.
79454         (glibc-doc-$(edition).tar): Removed
79455         (%.Z): Removed.
79456         (%.gz): Removed.
79457         (%.uu): Removed.
79458         (ETAGS): Remove, it's in Makeconfig.
79459         (move-if-change): Remove, it's in Makeconfig.
79460
79461 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
79462
79463         [BZ #13970]
79464         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
79465         (strtod, strtof, strtold, strtol, strtoul, strtoq)
79466         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
79467         (strtod_l, strtof_l, strtold_l): Remove __wur.
79468         It is not necessarily an error to ignore strtol's return value.
79469         One can reliably look at the stored endptr to decide whether
79470         the number had valid syntax.
79471
79472 2012-04-21  Andreas Jaeger  <aj@suse.de>
79473
79474         [BZ #13739]
79475         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
79476
79477 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
79478
79479         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
79480         * sysdeps/unix/sysv/Versions: Remove file.
79481
79482 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
79483
79484         [BZ #13927]
79485         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
79486
79487 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
79488
79489         [BZ #7064]
79490         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
79491         version from __vm86.
79492
79493 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
79494
79495         * sysdeps/unix/common/lxstat.c: Remove file.
79496         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
79497
79498         * sysdeps/unix/sysv/Makefile: Remove file.
79499
79500         * sysdeps/unix/sysv/direct.h: Remove file.
79501
79502         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
79503         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
79504         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
79505         * sysdeps/unix/sysv/bits/signum.h: Likewise.
79506         * sysdeps/unix/sysv/bits/stat.h: Likewise.
79507         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
79508         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
79509
79510         * sysdeps/unix/sysv/setrlimit.c: Remove file.
79511
79512         * sysdeps/unix/xmknod.c: Remove file.
79513         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
79514
79515         * sysdeps/unix/sysv/settimeofday.c: Remove file.
79516
79517         * sysdeps/unix/sysv/i386/time.S: Remove file.
79518
79519         * sysdeps/unix/fxstat.c: Remove file.
79520         * sysdeps/unix/xstat.c: Likewise.
79521         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
79522
79523         * sysdeps/unix/sysv/sigaction.c: Remove file.
79524
79525         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
79526         (sysdep_headers): Remove variable.
79527         [termio.h not in sysdep_headers] (generated): Likewise.
79528         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
79529         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
79530         * sysdeps/unix/sysv/tcdrain.c: Likewise.
79531         * sysdeps/unix/sysv/tcflow.c: Likewise.
79532         * sysdeps/unix/sysv/tcflush.c: Likewise.
79533         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
79534         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
79535         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
79536         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
79537         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
79538
79539         * sysdeps/unix/siglist.c: Remove file.
79540
79541         * sysdeps/unix/getppid.S: Remove file.
79542
79543         * sysdeps/unix/mkdir.c: Remove file.
79544         * sysdeps/unix/rmdir.c: Likewise.
79545
79546 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
79547
79548         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
79549         ERR_MAX value.
79550         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
79551         errlist-compat value.
79552
79553 2012-04-18  David S. Miller  <davem@davemloft.net>
79554
79555         * sysdeps/generic/memcopy.h (reg_char): Delete.
79556         * debug/strcat_chk.c: Use char, not reg_char.
79557         * debug/strcpy_chk.c: Likewise.
79558         * debug/strncat_chk.c: Likewise.
79559         * debug/strncpy_chk.c: Likewise.
79560         * string/memchr.c: Likewise.
79561         * string/memrchr.c: Likewise.
79562         * string/rawmemchr.c: Likewise.
79563         * string/strcat.c: Likewise.
79564         * string/strchr.c: Likewise.
79565         * string/strchrnul.c: Likewise.
79566         * string/strcmp.c: Likewise.
79567         * string/strcpy.c: Likewise.
79568         * string/strncat.c: Likewise.
79569         * string/strncmp.c: Likewise.
79570         * string/strncpy.c: Likewise.
79571
79572 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
79573
79574         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
79575         __builtin_memcopy is called when src and dest ranges are known to not
79576         overlap.
79577
79578 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
79579
79580         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
79581         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
79582         fwd_align_merge macro call.
79583         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
79584         bwd_align_merge macro call.
79585         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
79586
79587 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
79588
79589         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
79590         bwd_align_merge macros.
79591         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
79592         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
79593         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
79594
79595 2012-04-18  David S. Miller  <davem@davemloft.net>
79596
79597         * sysdeps/sparc/sparc64/memcopy.h: Delete.
79598
79599 2012-04-18  Andreas Jaeger  <aj@suse.de>
79600
79601         [BZ #6794]
79602         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
79603         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
79604         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
79605
79606         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
79607         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
79608         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
79609
79610         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
79611         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
79612         Adjust for changed ldbl-128 files.
79613
79614         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
79615         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
79616         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
79617
79618 2012-04-17  David S. Miller  <davem@davemloft.net>
79619
79620         * sysdeps/sparc/sparc32/memcopy.h: Delete.
79621
79622 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
79623
79624         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
79625         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
79626         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
79627         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
79628         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
79629         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
79630
79631 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
79632
79633         [BZ #6794]
79634         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
79635         * math/libm-test.inc: Add ilogb errno and exception tests.
79636         * math/w_ilogb.c: New file: ilogb wrapper.
79637         * math/w_ilogbf.c: New file: ilogbf wrapper.
79638         * math/w_ilogbl.c: New file: ilogbl wrapper.
79639         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
79640         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
79641         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
79642         exception being thrown with 0.0 as argument.
79643         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
79644         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
79645         exception being thrown with 0.0 as argument.
79646         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
79647         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
79648         exception being thrown with 0.0 as argument.
79649         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
79650         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
79651         exception being thrown with 0.0 as argument.
79652         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
79653         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
79654         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
79655         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
79656         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
79657         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
79658         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
79659         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
79660         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
79661
79662 2012-04-17  Petr Baudis  <pasky@ucw.cz>
79663
79664         * include/sys/uio.h: Change __vector to __iovec to avoid clash
79665         with altivec.
79666
79667 2012-04-16  Marek Polacek  <polacek@redhat.com>
79668
79669         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
79670
79671 2012-04-16  Marek Polacek  <polacek@redhat.com>
79672
79673         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
79674         operands of fdivp instruction.
79675
79676 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
79677
79678         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
79679         * elf/tst-auditmod3b.c: Likewise.
79680         * elf/tst-auditmod4b.c: Likewise.
79681         * elf/tst-auditmod5b.c: Likewise.
79682         * elf/tst-auditmod6b.c: Likewise.
79683         * elf/tst-auditmod6c.c: Likewise.
79684         * elf/tst-auditmod7b.c: Likewise.
79685         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
79686         * sysdeps/x86_64/preconfigure.in: Likewise.
79687         * sysdeps/x86_64/preconfigure: Regenerated.
79688
79689 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
79690
79691         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
79692         __ILP32__.
79693
79694 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
79695
79696         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
79697         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
79698
79699 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
79700
79701         [BZ #13973]
79702         * locale/iso-639.def: Fix gl language name. Spotted by
79703         Yaron Shahrabani.
79704
79705 2012-04-12  Roland McGrath  <roland@hack.frob.com>
79706
79707         [BZ #2074]
79708         * libio/libio.h (__io_write_fn): Update comment.
79709
79710 2012-04-12  Petr Baudis  <pasky@ucw.cz>
79711
79712         [BZ #2074]
79713         * stdio.texi (Hook Functions): The user provided writer function
79714         is not allowed to return -1.
79715
79716 2012-04-11  David S. Miller  <davem@davemloft.net>
79717
79718         * sysdeps/sparc/fpu/libm-test-ulps: Update.
79719
79720 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
79721
79722         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
79723         Add a leading slash to rtkaio.
79724
79725 2012-04-11  Jim Meyering  <meyering@redhat.com>
79726
79727         [BZ #11959]
79728         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
79729         It is not necessarily an error to ignore fwrite's return
79730         value.  One can reliably use ferror to test for errors after
79731         the fact.
79732
79733 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
79734
79735         * bits/types.h (__snseconds_t): New type.
79736         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
79737
79738         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
79739         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
79740         (__SNSECONDS_T_TYPE): Likewise.
79741         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
79742         (__SNSECONDS_T_TYPE): Likewise.
79743         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
79744         (__SNSECONDS_T_TYPE): Likewise.
79745
79746 2012-04-10  Andreas Jaeger  <aj@suse.de>
79747
79748         [BZ #2636]
79749         * manual/time.texi (Processor Time): Return type of times is
79750         elapsed real time since an arbitrary point in the past.
79751         (CPU Time): Move CLK_TCK from here...
79752         (Processor Time): ...to here.  Correct description.
79753         * manual/conf.texi (Constants for Sysconf): Correct description of
79754         _SC_CLK_TCK.
79755
79756 2012-04-10  David S. Miller  <davem@davemloft.net>
79757
79758         [BZ #13967]
79759         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
79760         where the is a gap between DT_REL(A) and DT_JMPREL.
79761
79762 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
79763
79764         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
79765         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
79766         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
79767
79768 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
79769
79770         * elf/dl-support.c (_dl_inhibit_cache): New variable.
79771         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
79772         (dl_main): Handle --inhibit-cache.
79773         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
79774         _dl_inhibit_cache.
79775         * elf/dl-load.c (_dl_map_object): Use it.
79776         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
79777
79778 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
79779
79780         [BZ #13872]
79781         * sysdeps/i386/fpu/e_powl.S (p78): New object.
79782         (__ieee754_powl): Saturate large exponents rather than testing for
79783         overflow of y*log2(x).
79784         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
79785         * math/libm-test.inc (pow_test): Do not permit spurious overflow
79786         exceptions.
79787
79788         [BZ #11521]
79789         * math/s_ctan.c: Include <float.h>.
79790         (__ctan): Avoid internal overflow or cancellation in calculating
79791         denominator.
79792         * math/s_ctanf.c: Likewise.
79793         * math/s_ctanl.c: Likewise.
79794         * math/s_ctanh.c: Likewise.
79795         * math/s_ctanhf.c: Likewise.
79796         * math/s_ctanhl.c: Likewise.
79797         * math/libm-test.inc (ctan_test): Add more tests.
79798         (ctanh_test): Likewise.
79799         * sysdeps/i386/fpu/libm-test-ulps: Update.
79800         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
79801
79802 2012-04-09  Andreas Jaeger  <aj@suse.de>
79803
79804         [BZ #6894]
79805         * manual/filesys.texi (Directory Entries): Mention that d_namlen
79806         is an optional BSD extension.
79807
79808         [BZ #10254]
79809         * manual/stdio.texi (Opening Streams): Document additional fopen
79810         parameters.
79811
79812 2012-04-09  Roland McGrath  <roland@hack.frob.com>
79813
79814         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
79815         %eax without telling the compiler.
79816
79817 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
79818
79819         [BZ # 13963]
79820         * manual/install.texi: Use sourceware.org.
79821
79822 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
79823
79824         [BZ #13873]
79825         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
79826         (__ieee754_pow): Generate overflow and underflow using huge*huge
79827         and tiny*tiny rather than just returning constant infinity or zero
79828         for large exponents.
79829         * math/libm-test.inc (pow_test): Require overflow exceptions for
79830         applicable cases of large exponents.
79831
79832         [BZ #706]
79833         * sysdeps/i386/fpu/e_pow.S (p10): New object.
79834         (__ieee754_pow): Use iterative multiplication algorithm only for
79835         integer exponents with absolute value below 1024.  Check for odd
79836         integer exponents when using algorithm for real exponents.
79837         * math/libm-test.inc (pow_test): Add more tests.
79838         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
79839
79840 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
79841
79842         [BZ #13705]
79843         * math/libm-test.inc (exp_test): Do not allow overflow exception
79844         on underflow test.
79845
79846 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
79847
79848         [BZ #13705]
79849         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
79850         instead of __kernel_standard_f.
79851
79852 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
79853
79854         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
79855         * sysdeps/x86_64/memset_chk.S: Likewise.
79856
79857 2012-04-08  Andreas Jaeger  <aj@suse.de>
79858
79859         [BZ #10153]
79860         * manual/startup.texi (Environment Access): Describe return value
79861         for putenv and setenv.
79862
79863         [BZ #6895]
79864         * manual/filesys.texi (Directory Entries): Add description for
79865         DT_LNK.
79866
79867         [BZ #6890]
79868         * manual/filesys.texi (Directory Entries): Clarify that it's file
79869         system not operating system in the description of DT_UNKNOWN.
79870
79871         [BZ #6578]
79872         * manual/syslog.texi (closelog): Fix reference, it's openlog.
79873
79874 2012-04-08  Stephen Compall  <s11@member.fsf.org>
79875
79876         [BZ #6649]
79877         * manual/llio.texi (Opening and Closing Files): Add cross
79878         reference to explain mode argument.
79879
79880 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
79881
79882         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
79883         * sysdeps/x86_64/memset_chk.S: Likewise.
79884
79885 2012-04-07  David S. Miller  <davem@davemloft.net>
79886
79887         * elf/elf.h (R_SPARC_WDISP10): Define.
79888         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
79889         R_SPARC_SIZE32.
79890         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
79891         R_SPARC_SIZE64 and R_SPARC_H34.
79892
79893 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
79894
79895         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
79896         conditions and remove no longer applicable assertion.
79897
79898 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
79899
79900         * bits/byteswap.h: Include <features.h>.
79901         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
79902         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
79903
79904 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
79905
79906         * bits/byteswap.h (__bswap_16): Removed.
79907         Include <bits/byteswap-16.h> to get __bswap_16.
79908         * sysdeps/i386/bits/byteswap.h: Likewise.
79909         * sysdeps/s390/bits/byteswap.h: Likewise.
79910         * sysdeps/x86_64/bits/byteswap.h: Likewise.
79911         * bits/byteswap-16.h: New file.
79912         * sysdeps/i386/bits/byteswap-16.h: Likewise.
79913         * sysdeps/s390/bits/byteswap-16.h: Likewise.
79914         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
79915         * string/Makefile (headers): Add bits/byteswap-16.h.
79916
79917 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
79918
79919         [BZ #13895]
79920         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
79921         extra indirection.
79922         * nss/Makefile (tests-static, tests): Add tst-nss-static.
79923         * nss/tst-nss-static.c: New.
79924
79925 2012-04-06  Robert Millan  <rmh@gnu.org>
79926
79927         [BZ #6486]
79928         * manual/llio.texi (File Position Primitive): lseek
79929         refers to WHENCE when it really means OFFSET.
79930
79931 2012-04-06  Andreas Jaeger  <aj@suse.de>
79932
79933         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
79934         strncmp declarations.
79935
79936         * abilist/libc.abilist: Add __poll and __ppoll.
79937
79938 2012-04-05  David S. Miller  <davem@davemloft.net>
79939
79940         * scripts/check-local-headers.sh: Accept a host triplet in the
79941         path matched by the exclude regexp.
79942
79943         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
79944         definition.
79945         * sysdeps/powerpc/powerpc32/dl-machine.h
79946         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
79947         * sysdeps/s390/s390-32/dl-machine.h
79948         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
79949         * sysdeps/sparc/sparc32/dl-machine.h
79950         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
79951         * sysdeps/sparc/sparc64/dl-machine.h
79952         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
79953
79954         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
79955         lazy binding.
79956         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
79957         undefined symbol errors.
79958
79959         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
79960         DT_NEEDED entries.
79961
79962 2012-04-05  Michael Matz  <matz@suse.de>
79963
79964         [BZ #13592]
79965         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
79966
79967 2012-04-05  Andreas Jaeger  <aj@suse.de>
79968
79969         [BZ #13908]
79970         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
79971         comment.
79972
79973 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
79974
79975         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
79976         which ROUND is no valid rounding mode.
79977
79978 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
79979
79980         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
79981         read again.
79982         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
79983
79984 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
79985
79986         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
79987         an exception using FPU order intentionally.
79988
79989 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
79990
79991         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
79992         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
79993         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
79994         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
79995
79996 2012-04-05  Simon Josefsson  <simon@josefsson.org>
79997
79998         [BZ #12340]
79999         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
80000         EINVAL when BUFLEN is too smal.
80001
80002 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
80003
80004         [BZ #13553]
80005         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
80006         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
80007
80008 2012-04-03  Andreas Jaeger  <aj@suse.de>
80009
80010         [BZ #13938]
80011         * manual/setjmp.texi (System V contexts): Fix sentence.
80012
80013         [BZ #13926]
80014         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
80015         New macro for this case.
80016         [!__GNUC__] (__bswap_64): New inline function for this case.
80017         * sysdeps/x86_64/bits/byteswap.h: Likewise.
80018         * bits/byteswap.h: Likewise.
80019         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
80020         ull, guard with __GLIBC_HAVE_LONG_LONG.
80021
80022         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
80023         __GLIBC_HAVE_LONG_LONG.
80024
80025         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
80026         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
80027
80028 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
80029
80030         [BZ #13691]
80031         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
80032         inptr and inend, rather than using last_ch.
80033
80034 2012-04-02  David S. Miller  <davem@davemloft.net>
80035
80036         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
80037         * stdio-common/printf-parse.h (read_int): Change return type to
80038         'int', return -1 on INT_MAX overflow.
80039         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
80040         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
80041         overflows INT_MAX.  Check for overflow of in-format-string precision
80042         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
80043         SIZE_MAX not INT_MAX for integer overflow test.
80044         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
80045         skip the construct in the format string but do not record anything.
80046         * stdio-common/bug22.c: Adjust to test both width/prevision
80047         INT_MAX overflow as well as total length INT_MAX overflow.  Check
80048         explicitly for proper errno values.
80049
80050 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
80051
80052         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
80053         CHAR_MAX.
80054         * string/test-strcmp.c [! WIDE]: Likewise.
80055         * time/tst-mktime2.c: Likewise for INT_MAX.
80056         * string/test-string.h: #include <sys/param.h> for MIN.
80057
80058         * csu/init-first.c (__libc_init_first): Call __ctype_init.
80059         * sysdeps/i386/init-first.c (init): Likewise.
80060         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
80061         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
80062         * sysdeps/sh/init-first.c (init): Likewise.
80063
80064 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
80065
80066         * po/ru.po: Update from translation team.
80067         * po/vi.po: Likewise.
80068
80069 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
80070
80071         * resolv/nss_dns/dns-host.c: Merge copyright years.
80072
80073 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
80074
80075         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
80076         Optimize memcpy with prefetch if
80077         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
80078         src, dst pointers have unequal 16 byte alignments.
80079
80080 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
80081
80082         [BZ #13928]
80083         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
80084         from a CNAME entry and return the minimum ttl for the query.
80085         (gaih_getanswer_slice): Likewise.
80086
80087 2012-03-30  Jeff Law  <law@redhat.com>
80088
80089         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
80090         due to long keys.
80091         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
80092         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
80093
80094         * resolv/nss_dns/dns-host.c: Update copyright year.
80095
80096 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
80097
80098         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
80099         requests to save a system call.  Fix check that all bytes are sent.
80100
80101         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
80102         comments for sendmmsg.
80103
80104 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
80105
80106         [BZ #13691]
80107         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
80108         with only 1 character between 0x0041 and 0x01b0.
80109         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
80110         * wcsmbs/tst-mbsnrtowcs.c: New file.
80111
80112 2012-03-29  David S. Miller  <davem@davemloft.net>
80113
80114         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
80115         small copies by hand.
80116
80117 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
80118
80119         [BZ #13761]
80120         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
80121         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
80122         group memberships.
80123
80124 2012-03-28  David S. Miller  <davem@davemloft.net>
80125
80126         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
80127         that branches into memcpy.
80128         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
80129         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
80130         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
80131         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
80132         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
80133         bits.
80134         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
80135         implementation too.
80136         * sysdeps/sparc/mempcpy.S: New file.
80137
80138         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
80139         the IFUNC routine in the libc case.
80140         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
80141
80142         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
80143         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
80144         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
80145         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
80146         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
80147         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
80148         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
80149         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
80150
80151         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
80152         loop to 256 bytes instead of 64 bytes and fix test signedness.
80153
80154         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
80155         * sysdeps/sparc/sparc32/Makefile: rather than here...
80156         * sysdeps/sparc/sparc64/Makefile: and here.
80157
80158 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
80159
80160         * malloc/mallocbug.c: Avoid warnings about unused variables.
80161
80162 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
80163
80164         [BZ #13760]
80165         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
80166         in the right place. Discard and retry query if response is
80167         larger than input buffer size.
80168
80169 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
80170
80171         [BZ #369]
80172         [BZ #2678]
80173         [BZ #3866]
80174         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
80175         x for large integer exponent.
80176         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
80177         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
80178         sign of result as needed afterwards.
80179         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
80180         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
80181         result for underflowing pow the same as for overflow.
80182         (__kernel_standard_l): Handle powl overflow and underflow here
80183         rather than calling __kernel_standard.
80184         * math/libm-test.inc (pow_test): Add more tests.
80185
80186         [BZ #3868]
80187         [BZ #13879]
80188         [BZ #13910]
80189         [BZ #13911]
80190         [BZ #13912]
80191         [BZ #13913]
80192         [BZ #13915]
80193         [BZ #13916]
80194         [BZ #13917]
80195         [BZ #13918]
80196         [BZ #13919]
80197         [BZ #13920]
80198         [BZ #13921]
80199         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
80200         * sysdeps/ieee754/k_standard.c: Include <float.h>.
80201         (__kernel_standard_l): New function.
80202         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
80203         __kernel_standard.
80204         * math/w_acosl.c (__acosl): Likewise.
80205         * math/w_asinl.c (__asinl): Likewise.
80206         * math/w_atan2l.c (__atan2l): Likewise.
80207         * math/w_atanhl.c (__atanhl): Likewise.
80208         * math/w_coshl.c (__coshl): Likewise.
80209         * math/w_exp10l.c (__exp10l): Likewise.
80210         * math/w_exp2l.c (__exp2l): Likewise.
80211         * math/w_fmodl.c (__fmodl): Likewise.
80212         * math/w_hypotl.c (__hypotl): Likewise.
80213         * math/w_j0l.c (__j0l, __y0l): Likewise.
80214         * math/w_j1l.c (__j1l, __y1l): Likewise.
80215         * math/w_jnl.c (__jnl, __ynl): Likewise.
80216         * math/w_lgammal.c (__lgammal): Likewise.
80217         * math/w_log10l.c (__log10l): Likewise.
80218         * math/w_log2l.c (__log2l): Likewise.
80219         * math/w_logl.c (__logl): Likewise.
80220         * math/w_powl.c (__powl): Likewise.
80221         * math/w_remainderl.c (__remainderl): Likewise.
80222         * math/w_scalbl.c (sysv_scalbl): Likewise.
80223         * math/w_sinhl.c (__sinhl): Likewise.
80224         * math/w_sqrtl.c (__sqrtl): Likewise.
80225         * math/w_tgammal.c (__tgammal): Likewise.
80226         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
80227         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
80228         * math/libm-test.inc (acos_test): Add more tests.
80229         (acosh_test): Likewise.
80230         (asin_test): Likewise.
80231         (atanh_test): Likewise.
80232         (exp_test): Likewise.
80233         (exp10_test): Likewise.
80234         (exp2_test): Likewise.
80235         (expm1_test): Likewise.
80236         (lgamma_test): Likewise.
80237         (log_test): Likewise.
80238         (log10_test): Likewise.
80239         (log1p_test): Likewise.
80240         (log2_test): Likewise.
80241         (pow_test): Do not allow some spurious overflow exceptions.
80242         (sqrt_test): Add more tests.
80243         (tgamma_test): Likewise.
80244         (y0_test): Likewise.
80245         (y1_test): Likewise.
80246         (yn_test): Likewise.
80247
80248 2012-03-27  Anton Blanchard  <anton@samba.org>
80249
80250         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
80251         MAP_HUGETLB.
80252         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
80253         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
80254         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
80255
80256 2012-03-27  David S. Miller  <davem@davemloft.net>
80257
80258         * conform/Makefile: Run run-conformtest.sh using $(BASH).
80259
80260         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
80261         have-as-vis3 check.
80262
80263 2012-03-27  Andreas Jaeger  <aj@suse.de>
80264
80265         * sysdeps/x86_64/elf/configure.in: Moved to ...
80266         * sysdeps/x86_64/configure.in: ... here.
80267         * sysdeps/x86_64/elf/start.S: Moved to ...
80268         * sysdeps/x86_64/start.S: ... here.
80269         * sysdeps/x86_64/elf/configure: Delete.
80270
80271         * sysdeps/x86_64/configure.in: Merge contents from
80272         sysdeps/i386/configure.in (without i686 check).
80273
80274         * sysdeps/i386/elf/Versions: Merge into ...
80275         * sysdeps/i386/Versions: ... this.
80276         * sysdeps/i386/elf/Versions: Delete file.
80277         * sysdeps/i386/elf/start.S: Moved to ...
80278         * sysdeps/i386/start.S: ...here.
80279         * sysdeps/i386/elf/configure.in: Merge into...
80280         * sysdeps/i386/configure.in: ...here.
80281         * sysdeps/i386/elf/configure.in: Delete file.
80282         * sysdeps/i386/elf/configure: Delete file.
80283
80284         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
80285         * debug/backtracesyms.c: ... here.
80286         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
80287         * debug/backtracesymsfd.c: ... here.
80288         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
80289         * sysdeps/generic/ifunc-sel.h: ... here.
80290
80291         * sysdeps/unix/i386/start.c: Delete file.
80292         * sysdeps/unix/sparc/start.c: Delete file.
80293         * sysdeps/unix/start.c: Delete file.
80294
80295         * sysdeps/sh/elf/configure.in: Moved to ...
80296         * sysdeps/sh/configure.in: ... here.
80297         * sysdeps/sh/elf/start.S: Moved to ...
80298         * sysdeps/sh/start.S: ... here.
80299         * sysdeps/sh/elf/configure: Delete file.
80300
80301         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
80302         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
80303         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
80304         * sysdeps/powerpc/powerpc64/entry.h: ... here.
80305         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
80306         * sysdeps/powerpc/powerpc64/start.S: here.
80307         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
80308         * sysdeps/powerpc/powerpc64/Makefile: ... this.
80309         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
80310         * sysdeps/powerpc/powerpc64/configure.in: ... this.
80311         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
80312
80313         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
80314         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
80315         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
80316         * sysdeps/powerpc/powerpc32/start.S: ... here.
80317         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
80318         * sysdeps/powerpc/powerpc32/configure.in: ... this.
80319         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
80320
80321         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
80322         * sysdeps/powerpc/ifunc-sel.h: ... here.
80323         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
80324         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
80325
80326         * sysdeps/sparc/elf/configure.in: Moved to ...
80327         * sysdeps/sparc/configure.in: ... here.
80328         * sysdeps/sparc/elf/configure: Delete file.
80329         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
80330         * sysdeps/sparc/sparc32/start.S: ... here.
80331         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
80332         * sysdeps/sparc/sparc64/start.S: ... here.
80333         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
80334         * sysdeps/sparc/sparc32/Makefile: ... this.
80335         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
80336         * sysdeps/sparc/sparc64/Makefile: ... this.
80337
80338         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
80339         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
80340         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
80341         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
80342         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
80343         * sysdeps/s390/s390-32/setjmp.S: ... here.
80344         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
80345         * sysdeps/s390/s390-32/configure.in: ... here.
80346         * sysdeps/s390/s390-32/elf/configure: Delete file.
80347         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
80348         * sysdeps/s390/s390-32/start.S: ... here.
80349
80350         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
80351         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
80352         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
80353         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
80354         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
80355         * sysdeps/s390/s390-64/setjmp.S: ... here.
80356         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
80357         * sysdeps/s390/s390-64/configure.in: ... here
80358         * sysdeps/s390/s390-64/elf/configure: Delete file.
80359         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
80360         * sysdeps/s390/s390-64/start.S: ... here.
80361         * sysdeps/s390/s390-64/elf/configure: Delete.
80362
80363         * configure.in: Remove support for elf directories in sysdeps.
80364
80365         * configure: Regenerated.
80366         * sysdeps/i386/configure: Regenerated.
80367         * sysdeps/powerpc/powerpc32/configure: Regenerated.
80368         * sysdeps/powerpc/powerpc64/configure: Regenerated.
80369         * sysdeps/s390/s390-32/configure: Regenerated.
80370         * sysdeps/s390/s390-64/configure: Regenerated.
80371         * sysdeps/sh/configure: Regenerated.
80372         * sysdeps/sparc/configure: Regenerated.
80373         * sysdeps/x86_64/configure: Regenerated.
80374
80375 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
80376
80377         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
80378
80379         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
80380         denormal result into account.
80381
80382 2012-03-25  Roland McGrath  <roland@hack.frob.com>
80383
80384         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
80385         Reported by Allan McRae <allan@archlinux.org>.
80386
80387 2012-03-23  Jeff Law  <law@redhat.com>
80388
80389         * nss/getnssent.c (__nss_getent): Fix typo.
80390
80391 2012-03-23  David S. Miller  <davem@davemloft.net>
80392
80393         * sysdeps/sparc/fpu/libm-test-ulps: Update.
80394
80395 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
80396
80397         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
80398         to pad to uint64_t for each field.
80399         (dl_tls_index): Replace unsigned long with uint64_t.
80400
80401 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
80402         Paul Pluzhnikov  <ppluzhnikov@google.com>
80403
80404         [BZ #6528]
80405         * grp/Makefile (otherlibs): Don't set it.
80406         * inet/Makefile (otherlibs): Likewise.
80407         * login/Makefile (otherlibs): Likewise.
80408         * nscd/Makefile (otherlibs): Likewise.
80409         * posix/Makefile (otherlibs): Likewise.
80410         * pwd/Makefile (otherlibs): Likewise.
80411         * rt/Makefile (otherlibs): Likewise.
80412         * sunrpc/Makefile (otherlibs): Likewise.
80413         * nss/Makefile (otherlibs): Likewise.
80414         Add libnss_files to routines and static-only-routines.
80415         ($(objpfx)getent): Remove rule.
80416         * resolv/Makefile: Add libnss_dns and libresolv to routines and
80417         static-only-routines.
80418
80419 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
80420
80421         [BZ #13892]
80422         * math/s_cexp.c: Include <float.h>.
80423         (__cexp): Handle exp result overflowing not necessarily
80424         overflowing both real and imaginary parts of result.
80425         * math/s_cexpf.c: Likewise.
80426         * math/s_cexpl.c: Likewise.
80427         * math/libm-test.inc (cexp_test): Add more tests.
80428         * sysdeps/i386/fpu/libm-test-ulps: Update.
80429         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
80430
80431 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
80432
80433         * include/link.h (ELFW): New macro.
80434         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
80435         Replace ELF64_R_TYPE with ELFW(R_TYPE).
80436
80437 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
80438
80439         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
80440         with uint64_t.
80441
80442 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
80443
80444         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
80445         declaration.
80446         (struct La_x32_retval): Likewise.
80447
80448 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
80449
80450         * sysdeps/x86_64/preconfigure.in: New file.
80451         * sysdeps/x86_64/preconfigure: New generated file.
80452
80453 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
80454
80455         [BZ #13824]
80456         * math/e_exp2l.c: Include <float.h>.
80457         (__ieee754_exp2l): Handle overflow and underflow cases
80458         separately.  Only pass fractional part of argument to
80459         __ieee754_expl.
80460         * math/libm-test.inc (exp2_test): Add more tests.
80461
80462         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
80463         negating x to take absolute value.
80464         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
80465         Likewise.
80466         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
80467         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
80468         Likewise.
80469         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
80470         computing low part if x was negated.
80471         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
80472
80473 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
80474
80475         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
80476         la_x32_gnu_pltexit.
80477         (pltexit): Cast int_retval to ptrdiff_t.
80478         * elf/tst-auditmod3b.c: Likewise.
80479         * elf/tst-auditmod4b.c: Likewise.
80480         * elf/tst-auditmod5b.c: Likewise.
80481         * elf/tst-auditmod6b.c: Likewise.
80482         * elf/tst-auditmod6c.c: Likewise.
80483         * elf/tst-auditmod7b.c: Likewise.
80484
80485         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
80486         and x32_gnu_pltexit.
80487
80488         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
80489         __ELF_NATIVE_CLASS.
80490         (La_x32_regs): New macro.
80491         (La_x32_retval): Likewise.
80492         (la_x32_gnu_pltenter): New function prototype.
80493         (la_x32_gnu_pltexit): Likewise.
80494
80495 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
80496
80497         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
80498         exponent.
80499
80500         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
80501
80502         * configure.in (libc_cv_cc_nofma): Check for option to disable
80503         generation of FMA instructions.
80504         * configure: Regenerate.
80505         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
80506         * sysdeps/ieee754/dbl-64/Makefile: New file.
80507         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
80508         Remove brandred-fma4.
80509         (CFLAGS-brandred-fma4.c): Remove.
80510         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
80511         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
80512         define.
80513         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
80514         define.
80515
80516 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
80517
80518         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
80519         LLONG_MAX != LONG_MAX.
80520         (_itoa_word): Use _ITOA_WORD_TYPE on value.
80521         (_fitoa_word): Likewise.
80522         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
80523         LLONG_MAX != LONG_MAX.
80524         * stdio-common/_itowa.h: Include <_itoa.h>.
80525         (_itowa_word): Use _ITOA_WORD_TYPE on value.
80526         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
80527         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
80528         only if not defined.
80529         (_ITOA_WORD_TYPE): Likewise.
80530         (_itoa_word): Use _ITOA_WORD_TYPE on value.
80531         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
80532
80533 2012-03-21  David S. Miller  <davem@davemloft.net>
80534
80535         * sysdeps/sparc/fpu/libm-test-ulps: Update.
80536
80537 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
80538
80539         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
80540         of x86_64 when setting libc_cv_slibdir, libdir and
80541         libc_cv_localedir.
80542         * sysdeps/unix/sysv/linux/configure: Regenerated.
80543
80544 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
80545
80546         * manual/lang.texi (Old Varargs): Remove section.
80547         (How Variadic): Update menu.
80548         (va_start): Do not mention varargs.h.
80549
80550 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
80551             Joseph Myers  <joseph@codesourcery.com>
80552
80553         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
80554         link test.
80555         * configure: Regenerated.
80556
80557 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
80558
80559         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
80560         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
80561         conformtest.pl
80562
80563 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
80564
80565         * NOTES: Remove.
80566         * Makefile (files-for-dist): Remove NOTES.
80567         (NOTES): Remove rule.
80568         * README: Don't refer to NOTES.
80569         * manual/creature.texi: Don't include macros.texi.
80570         * manual/intro.texi (creature.texi): Remove comment referring to
80571         NOTES.
80572
80573         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
80574         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
80575         * configure: Regenerated.
80576         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
80577         LIBC_TRY_CC_OPTION.
80578         (libc_cv_as_i686): Likewise.
80579         (libc_cv_cc_avx): Likewise.
80580         (libc_cv_cc_sse2avx): Likewise.
80581         (libc_cv_cc_fma4): Likewise.
80582         (libc_cv_cc_novzeroupper): Likewise.
80583         * sysdeps/i386/configure: Regenerated.
80584
80585         [BZ #13883]
80586         * sysdeps/i386/fpu/s_cexp.S: Remove.
80587         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
80588         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
80589         * math/libm-test.inc (cexp_test): Add more tests.
80590         * sysdeps/i386/fpu/libm-test-ulps: Update.
80591         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
80592
80593 2012-03-21  Allan McRae  <allan@archlinux.org>
80594
80595         * timezone/Makefile: Do not install iso3166.tab and zone.tab
80596
80597 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
80598
80599         [BZ #13871]
80600         * math/w_exp2.c: Do not include <float.h>.
80601         (o_threshold, u_threshold): Remove.
80602         (__exp2): Calculate result before checking finiteness and calling
80603         __kernel_standard.
80604         * math/w_exp2f.c: Likewise.
80605         * math/w_exp2l.c: Likewise.
80606         * math/libm-test.inc (exp2_test): Require overflow exception for
80607         1e6 input.
80608
80609         [BZ #3866]
80610         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
80611         range of signed 64-bit integers before using fistpll.  Remove
80612         checks for whether integers fit in mantissa bits.
80613         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
80614         the range of signed 32-bit integers before using fistpl.  Remove
80615         checks for whether integers fit in mantissa bits.
80616         * sysdeps/i386/fpu/e_powl.S (p64): New object.
80617         (__ieee754_powl): Test for y outside the range of signed 64-bit
80618         integers before using fistpll.  Reduce 64-bit values to 63-bit
80619         ones as needed.
80620         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
80621         divide-by-zero is raised for zero to large negative powers.
80622         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
80623         (__ieee754_powl): Test for y outside the range of signed 64-bit
80624         integers before using fistpll.  Reduce 64-bit values to 63-bit
80625         ones as needed.
80626         * math/libm-test.inc (pow_test): Add more tests.
80627
80628 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
80629
80630         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
80631         <stdio-common/_itoa.h>.
80632         * debug/segfault.c: Likewise.
80633         * elf/dl-cache.c: Likewise.
80634         * elf/dl-minimal.c: Likewise.
80635         * elf/dl-misc.c: Likewise.
80636         * elf/dl-sysdep.c: Likewise.
80637         * elf/dl-version.c: Likewise.
80638         * elf/rtld.c: Likewise.
80639         * hurd/hurdsock.c: Likewise.
80640         * hurd/lookup-retry.c: Likewise.
80641         * malloc/malloc.c: Likewise.
80642         * malloc/mtrace.c: Likewise.
80643         * nscd/nscd_getgr_r.c: Likewise.
80644         * nscd/nscd_getpw_r.c: Likewise.
80645         * nscd/nscd_getserv_r.c: Likewise.
80646         * posix/getopt_init.c: Likewise.
80647         * posix/wordexp.c: Likewise.
80648         * stdio-common/_itoa.c: Likewise.
80649         * stdio-common/printf_fphex.c: Likewise.
80650         * stdio-common/vfprintf.c: Likewise.
80651         * string/_strerror.c: Likewise.
80652         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
80653         * sysdeps/i386/i686/hp-timing.h: Likewise.
80654         * sysdeps/mach/_strerror.c: Likewise.
80655         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
80656         * sysdeps/mach/hurd/sethostid.c: Likewise.
80657         * sysdeps/mach/hurd/xmknodat.c: Likewise.
80658         * sysdeps/mach/xpg-strerror.c: Likewise.
80659         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
80660         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
80661         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
80662         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
80663         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
80664         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
80665         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
80666         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
80667         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
80668         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
80669         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
80670         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
80671         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
80672         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
80673         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
80674         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
80675         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
80676         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
80677         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
80678         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
80679         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
80680
80681         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
80682
80683         * stdio-common/_itoa.h: Moved to ...
80684         * sysdeps/generic/_itoa.h: Here.
80685
80686         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
80687
80688         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
80689         instead of "_itoa.h" and "_itowa.h".
80690         * stdio-common/vfprintf.: Likewise.
80691
80692 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
80693
80694         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
80695         <bits/wordsize.h>.
80696         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
80697         (__signbit): Likewise.
80698         (llrintf): Likewise.
80699         (llrint): Likewise.
80700
80701 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
80702
80703         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
80704         __WORDSIZE != 64.
80705
80706 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
80707
80708         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
80709         OVERFLOW_EXCEPTION_OK.
80710         * math/libm-test.inc ("Philosophy"): Update comment about
80711         exception testing.
80712         (OVERFLOW_EXCEPTION): Define.
80713         (OVERFLOW_EXCEPTION_OK): Likewise.
80714         (INVALID_EXCEPTION_OK): Renumber.
80715         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
80716         (IGNORE_ZERO_INF_SIGN): Likewise.
80717         (test_exceptions): Handle FE_OVERFLOW.
80718         (exp10_test): Expect overflow exceptions.
80719         (exp2_test): Likewise.
80720         (expm1_test): Likewise.
80721         (nextafter_test): Likewise.
80722         (pow_test): Likewise.
80723         (scalbn_test): Likewise.
80724         (scalbln_test): Likewise.
80725
80726 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
80727
80728         * sysdeps/x86_64/bits/atomic.h
80729         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
80730         64bit integer.
80731         (atomic_exchange_acq): Likewise.
80732         (__arch_exchange_and_add_body): Likewise.
80733         (__arch_add_body): Likewise.
80734         (atomic_add_negative): Likewise.
80735         (atomic_add_zero): Likewise.
80736
80737 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
80738
80739         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
80740         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
80741
80742 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
80743
80744         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
80745         Check __x86_64__ instead of __WORDSIZE.
80746
80747 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
80748
80749         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
80750
80751 2012-03-19  David S. Miller  <davem@davemloft.net>
80752
80753         * sysdeps/sparc/fpu/libm-test-ulps: Update.
80754
80755         * sysdeps/sparc/fpu/fenv_private.h: New file.
80756         * sysdeps/sparc/fpu/math_private.h: Use it.
80757         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
80758         Remove.
80759         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
80760         (libc_feholdexcept_setroundl): Remove.
80761         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
80762         Remove.
80763         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
80764         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
80765
80766 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
80767
80768         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
80769         int64_t instead of long int.
80770         (INSERT_WORDS64): Likewise.
80771
80772 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
80773
80774         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
80775         _Unwind_GetCFA return to _Unwind_Ptr first.
80776
80777 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
80778
80779         [BZ #13629]
80780         * math/s_clog.c: Include <float.h>.
80781         (__clog): Scale large or subnormal inputs.
80782         * math/s_clogf.c: Likewise.
80783         * math/s_clogl.c: Likewise.
80784         * math/s_clog10.c: Include <float.h>.
80785         (M_LOG10_2): Define.
80786         (__clog10): Scale large or subnormal inputs.
80787         * math/s_clog10f.c: Likewise.
80788         * math/s_clog10l.c: Likewise.
80789         * math/libm-test.inc (clog_test): Add more tests.
80790         (clog10_test): Likewise.
80791         * sysdeps/i386/fpu/libm-test-ulps: Update.
80792         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
80793
80794         [BZ #11451]
80795         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
80796         x and y.
80797         * math/libm-test.inc (atan2_test): Add another test.
80798
80799         * Makerules (common-objdir-compile): Remove.
80800         * sysdeps/unix/Makefile (config-generated): Do not add
80801         $(unix-generated) to variable.
80802         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
80803         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
80804         Remove rule.
80805         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
80806         Likewise.
80807         [generic bits/local_lim.h] (before-compile): Do not append to
80808         variable.
80809         [generic bits/local_lim.h] (common-generated): Likewise.
80810         [generic sys/param.h] (before-compile): Do not append to variable.
80811         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
80812         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
80813         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
80814         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
80815         include.
80816         [generic sys/param.h] (sys/param.h-includes): Remove variable.
80817         [generic sys/param.h] (sys/param.h-includes): Remove rule.
80818         [generic sys/param.h] ($(addprefix
80819         $(common-objpfx),$(sys/param.h-includes))): Likewise.
80820         [generic sys/param.h] (common-generated): Do not append to
80821         variable.
80822         [generic sys/param.h] (sysdep_headers): Likewise.
80823         [generic bits/errno.h] (before-compile): Do not append to
80824         variable.
80825         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
80826         rule.
80827         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
80828         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
80829         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
80830         [generic bits/errno.h] (common-generated): Do not append to
80831         variable.
80832         [generic bits/ioctls.h] (before-compile): Do not append to
80833         variable.
80834         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
80835         rule.
80836         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
80837         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
80838         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
80839         rule.
80840         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
80841         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
80842         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
80843         [generic bits/ioctls.h] (common-generated): Do not append to
80844         variable.
80845         [generic sys/syscall.h] (syscall.h): Remove variable.
80846         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
80847         rule.
80848         [generic sys/syscall.h] (before-compile): Do not append to
80849         variable.
80850         [generic sys/syscall.h] (common-generated): Likewise.
80851         * sysdeps/unix/errnos-tmpl.c: Remove file.
80852         * sysdeps/unix/errnos.awk: Likewise.
80853         * sysdeps/unix/ioctls-tmpl.c: Likewise.
80854         * sysdeps/unix/ioctls.awk: Likewise.
80855         * sysdeps/unix/mk-local_lim.c: Likewise.
80856         * sysdeps/unix/snarf-ioctls: Likewise.
80857
80858 2012-03-19  Richard Henderson  <rth@twiddle.net>
80859
80860         * sysdeps/i386/fpu/fenv_private.h: New file.
80861         * sysdeps/i386/fpu/math_private.h: Use it.
80862         (math_opt_barrier, math_force_eval): Remove.
80863         (libc_feholdexcept_setround_53bit): Remove.
80864         (libc_feupdateenv_53bit): Remove.
80865         * sysdeps/x86_64/fpu/math_private.h: Likewise.
80866         (math_opt_barrier, math_force_eval): Remove.
80867         (libc_feholdexcept): Remove.
80868         (libc_feholdexcept_setround): Remove.
80869         (libc_fetestexcept, libc_fesetenv): Remove.
80870         (libc_feupdateenv_test): Remove.
80871         (libc_feupdateenv, libc_feholdsetround): Remove.
80872         (libc_feresetround): Remove.
80873
80874         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
80875         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
80876
80877         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
80878         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
80879         (libc_feupdateenv_testl): New.
80880         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
80881         (libc_feupdateenv_testf): New.
80882         (libc_feupdateenv): Use libc_feupdateenv_test.
80883         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
80884         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
80885
80886         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
80887         (libc_feholdsetroundf, libc_feholdsetroundl): New.
80888         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
80889         (libc_feresetround_noex): New.
80890         (libc_feresetround_noexf): New.
80891         (libc_feresetround_noexl): New.
80892         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
80893         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
80894         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
80895         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
80896         SET_RESTORE_ROUND.
80897         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
80898         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
80899         (__cos): Likewise.
80900         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
80901         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
80902         SET_RESTORE_ROUND_NOEX.
80903         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
80904         SET_RESTORE_ROUND_NOEXF.
80905         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
80906         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
80907         (libc_feholdsetroundf): New.
80908         (libc_feresetround, libc_feresetroundf): New.
80909
80910         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
80911         (libc_feholdexcept_setround_53bit): Convert from macro to function.
80912         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
80913
80914         * sysdeps/generic/math_private.h: Include <fenv.h>.
80915         (default_libc_feholdexcept): New.
80916         (default_libc_feholdexcept_setround): New.
80917         (default_libc_fesetenv, default_libc_feupdateenv): New.
80918         (libc_feholdexcept): Only define if undefined.
80919         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
80920         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
80921         (libc_feholdexcept_setroundl): Likewise.
80922         (libc_feholdexcept_setround_53bit): Likewise.
80923         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
80924         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
80925         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
80926         (libc_feupdateenv_53bit): Likewise.
80927         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
80928         (libc_feholdexcept): Convert from macro to inline function.
80929         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
80930         (libc_fesetenv, libc_feupdateenv): Likewise.
80931
80932         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
80933         not previously defined.
80934         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
80935         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
80936         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
80937         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
80938         * sysdeps/ieee754/flt-32/math_private.h: New file.
80939         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
80940         math_private.h below SET_FLOAT_WORD.
80941         (__isnan, __isinf_ns, __finite): Remove.
80942         (__isnanf, __isinf_nsf, __finitef): Remove.
80943
80944 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
80945
80946         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
80947
80948 2012-03-17  David S. Miller  <davem@davemloft.net>
80949
80950         [BZ #6471]
80951         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
80952         for 2.16.
80953
80954 2012-03-16  David S. Miller  <davem@davemloft.net>
80955
80956         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
80957         warnings.
80958
80959         [BZ #6471]
80960         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
80961         properly.
80962         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
80963         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
80964         sysdep_routines when subdir is sysvipc.
80965         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
80966         __getshmlba helper.
80967
80968         * sysdeps/sparc/fpu/libm-test/ulps: Update.
80969
80970 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
80971
80972         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
80973         [__LP64__].
80974
80975 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
80976
80977         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
80978         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
80979         (__lround): Renamed to ...
80980         (__llround): This.  Replace long int with long long int.
80981         Define lround functions as aliases of llround functions.
80982         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
80983
80984 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
80985
80986         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
80987         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
80988         adresses to uintptr_t.  Replace "long int" and "unsigned long
80989         int" with "greg_t" on va_arg.
80990
80991 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
80992
80993         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
80994         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
80995
80996         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
80997         Move e_machine check before EI_CLASS check.  Handle x32
80998         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
80999         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
81000         SKIP_EM_IA_64 and include
81001         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
81002
81003         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
81004         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
81005         (add_system_dir): New macro.
81006
81007         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
81008         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
81009
81010 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
81011
81012         [BZ #2551]
81013         [BZ #2552]
81014         [BZ #2553]
81015         [BZ #2554]
81016         [BZ #2562]
81017         [BZ #2563]
81018         [BZ #2565]
81019         [BZ #2566]
81020         [BZ #2576]
81021         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
81022         (y0): Likewise.
81023         * math/w_j0f.c (j0f): Likewise.
81024         (y0f): Likewise.
81025         * math/w_j0l.c (__j0l): Likewise.
81026         (__y0l): Likewise.
81027         * math/w_j1.c (j1): Likewise.
81028         (y1): Likewise.
81029         * math/w_j1f.c (j1f): Likewise.
81030         (y1f): Likewise.
81031         * math/w_j1l.c (__j1l): Likewise.
81032         (__y1l): Likewise.
81033         * math/w_jn.c (jn): Likewise.
81034         (yn): Likewise.
81035         * math/w_jnf.c (jnf): Likewise.
81036         (ynf): Likewise.
81037         * math/w_jnl.c (__jnl): Likewise.
81038         (__ynl): Likewise.
81039         * math/libm-test.inc (j0_test): Add more tests.
81040         (j1_test): Likewise.
81041         (jn_test): Likewise.  Add trailing semicolon to existing test.
81042         (y0_test): Likewise.
81043         (y1_test): Likewise.
81044         * sysdeps/i386/fpu/libm-test-ulps: Update.
81045         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81046
81047         [BZ #13851]
81048         [BZ #13854]
81049         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
81050         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
81051         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
81052         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
81053         (__tanl): Set errno for infinite argument.
81054         * sysdeps/i386/fpu/mptan.c: Remove.
81055         * sysdeps/i386/fpu/s_tan.S: Likewise.
81056         * sysdeps/i386/fpu/s_tanl.S: Likewise.
81057         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
81058         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
81059         * math/libm-test.inc (tan_test): Add more tests and enable more
81060         tests for double and long double.
81061         * sysdeps/i386/fpu/libm-test-ulps: Update.
81062         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81063
81064 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
81065
81066         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
81067         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
81068
81069 2012-03-16  Roland McGrath  <roland@hack.frob.com>
81070
81071         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
81072         * configure.in: Use it for both main tree and add-ons.
81073         * configure: Regenerated.
81074
81075 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
81076
81077         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
81078
81079 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
81080
81081         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
81082         in comment.
81083
81084         [BZ #13851]
81085         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
81086         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
81087         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
81088         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
81089         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
81090         infinite argument.
81091         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
81092         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
81093         != 0 for prec == 2.
81094         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
81095         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
81096         * sysdeps/i386/fpu/s_cosl.S: Likewise.
81097         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
81098         * sysdeps/i386/fpu/s_sinl.S: Likewise.
81099         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
81100         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
81101         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
81102         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
81103         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
81104         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
81105         * math/libm-test.inc (cos_test): Add more tests and enable more
81106         tests for long double.
81107         (sin_test): Likewise.
81108         (sincos_test): Likewise.
81109         * sysdeps/i386/fpu/libm-test-ulps: Update.
81110         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81111
81112 2012-03-16  David S. Miller  <davem@davemloft.net>
81113
81114         * sysdeps/sparc/fpu/math_private.h: New file.
81115
81116 2012-03-15  David S. Miller  <davem@davemloft.net>
81117
81118         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
81119         file.
81120         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
81121         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
81122         file.
81123         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
81124         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
81125         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
81126         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
81127         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
81128         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
81129         sysdep routines.
81130         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
81131
81132         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
81133         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
81134
81135         * sysdeps/sparc/sparc-ifunc.h: New file.
81136         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
81137         sparc-ifunc.h
81138         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
81139         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
81140         Likewise.
81141         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
81142         Likewise.
81143         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
81144         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
81145         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
81146         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
81147         Likewise.
81148         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
81149         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
81150         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
81151         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
81152         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
81153         Likewise.
81154         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
81155         Likewise.
81156         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
81157         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
81158         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
81159         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
81160         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
81161         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
81162         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
81163         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
81164         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
81165         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
81166         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
81167         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
81168         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
81169         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
81170         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
81171         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
81172         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
81173         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
81174         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
81175         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
81176         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
81177         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
81178         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
81179         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
81180
81181 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
81182
81183         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
81184         scaling.
81185         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
81186
81187 2012-03-15  Andreas Jaeger  <aj@suse.de>
81188
81189         [BZ #13852]
81190         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
81191         ieee754/flt-32 implementation for sin, cos and sincos.
81192         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
81193         * sysdeps/i386/fpu/s_cosf.S: Likewise.
81194         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
81195         * sysdeps/i386/fpu/s_sinf.S: Likewise.
81196         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
81197         ieee754/flt-32 implementation for tan.
81198
81199         * math/libm-test.inc (cos_test): Enable some large input tests for
81200         float as well
81201         (sin_test): Likewise.
81202         (sincos_test): Likewise.
81203         (tan_test): Add tests for large input.
81204
81205         * sysdeps/i386/fpu/libm-test-ulps: Update.
81206
81207 2012-03-15  Andreas Jaeger  <aj@suse.de>
81208
81209         [BZ #13658]
81210         * math/libm-test.inc (cos_test): Add more test cases.
81211         (sin_test): Likewise.
81212         (sincos_test): Likewise.
81213
81214 2012-03-15  Andreas Jaeger  <aj@suse.de>
81215
81216         [BZ #13837]
81217         * math/libm-test.inc (cos_test): Add a test case for large input
81218         value.
81219         (sin_test): Likewise.
81220         (sincos_test): Likewise.
81221
81222 2012-03-15  Andreas Jaeger  <aj@suse.de>
81223             Joseph Myers  <joseph@codesourcery.com>
81224
81225         [BZ #13658]
81226         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
81227         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
81228         * sysdeps/i386/fpu/branred.c: Likewise.
81229         * sysdeps/i386/fpu/dosincos.c: Likewise.
81230         * sysdeps/i386/fpu/mpa.c: Likewise.
81231         * sysdeps/i386/fpu/s_cos.S: Likewise.
81232         * sysdeps/i386/fpu/s_sin.S: Likewise.
81233         * sysdeps/i386/fpu/s_sincos.S: Likewise.
81234         * sysdeps/i386/fpu/sincos32.c: Likewise.
81235
81236         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
81237         Define.
81238         (libc_feupdateenv_53bit): Define.
81239         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
81240         Define.
81241         (libc_feupdateenv_53bit): Define.
81242
81243         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
81244         53 bit (without extend i386 double precision).
81245
81246         * math/libm-test.inc (sincos_test): Add tests for large input.
81247         (sin): Likewise.
81248         (cos): Likewise.
81249
81250         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
81251
81252 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
81253
81254         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
81255
81256 2012-03-15  David S. Miller  <davem@davemloft.net>
81257
81258         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
81259         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
81260         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
81261         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
81262         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
81263         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
81264         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
81265         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
81266         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
81267         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
81268         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
81269         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
81270         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
81271         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
81272         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
81273         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
81274         file.
81275         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
81276         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
81277         file.
81278         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
81279         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
81280         file.
81281         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
81282         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
81283         file.
81284         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
81285         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
81286         fmin/fmax sysdep routines.
81287         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
81288
81289 2012-03-14  David S. Miller  <davem@davemloft.net>
81290
81291         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
81292         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
81293         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
81294         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
81295         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
81296         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
81297         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
81298         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
81299         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
81300         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
81301         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
81302         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
81303         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
81304         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
81305         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
81306         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
81307         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
81308         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
81309         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
81310         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
81311         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
81312         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
81313         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
81314         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
81315         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
81316         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
81317         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
81318         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
81319         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
81320         routines.
81321         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
81322         file.
81323         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
81324         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
81325         file.
81326         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
81327         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
81328         file.
81329         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
81330         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
81331         file.
81332         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
81333         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
81334         file.
81335         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
81336         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
81337         file.
81338         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
81339         file.
81340         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
81341         file.
81342         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
81343         file.
81344         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
81345         New file.
81346         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
81347         file.
81348         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
81349         file.
81350         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
81351         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
81352         file.
81353         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
81354         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
81355         file.
81356         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
81357         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
81358         file.
81359         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
81360         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
81361         VIS3 routines.
81362
81363         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
81364         New file.
81365
81366         * sysdeps/sparc/fpu/libm-test-ulps: Update.
81367
81368         * sysdeps/sparc/configure.in: New file.
81369         * sysdeps/sparc/configure: Generate.
81370         * configure.in (libc_cv_sparc_as_vis3): Substitute.
81371         * configure: Regenerate.
81372         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
81373         * config.make.in (have-as-vis3): New.
81374         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
81375         available use -Av9d instead of -Av9a.
81376         * sysdeps/sparc/sparc64/Makefile: Likewise.
81377         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
81378         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
81379         New file.
81380         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
81381         file.
81382         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
81383         New file.
81384         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
81385         file.
81386         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
81387         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
81388         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
81389         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
81390         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
81391
81392         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
81393         fzeros/fnegs to load 0x80000000 into a float register instead of
81394         using the stack.
81395         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
81396
81397 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
81398
81399         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
81400         bits/syscall.h.
81401         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
81402         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
81403         ($(inst_includedir)/bits/syscall.h): Remove rule.
81404         ($(objpfx)bits/syscall.d): Include instead of
81405         $(objpfx)syscall-list.d.
81406         (generated): Change syscall-list.h and syscall-list.d to
81407         bits/syscall.h and bits/syscall.d.
81408
81409 2012-03-14  Roland McGrath  <roland@hack.frob.com>
81410
81411         [BZ #13846]
81412         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
81413
81414 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
81415
81416         [BZ #13841]
81417         * math/s_csqrt.c: Include <float.h>.
81418         (__csqrt): Scale large or subnormal inputs.
81419         * math/s_csqrtf.c: Likewise.
81420         * math/s_csqrtl.c: Likewise.
81421         * math/libm-test.inc (csqrt_test): Add more tests.
81422         * sysdeps/i386/fpu/libm-test-ulps: Update.
81423         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81424
81425         [BZ #13840]
81426         * math/libm-test.inc (hypot_test): Add more tests.
81427
81428 2012-03-13  David S. Miller  <davem@davemloft.net>
81429
81430         [BZ #13840]
81431         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
81432         double-precision for the calculation instead of scaling.
81433
81434 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
81435
81436         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
81437         manipulate bits before adding and subtracting TWO52[sx].
81438         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
81439         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
81440         Likewise.
81441         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
81442
81443 2012-03-13  David S. Miller  <davem@davemloft.net>
81444
81445         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
81446         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
81447         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
81448         rtld-global-offsets.h
81449         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
81450
81451         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
81452         large parameters.
81453
81454         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
81455
81456         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
81457         'err' in the ifdef scope in which it is actually used.
81458
81459         * nss/nss_db/db-init.c: Include string.h
81460
81461 2012-03-12  David S. Miller  <davem@davemloft.net>
81462
81463         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
81464         masking out of the most significant byte of random value used.
81465         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
81466         Fix coding style in previous change.
81467
81468         * sysdeps/unix/sysv/linux/kernel-features.h
81469         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
81470         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
81471         expression.
81472         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
81473         later.
81474
81475 2012-03-11  David S. Miller  <davem@davemloft.net>
81476
81477         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
81478         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
81479         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
81480         for 'resultvar' otherwise things get truncated on 64-bit.
81481
81482         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
81483         Fix masking out of the most significant byte of random value used.
81484
81485         * sysdeps/sparc/fpu/libm-test-ulps: Update.
81486
81487 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
81488
81489         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
81490
81491 2012-03-09  David S. Miller  <davem@davemloft.net>
81492
81493         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
81494         variables with appropriate CPP guards.
81495         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
81496         from the frame pointer, not the stack pointer.  Correct layout
81497         comments.  Fix test on resulting framesize and the management of
81498         the outregs buffer for pltexit.  Preserve floating point return
81499         values across _dl_call_pltexit call.
81500         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
81501         framesize and the management of the outregs buffer for pltexit.
81502         Preserve floating point return values across _dl_call_pltexit
81503         call.
81504         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
81505         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
81506         (la_sparc64_gnu_pltexit): New functions.
81507         (print_exit): Fix format string for return register value.
81508
81509 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
81510
81511         * sunrpc/Makefile (others): Add rpcgen.
81512         ($(objpfx)rpcgen): Remove special build rule and dependency on
81513         libc.
81514         * sunrpc/rpcgen.c: New file.
81515
81516 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
81517
81518         [BZ #13673]
81519         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
81520         * stdio-common/bug-vfprintf-nargs.c: Likewise.
81521         * sysdeps/i386/crti.S: Likewise.
81522         * sysdeps/i386/crtn.S: Likewise.
81523         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
81524         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
81525         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
81526         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
81527         * sysdeps/sh/crti.S: Likewise.
81528         * sysdeps/sh/crtn.S: Likewise.
81529         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
81530
81531         [BZ #13673]
81532         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
81533         with URL.
81534         * locale/programs/locfile-kw.gperf: Likewise.
81535         * locale/programs/charmap-kw.h: Regenerated.
81536         * locale/programs/locfile-kw.h: Likewise.
81537
81538         [BZ #13673]
81539         * intl/plural.y: Replace FSF snail mail address with URL.
81540         * intl/plural.c: Regenerated.
81541
81542 2012-03-09  Richard Henderson  <rth@twiddle.net>
81543
81544         * include/math_private.h: Remove file.
81545         * math/math_private.h: Move file ...
81546         * sysdeps/generic/math_private.h: ... here.
81547
81548         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
81549         * sysdeps/powerpc/fpu/math_private.h: Likewise.
81550         * sysdeps/x86_64/fpu/math_private.h: Likewise.
81551
81552         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
81553         and <math_private.h>.
81554         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
81555         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
81556         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
81557         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
81558         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
81559         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
81560         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
81561         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
81562         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
81563         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
81564         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
81565         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
81566         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
81567         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
81568         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
81569         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
81570         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
81571         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
81572         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
81573         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
81574         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
81575         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
81576         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
81577         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
81578         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
81579         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
81580         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
81581         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
81582         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
81583         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
81584         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
81585         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
81586         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
81587         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
81588         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
81589         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
81590         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
81591         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
81592         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
81593         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
81594         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
81595         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
81596         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
81597         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
81598         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
81599         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
81600         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
81601         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
81602         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
81603         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
81604         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
81605         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
81606         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
81607         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
81608         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
81609         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
81610         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
81611         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
81612         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
81613         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
81614         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
81615         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
81616         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
81617         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
81618         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
81619         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
81620         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
81621         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
81622         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
81623         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
81624         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
81625         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
81626         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
81627         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
81628         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
81629         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
81630         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
81631         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
81632         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
81633         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
81634         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
81635         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
81636         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
81637         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
81638         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
81639         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
81640         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
81641         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
81642         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
81643         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
81644         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
81645         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
81646         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
81647         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
81648         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
81649         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
81650         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
81651         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
81652         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
81653         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
81654         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
81655         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
81656         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
81657         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
81658         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
81659         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
81660         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
81661         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
81662         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
81663         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
81664         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
81665         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
81666         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
81667         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
81668         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
81669         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
81670         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
81671         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
81672         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
81673         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
81674         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
81675         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
81676         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
81677         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
81678         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
81679         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
81680         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
81681         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
81682         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
81683         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
81684         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
81685         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
81686         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
81687         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
81688         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
81689         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
81690         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
81691         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
81692         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
81693         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
81694         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
81695         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
81696         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
81697         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
81698         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
81699         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
81700         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
81701         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
81702         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
81703         * sysdeps/ieee754/k_standard.c: Likewise.
81704         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
81705         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
81706         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
81707         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
81708         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
81709         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
81710         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
81711         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
81712         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
81713         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
81714         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
81715         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
81716         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
81717         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
81718         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
81719         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
81720         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
81721         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
81722         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
81723         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
81724         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
81725         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
81726         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
81727         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
81728         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
81729         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
81730         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
81731         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
81732         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
81733         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
81734         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
81735         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
81736         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
81737         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
81738         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
81739         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
81740         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
81741         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
81742         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
81743         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
81744         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
81745         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
81746         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
81747         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
81748         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
81749         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
81750         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
81751         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
81752         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
81753         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
81754         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
81755         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
81756         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
81757         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
81758         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
81759         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
81760         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
81761         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
81762         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
81763         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
81764         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
81765         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
81766         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
81767         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
81768         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
81769         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
81770         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
81771         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
81772         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
81773         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
81774         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
81775         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
81776         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
81777         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
81778         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
81779         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
81780         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
81781         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
81782         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
81783         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
81784         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
81785         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
81786         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
81787         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
81788         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
81789         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
81790         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
81791         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
81792         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
81793         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
81794         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
81795         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
81796         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
81797         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
81798         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
81799         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
81800         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
81801         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
81802         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
81803         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
81804         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
81805         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
81806         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
81807         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
81808         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
81809         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
81810         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
81811         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
81812         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
81813         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
81814         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
81815         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
81816         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
81817         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
81818         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
81819         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
81820         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
81821         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
81822         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
81823         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
81824         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
81825         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
81826         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
81827         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
81828         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
81829         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
81830         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
81831         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
81832         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
81833         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
81834         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
81835         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
81836         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
81837         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
81838         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
81839         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
81840         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
81841         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
81842         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
81843         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
81844         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
81845         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
81846         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
81847         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
81848         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
81849         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
81850         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
81851         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
81852         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
81853         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
81854         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
81855         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
81856         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
81857         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
81858         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
81859         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
81860         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
81861         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
81862         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
81863         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
81864         * sysdeps/ieee754/s_lib_version.c: Likewise.
81865         * sysdeps/ieee754/s_matherr.c: Likewise.
81866         * sysdeps/ieee754/s_signgam.c: Likewise.
81867         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
81868         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
81869         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
81870         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
81871         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
81872         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
81873         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
81874         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
81875         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
81876         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
81877         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
81878         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
81879         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
81880         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
81881         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
81882         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
81883         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
81884         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
81885         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
81886         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
81887         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
81888
81889 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
81890
81891         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
81892         * sunrpc/rpc_main.c: Likewise.
81893         * sunrpc/rpc_svcout.c: Likewise.
81894
81895 2012-03-09  David S. Miller  <davem@davemloft.net>
81896
81897         * include/math_private.h: New file.
81898
81899 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
81900
81901         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
81902         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
81903         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
81904         from <bits/socket_type.h>.
81905         (enum __socket_type): Don't define here.
81906         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
81907         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
81908         bits/socket_type.h.
81909
81910         [BZ #13566]
81911         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
81912         checking __USE_GNU.
81913
81914         * Makerules ($(inst_includedir)/%.h): New rule.
81915         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
81916         (install-others): Remove variable setting.
81917         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
81918
81919 2012-03-08  Richard Henderson  <rth@twiddle.net>
81920
81921         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
81922         from macro to inline function; merge with the
81923         !__LIBC_INTERNAL_MATH_INLINES version.
81924         (__ieee754_sqrtf): Likewise.
81925
81926         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
81927         to inline function.
81928         (__rintf, __floor, __floorf): Likewise.
81929
81930         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
81931         macro to inline function.
81932         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
81933
81934         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
81935         not <math/math_private.h>.
81936
81937 2012-03-08  David S. Miller  <davem@davemloft.net>
81938
81939         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
81940         copyright year.
81941         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
81942
81943 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
81944
81945         * resolv/gai_misc.c (handle_requests): Fix struct timespec
81946         normalization.
81947         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
81948         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
81949
81950 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
81951
81952         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
81953         be defined individually, they must be defined as a block.  Define
81954         S for printing a string instead of hidint the different by using a
81955         macro for adding the 'l'.
81956         * stdio-common/tst-fphex-wide.c: Adjust.
81957
81958 2012-03-07  Marek Polacek  <polacek@redhat.com>
81959
81960         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
81961
81962 2012-03-08  Marek Polacek  <polacek@redhat.com>
81963
81964         [BZ #13806]
81965         * stdio-common/Makefile (tests): Add tst-fphex-wide.
81966         * stdio-common/tst-fphex.c: Define a few macros to make the
81967         test reusable.  Use them.
81968         * stdio-common/tst-fphex-wide.c: New file.
81969
81970 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
81971
81972         [BZ #6911]
81973         * manual/macros.texi (gnusystems): New macro.
81974         (nongnusystems): Likewise.
81975         (gnulinuxhurdsystems): Likewise.
81976         (gnuhurdsystems): Likewise..
81977         (gnulinuxsystems): Likewise.
81978         * manual/charset.texi: Use new macros or @theglibc{} to refer to
81979         variants of the GNU system, not "GNU system".
81980         * manual/conf.texi: Likewise.
81981         * manual/errno.texi: Likewise.  Update example of errno macro
81982         expansion.
81983         * manual/filesys.texi: Likewise.
81984         (getumask): Document as specific to GNU/Hurd.
81985         * manual/install.texi: Likewise.  Reword some references to
81986         GNU/Linux.
81987         * manual/intro.texi: Likewise.
81988         * manual/io.texi: Likewise.
81989         (File Name Portability): Detail which constraints are inapplicable
81990         to all GNU systems and which are only inapplicable to GNU/Hurd.
81991         * manual/job.texi: Likewise.
81992         * manual/llio.texi: Likewise.
81993         (O_NOCTTY): Document as present on GNU/Linux.
81994         * manual/maint.texi: Likewise.
81995         * manual/memory.texi: Likewise.
81996         * manual/pattern.texi: Likewise.
81997         * manual/pipe.texi: Likewise.
81998         * manual/process.texi: Likewise.
81999         * manual/resource.texi: Likewise.
82000         (RUSAGE_CHILDREN): Remove statement about specifying a particular
82001         child on GNU/Hurd.
82002         * manual/setjmp.texi: Likewise.
82003         * manual/signal.texi: Likewise.
82004         * manual/startup.texi: Likewise.
82005         * manual/stdio.texi: Likewise.
82006         * manual/terminal.texi: Likewise.
82007         (ONLCR): Document as POSIX.
82008         (OXTABS): Document availability on GNU/Linux as XTABS.
82009         (ONOEOT): Document availability separately from other bits.
82010         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
82011         * manual/time.texi: Likewise.
82012         * manual/users.texi: Likewise.
82013         * INSTALL: Regenerated.
82014         * sysdeps/gnu/errlist.c: Regenerated.
82015
82016         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
82017         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
82018         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
82019         puts.
82020         * configure: Regenerated.
82021
82022 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
82023
82024         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
82025         default includes instead of AC_HEADER_CHECK.
82026         * sysdeps/i386/configure: Regenerated.
82027
82028         [BZ #10716]
82029         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
82030         * math/s_cacoshf.c (__cacoshf): Likewise.
82031         * math/s_cacoshl.c (__cacoshl): Likewise.
82032         * math/s_casinh.c (__casinh): Set signs of result from argument.
82033         * math/s_casinhf.c (__casinhf): Likewise.
82034         * math/s_casinhl.c (__casinhl): Likewise.
82035         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
82036         (casinh_test): Add more tests.
82037         * sysdeps/i386/fpu/libm-test-ulps: Update.
82038         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
82039
82040 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
82041
82042         * po/zh_TW.po: Update from translation team.
82043
82044         * login/Makefile (distribute): Remove variable.
82045         * catgets/Makefile: Likewise.
82046         * mach/Makefile: Likewise.
82047         * malloc/Makefile: Likewise.
82048         * misc/Makefile: Likewise.
82049         * iconv/Makefile: Likewise.
82050         * nscd/Makefile: Likewise.
82051         * hurd/Makefile: Likewise.
82052         * manual/Makefile: Likewise.
82053         * locale/Makefile: Likewise.
82054         * intl/Makefile: Likewise.
82055         * conform/Makefile: Likewise.
82056         * nss/Makefile: Likewise.
82057         * time/Makefile: Likewise.
82058         * soft-fp/Makefile: Likewise.
82059         * dirent/Makefile: Likewise.
82060         * gmon/Makefile: Likewise.
82061         * po/Makefile: Likewise.
82062         * rt/Makefile: Likewise.
82063         * socket/Makefile: Likewise.
82064         * math/Makefile: Likewise.
82065         * signal/Makefile: Likewise.
82066         * debug/Makefile: Likewise.
82067         * elf/Makefile: Likewise.
82068         * timezone/Makefile: Likewise.
82069         * stdlib/Makefile: Likewise.
82070         * iconvdata/Makefile: Likewise.
82071         * sunrpc/Makefile: Likewise.
82072         * io/Makefile: Likewise.
82073         * argp/Makefile: Likewise.
82074         * inet/Makefile: Likewise.
82075         * hesiod/Makefile: Likewise.
82076         * grp/Makefile: Likewise.
82077         * csu/Makefile: Likewise.
82078         * wctype/Makefile: Likewise.
82079         * crypt/Makefile: Likewise.
82080         * libio/Makefile: Likewise.
82081         * string/Makefile: Likewise.
82082         * nis/Makefile: Likewise.
82083         * resolv/Makefile: Likewise.
82084         * stdio-common/Makefile: Likewise.
82085         * wcsmbs/Makefile: Likewise.
82086         * dlfcn/Makefile: Likewise.
82087         * posix/Makefile: Likewise.
82088
82089         [BZ #6959]
82090         * timezone/Makefile: Don't install timezone files, just the programs
82091         and scripts.
82092
82093 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
82094
82095         * nss/databases.def: Add missing gshadow entry.
82096
82097         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
82098
82099 2012-03-06  Marek Polacek  <polacek@redhat.com>
82100
82101         [BZ #13726]
82102         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
82103         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
82104         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
82105         * stdio-common/tst-long-dbl-fphex.c: New file.
82106
82107 2012-03-06  David S. Miller  <davem@davemloft.net>
82108
82109         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
82110         (set_obp_int): New function.
82111         (get_obp_int): New function.
82112         (__get_clockfreq_via_dev_openprom): Likewise.
82113         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
82114         Avoid unused variable warnings on 'val' and use builtin_expect.
82115         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
82116         __builtin_expect.
82117         (INLINE_CLONE_SYSCALL): Likewise.
82118
82119 2012-03-05  David S. Miller  <davem@davemloft.net>
82120
82121         * sysdeps/sparc/fpu/libm-test-ulps: Update.
82122
82123 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
82124
82125         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
82126
82127         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
82128         only for |x| >= 40.
82129         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
82130
82131 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
82132
82133         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
82134         Replace gettimeofday with __vdso_gettimeofday.
82135
82136         * sysdeps/unix/sysv/linux/x86_64/init-first.c
82137         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
82138         __vdso_clock_gettime and __vdso_getcpu.
82139
82140         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
82141         time with __vdso_time.
82142
82143 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
82144
82145         * manual/lang.texi (size_t): Note types to which size_t may be
82146         equivalent with the GNU C Library, but do not describe when
82147         differences between them are significant.
82148
82149 2012-03-05  Andreas Jaeger  <aj@suse.de>
82150
82151         * sysdeps/i386/fpu/libm-test-ulps: Update.
82152
82153 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
82154
82155         [BZ #3976]
82156         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
82157         (__ieee754_pow): Save and restore rounding mode and use
82158         round-to-nearest for main computations.
82159         * math/libm-test.inc (pow_test_tonearest): New function.
82160         (pow_test_towardzero): Likewise.
82161         (pow_test_downward): Likewise.
82162         (pow_test_upward): Likewise.
82163         (main): Call the new functions.
82164         * sysdeps/i386/fpu/libm-test-ulps: Update.
82165         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
82166
82167         [BZ #3976]
82168         * math/libm-test.inc (cosh_test_tonearest): New function.
82169         (cosh_test_towardzero): Likewise.
82170         (cosh_test_downward): Likewise.
82171         (cosh_test_upward): Likewise.
82172         (sinh_test_tonearest): Likewise.
82173         (sinh_test_towardzero): Likewise.
82174         (sinh_test_downward): Likewise.
82175         (sinh_test_upward): Likewise.
82176         (main): Call the new functions.
82177         * sysdeps/i386/fpu/libm-test-ulps: Update.
82178         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
82179
82180 2012-03-05  Tom de Vries  <tom@codesourcery.com>
82181
82182         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
82183         default stack guard is set in last bytes.
82184         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
82185
82186 2012-03-05  Kees Cook  <keescook@chromium.org>
82187
82188         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
82189
82190         [BZ #13656]
82191         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
82192         possibly allocate from heap instead of stack.
82193         * stdio-common/bug-vfprintf-nargs.c: New file.
82194         * stdio-common/Makefile (tests): Add nargs overflow test.
82195
82196 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
82197
82198         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
82199
82200 2012-03-03  Marek Polacek  <polacek@redhat.com>
82201
82202         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
82203         * math/math_private.h: Likewise.
82204         * stdlib/tst-strtod.c: Likewise.
82205         * sysdeps/i386/i486/bits/atomic.h: Likewise.
82206         * sysdeps/x86_64/bits/atomic.h: Likewise.
82207
82208 2012-03-02  David S. Miller  <davem@davemloft.net>
82209
82210         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
82211         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
82212         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
82213         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
82214         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
82215         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
82216         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
82217         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
82218
82219 2012-03-02  Roland McGrath  <roland@hack.frob.com>
82220
82221         [BZ #13792]
82222         * manual/examples/README: New file, says the example source files
82223         can be used under GPL>=2.
82224         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
82225         line containing just "*/".
82226         * manual/examples/add.c: Add copyright header (GPL>=2).
82227         * manual/examples/argp-ex1.c: Likewise.
82228         * manual/examples/argp-ex2.c: Likewise.
82229         * manual/examples/argp-ex3.c: Likewise.
82230         * manual/examples/argp-ex4.c: Likewise.
82231         * manual/examples/atexit.c: Likewise.
82232         * manual/examples/db.c: Likewise.
82233         * manual/examples/dir.c: Likewise.
82234         * manual/examples/dir2.c: Likewise.
82235         * manual/examples/execinfo.c: Likewise.
82236         * manual/examples/filecli.c: Likewise.
82237         * manual/examples/filesrv.c: Likewise.
82238         * manual/examples/fmtmsgexpl.c: Likewise.
82239         * manual/examples/genpass.c: Likewise.
82240         * manual/examples/inetcli.c: Likewise.
82241         * manual/examples/inetsrv.c: Likewise.
82242         * manual/examples/isockad.c: Likewise.
82243         * manual/examples/longopt.c: Likewise.
82244         * manual/examples/memopen.c: Likewise.
82245         * manual/examples/memstrm.c: Likewise.
82246         * manual/examples/mkfsock.c: Likewise.
82247         * manual/examples/mkisock.c: Likewise.
82248         * manual/examples/mygetpass.c: Likewise.
82249         * manual/examples/pipe.c: Likewise.
82250         * manual/examples/popen.c: Likewise.
82251         * manual/examples/rprintf.c: Likewise.
82252         * manual/examples/search.c: Likewise.
82253         * manual/examples/select.c: Likewise.
82254         * manual/examples/setjmp.c: Likewise.
82255         * manual/examples/sigh1.c: Likewise.
82256         * manual/examples/sigusr.c: Likewise.
82257         * manual/examples/stpcpy.c: Likewise.
82258         * manual/examples/strdupa.c: Likewise.
82259         * manual/examples/strftim.c: Likewise.
82260         * manual/examples/strncat.c: Likewise.
82261         * manual/examples/subopt.c: Likewise.
82262         * manual/examples/swapcontext.c: Likewise.
82263         * manual/examples/termios.c: Likewise.
82264         * manual/examples/testopt.c: Likewise.
82265         * manual/examples/testpass.c: Likewise.
82266         * manual/examples/timeval_subtract.c: Likewise.
82267
82268         [BZ #13792]
82269         * manual/time.texi (Elapsed Time): Move timeval_subtract example
82270         function to ...
82271         * manual/timeval_subtract.c.texi: ... here, new file.
82272
82273 2012-03-02  David S. Miller  <davem@davemloft.net>
82274
82275         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
82276
82277 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
82278
82279         [BZ #3976]
82280         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
82281         (__sin): Save and restore rounding mode and use round-to-nearest
82282         for all computations.
82283         (__cos): Save and restore rounding mode and use round-to-nearest
82284         for all computations.
82285         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
82286         <fenv.h>.
82287         (tan): Save and restore rounding mode and use round-to-nearest for
82288         all computations.
82289         * math/libm-test.inc (cos_test_tonearest): New function.
82290         (cos_test_towardzero): Likewise.
82291         (cos_test_downward): Likewise.
82292         (cos_test_upward): Likewise.
82293         (sin_test_tonearest): Likewise.
82294         (sin_test_towardzero): Likewise.
82295         (sin_test_downward): Likewise.
82296         (sin_test_upward): Likewise.
82297         (tan_test_tonearest): Likewise.
82298         (tan_test_towardzero): Likewise.
82299         (tan_test_downward): Likewise.
82300         (tan_test_upward): Likewise.
82301         (main): Call the new functions.
82302         * sysdeps/i386/fpu/libm-test-ulps: Update.
82303         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
82304
82305         [BZ #10135]
82306         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
82307         small n, then large n, before computing and testing k+n.
82308         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
82309         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
82310         Likewise.
82311         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
82312         Likewise.
82313         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
82314         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
82315         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
82316         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
82317         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
82318         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
82319         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
82320         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
82321         * math/libm-test.inc (scalbn_test): Add more tests.
82322         (scalbln_test): Likewise.
82323
82324         * manual/filesys.texi (mode_t): Describe constraints on size and
82325         signedness, not exact equivalence to a particular type.
82326         (ino_t): Likewise.
82327         (ino64_t): Likewise.
82328         (dev_t): Likewise.
82329         (nlink_t): Likewise.
82330         (blkcnt_t): Likewise.
82331         (blkcnt64_t): Likewise.
82332         * manual/llio.texi (off_t): Likewise.
82333
82334         [BZ #3976]
82335         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
82336         (__ieee754_exp): Save and restore rounding mode and use
82337         round-to-nearest for all computations.
82338         * math/libm-test.inc (exp_test_tonearest): New function.
82339         (exp_test_towardzero): Likewise.
82340         (exp_test_downward): Likewise.
82341         (exp_test_upward): Likewise.
82342         (main): Call the new functions.
82343         * sysdeps/i386/fpu/libm-test-ulps: Update.
82344         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
82345
82346 2012-03-01  Chris Demetriou  <cgd@google.com>
82347
82348         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
82349         have predictable order.
82350
82351 2012-03-01  David S. Miller  <davem@davemloft.net>
82352
82353         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
82354
82355         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
82356         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
82357         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
82358         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
82359
82360         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
82361         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
82362         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
82363         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
82364         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
82365         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
82366         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
82367         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
82368         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
82369
82370         * sysdeps/sparc/fpu/libm-test-ulps: Update.
82371
82372         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
82373         * sysdeps/sparc/fpu/libm-test-ulps: to here.
82374         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
82375
82376         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
82377         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
82378         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
82379         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
82380         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
82381         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
82382         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
82383         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
82384         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
82385         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
82386         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
82387         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
82388         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
82389         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
82390         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
82391         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
82392         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
82393         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
82394         * sysdeps/sparc/elf/configure: Regenerated.
82395
82396 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
82397
82398         * configure.in (AS, LD): Require binutils 2.20 or later.
82399         * configure: Regenerated.
82400         * manual/install.texi (Tools for Compilation): Give binutils 2.20
82401         as required minimum version.
82402         * INSTALL: Regenerated.
82403
82404         [BZ #2541]
82405         [BZ #4108]
82406         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
82407         before squaring exponent.
82408         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
82409         bottom long double and 27 bits of top long double before squaring
82410         exponent.
82411         * math/libm-test.inc (erfc_test): Add more tests.
82412         * sysdeps/i386/fpu/libm-test-ulps: Update.
82413         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
82414         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
82415
82416 2012-03-01  Kai Tietz  <ktietz@redhat.com>
82417
82418         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
82419         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
82420         containing bit-fields.
82421         * soft-fp/extended.h (_FP_UNION_E): Likewise.
82422         * soft-fp/single.h (_FP_UNION_S): Likewise.
82423         * soft-fp/double.h (_FP_UNION_D): Likewise.
82424
82425 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
82426
82427         [BZ #13786]
82428         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
82429         not include ../strcmp.S.
82430         [USE_AS_STRNCASECMP_L]: Likewise.
82431         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
82432         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
82433         * sysdeps/i386/i686/multiarch/strncase_l-c.c
82434         (__strncasecmp_l_ia32): Define as alias to
82435         __strncasecmp_l_nonascii.
82436
82437         [BZ #5794]
82438         * math/libm-test.inc (expm1_test): Add test for bug 5794.
82439         * sysdeps/i386/fpu/libm-test-ulps: Update.
82440         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
82441
82442         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
82443         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
82444
82445 2012-02-29  Jeff Law  <law@redhat.com>
82446
82447         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
82448         out of bounds read.
82449
82450 2012-02-29  Marek Polacek  <polacek@redhat.com>
82451
82452         [BZ #13706]
82453         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
82454         * elf/Makefile: Add rules to run tst-unused-dep.out.
82455
82456 2012-02-28  David S. Miller  <davem@davemloft.net>
82457
82458         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
82459         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
82460         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
82461         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
82462         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
82463         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
82464
82465 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
82466
82467         * math/libm-test.inc (llround_test): Move one test from
82468         lround_test.  Use TEST_f_L in moved test.
82469         (lround_test): Move misplaced test to llround_test.  Add testcase
82470         from bug 2561.
82471
82472 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
82473
82474         * sysdeps/x86_64/fpu/e_expf.S: New file.
82475         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
82476
82477 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
82478
82479         [BZ #13637]
82480         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
82481         of remain_len that may cause incomplete multi-byte character and
82482         false match.
82483         * posix/bug-regex33.c: New file.
82484         * posix/Makefile (tests): Add bug-regex33.
82485
82486 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
82487
82488         * manual/macros.texi: New file.
82489         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
82490         * manual/libc.texinfo: Include macros.texi.
82491         * manual/creatute.texi: Likewise.
82492         * manual/install.texi: Likewise.
82493         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
82494         @glibcadj{} in references to the GNU C Library.
82495         * manual/charset.texi: Likewise.
82496         * manual/conf.texi: Likewise.
82497         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
82498         when not using those macros.
82499         * manual/creature.texi: Likewise.
82500         * manual/crypt.texi: Likewise.
82501         * manual/errno.texi: Likewise.
82502         * manual/filesys.texi: Likewise.
82503         * manual/header.texi: Likewise.
82504         * manual/install.texi: Likewise.
82505         * manual/intro.texi: Likewise.
82506         * manual/io.texi: Likewise.
82507         * manual/job.texi: Likewise.
82508         * manual/lang.texi: Likewise.
82509         * manual/libc.texiinfo: Likewise.
82510         * manual/llio.texi: Likewise.
82511         * manual/locale.texi: Likewise.
82512         * manual/maint.texi: Likewise.
82513         * manual/math.texi: Likewise.
82514         * manual/memory.texi: Likewise.
82515         * manual/message.texi: Likewise.
82516         * manual/nss.texi: Likewise.
82517         * manual/pattern.texi: Likewise.
82518         * manual/process.texi: Likewise.
82519         * manual/resource.texi: Likewise.
82520         * manual/search.texi: Likewise.
82521         * manual/setjmp.texi: Likewise.
82522         * manual/signal.texi: Likewise.
82523         * manual/socket.texi: Likewise.
82524         * manual/startup.texi: Likewise.
82525         * manual/stdio.texi: Likewise.
82526         * manual/string.texi: Likewise.
82527         * manual/sysinfo.texi: Likewise.
82528         * manual/syslog.texi: Likewise.
82529         * manual/terminal.texi: Likewise.
82530         * manual/time.texi: Likewise.
82531         * manual/users.texi: Likewise.
82532         * INSTALL: Regenerated.
82533         * NOTES: Regenerated.
82534         * sysdeps/gnu/errlist.c: Regenerated.
82535
82536 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
82537
82538         * include/dirent.h: Include <dirstream.h> before
82539         <dirent/dirent.h>.
82540
82541 2012-02-28  David S. Miller  <davem@davemloft.net>
82542
82543         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
82544         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
82545         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
82546         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
82547
82548 2012-02-27  David S. Miller  <davem@davemloft.net>
82549
82550         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
82551         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
82552         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
82553         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
82554
82555         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
82556         frame pointer instead of stack pointer relative arg slot.
82557         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
82558         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
82559         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
82560
82561 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
82562
82563         [BZ #3992]
82564         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
82565
82566 2012-02-27  David S. Miller  <davem@davemloft.net>
82567
82568         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
82569         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
82570         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
82571         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
82572         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
82573         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
82574         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
82575         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
82576
82577 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
82578
82579         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
82580         later.  Allow versions 5-9.
82581         * configure: Regenerated.
82582         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
82583         required minimum version and 4.6 as recommended version.  Do not
82584         mention bugs in GCC 2.7 and 2.8.
82585         * INSTALL: Regenerated.
82586
82587 2012-02-27  David S. Miller  <davem@davemloft.net>
82588
82589         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
82590         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
82591         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
82592         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
82593         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
82594         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
82595         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
82596         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
82597
82598         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
82599         manipulate bits before adding and subtracting TWO112[sx].
82600         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
82601
82602 2012-02-27  Roland McGrath  <roland@hack.frob.com>
82603
82604         [BZ #13775]
82605         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
82606         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
82607         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
82608         being in POSIX, because they are in 1003.1-2008.
82609
82610         * rt/tst-aio.c: Include <fcntl.h>.
82611         * rt/tst-aio7.c: Likewise.
82612         * rt/tst-aio64.c: Likewise.
82613
82614         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
82615
82616 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
82617
82618         * manual/install.texi (--with-headers): Describe headers as
82619         interface headers, not private headers.
82620         (Specific advice for GNU/Linux systems): Describe use of headers
82621         from "make headers_install", not private headers from older
82622         kernels.
82623         * INSTALL: Regenerated.
82624         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
82625         Change to 2.6.19.
82626         * sysdeps/unix/sysv/linux/configure: Regenerated.
82627
82628         * manual/llio.texi (fclean): Remove documentation.
82629
82630         * manual/Makefile (libc-texi-generated): New variable.  Include
82631         version.texi.
82632         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
82633         $(libc-texi-generated), not duplicated list of files.
82634         (version.texi, stamp-version): New rules.
82635         (realclean): Remove $(libc-texi-generated), not individual files
82636         from that list.  Do not remove dir-add.texinfo.
82637         * manual/libc.texinfo: Comment out uses of edition numbers and
82638         references to printed manual.  Remove last-updated dates.
82639         (EDITION): Comment out.
82640         (ISBN): Likewise.
82641         (VERSION, UPDATED): Remove.
82642         (version.texi): Include.
82643
82644 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
82645
82646         * sysdeps/posix/spawni.c: Include <signal.h>.
82647         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
82648         * sysdeps/pthread/aio_fsync.c: Likewise.
82649
82650 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
82651
82652         * conform/Makefile (tests): Run only when not cross-compiling and
82653         when fast-check is not defined.
82654
82655         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
82656         * conform/data/limits.h-data: Fixes for POSIX2008.
82657         * conform/run-conformtest.sh: Run all tests.
82658         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
82659         headers.
82660         * include/bits/dlfcn.h: Likewise.
82661         * include/langinfo.h: Likewise.
82662         * include/monetary.h: Likewise.
82663         * include/sys/poll.h: Likewise.
82664
82665         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
82666         for __USE_GNU.
82667         * posix/spawn.h: Define __need_sigset_t.
82668         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
82669         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
82670         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
82671         to get sigevent_t only.
82672         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
82673         only for __USE_GNU.
82674         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
82675         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
82676         process_vm_writev only for __USE_GNU.
82677         * termios/termios.h: Declare tcgetsid also for POSIX2008.
82678
82679         * conform/Makefile: For now ignore errors from run-conformtest.
82680         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
82681         POSIX to avoid namespace pollution.  Don't prepend headers.
82682         * conform/data/aio.h-data: Fixes for POSIX testing.
82683         * conform/data/fcntl.h-data: Likewise.
82684         * conform/data/glob.h-data: Likewise.
82685         * conform/data/grp.h-data: Likewise.
82686         * conform/data/pthread.h-data: Likewise.
82687         * conform/data/pwd.h-data: Likewise.
82688         * conform/data/signal.h-data: Likewise.
82689         * conform/data/spawn.h-data: Likewise.
82690         * conform/data/stdio.h-data: Likewise.
82691         * conform/data/stdlib.h-data: Likewise.
82692         * conform/data/stropts.h-data: Likewise.
82693         * conform/data/sys/mman.h-data: Likewise.
82694         * conform/data/sys/stat.h-data: Likewise.
82695         * conform/data/sys/types.h-data: Likewise.
82696         * conform/data/sys/wait.h-data: Likewise.
82697         * conform/data/time.h-data: Likewise.
82698         * conform/data/unistd.h-data: Likewise.
82699         * conform/data/utime.h-data: Likewise.
82700
82701         * io/sys/stat.h: fchmod was always in POSIX.
82702         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
82703         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
82704         * rt/aio.h: Define __need_timespec before including <time.h>.
82705         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
82706         struct.  Add forward declaration of pthread_attr_t and use it in
82707         sigevent.
82708         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
82709         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
82710         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
82711         always remove CLK_TCK definition.
82712
82713 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
82714
82715         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
82716
82717 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
82718
82719         * conform/run-conformtest.sh: New file.
82720         * conform/Makefile: Run run-conformtest for tests.
82721         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
82722         support.
82723
82724         * conform/data/uchar.h-data: New file.
82725         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
82726         * conform/data/arpa/inet.h-data: Likewise.
82727         * conform/data/assert.h-data: Likewise.
82728         * conform/data/complex.h-data: Likewise.
82729         * conform/data/cpio.h-data: Likewise.
82730         * conform/data/ctype.h-data: Likewise.
82731         * conform/data/dirent.h-data: Likewise.
82732         * conform/data/dlfcn.h-data: Likewise.
82733         * conform/data/errno.h-data: Likewise.
82734         * conform/data/fcntl.h-data: Likewise.
82735         * conform/data/float.h-data: Likewise.
82736         * conform/data/fmtmsg.h-data: Likewise.
82737         * conform/data/fnmatch.h-data: Likewise.
82738         * conform/data/ftw.h-data: Likewise.
82739         * conform/data/glob.h-data: Likewise.
82740         * conform/data/grp.h-data: Likewise.
82741         * conform/data/iconv.h-data: Likewise.
82742         * conform/data/inttypes.h-data: Likewise.
82743         * conform/data/langinfo.h-data: Likewise.
82744         * conform/data/libgen.h-data: Likewise.
82745         * conform/data/limits.h-data: Likewise.
82746         * conform/data/locale.h-data: Likewise.
82747         * conform/data/math.h-data: Likewise.
82748         * conform/data/monetary.h-data: Likewise.
82749         * conform/data/mqueue.h-data: Likewise.
82750         * conform/data/ndbm.h-data: Likewise.
82751         * conform/data/net/if.h-data: Likewise.
82752         * conform/data/netdb.h-data: Likewise.
82753         * conform/data/netinet/in.h-data: Likewise.
82754         * conform/data/nl_types.h-data: Likewise.
82755         * conform/data/poll.h-data: Likewise.
82756         * conform/data/pthread.h-data: Likewise.
82757         * conform/data/pwd.h-data: Likewise.
82758         * conform/data/regex.h-data: Likewise.
82759         * conform/data/sched.h-data: Likewise.
82760         * conform/data/search.h-data: Likewise.
82761         * conform/data/semaphore.h-data: Likewise.
82762         * conform/data/setjmp.h-data: Likewise.
82763         * conform/data/signal.h-data: Likewise.
82764         * conform/data/spawn.h-data: Likewise.
82765         * conform/data/stdarg.h-data: Likewise.
82766         * conform/data/stdio.h-data: Likewise.
82767         * conform/data/stdlib.h-data: Likewise.
82768         * conform/data/string.h-data: Likewise.
82769         * conform/data/strings.h-data: Likewise.
82770         * conform/data/stropts.h-data: Likewise.
82771         * conform/data/sys/ipc.h-data: Likewise.
82772         * conform/data/sys/mman.h-data: Likewise.
82773         * conform/data/sys/msg.h-data: Likewise.
82774         * conform/data/sys/resource.h-data: Likewise.
82775         * conform/data/sys/select.h-data: Likewise.
82776         * conform/data/sys/sem.h-data: Likewise.
82777         * conform/data/sys/shm.h-data: Likewise.
82778         * conform/data/sys/socket.h-data: Likewise.
82779         * conform/data/sys/stat.h-data: Likewise.
82780         * conform/data/sys/statvfs.h-data: Likewise.
82781         * conform/data/sys/time.h-data: Likewise.
82782         * conform/data/sys/timeb.h-data: Likewise.
82783         * conform/data/sys/times.h-data: Likewise.
82784         * conform/data/sys/types.h-data: Likewise.
82785         * conform/data/sys/uio.h-data: Likewise.
82786         * conform/data/sys/un.h-data: Likewise.
82787         * conform/data/sys/utsname.h-data: Likewise.
82788         * conform/data/sys/wait.h-data: Likewise.
82789         * conform/data/syslog.h-data: Likewise.
82790         * conform/data/tar.h-data: Likewise.
82791         * conform/data/termios.h-data: Likewise.
82792         * conform/data/utime.h-data: Likewise.
82793         * conform/data/utmpx.h-data: Likewise.
82794         * conform/data/varargs.h-data: Likewise.
82795         * conform/data/wchar.h-data: Likewise.
82796         * conform/data/wctype.h-data: Likewise.
82797         * conform/data/wordexp.h-data: Likewise.
82798
82799         * include/stropts.h: New file.
82800         * include/uchar.h: New file.
82801         * include/aio.h: Changes to allow conformtest.pl to use the headers.
82802         * include/assert.h: Likewise.
82803         * include/ctype.h: Likewise.
82804         * include/dirent.h: Likewise.
82805         * include/dlfcn.h: Likewise.
82806         * include/fcntl.h: Likewise.
82807         * include/fnmatch.h: Likewise.
82808         * include/glob.h: Likewise.
82809         * include/grp.h: Likewise.
82810         * include/libio.h: Likewise.
82811         * include/locale.h: Likewise.
82812         * include/math.h: Likewise.
82813         * include/net/if.h: Likewise.
82814         * include/netdb.h: Likewise.
82815         * include/netinet/in.h: Likewise.
82816         * include/pthread.h: Likewise.
82817         * include/pwd.h: Likewise.
82818         * include/regex.h: Likewise.
82819         * include/sched.h: Likewise.
82820         * include/search.h: Likewise.
82821         * include/setjmp.h: Likewise.
82822         * include/signal.h: Likewise.
82823         * include/stdio.h: Likewise.
82824         * include/stdlib.h: Likewise.
82825         * include/string.h: Likewise.
82826         * include/sys/cdefs.h: Likewise.
82827         * include/sys/mman.h: Likewise.
82828         * include/sys/msg.h: Likewise.
82829         * include/sys/resource.h: Likewise.
82830         * include/sys/select.h: Likewise.
82831         * include/sys/socket.h: Likewise.
82832         * include/sys/stat.h: Likewise.
82833         * include/sys/statvfs.h: Likewise.
82834         * include/sys/time.h: Likewise.
82835         * include/sys/times.h: Likewise.
82836         * include/sys/uio.h: Likewise.
82837         * include/sys/utsname.h: Likewise.
82838         * include/sys/wait.h: Likewise.
82839         * include/termios.h: Likewise.
82840         * include/time.h: Likewise.
82841         * include/ulimit.h: Likewise.
82842         * include/unistd.h: Likewise.
82843         * include/utime.h: Likewise.
82844         * include/wchar.h: Likewise.
82845         * include/wctype.h: Likewise.
82846         * include/wordexp.h: Likewise.
82847
82848         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
82849
82850         * time/time.h: TIME_UTC must be a macro.
82851         Make timespec_get available for ISO C11 only as well.
82852
82853 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
82854
82855         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
82856         Reported by Peng Haitao <penght@cn.fujitsu.com>.
82857
82858 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
82859
82860         * configure.in: Use -o not -a in test for unsupported multi-arch.
82861
82862 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
82863
82864         * manual/texinfo.tex: Update to version 2012-01-19.16.
82865
82866 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
82867
82868         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
82869
82870 2012-02-24  Roland McGrath  <roland@hack.frob.com>
82871
82872         [BZ #13738]
82873         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
82874         * manual/fdl-1.3.texi: New file.
82875         * manual/fdl-1.1.texi: File removed.
82876
82877         [BZ #13738]
82878         * manual/libc.texinfo (FDL_VERSION): New @set.
82879         Use it for mention of FDL in cover text.
82880         (Documentation License): Use it in @include file name.
82881
82882 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
82883             Roland McGrath  <roland@hack.frob.com>
82884
82885         [BZ #5461]
82886         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
82887         (not LONG_LONG_MAX and LONG_LONG_MIN.
82888         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
82889         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
82890         name.
82891         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
82892
82893 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
82894
82895         [BZ #2547]
82896         [BZ #11365]
82897         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
82898         manipulate bits before adding and subtracting TWO23[sx].
82899         * math/libm-test.inc (nearbyint_test): Add more tests.
82900
82901 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
82902
82903         [BZ #2548]
82904         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
82905         bits before adding and subtracting TWO23[sx].
82906         * math/libm-test.inc (rint_test): Add more tests.
82907         (rint_test_tonearest): Likewise.
82908         (rint_test_towardzero): Likewise.
82909         (rint_test_downward): Likewise.
82910         (rint_test_upward: Likewise.
82911
82912 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
82913
82914         [BZ #10110]
82915         * include/stdc-predef.h: New file.  Extracted from features.h.
82916         * include/features.h: Include stdc-predef.h.
82917         * Makefile (headers): Add stdc-predef.h.
82918         * CONFORMANCE (Compiler limitations): Update.
82919
82920 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
82921
82922         * manual/libc.texinfo (VERSION, UPDATED): Revert.
82923
82924 2012-02-21  David S. Miller  <davem@davemloft.net>
82925
82926         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
82927         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
82928
82929 2012-02-20  David S. Miller  <davem@davemloft.net>
82930
82931         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
82932         using a normal save/restore sequence, rather than allocating a
82933         dummy stack frame just to store a frame pointer and restore.
82934         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
82935
82936 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
82937
82938         * manual/install.texi: Fix stray word in line-wrapped comment.
82939
82940 2012-02-20  David S. Miller  <davem@davemloft.net>
82941
82942         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
82943         both binutils and gcc support GOTDATA.
82944
82945         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
82946         "rd %pc" in the PIC register setup sequences.
82947
82948         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
82949         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
82950         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
82951         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
82952         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
82953         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
82954         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
82955         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
82956         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
82957         (SYSCALL_ERROR_HANDLER): Likewise.
82958         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
82959         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
82960         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
82961         (SYSCALL_ERROR_HANDLER): Likewise.
82962
82963         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
82964         (HAVE_GCC_GOTDATA): New.
82965         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
82966         relocation support in both binutils and gcc.
82967         * sysdeps/sparc/elf/configure: Regenerate.
82968
82969         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
82970         * sysdeps/sparc/sparc32/elf/configure: Delete.
82971         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
82972         * sysdeps/sparc/sparc64/elf/configure: Delete.
82973         * sysdeps/sparc/elf/configure.in: New file.
82974         * sysdeps/sparc/elf/configure: Generate.
82975
82976         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
82977         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
82978         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
82979         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
82980         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
82981
82982 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
82983
82984         * manual/install.texi: Do not mention specific glibc version
82985         numbers.
82986         * manual/libc.texinfo (VERSION, UPDATED): Update.
82987         (@copying): Use @copyright{} and range of years.
82988
82989 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
82990
82991         [BZ #13695]
82992         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
82993         [crti.S not in sysdirs] (generated): Do not append.
82994         [crti.S not in sysdirs] (omit-deps): Likewise.
82995         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
82996         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
82997         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
82998         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
82999         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
83000         Likewise.
83001         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
83002         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
83003         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
83004         * csu/defs.awk: Remove file.
83005         * sysdeps/generic/initfini.c: Likewise.
83006         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
83007         variable.
83008         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
83009         Likewise.
83010
83011 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
83012
83013         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
83014         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
83015         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
83016         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
83017         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
83018         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
83019         <bits/epoll.h>.
83020         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
83021         (__EPOLL_PACKED): Define to empty if not defined by
83022         <bits/epoll.h>.
83023         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
83024         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
83025         bits/epoll.h.
83026
83027 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
83028
83029         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
83030         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
83031         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
83032         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
83033         <bits/timerfd.h>.
83034         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
83035         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
83036         bits/timerfd.h.
83037
83038 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
83039
83040         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
83041         in C locale.
83042         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
83043         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
83044         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
83045         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
83046
83047 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
83048
83049         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
83050         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
83051
83052 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
83053
83054         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
83055         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
83056         defined.
83057         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
83058         Likewise.
83059         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
83060         entry for 2.16.
83061
83062 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
83063
83064         * math/w_acos.c: Use non-signaling floating-point comparisons.
83065         * math/w_acosf.c: Likewise.
83066         * math/w_acosh.c: Likewise.
83067         * math/w_acoshf.c: Likewise.
83068         * math/w_acoshl.c: Likewise.
83069         * math/w_acosl.c: Likewise.
83070         * math/w_asin.c: Likewise.
83071         * math/w_asinf.c: Likewise.
83072         * math/w_asinl.c: Likewise.
83073         * math/w_atanh.c: Likewise.
83074         * math/w_atanhf.c: Likewise.
83075         * math/w_atanhl.c: Likewise.
83076         * math/w_exp2.c: Likewise.
83077         * math/w_exp2f.c: Likewise.
83078         * math/w_exp2l.c: Likewise.
83079         * math/w_j0.c: Likewise.
83080         * math/w_j0f.c: Likewise.
83081         * math/w_j0l.c: Likewise.
83082         * math/w_j1.c: Likewise.
83083         * math/w_j1f.c: Likewise.
83084         * math/w_j1l.c: Likewise.
83085         * math/w_jn.c: Likewise.
83086         * math/w_jnf.c: Likewise.
83087         * math/w_log.c: Likewise.
83088         * math/w_log10.c: Likewise.
83089         * math/w_log10f.c: Likewise.
83090         * math/w_log10l.c: Likewise.
83091         * math/w_log2.c: Likewise.
83092         * math/w_log2f.c: Likewise.
83093         * math/w_log2l.c: Likewise.
83094         * math/w_logf.c: Likewise.
83095         * math/w_logl.c: Likewise.
83096         * math/w_sqrt.c: Likewise.
83097         * math/w_sqrtf.c: Likewise.
83098         * math/w_sqrtl.c: Likewise.
83099         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
83100         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
83101         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
83102         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
83103         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
83104
83105 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
83106
83107         [BZ #9739]
83108         * manual/string.texi (strnlen): Use correct parameter name in
83109         equivalent expression.
83110
83111 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
83112
83113         [BZ #11174]
83114         * manual/users.texi (seteuid): Consistently use neweuid for
83115         argument name.
83116
83117 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
83118
83119         [BZ #13704]
83120         * manual/nss.texi (Services in the NSS configuration): Correct
83121         list of services in example configuration file.
83122
83123 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
83124
83125         [BZ #11322]
83126         * manual/arith.texi: Remove statements about negative zero
83127         behaving identically to zero.
83128
83129 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
83130
83131         [BZ #5993]
83132         * manual/install.texi: Do not document upgrading from libc5.
83133
83134 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
83135
83136         [BZ #4596]
83137         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
83138
83139 2012-02-18  David S. Miller  <davem@davemloft.net>
83140
83141         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
83142         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
83143         %o7 across the call.
83144         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
83145         instead.
83146         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
83147         SETUP_PIC_REG_LEAF.
83148         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
83149         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
83150         * sysdeps/sparc/crtn.S: Likewise.
83151
83152 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
83153
83154         * aout/Makefile: Remove.
83155
83156 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
83157
83158         [BZ #13058]
83159         * manual/examples/argp-ex1.c (main): Format definition in GNU
83160         style.
83161         * manual/examples/argp-ex2.c (main): Likewise.
83162         * manual/examples/argp-ex3.c (main): Likewise.
83163         * manual/examples/argp-ex4.c (main): Likewise.
83164         * manual/examples/longopt.c (main): Use new-style prototype
83165         definition.
83166         * manual/examples/strncat.c (main): Specify return type and use
83167         (void) for arguments.
83168         * manual/examples/subopt.c (main): Use char **argv argument.
83169
83170 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
83171
83172         [BZ #5077]
83173         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
83174         rounding modes.
83175
83176 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
83177
83178         [BZ #6907]
83179         * manual/string.texi (strchr): Change when strchrnul is
83180         recommended.
83181
83182 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
83183
83184         [BZ #174]
83185         * manual/locale.texi (setlocale): Document LOCPATH.
83186
83187 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
83188
83189         [BZ #10210]
83190         * manual/process.texi (execle): Move @dots{} before last argument.
83191
83192 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
83193
83194         [BZ #12047]
83195         * manual/charset.texi (Generic Charset Conversion): Fix typo
83196         (LC_TYPE -> LC_CTYPE).
83197
83198 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
83199
83200         [BZ #5805]
83201         * manual/arith.texi (scalbn): Use @var{} on parameter names.
83202         (scalbnf): Likewise.
83203         (scalbnl): Likewise.
83204         (scalbln): Likewise.
83205         (scalblnf): Likewise.
83206         (scalblnl): Likewise.
83207         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
83208         (vwarnx): Likewise.
83209         (verr): Likewise.
83210         (verrx): Likewise.
83211         * manual/filesys.texi (telldir): Use braces around return type.
83212         * manual/llio.texi (mmap): Add space after comma.
83213         (mmap64): Likewise.
83214         * manual/math.texi (jn): Use @var{} on parameter names.
83215         (jnf): Likewise.
83216         (jnl): Likewise.
83217         (yn): Likewise.
83218         (ynf): Likewise.
83219         (ynl): Likewise.
83220         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
83221         line.
83222         * manual/resource.texi (ulimit): Use @dots{} instead of literal
83223         "...".
83224         (sched_get_priority_min): Remove semicolon on @deftypefun line.
83225         (sched_get_priority_max): Likewise.
83226         * manual/signal.texi (sigvec): Add space after comma.
83227         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
83228         names.
83229         (if_indextoname): Likewise.
83230         (if_freenameindex): Likewise.
83231         (sendto): Use ',' instead of '.' in prototype.
83232         * manual/startup.texi (syscall): Use @dots{} instead of literal
83233         "...".
83234         * manual/stdio.texi (__fpending): Separate initial words of
83235         paragraph from @deftypefun line.
83236         * manual/syslog.texi (syslog): Use @dots{} instead of literal
83237         "...".
83238         (vsyslog): Use @var{} on parameter names.
83239         * manual/terminal.texi (stty): Use @var{} on parameter names.
83240         * manual/users.texi (getutmp): Use @var{} on parameter names.
83241         (getutmpx): Likewise.
83242
83243 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
83244
83245         [BZ #6884]
83246         * manual/stdio.texi (fopen): Fix typos in description of
83247         ",ccs=STRING".
83248
83249 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
83250
83251         [BZ #4026]
83252         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
83253         get clock_id definition.
83254
83255 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
83256
83257         [BZ #4822]
83258         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
83259         (madvise): Cast every argument to void on its own.
83260
83261 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
83262
83263         [BZ #9902]
83264         * manual/startup.texi (Exit Status): Fix typo.
83265
83266 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
83267
83268         [BZ #10140]
83269         * manual/examples/argp-ex1.c: Include <stdlib.h>.
83270         * manual/examples/argp-ex2.c: Likewise.
83271         * manual/examples/argp-ex3.c: Likewise.
83272
83273 2012-02-16  Richard Henderson  <rth@redhat.com>
83274
83275         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
83276         * sysdeps/s390/s390-32/initfini.c: Remove.
83277         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
83278         * sysdeps/s390/s390-64/initfini.c: Remove.
83279
83280 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
83281
83282         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
83283         compiler output for sysdeps/generic/initfini.c.
83284         * sysdeps/sh/elf/initfini.c: Remove file.
83285
83286 2012-02-16  David S. Miller  <davem@davemloft.net>
83287
83288         [BZ #11494]
83289         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
83290
83291         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
83292         * sysdeps/sparc/crti.S: New file.
83293         * sysdeps/sparc/crtn.S: New file.
83294         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
83295         * sysdeps/sparc/sparc64/Makefile: Likewise.
83296
83297 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
83298
83299         [BZ #3335]
83300         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
83301
83302 2012-02-15  Roland McGrath  <roland@hack.frob.com>
83303
83304         [BZ #4822]
83305         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
83306
83307         * mach/devstream.c (cookie_io_functions_t): Macro removed.
83308         (write, read, close): Likewise.
83309         Patch by Aurelien Jarno <aurelien@aurel32.net>.
83310
83311 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
83312
83313         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
83314         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
83315         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
83316         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
83317         <bits/signalfd.h>.
83318         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
83319         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
83320         bits/signalfd.h.
83321
83322 2012-02-14  Marek Polacek  <polacek@redhat.com>
83323
83324         * sysdeps/x86_64/crti.S: New file.
83325         * sysdeps/x86_64/crtn.S: New file.
83326         * sysdeps/x86_64/elf/initfini.c: Remove file.
83327
83328 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
83329
83330         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
83331         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
83332         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
83333         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
83334         <bits/inotify.h>.
83335         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
83336         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
83337         bits/inotify.h.
83338
83339 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
83340
83341         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
83342         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
83343         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
83344         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
83345         <bits/eventfd.h>.
83346         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
83347         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
83348         bits/eventfd.h.
83349
83350 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
83351
83352         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
83353         __feraiseexcept instead of feraiseexcept.
83354
83355         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
83356         nanosleep invocations.
83357         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
83358         strings, and add error checking for a nanosleep invocations.
83359
83360 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
83361
83362         Replace FSF snail mail address with URLs, as per GNU coding standards.
83363         Most of the snail mail addresses were wrong anyway, and omitting
83364         them makes the source code easier to maintain.  Almost all of the
83365         changes are to license notices and to locale LC_IDENTIFICATION
83366         addresses, except for this one:
83367         * manual/libc.texinfo: In "Published by", give the FSF's URL,
83368         not its snail mail address.
83369
83370 2012-02-09  Richard Henderson  <rth@twiddle.net>
83371
83372         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
83373         of kernel-features.h.
83374
83375         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
83376
83377 2012-02-08  Marek Polacek  <polacek@redhat.com>
83378
83379         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
83380         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
83381         * sysdeps/gnu/_G_config.h: Likewise.
83382         * sysdeps/generic/_G_config.h: Likewise.
83383
83384 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
83385
83386         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
83387         tests.
83388         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
83389
83390         * sysdeps/powerpc/powerpc32/crti.S: New file.
83391         * sysdeps/powerpc/powerpc32/crtn.S: New file.
83392         * sysdeps/powerpc/powerpc64/crti.S: New file.
83393         * sysdeps/powerpc/powerpc64/crtn.S: New file.
83394
83395         * Makeconfig (have-initfini): Don't set.
83396         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
83397         * configure.in (nopic_initfini): Don't substitute.
83398         * config.h.in (HAVE_INITFINI): Don't #undef.
83399         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
83400         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
83401
83402 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
83403
83404         Support crti.S and crtn.S provided directly by architectures.
83405         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
83406         [crti.S in sysdirs] (omit-deps): Likewise.
83407         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
83408         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
83409         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
83410         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
83411         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
83412         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
83413         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
83414         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
83415         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
83416         compiler output for sysdeps/generic/initfini.c.
83417         * sysdeps/i386/elf/Makefile: Remove file.
83418         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
83419
83420 2012-02-07  Marek Polacek  <polacek@redhat.com>
83421
83422         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
83423         * sysdeps/gnu/_G_config.h: Likewise.
83424         * sysdeps/mach/hurd/_G_config.h: Likewise.
83425
83426 2012-02-07  Marek Polacek  <polacek@redhat.com>
83427
83428         * math/Makefile (tests): Add tst-CMPLX2.
83429         * math/tst-CMPLX2.c: New file.
83430
83431 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
83432
83433         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
83434
83435         * math/libm-test.inc (jn_test): Add missing L suffix.
83436
83437 2012-02-06  Marek Polacek  <polacek@redhat.com>
83438
83439         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
83440         * sysdeps/i386/fpu/e_powf.S: Likewise.
83441         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
83442         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
83443         * sysdeps/i386/fpu/e_acosh.S: Likewise.
83444         * sysdeps/i386/fpu/e_pow.S: Likewise.
83445         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
83446         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
83447         * sysdeps/i386/fpu/s_expm1.S: Likewise.
83448         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
83449         * sysdeps/i386/fpu/e_log2.S: Likewise.
83450         * sysdeps/i386/fpu/e_log2l.S: Likewise.
83451         * sysdeps/i386/fpu/e_scalb.S: Likewise.
83452         * sysdeps/i386/fpu/e_powl.S: Likewise.
83453         * sysdeps/i386/fpu/s_log1p.S: Likewise.
83454         * sysdeps/i386/fpu/e_log10f.S: Likewise.
83455         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
83456         * sysdeps/i386/fpu/e_logl.S: Likewise.
83457         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
83458         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
83459         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
83460         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
83461         * sysdeps/i386/fpu/e_log2f.S: Likewise.
83462         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
83463         * sysdeps/i386/fpu/e_log.S: Likewise.
83464         * sysdeps/i386/fpu/s_cexp.S: Likewise.
83465         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
83466         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
83467         * sysdeps/i386/fpu/e_logf.S: Likewise.
83468         * sysdeps/i386/fpu/e_log10l.S: Likewise.
83469         * sysdeps/i386/fpu/e_atanh.S: Likewise.
83470         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
83471         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
83472         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
83473         * sysdeps/i386/fpu/e_log10.S: Likewise.
83474         * sysdeps/i386/fpu/s_frexp.S: Likewise.
83475         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
83476         * sysdeps/i386/fpu/s_asinh.S: Likewise.
83477         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
83478         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
83479         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
83480         * sysdeps/i386/asm-syntax.h: Likewise.
83481         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
83482         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
83483         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
83484         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
83485         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
83486         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
83487         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
83488         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
83489         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
83490         * sysdeps/powerpc/sysdep.h: Likewise.
83491         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
83492         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
83493
83494 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
83495
83496         [BZ #411]
83497         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
83498
83499 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
83500
83501         * sysdeps/i386/sysdep.h: Include <features.h>.
83502         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
83503         version.
83504
83505 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
83506
83507         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
83508         Define.
83509         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
83510         LOAD_PIC_REG_STR.
83511
83512 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
83513
83514         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
83515         (SETUP_PIC_REG): Use GET_PC_THUNK.
83516         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
83517         macro.
83518
83519 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
83520
83521         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
83522         for non-PIC compilation.
83523         (SETUP_PIC_REG): Add .p2align directive.
83524         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
83525         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
83526         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
83527         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
83528         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
83529         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
83530         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
83531         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
83532         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
83533         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
83534         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
83535         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
83536         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
83537         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
83538         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
83539         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
83540         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
83541         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
83542         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
83543         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
83544         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
83545         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
83546         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
83547         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
83548         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
83549         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
83550         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
83551         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
83552         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
83553         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
83554         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
83555         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
83556         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
83557         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
83558         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
83559         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
83560         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
83561         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
83562         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
83563         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
83564         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
83565
83566 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
83567
83568         * math/tst-CMPLX.c: Include <stdio.h>.
83569
83570 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
83571
83572         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
83573         float.
83574         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
83575         * sysdeps/sparc/bits/mathdef.h: Likewise.
83576
83577 2012-01-31  Marek Polacek  <polacek@redhat.com>
83578
83579         * libio/libio.h: Don't define _PARAMS.
83580         * locale/programs/config.h: Don't define PARAMS.
83581         * stdlib/strtol_l.c: Likewise.
83582         (__strtol_l): Remove PARAMS from the prototype.
83583
83584 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
83585
83586         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
83587         names.  Just use the correct names.  Remove unnecessary wrapper
83588         functions.
83589         * malloc/arena.c: Likewise.
83590         * malloc/hooks.c: Likewise.
83591
83592         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
83593         ARENA_TEST says not to.  Simplify test for creation of a new arena.
83594         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
83595
83596 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
83597
83598         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
83599         into tail calls.
83600         (update_get_addr): New function.
83601         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
83602         GET_ADDR_MODULE parameter.
83603
83604 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
83605
83606         * crypt/cert.c: Remove __STDC__ conditionals.
83607         * crypt/crypt-entry.c: Likewise.
83608         * crypt/crypt_util.c: Likewise.
83609         * libio/filedoalloc.c: Likewise.
83610         * libio/fileops.c: Likewise.
83611         * libio/genops.c: Likewise.
83612         * libio/iofclose.c: Likewise.
83613         * libio/iofdopen.c: Likewise.
83614         * libio/iofopen.c: Likewise.
83615         * libio/iofopen64.c: Likewise.
83616         * libio/iogetdelim.c: Likewise.
83617         * libio/iopopen.c: Likewise.
83618         * libio/obprintf.c: Likewise.
83619         * libio/oldfileops.c: Likewise.
83620         * libio/oldiofclose.c: Likewise.
83621         * libio/oldiofdopen.c: Likewise.
83622         * libio/oldiofopen.c: Likewise.
83623         * libio/oldiopopen.c: Likewise.
83624         * libio/wfiledoalloc.c: Likewise.
83625         * libio/wgenops.c: Likewise.
83626         * locale/programs/xmalloc.c: Likewise.
83627         * misc/syslog.c: Likewise.
83628         * stdio-common/xbug.c: Likewise.
83629         * string/memchr.c: Likewise.
83630         * string/memcmp.c: Likewise.
83631         * string/memrchr.c: Likewise.
83632         * string/rawmemchr.c: Likewise.
83633         * sysdeps/posix/getcwd.c: Likewise.
83634         * time/strftime_l.c: Likewise.
83635
83636 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
83637
83638         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
83639         * config.make.in (config-cflags-sse2avx): Define.
83640         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
83641         Fix typo.
83642
83643 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
83644
83645         * scripts/config.guess: Update from upstream config git repository.
83646         * scripts/config.sub: Likewise.
83647
83648 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
83649
83650         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
83651         (EM_NUM): Update.
83652         (R_TILEPRO_*, R_TILEGX_*): New macros.
83653
83654         * scripts/firstversions.awk: Fix bug in version range handling.
83655
83656         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
83657
83658         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
83659
83660         * include/sys/epoll.h: New file.
83661         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
83662         libc_hidden_def.
83663
83664 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
83665
83666         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
83667         Avoid unnecessary __WORDSIZE == 64 test.
83668         (fmaxf): Use VEX format if possible.
83669         (fmax): Likewise.
83670         (fminf): Likewise.
83671         (fmin): Likewise.
83672
83673         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
83674         * math/math_private.h: Remove libc_fegetround* and
83675         libc_fesetround*.
83676         * sysdeps/i386/configure.in: Check for -msse2avx.
83677         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
83678         also if SSE2AVX is defined.
83679         Remove libc_fegetround* and libc_fesetround*.
83680         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
83681         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
83682         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
83683         of HAS_YMM_USABLE.
83684         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
83685         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
83686         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
83687         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
83688         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
83689
83690         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
83691
83692 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
83693
83694         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
83695         size is not set.
83696         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
83697
83698 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
83699
83700         [BZ #13618]
83701         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
83702         relocation.
83703         * Makeconfig (libm): Define.
83704         * elf/Makefile: Add rules to build and run tst-relsort1.
83705         * elf/tst-relsort1.c: New file.
83706         * elf/tst-relsort1mod1.c: New file.
83707         * elf/tst-relsort1mod2.c: New file.
83708
83709 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
83710
83711         * math/s_ldexp.c: Remove __STDC__ conditionals.
83712         * math/s_ldexpf.c: Likewise.
83713         * math/s_ldexpl.c: Likewise.
83714         * math/s_nextafter.c: Likewise.
83715         * math/s_nexttowardf.c: Likewise.
83716         * math/s_significand.c: Likewise.
83717         * math/s_significandf.c: Likewise.
83718         * math/s_significandl.c: Likewise.
83719         * math/w_jnl.c: Likewise.
83720         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
83721         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
83722         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
83723         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
83724         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
83725         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
83726         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
83727         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
83728         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
83729         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
83730         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
83731         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
83732         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
83733         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
83734         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
83735         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
83736         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
83737         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
83738         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
83739         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
83740         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
83741         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
83742         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
83743         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
83744         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
83745         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
83746         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
83747         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
83748         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
83749         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
83750         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
83751         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
83752         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
83753         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
83754         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
83755         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
83756         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
83757         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
83758         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
83759         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
83760         * sysdeps/ieee754/k_standard.c: Likewise.
83761         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
83762         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
83763         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
83764         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
83765         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
83766         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
83767         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
83768         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
83769         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
83770         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
83771         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
83772         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
83773         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
83774         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
83775         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
83776         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
83777         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
83778         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
83779         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
83780         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
83781         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
83782         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
83783         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
83784         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
83785         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
83786         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
83787         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
83788         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
83789         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
83790         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
83791         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
83792         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
83793         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
83794         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
83795         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
83796         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
83797         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
83798         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
83799         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
83800         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
83801         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
83802         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
83803         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
83804         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
83805         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
83806         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
83807         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
83808         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
83809         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
83810         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
83811         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
83812         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
83813         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
83814         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
83815         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
83816         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
83817         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
83818         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
83819         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
83820         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
83821         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
83822         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
83823         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
83824         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
83825         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
83826         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
83827         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
83828         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
83829         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
83830         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
83831         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
83832         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
83833         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
83834         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
83835         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
83836         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
83837         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
83838         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
83839         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
83840         * sysdeps/ieee754/s_matherr.c: Likewise.
83841         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
83842         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
83843         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
83844         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
83845
83846 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
83847
83848         * crypt/md5.h: Remove __STDC__ conditionals.
83849         * libio/libioP.h: Likewise.
83850         * locale/programs/config.h: Likewise.
83851         * sysdeps/generic/sysdep.h: Likewise.
83852         * sysdeps/i386/asm-syntax.h: Likewise.
83853         * sysdeps/s390/asm-syntax.h: Likewise.
83854         * sysdeps/unix/sysdep.h: Likewise.
83855         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
83856         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
83857
83858 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
83859
83860         * libio/libio.h: Remove __STDC__ conditionals.
83861         * malloc/obstack.h: Likewise.
83862         * math/complex.h: Likewise.
83863         * math/math.h: Likewise.
83864         * sysdeps/generic/_G_config.h: Likewise.
83865         * sysdeps/gnu/_G_config.h: Likewise.
83866         * sysdeps/mach/hurd/_G_config.h: Likewise.
83867         * sysdeps/powerpc/bits/mathdef.h: Likewise.
83868         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
83869         * sysdeps/sparc/bits/mathdef.h: Likewise.
83870
83871 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
83872
83873         [BZ #13583]
83874         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
83875         Clean up HAS_* macros.
83876         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
83877         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
83878         possible.
83879         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
83880         HAS_AVX.
83881         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
83882         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
83883         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
83884         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
83885         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
83886
83887 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
83888
83889         * elf/tst-unique3.cc (gets): Remove declaration.
83890         * elf/tst-unique3lib.cc (gets): Likewise.
83891         * elf/tst-unique3lib2.cc (gets): Likewise.
83892         * elf/tst-unique4.cc (gets): Likewise.
83893
83894 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
83895
83896         * include/stdio.h: Add C++ protection.  Add gets declarations and
83897         definitions.
83898         * debug/tst-chk1.c: Don't declare gets here.
83899         * stdio-common/tst-gets.c: Likewise.
83900
83901 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
83902
83903         * posix/glob: Remove directory.
83904
83905 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
83906
83907         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
83908
83909 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
83910
83911         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
83912         of the non-standard EPFNOSUPPORT.
83913
83914 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
83915
83916         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
83917         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
83918         ANYWHERE set to 1 only on KERN_NO_SPACE error.
83919
83920 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
83921
83922         * wcsmbs/uchar.h: Test __STDC_VERSION__.
83923
83924 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
83925
83926         * nscd/aicache.c (addhstaiX): Do not cache negative results of
83927         transient errors.
83928         * nscd/grpcache.c (cache_addgr): Likewise.
83929         * nscd/hstcache.c (cache_addhst): Likewise.
83930         * nscd/initgrcache.c (addinitgroupsX): Likewise.
83931         * nscd/pwdcache.c (cache_addpw): Likewise.
83932         * nscd/servicescache.c (cache_addserv): Likewise.
83933
83934 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
83935
83936         * malloc/malloc.c: Various cleanups.
83937         * malloc/hooks.c: Likewise.
83938
83939         * stdlib/Makefile (tests): Add bug-fmtmsg1.
83940         * stdlib/bug-fmtmsg1.c: New file.
83941
83942         * stdlib/fmtmsg.c (init): Add missing unlock.
83943         Patch by Peng Haitao <penght@cn.fujitsu.com>.
83944
83945 2012-01-12  Marek Polacek  <polacek@redhat.com>
83946
83947         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
83948         and _GNU_SOURCE.
83949
83950 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
83951
83952         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
83953         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
83954         macro to ensure uniqueness of label name.
83955         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
83956         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
83957
83958 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
83959
83960         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
83961
83962         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
83963         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
83964         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
83965         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
83966
83967 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
83968
83969         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
83970
83971         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
83972         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
83973         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
83974
83975         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
83976
83977         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
83978         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
83979         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
83980         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
83981
83982         * math/bits/math-finite.h: Add ldexp support.
83983
83984 2012-01-10  Marek Polacek  <polacek@redhat.com>
83985
83986         * locale/programs/localedef.h (show_archive_content): Add noreturn
83987         attribute.
83988
83989 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
83990
83991         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
83992
83993 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
83994
83995         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
83996
83997         * io/Makefile (headers): Add bits/poll2.h.
83998
83999 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
84000
84001         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
84002         typo #include statement.
84003
84004 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
84005
84006         * include/sys/cdefs.h: Define __attribute_alloc_size.
84007         * catgets/gencat.c: Add alloc_size attribute and apply consistently
84008         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
84009         * elf/pldd.c: Likewise.
84010         * iconv/iconv_charmap.c: Likewise.
84011         * iconv/iconvconfig.c: Likewise.
84012         * iconv/strtab.c: Likewise.
84013         * locale/programs/locale.c: Likewise.
84014         * locale/programs/localedef.h: Likewise.
84015         * locale/programs/simple-hash.c: Likewise.
84016         * nscd/nscd.h: Likewise.
84017         * nss/makedb.c: Likewise.
84018         * sysdeps/generic/ldconfig.h: Likewise.
84019         * locale/programs/localedef.c: Remove xmalloc prototype.
84020         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
84021
84022 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
84023
84024         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
84025         appropriate.
84026
84027 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
84028
84029         * math/Makefile (tests): Add tst-CMPLX.
84030         * math/tst-CMPLX.c: New file.
84031
84032         * math/complex.h (CMPLXL): Fix typo.
84033
84034         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
84035         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
84036         GLIBC_2.16.
84037         * debug/tst-chk1.c: Add poll and ppoll tests.
84038         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
84039         * include/sys/poll.h: Add hidden proto for ppoll.
84040         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
84041         * sysdeps/mach/hurd/ppoll.c: Likewise.
84042         * io/ppoll.c: Likewise.
84043         * debug/poll_chk.c: New file.
84044         * debug/ppoll_chk.c: New file.
84045         * include/bits/poll2.h: New file.
84046         * io/bits/poll2.h: New file.
84047
84048         [BZ #1350]
84049         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
84050
84051         * configure.in: static is always set to yes.  Remove.
84052         * config.make.in: Don't set build-static.
84053         * Makeconfig: Remove use of build-static.
84054         * dlfcn/Makefile: Likewise.
84055         * elf/Makefile: Likewise.
84056         * math/Makefile: Likewise.
84057         * misc/Makefile: Likewise.
84058         * nptl/Makefile: Likewise.
84059         * sysdeps/mach/hurd/Makefile: Likewise.
84060
84061         * configure.in: PWD_P is not used anymore.
84062         * config.make.in: Remove PWD_P entry.
84063
84064         * configure.in: Remove last remnants of RANLIB.
84065         No need to check for signed size_t anymore.
84066         Don't set libc_commonpagesize and libc_relro_required here for Alpha
84067         and IA-64.
84068         Remove __builtin_expect test because we require at least gcc 3.4.
84069         * aclocal.m4: Likewise.
84070
84071         * wcsmbs/mbrtoc16.c: Implement using towc function.
84072         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
84073         * wcsmbs/wcsmbsload.c: Likewise.
84074         * iconv/gconv_simple.c: Likewise.
84075         * iconv/gconv_int.h: Likewise.
84076         * iconv/gconv_builtin.h: Likewise.
84077         * iconv/iconv_prog.c: Remove CHAR16 handling.
84078
84079         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
84080
84081         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
84082
84083         * configure.in: Remove --with-elf and --enable-bounded options.
84084         Dont set base_machine for ia64.  More non-ELF conditions removed.
84085         Remove testing and setting of leading underscore information.
84086         * config.make.in (build-bounded): Set to no.
84087         * config.h.in: Remove NO_UNDERSCORES entry.
84088         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
84089         them.
84090         * csu/start.c: Remove !NO_UNDERSCORE code.
84091         * locale/localeinfo.h: Likewise.
84092         * sysdeps/generic/machine-gmon.h: Likewise.
84093         * sysdeps/generic/sysdep.h: Likewise.
84094         * sysdeps/i386/sysdep.h: Likewise.
84095         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
84096         * sysdeps/mach/sysdep.h: Likewise.
84097         * sysdeps/s390/s390-32/sysdep.h: Likewise.
84098         * sysdeps/s390/s390-64/sysdep.h: Likewise.
84099         * sysdeps/sh/sysdep.h: Likewise.
84100         * sysdeps/sparc/sparc32/alloca.S: Likewise.
84101         * sysdeps/unix/i386/sysdep.S: Likewise.
84102         * sysdeps/unix/sparc/start.c: Likewise.
84103         * sysdeps/unix/sparc/sysdep.S: Likewise.
84104         * sysdeps/unix/sparc/sysdep.h: Likewise.
84105         * sysdeps/unix/start.c: Likewise.
84106         * sysdeps/unix/x86_64/sysdep.S: Likewise.
84107         * sysdeps/x86_64/sysdep.h: Likewise.
84108
84109 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
84110
84111         [BZ #13553]
84112         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
84113         for non-gcc.
84114         * argp/argp-fmtstream.h: Use const instead __const.
84115         * argp/argp.h: Likewise.
84116         * assert/assert.h: Likewise.
84117         * bits/fenv.h: Likewise.
84118         * bits/sched.h: Likewise.
84119         * bits/sigset.h: Likewise.
84120         * bits/sigthread.h: Likewise.
84121         * catgets/nl_types.h: Likewise.
84122         * conform/data/pthread.h-data: Likewise.
84123         * crypt/crypt-private.h: Likewise.
84124         * crypt/crypt.h: Likewise.
84125         * crypt/crypt_util.c: Likewise.
84126         * ctype/ctype.h: Likewise.
84127         * debug/execinfo.h: Likewise.
84128         * debug/mbsnrtowcs_chk.c: Likewise.
84129         * debug/mbsrtowcs_chk.c: Likewise.
84130         * debug/wcsnrtombs_chk.c: Likewise.
84131         * debug/wcsrtombs_chk.c: Likewise.
84132         * debug/wcstombs_chk.c: Likewise.
84133         * dirent/dirent.h: Likewise.
84134         * dlfcn/dlfcn.h: Likewise.
84135         * elf/neededtest4.c: Likewise.
84136         * grp/grp.h: Likewise.
84137         * gshadow/gshadow.h: Likewise.
84138         * iconv/gconv.h: Likewise.
84139         * iconv/gconv_int.h: Likewise.
84140         * iconv/gconv_simple.c: Likewise.
84141         * iconv/iconv.h: Likewise.
84142         * iconv/loop.c: Likewise.
84143         * iconv/skeleton.c: Likewise.
84144         * include/aio.h: Likewise.
84145         * include/aliases.h: Likewise.
84146         * include/argz.h: Likewise.
84147         * include/arpa/inet.h: Likewise.
84148         * include/assert.h: Likewise.
84149         * include/dirent.h: Likewise.
84150         * include/dlfcn.h: Likewise.
84151         * include/execinfo.h: Likewise.
84152         * include/fcntl.h: Likewise.
84153         * include/fenv.h: Likewise.
84154         * include/glob.h: Likewise.
84155         * include/grp.h: Likewise.
84156         * include/libintl.h: Likewise.
84157         * include/mntent.h: Likewise.
84158         * include/netdb.h: Likewise.
84159         * include/pwd.h: Likewise.
84160         * include/rpc/netdb.h: Likewise.
84161         * include/sched.h: Likewise.
84162         * include/search.h: Likewise.
84163         * include/shadow.h: Likewise.
84164         * include/signal.h: Likewise.
84165         * include/stdio.h: Likewise.
84166         * include/stdlib.h: Likewise.
84167         * include/string.h: Likewise.
84168         * include/sys/socket.h: Likewise.
84169         * include/sys/stat.h: Likewise.
84170         * include/sys/statfs.h: Likewise.
84171         * include/sys/statvfs.h: Likewise.
84172         * include/sys/syslog.h: Likewise.
84173         * include/sys/time.h: Likewise.
84174         * include/sys/uio.h: Likewise.
84175         * include/time.h: Likewise.
84176         * include/unistd.h: Likewise.
84177         * include/utmp.h: Likewise.
84178         * include/wchar.h: Likewise.
84179         * include/wctype.h: Likewise.
84180         * inet/aliases.h: Likewise.
84181         * inet/arpa/inet.h: Likewise.
84182         * inet/netinet/ether.h: Likewise.
84183         * inet/netinet/in.h: Likewise.
84184         * intl/libintl.h: Likewise.
84185         * io/bits/fcntl2.h: Likewise.
84186         * io/fcntl.h: Likewise.
84187         * io/ftw.h: Likewise.
84188         * io/sys/poll.h: Likewise.
84189         * io/sys/stat.h: Likewise.
84190         * io/sys/statfs.h: Likewise.
84191         * io/sys/statvfs.h: Likewise.
84192         * io/utime.h: Likewise.
84193         * libio/bits/stdio.h: Likewise.
84194         * libio/bits/stdio2.h: Likewise.
84195         * libio/libio.h: Likewise.
84196         * libio/libioP.h: Likewise.
84197         * libio/stdio.h: Likewise.
84198         * locale/lc-ctype.c: Likewise.
84199         * locale/locale.h: Likewise.
84200         * login/utmp.h: Likewise.
84201         * malloc/arena.c: Likewise.
84202         * malloc/malloc.c: Likewise.
84203         * malloc/malloc.h: Likewise.
84204         * malloc/mcheck.c: Likewise.
84205         * malloc/mtrace.c: Likewise.
84206         * math/bits/mathcalls.h: Likewise.
84207         * math/fenv.h: Likewise.
84208         * math/math_private.h: Likewise.
84209         * misc/bits/error.h: Likewise.
84210         * misc/bits/syslog.h: Likewise.
84211         * misc/err.h: Likewise.
84212         * misc/error.h: Likewise.
84213         * misc/fstab.h: Likewise.
84214         * misc/mntent.h: Likewise.
84215         * misc/regexp.h: Likewise.
84216         * misc/search.h: Likewise.
84217         * misc/sgtty.h: Likewise.
84218         * misc/sys/mman.h: Likewise.
84219         * misc/sys/syslog.h: Likewise.
84220         * misc/sys/uio.h: Likewise.
84221         * misc/sys/xattr.h: Likewise.
84222         * misc/ttyent.h: Likewise.
84223         * nis/rpcsvc/ypclnt.h: Likewise.
84224         * nss/nss.h: Likewise.
84225         * posix/bits/unistd.h: Likewise.
84226         * posix/fnmatch.h: Likewise.
84227         * posix/glob.h: Likewise.
84228         * posix/sched.h: Likewise.
84229         * posix/spawn.h: Likewise.
84230         * posix/sys/wait.h: Likewise.
84231         * posix/unistd.h: Likewise.
84232         * posix/wordexp.h: Likewise.
84233         * pwd/pwd.h: Likewise.
84234         * resolv/netdb.h: Likewise.
84235         * resource/sys/resource.h: Likewise.
84236         * rt/aio.h: Likewise.
84237         * rt/bits/mqueue2.h: Likewise.
84238         * rt/mqueue.h: Likewise.
84239         * shadow/shadow.h: Likewise.
84240         * signal/signal.h: Likewise.
84241         * socket/send.c: Likewise.
84242         * socket/sendto.c: Likewise.
84243         * socket/sys/socket.h: Likewise.
84244         * stdio-common/printf.h: Likewise.
84245         * stdlib/bits/stdlib.h: Likewise.
84246         * stdlib/fmtmsg.h: Likewise.
84247         * stdlib/monetary.h: Likewise.
84248         * stdlib/stdlib.h: Likewise.
84249         * stdlib/ucontext.h: Likewise.
84250         * streams/stropts.h: Likewise.
84251         * string/argz.h: Likewise.
84252         * string/bits/string2.h: Likewise.
84253         * string/string.h: Likewise.
84254         * string/strings.h: Likewise.
84255         * sunrpc/rpc/auth.h: Likewise.
84256         * sunrpc/rpc/auth_des.h: Likewise.
84257         * sunrpc/rpc/clnt.h: Likewise.
84258         * sunrpc/rpc/netdb.h: Likewise.
84259         * sunrpc/rpc/pmap_clnt.h: Likewise.
84260         * sunrpc/rpc/xdr.h: Likewise.
84261         * sysdeps/generic/inttypes.h: Likewise.
84262         * sysdeps/generic/net/if.h: Likewise.
84263         * sysdeps/generic/sys/swap.h: Likewise.
84264         * sysdeps/gnu/net/if.h: Likewise.
84265         * sysdeps/gnu/utmpx.h: Likewise.
84266         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
84267         * sysdeps/i386/i486/bits/string.h: Likewise.
84268         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
84269         * sysdeps/s390/bits/string.h: Likewise.
84270         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
84271         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
84272         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
84273         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
84274         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
84275         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
84276         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
84277         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
84278         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
84279         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
84280         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
84281         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
84282         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
84283         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
84284         * sysdeps/unix/sysv/linux/readv.c: Likewise.
84285         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
84286         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
84287         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
84288         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
84289         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
84290         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
84291         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
84292         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
84293         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
84294         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
84295         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
84296         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
84297         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
84298         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
84299         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
84300         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
84301         * sysvipc/sys/ipc.h: Likewise.
84302         * sysvipc/sys/msg.h: Likewise.
84303         * sysvipc/sys/sem.h: Likewise.
84304         * sysvipc/sys/shm.h: Likewise.
84305         * termios/termios.h: Likewise.
84306         * time/sys/time.h: Likewise.
84307         * time/time.h: Likewise.
84308         * wcsmbs/bits/wchar2.h: Likewise.
84309         * wcsmbs/uchar.h: Likewise.
84310         * wcsmbs/wchar.h: Likewise.
84311         * wctype/wctype.h: Likewise.
84312
84313         [BZ #13551]
84314         * Makeconfig: Remove all but ELF support including AIX support.
84315         * Makerules: Likewise.
84316         * config.h.in: Likewise.
84317         * config.make.in: Likewise.
84318         * configure: Likewise.
84319         * configure.in: Likewise.
84320         * csu/Makefile: Likewise.
84321         * csu/version.c: Likewise.
84322         * debug/Makefile: Likewise.
84323         * dlfcn/Makefile: Likewise.
84324         * elf/Makefile: Likewise.
84325         * extra-lib.mk: Likewise.
84326         * iconv/Makefile: Likewise.
84327         * include/libc-symbols.h: Likewise.
84328         * include/shlib-compat.h: Likewise.
84329         * resolv/Makefile: Likewise.
84330         * resolv/res_libc.c: Likewise.
84331         * rt/Makefile: Likewise.
84332         * sysdeps/i386/asm-syntax.h: Likewise.
84333         * sysdeps/i386/sysdep.h: Likewise.
84334         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
84335         * sysdeps/mach/sysdep.h: Likewise.
84336         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
84337         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
84338         * sysdeps/s390/asm-syntax.h: Likewise.
84339         * sysdeps/s390/s390-32/sysdep.h: Likewise.
84340         * sysdeps/s390/s390-64/sysdep.h: Likewise.
84341         * sysdeps/sh/sysdep.h: Likewise.
84342         * sysdeps/unix/sparc/sysdep.h: Likewise.
84343         * sysdeps/wordsize-32/divdi3.c: Likewise.
84344         * sysdeps/x86_64/sysdep.h: Likewise.
84345
84346         * argp/Versions: Remove _argp_unlock_xxx.
84347
84348         [BZ #13559]
84349         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
84350         * abilist/libBrokenLocale.abilist: Likewise.
84351         * abilist/libanl.abilist: Likewise.
84352         * abilist/libc.abilist: Likewise.
84353         * abilist/libcrypt.abilist: Likewise.
84354         * abilist/libdl.abilist: Likewise.
84355         * abilist/libm.abilist: Likewise.
84356         * abilist/libnsl.abilist: Likewise.
84357         * abilist/libpthread.abilist: Likewise.
84358         * abilist/libresolv.abilist: Likewise.
84359         * abilist/librt.abilist: Likewise.
84360         * abilist/libthread_db.abilist: Likewise.
84361         * abilist/libutil.abilist: Likewise.
84362         * abilist/libnss_db.abilist: New file.
84363
84364         * scripts/abilist.awk: Add support for indirect functions.
84365
84366         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
84367
84368         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
84369
84370         * shlib-versions: Remove entries for ports architectures.
84371
84372         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
84373         files in ports.
84374         * elf/stackguard-macros.h: Remove support for IA-64.
84375         * elf/tst-auditmod1.c: Likewise.
84376         * sysdeps/generic/ldsodefs.h: Likewise.
84377
84378         * sysdeps/unix/sysv/linux/configure.in: Ports should define
84379         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
84380         configure files.
84381
84382         [BZ #13552]
84383         * configure.in: Remove --enable-omitfp support.
84384         * FAQ.in: Adjust.
84385         * config.make.in: Likewise.
84386         * Makeconfig: Likewise.
84387         * manual/install.texi: Likewise.
84388
84389         In case anyone cares, the IA-64 architecture could move to ports.
84390         * sysdeps/ia64/*: Removed.
84391         * sysdeps/unix/sysv/linux/ia64/*: Removed.
84392         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
84393
84394         [BZ #13555]
84395         * configure.in: Remove entries for unsupported architectures.
84396
84397         [BZ #13533]
84398         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
84399         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
84400         routines.
84401         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
84402         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
84403         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
84404         fall back to using wcrtomb.
84405         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
84406         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
84407         renaming.
84408         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
84409         * wcsmbs/tst-c16c32-1.c: New file.
84410
84411         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
84412         local variable.
84413
84414         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
84415
84416         * elf/tst-unique3.cc: Add explicit declaration of gets.
84417         * elf/tst-unique3lib.cc: Likewise.
84418         * elf/tst-unique3lib2.cc: Likewise.
84419         * elf/tst-unique4.cc: Likewise.
84420
84421         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
84422
84423 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
84424
84425         [BZ #13566]
84426         * assert/assert.h (static_assert): Don't define for C++.
84427         * libio/stdio.h (gets): Do declare for C++ <= C++11.
84428         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
84429
84430 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
84431
84432         * iconv/loop.c (single loop): Fix assertion in storing of
84433         remaining bytes.
84434
84435         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
84436
84437 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
84438
84439         * posix/getconf.c: Update copyright year.
84440         * nss/getent.c: Likewise.
84441         * nss/makedb.c: Likewise.
84442         * iconv/iconvconfig.c: Likewise.
84443         * iconv/iconv_prog.c: Likewise.
84444         * elf/ldconfig.c: Likewise.
84445         * elf/pldd.c: Likewise.
84446         * elf/sotruss.ksh: Likewise.
84447         * catgets/gencat.c: Likewise.
84448         * csu/version.c: Likewise.
84449         * elf/ldd.bash.in: Likewise.
84450         * elf/sprof.c (print_version): Likewise.
84451         * locale/programs/locale.c: Likewise.
84452         * locale/programs/localedef.c: Likewise.
84453         * login/programs/pt_chown.c: Likewise.
84454         * nscd/nscd.c (print_version): Likewise.
84455         * debug/xtrace.sh: Likewise.
84456         * malloc/memusage.sh: Likewise.
84457         * malloc/mtrace.pl: Likewise.
84458         * debug/catchsegv.sh: Likewise.
84459
84460 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
84461
84462         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
84463         pure attribute.
84464
84465 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
84466
84467         [BZ #13533]
84468         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
84469         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
84470         transformations.
84471         * iconv/gconv_int.h: Likewise.
84472         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
84473         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
84474         from libc for GLIBC_2.16.
84475         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
84476         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
84477         * wcsmbs/uchar.h: Really define mbstate_t.
84478         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
84479         * wcsmbs/c16rtomb.c: New file.
84480         * wcsmbs/mbrtoc16.c: New file.
84481         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
84482         for C/POSIX locale.
84483         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
84484         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
84485
84486         * wcsmbs/wchar.h: Add missing __restrict.
84487
84488 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
84489
84490         [BZ #13532]
84491         * time/Makefile (routines): Add timespec_get.
84492         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
84493         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
84494         timespec for ISO C11.
84495         * time/timespec_get.c: New file.
84496         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
84497         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
84498
84499         [BZ #13531]
84500         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
84501         * stdlib/stdlib.h: Declare aligned_alloc.
84502         * Versions.def: Add GLIBC_2.16 for libc.
84503         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
84504
84505         [BZ 13527]
84506         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
84507         ISO C11.
84508
84509         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
84510         code.
84511
84512         [BZ #13528]
84513         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
84514
84515         [BZ #13529]
84516         * assert/assert.h (static_assert): Define.
84517
84518         * version.h: Update for 2.16 development version.
84519
84520         [BZ #13526]
84521         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
84522         _ISOC11_SOURCE.
84523
84524         * version.h (RELEASE): Bump for 2.15 release.
84525         * include/features.h (__GLIBC_MINOR__): Bump to 15.
84526
84527         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
84528         Patch by Marek Polacek <mpolacek@redhat.com>.
84529
84530         * bits/byteswap.h: Protect long long constants with __extension__.
84531         * sysdeps/i386/bits/byteswap.h: Likewise.
84532         * sysdeps/ia64/bits/byteswap.h: Likewise.
84533         * sysdeps/s390/bits/byteswap.h: Likewise.
84534         * sysdeps/x86_64/bits/byteswap.h: Likewise.
84535
84536 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
84537
84538         [BZ #13540]
84539         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
84540         destination buffer.
84541         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
84542
84543 2011-12-23  Marek Polacek  <polacek@redhat.com>
84544
84545         * elf/dl-addr.c (determine_info): Add inline keyword.
84546         * elf/tst-auditmod4b.c (check_avx): Likewise.
84547         * elf/tst-auditmod6b.c (check_avx): Likewise.
84548         * elf/tst-auditmod6c.c (check_avx): Likewise.
84549         * elf/tst-auditmod7b.c (check_avx): Likewise.
84550
84551 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
84552
84553         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
84554         !__SSE_MATH__.
84555
84556 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
84557
84558         [BZ #13540]
84559         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
84560         processing for last bytes.
84561
84562 2011-08-06  Bruno Haible  <bruno@clisp.org>
84563
84564         [BZ #13061]
84565         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
84566         U+0385, not to U+1FEE.
84567
84568         [BZ #13062]
84569         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
84570         entry for U+00A5 U+0301.
84571
84572 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
84573
84574         [BZ #13166]
84575         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
84576         buffer for the output is too small.
84577
84578         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
84579         optimization.
84580
84581         [BZ #13185]
84582         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
84583         SSE flags if possible.
84584
84585 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
84586
84587         [BZ #13540]
84588         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
84589         processing for last bytes.
84590
84591 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
84592
84593         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
84594         (syscall-list-default-options, syscall-list-default-condition)
84595         (syscall-list-includes): Define.
84596         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
84597         list of ABIs and options and #if conditions for each ABI.  Do not
84598         handle common syscalls between ABIs specially.
84599         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
84600         Remove.
84601         (syscall-list-variants, syscall-list-32bit-options)
84602         (syscall-list-32bit-condition, syscall-list-64bit-options)
84603         (syscall-list-64bit-condition): Define.
84604         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
84605         (syscall-list-variants, syscall-list-32bit-options)
84606         (syscall-list-32bit-condition, syscall-list-64bit-options)
84607         (syscall-list-64bit-condition): Define.
84608         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
84609         Remove.
84610         (syscall-list-variants, syscall-list-32bit-options)
84611         (syscall-list-32bit-condition, syscall-list-64bit-options)
84612         (syscall-list-64bit-condition): Define.
84613         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
84614         Remove.
84615         (syscall-list-variants, syscall-list-32bit-options)
84616         (syscall-list-32bit-condition, syscall-list-64bit-options)
84617         (syscall-list-64bit-condition): Define.
84618
84619 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
84620
84621         * locale/iso-639.def: Add brx entry.
84622
84623         [BZ #13328]
84624         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
84625         Proposed by Mariusz_Cukr <marcukr@op.pl>.
84626
84627         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
84628         __feraiseexcept_renamed.
84629
84630 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
84631
84632         [BZ #13538]
84633         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
84634         EPOLLET with unsigned values.
84635         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
84636         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
84637
84638         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
84639         to large cancellation.
84640         * math/s_cacoshf.c: Likewise.
84641         * math/s_cacoshl.c: Likewise.
84642
84643 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
84644
84645         [BZ #13305]
84646         [BZ #12786]
84647         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
84648         * math/s_cacoshf.c: Likewise.
84649         * math/s_cacoshl.c: Likewise.
84650
84651 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
84652
84653         [BZ #13439]
84654         * iconv/gconv.h: Define __GCONV_SWAP.
84655         * iconvdata/unicode.c: The swap bit must be stored in __flags.
84656         * iconvdata/utf-16.c: Likewise.
84657         * iconvdata/utf-32.c: Likewise.
84658
84659 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
84660
84661         [BZ #13524]
84662         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
84663         numerator after shifting it by one limb.
84664
84665 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
84666
84667         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
84668         under [__USE_EXTERN_INLINES].
84669
84670 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
84671
84672         [BZ #13446]
84673         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
84674
84675 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
84676
84677         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
84678         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
84679         optimized code.
84680         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
84681         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
84682         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
84683         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
84684         for strncasecmp/strncasecmp_l compilation.
84685         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
84686         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
84687
84688 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
84689
84690         [BZ #13484]
84691         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
84692         of __asm__.
84693
84694 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
84695
84696         [BZ #13506]
84697         * time/tzfile.c (__tzfile_read): Check values from file header.
84698
84699 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
84700
84701         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
84702         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
84703         * powerpc/powerpc32/dl-start.S: Likewise.
84704         * powerpc/powerpc32/elf/start.S: Likewise.
84705         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
84706         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
84707         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
84708         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
84709         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
84710         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
84711         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
84712         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
84713         * powerpc/powerpc32/fpu/s_round.S: Likewise.
84714         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
84715         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
84716         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
84717         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
84718         * powerpc/powerpc32/memset.S: Likewise.
84719         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
84720         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
84721         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
84722         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
84723         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
84724         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
84725         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
84726         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
84727         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
84728         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
84729         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
84730         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
84731         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
84732
84733 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
84734
84735         * math/libm-test.inc: Added more nearbyint tests.
84736         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
84737         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
84738         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
84739         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
84740
84741 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
84742
84743         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
84744         FD_CLOEXEC.
84745
84746 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
84747
84748         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
84749         Add wcscpy-ssse3 wcscpy-c.
84750         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
84751         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
84752         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
84753         * sysdeps/x86_64/wcschr.S: New file.
84754         * sysdeps/x86_64/wcsrchr.S: New file.
84755         * string/test-strcmp.c: Remove checking of wcscmp function for
84756         wrong alignments.
84757         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
84758         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
84759         wcsrchr-sse2 wcsrchr-c.
84760         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
84761         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
84762         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
84763         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
84764         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
84765         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
84766         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
84767         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
84768         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
84769         * wcsmbc/wcschr.c (WCSCHR): New macro.
84770
84771 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
84772
84773         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
84774         * wcsmbs/test-wcsrchr.c: New file.
84775         * string/test-strrchr.c: Add wcsrchr support.
84776         (WIDE): New macro.
84777         * wcsmbs/test-wcscpy.c: New file.
84778         * string/test-strcpy.c: Add wcscpy support.
84779         (WIDE): New macro.
84780
84781 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
84782
84783         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
84784         the inner loop.
84785
84786 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
84787
84788         [BZ #13472]
84789         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
84790
84791 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
84792
84793         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
84794         Minor optimizations.
84795
84796         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
84797         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
84798         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
84799
84800 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
84801
84802         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
84803         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
84804         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
84805         for gcc to avoid warnings.
84806         * inet/Makefile (tests): Add tst-checks.
84807         * inet/tst-checks.c: New file.
84808
84809         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
84810         warning.
84811
84812         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
84813         __wmemcmp_sse2.
84814
84815         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
84816         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
84817
84818         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
84819
84820 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
84821
84822         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
84823         problem.
84824
84825         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
84826
84827 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
84828
84829         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
84830         conditional on GCC version.
84831         (__arch_compare_and_exchange_val_8_acq)
84832         (__arch_compare_and_exchange_val_16_acq)
84833         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
84834         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
84835         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
84836
84837 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
84838
84839         * sysdeps/sh/backtrace.c: New file.
84840
84841 2011-12-02  Andreas Schwab  <schwab@redhat.com>
84842
84843         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
84844         parenthesis.
84845
84846 2011-12-01  Andreas Schwab  <schwab@redhat.com>
84847
84848         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
84849         falling back to utime.
84850
84851 2011-11-30  Andreas Schwab  <schwab@redhat.com>
84852
84853         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
84854         expectations for float.
84855
84856 2011-11-29  Andreas Schwab  <schwab@redhat.com>
84857
84858         * locale/weight.h (findidx): Add parameter len.
84859         * locale/weightwc.h (findidx): Likewise.
84860         * posix/fnmatch_loop.c (FCT): Adjust caller.
84861         * posix/regcomp.c (build_equiv_class): Likewise.
84862         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
84863         * posix/regexec.c (check_node_accept_bytes): Likewise.
84864         * string/strcoll_l.c (STRCOLL): Likewise.
84865         * string/strxfrm_l.c (STRXFRM): Likewise.
84866
84867 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
84868
84869         * Makefile.in: Remove CVSOPT handling.
84870         * configure.in: Remove use of AC_REVISION.
84871         * iconvdata/Makefile (distribute): No need to filter out CVS.
84872         * scripts/list-sources.sh: Remove CVS, subversion and monotone
84873         handling.
84874
84875 2011-11-16  Andreas Schwab  <schwab@redhat.com>
84876
84877         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
84878         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
84879         [USE_AS_STRNCASECMP_L]: Likewise.
84880         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
84881         NO_TLS_DIRECT_SEG_REFS.
84882         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
84883         Fix argument offsets for non-PIC.
84884         [USE_AS_STRNCASECMP_L]: Likewise.
84885         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
84886         NO_TLS_DIRECT_SEG_REFS.
84887
84888 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
84889
84890         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
84891         O_CLOEXEC.
84892         * locale/loadlocale.c (_nl_load_locale): Likewise.
84893
84894 2011-11-15  Andreas Schwab  <schwab@redhat.com>
84895
84896         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
84897         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
84898         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
84899         (SYSCALL_GETTIME): Set errno on error.
84900
84901         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
84902         count references to noai6ai_cached.
84903
84904 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
84905
84906         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
84907
84908         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
84909         FD_CLOEXEC for /proc/self/maps.
84910
84911         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
84912         FD_CLOEXEC for /proc/meminfo.
84913
84914         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
84915         gai.conf.
84916
84917         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
84918         FD_CLOEXEC for given file.
84919
84920         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
84921
84922         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
84923         FD_CLOEXEC for /etc/hosts.
84924         (_gethtent): Likewise.
84925
84926         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
84927
84928         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
84929         cancellation and set FD_CLOEXEC for /etc/netgroup.
84930
84931         * nss/nss_files/files-key.c (search): Don't allow cancellation when
84932         reading /etc/publickey.
84933
84934         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
84935         allow cancellation when reading /etc/group.
84936
84937         * nss/nss_files/files-alias.c (internal_setent): Don't allow
84938         cancellation.
84939         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
84940
84941         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
84942         when using data file.
84943
84944         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
84945
84946         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
84947         (write_nis_obj): Use "c" and "e" in fopen.
84948
84949         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
84950
84951         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
84952
84953         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
84954
84955         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
84956
84957         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
84958         locale.alias.
84959
84960         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
84961
84962         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
84963
84964         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
84965
84966         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
84967         file parsing and set FD_CLOEXEC.
84968
84969 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
84970
84971         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
84972
84973 2011-11-14  Andreas Schwab  <schwab@redhat.com>
84974
84975         * malloc/arena.c (arena_get2): Don't call reused_arena when
84976         _int_new_arena failed.
84977
84978 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
84979
84980         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
84981         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
84982         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
84983         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
84984         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
84985         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
84986         to compile strcasecmp and strncasecmp.
84987         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
84988         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
84989
84990         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
84991
84992 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
84993
84994         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
84995         locale-defines.sym to gen-as-const-headers.
84996         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
84997         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
84998         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
84999         to compile strcasecmp and strncasecmp.
85000         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
85001         strcasecmp_l and strncasecmp_l.
85002         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
85003         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
85004         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
85005         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
85006         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
85007         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
85008         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
85009         * sysdeps/i386/i686/multiarch/strncase.S: New file.
85010         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
85011         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
85012         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
85013
85014 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
85015
85016         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
85017         result of SYSDEP_GETTIME_CPU to retval.
85018         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
85019         parameter list to macro.  Remove trailing semicolon.  Adjust users.
85020
85021         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
85022         variable.
85023
85024         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
85025         mantissa words.
85026         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
85027
85028         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
85029         from unused variable.
85030
85031         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
85032         DWARF definitions.
85033         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
85034         for assembling.
85035
85036         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
85037         over namespaces.
85038
85039         * sunrpc/rpc_prot.c (rejected): Fix case value.
85040
85041         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
85042         unsigned long long int to avoid warnings in shift.
85043
85044         * posix/regex_internal.c (re_string_reconstruct): Actually use result
85045         of use of trans.
85046         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
85047         variable tmp.
85048
85049         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
85050         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
85051         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
85052
85053         * nis/nis_table.c (nis_list): Use variable of correct type for
85054         result of __follow_path call.
85055
85056 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
85057
85058         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
85059         of math functions ceil, trunc, floor, round, and sqrt, when
85060         avaliable on the platform.
85061         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
85062         name clash.
85063         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
85064         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
85065         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
85066
85067 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
85068
85069         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
85070         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
85071
85072 2011-11-11  Roland McGrath  <roland@hack.frob.com>
85073
85074         * include/unistd.h: Fix __readlink return type.
85075         Reported by Chris Metcalf <cmetcalf@tilera.com>.
85076
85077 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
85078
85079         * stdlib/ucontext.h: Undo last change for makecontext.
85080
85081 2011-11-11  Andreas Schwab  <schwab@redhat.com>
85082
85083         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
85084
85085         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
85086         * setjmp/setjmp.h: Mark functions as non-leaf.
85087         * setjmp/bits/setjmp2.h: Likewise.
85088         * stdlib/ucontext.h: Likewise.
85089
85090 2011-11-10  Andreas Schwab  <schwab@redhat.com>
85091
85092         * malloc/arena.c (_int_new_arena): Don't increment narenas.
85093         (reused_arena): Don't check arena limit.
85094         (arena_get2): Atomically check arena limit.
85095
85096 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
85097
85098         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
85099         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
85100
85101         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
85102         instructions.
85103
85104 2011-11-07  Andreas Schwab  <schwab@redhat.com>
85105
85106         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
85107         handler when locking.
85108
85109         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
85110         Fix size of allocated buffer.
85111
85112 2011-11-04  Andreas Schwab  <schwab@redhat.com>
85113
85114         [BZ #10103]
85115         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
85116         declarations for long double functions.
85117         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
85118
85119         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
85120
85121 2011-11-03  Andreas Schwab  <schwab@redhat.com>
85122
85123         * nscd/nscd.c (main): Don't start AVC thread until credentials are
85124         installed.
85125
85126         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
85127         is disabled.
85128
85129 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
85130
85131         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
85132
85133 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
85134
85135         * include/alloca.h (stackinfo_alloca_round): Define.
85136         (extend_alloca): Use it.
85137         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
85138         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
85139         here.
85140
85141         * scripts/check-local-headers.sh: Ignore libaudit.h.
85142
85143         * nscd/Makefile (extra-objs): Make recursively expanded.
85144
85145 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
85146
85147         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
85148         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
85149
85150         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
85151         * posix/tst-rfc3484-2.c: Likewise.
85152         * posix/tst-rfc3484-3.c: Likewise.
85153
85154         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
85155         process_vm_writev.
85156         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
85157         process_vm_writev.
85158         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
85159         process_vm_writev from libc using GLIBC_2.15 version.
85160
85161         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
85162
85163 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
85164
85165         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
85166         stack usage.
85167
85168 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
85169
85170         [BZ #13367]
85171         * nss/getent.c (initgroups_keys): Show error message in case no group
85172         names are given.
85173
85174         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
85175         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
85176         __bump_nl_timestamp.
85177         * nscd/connections (nscd_init): When host database is served open
85178         netlink socket and request notification about configuration changes.
85179         (main_loop_poll): Track netlink file descriptor and bump timestamp
85180         in case data becomes available.
85181         (main_loop_epoll): Likewise.
85182         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
85183         (database_pers_head): Add extra_data fileds.
85184         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
85185         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
85186         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
85187         Adjust caller.
85188         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
85189         in6ai data, call __free_in6ai.
85190         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
85191         Add -DHAVE_NETLINK.
85192         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
85193         interface information.  Reuse previous data if netlink timestamp
85194         is not changed.
85195         (__bump_nl_timestamp): New function.
85196         (__free_in6ai): New function.
85197
85198 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
85199
85200         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
85201         close_not_cancel_no_status here.
85202         (__check_pf): Reorganize code a bit to not call close twice if OOM.
85203
85204 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
85205
85206         [BZ #13276]
85207         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
85208         return value.
85209
85210         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
85211         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
85212         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
85213
85214 2011-07-03  Andreas Jaeger  <aj@suse.de>
85215
85216         [BZ #10709]
85217         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
85218         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
85219         * math/libm-test.inc (sin_test): Add test case.
85220
85221 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
85222
85223         [BZ #13337]
85224         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
85225         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
85226
85227         * elf/chroot_canon.c (chroot_canon): Cleanups.
85228
85229         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
85230
85231         [BZ #13335]
85232         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
85233         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
85234
85235         * string/test-strchr.c: Make usable for strchrnul testing.
85236         * string/test-strchrnul.c: New file.
85237         * string/Makefile (strop-tests): Add strchrnul.
85238
85239         * po/it.po: Update from translation team.
85240         * po/es.po: Likewise.
85241
85242 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
85243
85244         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
85245         the three constants needed as parameters.  Drop the others.
85246         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
85247         __m128i_strloadu_tolower.
85248         Create and initialize variable zero and use it in all the places
85249         where _mm_setzero_si128 was used.
85250
85251         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
85252         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
85253         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
85254         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
85255         anymore.
85256         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
85257         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
85258         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
85259         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
85260         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
85261         __mpranred, __mptan.
85262         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
85263         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
85264         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
85265         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
85266         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
85267         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
85268         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
85269         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
85270         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
85271
85272 2011-10-28  Andreas Schwab  <schwab@redhat.com>
85273
85274         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
85275         redefine if SHARED.
85276         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
85277
85278         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
85279         wide char related routines to wcsmbs subdir.
85280
85281 2011-10-27  Andreas Schwab  <schwab@redhat.com>
85282
85283         [BZ #13344]
85284         * misc/sys/cdefs.h (__THROWNL): Define.
85285         * posix/unistd.h: Use __THREADNL instead of __THREAD
85286         for memory synchronization functions.
85287
85288 2011-10-26  Roland McGrath  <roland@hack.frob.com>
85289
85290         [BZ #13349]
85291         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
85292         doesn't exist.
85293         * manual/stdio.texi (Obstack Streams): Node removed.
85294
85295 2011-10-26  Andreas Schwab  <schwab@redhat.com>
85296
85297         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
85298         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
85299         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
85300
85301         * math/math_private.h (math_force_eval): Allow non-addressable
85302         arguments.
85303         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
85304
85305 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
85306
85307         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
85308         file is not needed.
85309
85310         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
85311         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
85312         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
85313         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
85314         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
85315         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
85316         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
85317         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
85318         Add AVX variants.
85319         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
85320         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
85321         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
85322         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
85323         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
85324         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
85325         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
85326         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
85327         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
85328         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
85329         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
85330         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
85331         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
85332         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
85333         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
85334         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
85335         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
85336         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
85337         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
85338
85339         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
85340         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
85341
85342         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
85343         place.  Use VEX encoding when compiling for AVX.
85344
85345 2011-10-25  Andreas Schwab  <schwab@redhat.com>
85346
85347         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
85348         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
85349
85350         * string/test-strchr.c (do_test): Don't generate NUL bytes.
85351
85352 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
85353
85354         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
85355         useless if() expression.
85356         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
85357         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
85358         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
85359         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
85360         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
85361         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
85362         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
85363         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
85364         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
85365         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
85366         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
85367         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
85368         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
85369         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
85370         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
85371         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
85372         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
85373         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
85374         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
85375
85376         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
85377
85378 2011-10-25  Andreas Schwab  <schwab@redhat.com>
85379
85380         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
85381         condition.
85382         * elf/dl-fini.c (_dl_sort_fini): Likewise.
85383
85384 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
85385
85386         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
85387         .text section.  Avoid duplicate constants.
85388         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
85389         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
85390         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
85391         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
85392         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
85393         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
85394         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
85395         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
85396         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
85397         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
85398         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
85399         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
85400         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
85401         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
85402         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
85403         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
85404         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
85405         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
85406         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
85407         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
85408         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
85409         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
85410         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
85411         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
85412         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
85413         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
85414         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
85415         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
85416         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
85417         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
85418         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
85419         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
85420         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
85421         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
85422         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
85423         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
85424         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
85425         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
85426         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
85427         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
85428         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
85429         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
85430         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
85431         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
85432         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
85433
85434 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
85435
85436         * sysdeps/x86_64/dla.h: Move to ...
85437         * sysdeps/x86_64/fpu/dla.h: ...here.
85438         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
85439         situations.  Use __builtin_fma only for gcc 4.6 and up.
85440
85441         * config.make.in: Add have-mfma4 entry.
85442         * configure.in: Substitute libc_cv_cc_fma4.
85443         * math/Makefile (dbl-only-routines): Add sincostab.
85444         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
85445         Use __sincostab not sincos.
85446         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
85447         name is a macro.
85448         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
85449         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
85450         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
85451         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
85452         using __copysign.
85453         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
85454         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
85455         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
85456         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
85457         and __inv.
85458         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
85459         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
85460         __copysign.
85461         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
85462         define aliases when function name is a macro.
85463         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
85464         sysdeps/ieee754/dbl-64/sincos.tbl.
85465         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
85466         fma4-enabled routines.
85467         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
85468         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
85469         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
85470         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
85471         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
85472         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
85473         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
85474         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
85475         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
85476         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
85477         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
85478         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
85479         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
85480         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
85481         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
85482         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
85483         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
85484         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
85485         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
85486         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
85487         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
85488         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
85489         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
85490         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
85491         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
85492         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
85493         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
85494         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
85495         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
85496         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
85497
85498         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
85499         rename.
85500         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
85501         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
85502         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
85503         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
85504         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
85505         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
85506         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
85507         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
85508
85509 2011-10-24  Andreas Schwab  <schwab@redhat.com>
85510
85511         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
85512
85513 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
85514
85515         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
85516
85517         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
85518         prediction.
85519         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
85520
85521         * string/strnlen.c: Don't define STRNLEN, reverse logic.
85522         Remove unused variable magic_bits.
85523         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
85524
85525         * string/strnlen.c: Define and use STRNLEN macro.
85526         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
85527         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
85528         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
85529         * wcsmbs/wcslen.c: Define and use WCSLEN.
85530         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
85531         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
85532         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
85533         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
85534         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
85535         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
85536         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
85537
85538 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
85539
85540         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
85541         strnlen-sse2-no-bsf.
85542         Rename strlen-no-bsf to strlen-sse2-no-bsf.
85543         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
85544         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
85545         Add strnlen support.
85546         (USE_AS_STRNLEN): New macro.
85547         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
85548         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
85549         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
85550         * sysdeps/x86_64/wcslen.S: New file.
85551
85552 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
85553
85554         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
85555         XMM-moves are used for copying on small sizes.
85556
85557 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
85558
85559         * wcsmbs/Makefile (strop-tests): Add wcschr.
85560         * wcsmbs/test-wcschr.c: New file.
85561         * string/test-strchr.c: Update.
85562         Add wcschr support.
85563         (WIDE): New macro.
85564
85565 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
85566
85567         * wcsmbs/Makefile (strop-tests): Add wcslen.
85568         * wcsmbs/test-wcslen.c: New file.
85569         * string/test-strlen.c: Update.
85570         Add wcslen support.
85571         (WIDE): New macro.
85572
85573 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
85574
85575         * po/it.po: Update from translation team.
85576
85577 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
85578
85579         * sysdeps/x86_64/wcscmp.S: Update.
85580         Fix wrong comparison semantics.
85581         wcscmp shall use signed comparison not unsigned.
85582         Don't use substraction to avoid overflow bug.
85583         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
85584         * wcsmbc/wcscmp.c: Likewise.
85585         * string/test-strcmp.c: Likewise.
85586         Add new tests to check cases with negative values.
85587
85588 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
85589
85590         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
85591         * sysdeps/x86_64/dla.h: ...here.  New file.
85592         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
85593         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
85594         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
85595         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
85596         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
85597         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
85598         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
85599         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
85600         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
85601
85602 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
85603
85604         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
85605         __ynl_finite aliases.
85606
85607 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
85608
85609         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
85610
85611         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
85612         define DLA_FMA.
85613         [DLA_FMA] (EMULV): Use DLA_FMA.
85614         [DLA_FMA] (MUL12): Use EMULV.
85615         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
85616         that are not needed.
85617         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
85618         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
85619         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
85620         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
85621         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
85622         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
85623         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
85624
85625 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
85626
85627         * math/s_nan.c: Undef __nan.
85628         * math/s_nanf.c: Undef __nanf.
85629         * math/s_nanl.c: Undef __nanl.
85630         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
85631         "math_private.h".
85632
85633 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
85634
85635         * math/s_catan.c: Add branch predictions.
85636         * math/s_catanf.c: Likewise.
85637         * math/s_catanh.c: Likewise.
85638         * math/s_catanhf.c: Likewise.
85639         * math/s_catanhl.c: Likewise.
85640         * math/s_catanl.c: Likewise.
85641         * math/s_cexp.c: Likewise.
85642         * math/s_cexpf.c: Likewise.
85643         * math/s_cexpl.c: Likewise.
85644         * math/s_clog.c: Likewise.
85645         * math/s_clog10.c: Likewise.
85646         * math/s_clog10f.c: Likewise.
85647         * math/s_clog10l.c: Likewise.
85648         * math/s_clogf.c: Likewise.
85649         * math/s_clogl.c: Likewise.
85650         * math/s_csqrt.c: Likewise.
85651         * math/s_csqrtf.c: Likewise.
85652         * math/s_csqrtl.c: Likewise.
85653         * math/s_ctanf.c: Likewise.
85654         * math/s_ctanh.c: Likewise.
85655         * math/s_ctanhf.c: Likewise.
85656         * math/s_ctanhl.c: Likewise.
85657         * math/s_ctanl.c: Likewise.
85658
85659         * math/math_private.h: Define __nan, __nanf, __nanl.
85660         * math/s_cacosh.c: Include <math_private.h>.
85661         * math/s_cacoshl.c: Likewise.
85662         * math/s_casinh.c: Likewise.
85663         * math/s_casinhf.c: Likewise.
85664         * math/s_casinhl.c: Likewise.
85665         * math/s_ccos.c: Rely entire on ccosh.
85666         * math/s_ccosf.c: Rely entire on ccoshf.
85667         * math/s_ccosl.c: Rely entirely on ccoshl.
85668         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
85669         Remove tests for FE_INVALID.
85670         * math/s_ccoshf.c: Likewise.
85671         * math/s_ccoshl.c: Likewise.
85672         * math/s_csin.c: Likewise.
85673         * math/s_csinf.c: Likewise.
85674         * math/s_csinh.c Likewise.
85675         * math/s_csinhf.c: Likewise.
85676         * math/s_csinhl.c: Likewise.
85677         * math/s_csinl.c: Likewise.
85678         * math/s_ctan.c: Likewise.
85679         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
85680         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
85681         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
85682
85683 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
85684
85685         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
85686         compilation problems.
85687
85688         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
85689         __builtin_expect.
85690
85691 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
85692
85693         * sysdeps/i386/configure.in: Test for -mfma4 option.
85694         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
85695         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
85696         COMMON_CPUID_INDEX_80000001.
85697         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
85698         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
85699         use it if FMA3 is not supported.
85700         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
85701
85702         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
85703         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
85704
85705 2011-10-20  Andreas Schwab  <schwab@redhat.com>
85706
85707         [BZ #12892]
85708         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
85709         it would create a cycle with a link time dependency.
85710
85711 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
85712
85713         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
85714         instruction.
85715         * string/Makefile (strop-tests): Add rawmemchr.
85716         * string/test-rawmemchr.c: New file.
85717
85718         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
85719         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
85720         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
85721         when compiling str{,n}casecmp and when AVX is available.  Hook up
85722         new optimized code in initializers.
85723
85724 2011-10-19  Andreas Schwab  <schwab@redhat.com>
85725
85726         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
85727         __feraiseexcept instead of feraiseexcept.
85728
85729 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
85730
85731         * math/math_private.h: Define defaults for libc_fetestexcept and
85732         libc_feupdateenv.
85733         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
85734         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
85735         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
85736         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
85737         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
85738         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
85739         libc_fetestexcept and libc_feupdateenv.
85740
85741         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
85742         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
85743         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
85744         * sysdeps/x86_64/fpu/math_private.h: Define special version of
85745         libc_feholdexcept_setround.
85746
85747         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
85748         Add s_nearbyint-c and s_nearbyintf-c.
85749         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
85750         nearbyintf inlines.
85751         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
85752         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
85753         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
85754         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
85755
85756         * math/math_private.h: Define defaults for libc_fegetround,
85757         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
85758         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
85759         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
85760         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
85761         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
85762         standard functions.
85763         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
85764         Remove comments and hacks for old compiler versions.
85765         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
85766         libc_fegetround, libc_fesetround, libc_feholdexcept, and
85767         libc_feholdexceptl.
85768
85769 2011-10-18  Andreas Schwab  <schwab@redhat.com>
85770
85771         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
85772         (__feraiseexcept_renamed): Add __NTH.
85773         (feraiseexcept): Add __NTH.  Rename local variables to fix
85774         namespace violations.
85775
85776 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
85777
85778         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
85779
85780         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
85781
85782         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
85783         recently added interfaces.
85784         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
85785
85786         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
85787         about macro parameter expansion.
85788
85789         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
85790         __NO_MATH_INLINES is defined.  Cleanups.
85791
85792         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
85793         and __floorf is target has SSE4.1.
85794         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
85795         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
85796         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
85797         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
85798
85799         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
85800         name.
85801         (floorf): Likewise.
85802
85803         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
85804
85805 2011-10-17  Andreas Schwab  <schwab@redhat.com>
85806
85807         * misc/sys/cdefs.h: Fix last change.
85808
85809         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
85810         database lookup.
85811
85812 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
85813
85814         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
85815
85816         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
85817         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
85818         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
85819         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
85820         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
85821         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
85822         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
85823         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
85824         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
85825         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
85826         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
85827         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
85828         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
85829         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
85830         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
85831         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
85832         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
85833         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
85834         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
85835         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
85836         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
85837         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
85838
85839         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
85840         ceil, ceilf, floor, floorf.
85841
85842         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
85843         Perform IRELATIVE relocations last.
85844
85845         * elf/do-rel.h: Add another parameter nrelative, replacing the
85846         local variable with the same name.  Change name of the function
85847         to end in Rel or Rela (uppercase).
85848         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
85849         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
85850         elf_dynamic_do_##reloc function.
85851
85852 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
85853
85854         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
85855         is sufficient, at least on modern CPUs.
85856
85857         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
85858
85859         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
85860         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
85861
85862         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
85863         __expl_finite.
85864         * math/bits/math-finite.h: Add entries for exp.
85865         * math/e_expl.c: Add __*_finite alias.
85866         * sysdeps/i386/fpu/e_exp.S: Likewise.
85867         * sysdeps/i386/fpu/e_expf.S: Likewise.
85868         * sysdeps/i386/fpu/e_expl.c: Likewise.
85869         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
85870         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
85871         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
85872         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
85873         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
85874         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
85875         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
85876
85877         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
85878         is sufficient, at least on modern CPUs.
85879
85880         * ctype/ctype-info.c (__ctype_init): Define.
85881         * include/ctype.h (__ctype_init): Declare.
85882         (__ctype_b_loc): The variable is always initialized.
85883         (__ctype_toupper_loc): Likewise.
85884         (__ctype_tolower_loc): Likewise.
85885         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
85886         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
85887
85888 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
85889
85890         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
85891
85892         * configure.in: Also look in $cxxmachine/include for C++ system
85893         headers.
85894
85895 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
85896
85897         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
85898         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
85899         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
85900         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
85901         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
85902         (USE_AS_WMEMCMP): New macro.
85903         Fixing indents.
85904         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
85905         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
85906         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
85907         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
85908         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
85909         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
85910         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
85911         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
85912         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
85913         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
85914         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
85915         (USE_AS_WMEMCMP): New macro.
85916         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
85917         * sysdeps/string/test-memcmp.c: Update.
85918         Fix simple_wmemcmp.
85919         Add new tests.
85920         * wcsmbs/wmemcmp.c: Update.
85921         (WMEMCMP): New macro.
85922         Fix overflow bug.
85923
85924 2011-10-12  Andreas Jaeger  <aj@suse.de>
85925
85926         [BZ #13268]
85927         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
85928
85929 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
85930
85931         * libio/iofwide.c (do_length): Avoid warning.
85932
85933         * ctype/ctype.h (__isctype_f): Add missing __THROW.
85934
85935 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
85936
85937         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
85938
85939         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
85940         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
85941         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
85942         * sysdeps/i386/i686/fpu/e_log.S: New file.
85943         * sysdeps/i386/i686/fpu/e_logf.S: New file.
85944         * sysdeps/i386/i686/fpu/e_logl.S: New file.
85945
85946         * ctype/ctype.h: Add support for inlined isXXX functions when
85947         compiling C++ code.
85948
85949 2011-10-14  Andreas Schwab  <schwab@redhat.com>
85950
85951         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
85952
85953         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
85954
85955 2011-10-13  Roland McGrath  <roland@hack.frob.com>
85956
85957         [BZ #13291]
85958         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
85959
85960 2011-10-13  Andreas Schwab  <schwab@redhat.com>
85961
85962         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
85963         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
85964         feraiseexcept.
85965
85966         * sysdeps/x86_64/memrchr.S: Check for zero size.
85967
85968         * string/stratcliff.c: Add memrchr tests.
85969
85970 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
85971
85972         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
85973         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
85974         rawmemchr-sse2 rawmemchr-sse2-bsf.
85975         * sysdeps/i386/i686/multiarch/memchr.S: New file.
85976         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
85977         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
85978         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
85979         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
85980         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
85981         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
85982         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
85983         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
85984         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
85985         * string/memrchr.c (MEMRCHR): New macro.
85986
85987 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
85988
85989         Add integration with gcc's -ffinite-math-only and optimize wrapper
85990         functions in libm.
85991         * Versions.def: Define GLIBC_2.15 version for libm.
85992         * math/Makefile (headers): Add bits/math-finite.h.
85993         * math/bits/math-finite.h: New file.
85994         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
85995         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
85996         * math/e_acoshl.c: Add __*_finite alias.
85997         * math/e_acosl.c: Likewise.
85998         * math/e_asinl.c: Likewise.
85999         * math/e_atan2l.c: Likewise.
86000         * math/e_atanhl.c: Likewise.
86001         * math/e_coshl.c: Likewise.
86002         * math/e_exp10.c: Likewise.
86003         * math/e_exp10f.c: Likewise.
86004         * math/e_exp10l.c: Likewise.
86005         * math/e_exp2l.c: Likewise.
86006         * math/e_fmodl.c: Likewise.
86007         * math/e_gammal_r.c: Likewise.
86008         * math/e_hypotl.c: Likewise.
86009         * math/e_j0l.c: Likewise.
86010         * math/e_j1l.c: Likewise.
86011         * math/e_jnl.c: Likewise.
86012         * math/e_lgammal_r.c: Likewise.
86013         * math/e_log10l.c: Likewise.
86014         * math/e_log2l.c: Likewise.
86015         * math/e_logl.c: Likewise.
86016         * math/e_powl.c: Likewise.
86017         * math/e_sinhl.c: Likewise.
86018         * math/e_sqrtl.c: Likewise.
86019         * math/e_scalb.c: Completely rewritten and optimized.
86020         * math/e_scalbf.c: Likewise.
86021         * math/e_scalbl.c: Likewise.
86022         * math/w_acos.c: Likewise.
86023         * math/w_acosf.c: Likewise.
86024         * math/w_acosl.c: Likewise.
86025         * math/w_acosh.c: Likewise.
86026         * math/w_acoshf.c: Likewise.
86027         * math/w_acoshl.c: Likewise.
86028         * math/w_asin.c: Likewise.
86029         * math/w_asinf.c: Likewise.
86030         * math/w_asinl.c: Likewise.
86031         * math/w_atan2.c: Likewise.
86032         * math/w_atan2f.c: Likewise.
86033         * math/w_atan2l.c: Likewise.
86034         * math/w_atanh.c: Likewise.
86035         * math/w_atanhf.c: Likewise.
86036         * math/w_atanhl.c: Likewise.
86037         * math/w_exp10.c: Likewise.
86038         * math/w_exp10f.c: Likewise.
86039         * math/w_exp10l.c: Likewise.
86040         * math/w_fmod.c: Likewise.
86041         * math/w_fmodf.c: Likewise.
86042         * math/w_fmodl.c: Likewise.
86043         * math/w_j0.c: Likewise.
86044         * math/w_j0f.c: Likewise.
86045         * math/w_j0l.c: Likewise.
86046         * math/w_j1.c: Likewise.
86047         * math/w_j1f.c: Likewise.
86048         * math/w_j1l.c: Likewise.
86049         * math/w_jn.c: Likewise.
86050         * math/w_jnf.c: Likewise.
86051         * math/w_log.c: Likewise.
86052         * math/w_logf.c: Likewise.
86053         * math/w_logl.c: Likewise.
86054         * math/w_log10.c: Likewise.
86055         * math/w_log10f.c: Likewise.
86056         * math/w_log10l.c: Likewise.
86057         * math/w_log2.c: Likewise.
86058         * math/w_log2f.c: Likewise.
86059         * math/w_log2l.c: Likewise.
86060         * math/w_pow.c: Likewise.
86061         * math/w_powf.c: Likewise.
86062         * math/w_powl.c: Likewise.
86063         * math/w_remainder.c: Likewise.
86064         * math/w_remainderf.c: Likewise.
86065         * math/w_remainderl.c: Likewise.
86066         * math/w_scalb.c: Likewise.
86067         * math/w_scalbf.c: Likewise.
86068         * math/w_scalbl.c: Likewise.
86069         * math/w_sqrt.c: Likewise.
86070         * math/w_sqrtf.c: Likewise.
86071         * math/w_sqrtl.c: Likewise.
86072         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
86073         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
86074         used.
86075         * math/math_private.h: Declare __kernel_standard_f.
86076         * math/w_cosh.c: Remove cruft and optimize a bit.
86077         * math/w_coshf.c: Likewise.
86078         * math/w_coshl.c: Likewise.
86079         * math/w_exp2.c: Likewise.
86080         * math/w_exp2f.c: Likewise.
86081         * math/w_exp2l.c: Likewise.
86082         * math/w_hypot.c: Likewise.
86083         * math/w_hypotf.c: Likewise.
86084         * math/w_hypotl.c: Likewise.
86085         * math/w_lgamma.c: Likewise.
86086         * math/w_lgamma_r.c: Likewise.
86087         * math/w_lgammaf.c: Likewise.
86088         * math/w_lgammaf_r.c: Likewise.
86089         * math/w_lgammal.c: Likewise.
86090         * math/w_lgammal_r.c: Likewise.
86091         * math/w_sinh.c: Likewise.
86092         * math/w_sinhf.c: Likewise.
86093         * math/w_sinhl.c: Likewise.
86094         * math/w_tgamma.c: Likewise.
86095         * math/w_tgammaf.c: Likewise.
86096         * math/w_tgammal.c: Likewise.
86097         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
86098         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
86099         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
86100         Minor optimizations.  Pretty printing.  Remove cruft.
86101         * sysdeps/i386/fpu/e_acosf.S: Likewise.
86102         * sysdeps/i386/fpu/e_acosh.S: Likewise.
86103         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
86104         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
86105         * sysdeps/i386/fpu/e_acosl.c: Likewise.
86106         * sysdeps/i386/fpu/e_asin.S: Likewise.
86107         * sysdeps/i386/fpu/e_asinf.S: Likewise.
86108         * sysdeps/i386/fpu/e_atan2.S: Likewise.
86109         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
86110         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
86111         * sysdeps/i386/fpu/e_atanh.S: Likewise.
86112         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
86113         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
86114         * sysdeps/i386/fpu/e_exp10.S: Likewise.
86115         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
86116         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
86117         * sysdeps/i386/fpu/e_exp2.S: Likewise.
86118         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
86119         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
86120         * sysdeps/i386/fpu/e_fmod.S: Likewise.
86121         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
86122         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
86123         * sysdeps/i386/fpu/e_hypot.S: Likewise.
86124         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
86125         * sysdeps/i386/fpu/e_log.S: Likewise.
86126         * sysdeps/i386/fpu/e_log10.S: Likewise.
86127         * sysdeps/i386/fpu/e_log10f.S: Likewise.
86128         * sysdeps/i386/fpu/e_log10l.S: Likewise.
86129         * sysdeps/i386/fpu/e_log2.S: Likewise.
86130         * sysdeps/i386/fpu/e_log2f.S: Likewise.
86131         * sysdeps/i386/fpu/e_log2l.S: Likewise.
86132         * sysdeps/i386/fpu/e_logf.S: Likewise.
86133         * sysdeps/i386/fpu/e_logl.S: Likewise.
86134         * sysdeps/i386/fpu/e_pow.S: Likewise.
86135         * sysdeps/i386/fpu/e_powf.S: Likewise.
86136         * sysdeps/i386/fpu/e_powl.S: Likewise.
86137         * sysdeps/i386/fpu/e_remainder.S: Likewise.
86138         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
86139         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
86140         * sysdeps/i386/fpu/e_scalb.S: Likewise.
86141         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
86142         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
86143         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
86144         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
86145         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
86146         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
86147         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
86148         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
86149         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
86150         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
86151         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
86152         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
86153         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
86154         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
86155         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
86156         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
86157         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
86158         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
86159         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
86160         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
86161         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
86162         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
86163         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
86164         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
86165         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
86166         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
86167         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
86168         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
86169         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
86170         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
86171         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
86172         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
86173         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
86174         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
86175         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
86176         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
86177         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
86178         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
86179         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
86180         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
86181         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
86182         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
86183         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
86184         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
86185         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
86186         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
86187         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
86188         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
86189         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
86190         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
86191         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
86192         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
86193         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
86194         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
86195         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
86196         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
86197         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
86198         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
86199         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
86200         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
86201         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
86202         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
86203         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
86204         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
86205         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
86206         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
86207         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
86208         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
86209         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
86210         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
86211         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
86212         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
86213         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
86214         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
86215         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
86216         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
86217         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
86218         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
86219         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
86220         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
86221         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
86222         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
86223         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
86224         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
86225         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
86226         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
86227         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
86228         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
86229         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
86230         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
86231         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
86232         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
86233         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
86234         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
86235         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
86236         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
86237         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
86238         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
86239         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
86240         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
86241         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
86242         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
86243         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
86244         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
86245         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
86246         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
86247         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
86248         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
86249         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
86250         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
86251         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
86252         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
86253         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
86254         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
86255         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
86256         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
86257         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
86258         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
86259         (__isnanf): Likewise.
86260         (__isinf_ns): Likewise.
86261         (__isinf_nsf): Likewise.
86262         (__finite): Likewise.
86263         (__finitef): Likewise.
86264         (__ieee754_sqrt): Define as macro.
86265         (__ieee754_sqrtf): Define as macro.
86266         (__ieee754_sqrtl): Define as macro.
86267         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
86268         inlined copy.
86269         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
86270         __FINITE_MATH_ONLY__ consistent.
86271         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
86272
86273 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
86274
86275         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
86276         of rawmemchr.
86277
86278         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
86279
86280 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
86281
86282         * po/ja.po: Update from translation team.
86283
86284 2011-10-08  Roland McGrath  <roland@hack.frob.com>
86285
86286         * locale/programs/locarchive.c (prepare_address_space): New function.
86287         (create_archive, enlarge_archive, open_archive): Use it.
86288
86289         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
86290         inside [SHARED], where it is used.
86291
86292         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
86293
86294         * nss/getent.c (netgroup_keys): Remove unused variable.
86295         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
86296
86297 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
86298
86299         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
86300         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
86301         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
86302         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
86303         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
86304         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
86305         * math/Makefile (libm-calls): Add s_isinf_ns.
86306         * math/divtc3.c: Use __isinf_nsl instead of isinf.
86307         * math/multc3.c: Likewise.
86308         * math/s_casin.c: Likewise.
86309         * math/s_casinf.c: Likewise.
86310         * math/s_casinl.c: Likewise.
86311         * math/s_ccos.c: Likewise.
86312         * math/s_ccosf.c: Likewise.
86313         * math/s_ccosl.c: Likewise.
86314         * math/s_ctan.c: Likewise.
86315         * math/s_ctanf.c: Likewise.
86316         * math/s_ctanh.c: Likewise.
86317         * math/s_ctanhf.c: Likewise.
86318         * math/s_ctanhl.c: Likewise.
86319         * math/s_ctanl.c: Likewise.
86320         * math/w_fmod.c: Likewise.
86321         * math/w_fmodf.c: Likewise.
86322         * math/w_fmodl.c: Likewise.
86323         * math/w_remainder.c: Likewise.
86324         * math/w_remainderf.c: Likewise.
86325         * math/w_remainderl.c: Likewise.
86326         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
86327         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
86328         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
86329         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
86330         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
86331         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
86332         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
86333         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
86334
86335         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
86336         of the number.
86337         * stdio-common/printf_fphex.c: Likewise.
86338         * stdio-common/printf_size.c: Likewise.
86339
86340         * math/e_exp10.c: Include math_private.h using <...> not "...".
86341         * math/e_exp10f.c: Likewise.
86342         * math/e_exp10l.c: Likewise.
86343         * math/e_exp2l.c: Likewise.
86344         * math/e_j0l.c: Likewise.
86345         * math/e_j1l.c: Likewise.
86346         * math/e_jnl.c: Likewise.
86347         * math/e_lgammal_r.c: Likewise.
86348         * math/e_rem_pio2l.c: Likewise.
86349         * math/e_scalb.c: Likewise.
86350         * math/e_scalbf.c: Likewise.
86351         * math/e_scalbl.c: Likewise.
86352         * math/k_cosl.c: Likewise.
86353         * math/k_sinl.c: Likewise.
86354         * math/k_tanl.c: Likewise.
86355         * math/s_cacoshf.c: Likewise.
86356         * math/s_catan.c: Likewise.
86357         * math/s_catanf.c: Likewise.
86358         * math/s_catanh.c: Likewise.
86359         * math/s_catanhf.c: Likewise.
86360         * math/s_catanhl.c: Likewise.
86361         * math/s_catanl.c: Likewise.
86362         * math/s_ccosh.c: Likewise.
86363         * math/s_ccoshf.c: Likewise.
86364         * math/s_ccoshl.c: Likewise.
86365         * math/s_cexp.c: Likewise.
86366         * math/s_cexpf.c: Likewise.
86367         * math/s_cexpl.c: Likewise.
86368         * math/s_clog.c: Likewise.
86369         * math/s_clog10.c: Likewise.
86370         * math/s_clog10f.c: Likewise.
86371         * math/s_clog10l.c: Likewise.
86372         * math/s_clogf.c: Likewise.
86373         * math/s_clogl.c: Likewise.
86374         * math/s_csin.c: Likewise.
86375         * math/s_csinf.c: Likewise.
86376         * math/s_csinh.c: Likewise.
86377         * math/s_csinhf.c: Likewise.
86378         * math/s_csinhl.c: Likewise.
86379         * math/s_csinl.c: Likewise.
86380         * math/s_csqrt.c: Likewise.
86381         * math/s_csqrtf.c: Likewise.
86382         * math/s_csqrtl.c: Likewise.
86383         * math/s_ctan.c: Likewise.
86384         * math/s_ctanf.c: Likewise.
86385         * math/s_ctanh.c: Likewise.
86386         * math/s_ctanhf.c: Likewise.
86387         * math/s_ctanhl.c: Likewise.
86388         * math/s_ctanl.c: Likewise.
86389         * math/s_ldexp.c: Likewise.
86390         * math/s_ldexpf.c: Likewise.
86391         * math/s_ldexpl.c: Likewise.
86392         * math/s_significand.c: Likewise.
86393         * math/s_significandf.c: Likewise.
86394         * math/s_significandl.c: Likewise.
86395         * math/w_acos.c: Likewise.
86396         * math/w_acosf.c: Likewise.
86397         * math/w_acosh.c: Likewise.
86398         * math/w_acoshf.c: Likewise.
86399         * math/w_acoshl.c: Likewise.
86400         * math/w_acosl.c: Likewise.
86401         * math/w_asin.c: Likewise.
86402         * math/w_asinf.c: Likewise.
86403         * math/w_asinl.c: Likewise.
86404         * math/w_atan2.c: Likewise.
86405         * math/w_atan2f.c: Likewise.
86406         * math/w_atan2l.c: Likewise.
86407         * math/w_atanh.c: Likewise.
86408         * math/w_atanhf.c: Likewise.
86409         * math/w_atanhl.c: Likewise.
86410         * math/w_cosh.c: Likewise.
86411         * math/w_coshf.c: Likewise.
86412         * math/w_coshl.c: Likewise.
86413         * math/w_dremf.c: Likewise.
86414         * math/w_exp10.c: Likewise.
86415         * math/w_exp10f.c: Likewise.
86416         * math/w_exp10l.c: Likewise.
86417         * math/w_exp2.c: Likewise.
86418         * math/w_exp2f.c: Likewise.
86419         * math/w_fmod.c: Likewise.
86420         * math/w_fmodf.c: Likewise.
86421         * math/w_fmodl.c: Likewise.
86422         * math/w_hypot.c: Likewise.
86423         * math/w_hypotf.c: Likewise.
86424         * math/w_hypotl.c: Likewise.
86425         * math/w_j0.c: Likewise.
86426         * math/w_j0f.c: Likewise.
86427         * math/w_j0l.c: Likewise.
86428         * math/w_j1.c: Likewise.
86429         * math/w_j1f.c: Likewise.
86430         * math/w_j1l.c: Likewise.
86431         * math/w_jn.c: Likewise.
86432         * math/w_jnf.c: Likewise.
86433         * math/w_jnl.c: Likewise.
86434         * math/w_lgamma.c: Likewise.
86435         * math/w_lgamma_r.c: Likewise.
86436         * math/w_lgammaf.c: Likewise.
86437         * math/w_lgammaf_r.c: Likewise.
86438         * math/w_lgammal.c: Likewise.
86439         * math/w_lgammal_r.c: Likewise.
86440         * math/w_log.c: Likewise.
86441         * math/w_log10.c: Likewise.
86442         * math/w_log10f.c: Likewise.
86443         * math/w_log10l.c: Likewise.
86444         * math/w_log2.c: Likewise.
86445         * math/w_log2f.c: Likewise.
86446         * math/w_log2l.c: Likewise.
86447         * math/w_logf.c: Likewise.
86448         * math/w_logl.c: Likewise.
86449         * math/w_pow.c: Likewise.
86450         * math/w_powf.c: Likewise.
86451         * math/w_powl.c: Likewise.
86452         * math/w_remainder.c: Likewise.
86453         * math/w_remainderf.c: Likewise.
86454         * math/w_remainderl.c: Likewise.
86455         * math/w_scalb.c: Likewise.
86456         * math/w_scalbf.c: Likewise.
86457         * math/w_scalbl.c: Likewise.
86458         * math/w_sinh.c: Likewise.
86459         * math/w_sinhf.c: Likewise.
86460         * math/w_sinhl.c: Likewise.
86461         * math/w_sqrt.c: Likewise.
86462         * math/w_sqrtf.c: Likewise.
86463         * math/w_sqrtl.c: Likewise.
86464         * math/w_tgamma.c: Likewise.
86465         * math/w_tgammaf.c: Likewise.
86466         * math/w_tgammal.c: Likewise.
86467
86468         * po/ja.po: Update from translation team.
86469
86470 2011-09-29  Andreas Jaeger  <aj@suse.de>
86471
86472         [BZ #13179]
86473         * sunrpc/netname.c (netname2host): Fix logic.
86474
86475         [BZ #6779]
86476         [BZ #6783]
86477         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
86478         correctly.
86479         * math/w_remainder.c (__remainder): Likewise.
86480         * math/w_remainderf.c (__remainderf): Likewise.
86481         * math/libm-test.inc (remainder_test): Add test cases.
86482
86483 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
86484
86485         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
86486         sdiv_qrnnd.
86487
86488 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
86489
86490         * string/test-memcmp.c: Avoid unncessary #defines.
86491         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
86492
86493 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
86494
86495         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
86496         Use new sse2 version for core i3 - i7 as it's faster
86497         than sse42 version.
86498         (bit_Prefer_PMINUB_for_stringop): New.
86499         * sysdeps/x86_64/rawmemchr.S: Update.
86500         Replace with faster SSE2 version.
86501         * sysdeps/x86_64/memrchr.S: New file.
86502         * sysdeps/x86_64/memchr.S: Update.
86503         Replace with faster SSE2 version.
86504
86505 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
86506
86507         * elf/dl-load.c (lose): Add cast to avoid warning.
86508
86509 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
86510
86511         * po/ca.po: Update from translation team.
86512
86513         * inet/getnetgrent_r.c: Hook up nscd.
86514         * nscd/Makefile (routines): Add nscd_netgroup.
86515         (nscd-modules): Add netgroupcache.
86516         (CFLAGS-netgroupcache.c): Define.
86517         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
86518         (cache_search): Add const to second parameter.
86519         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
86520         INNETGR.
86521         (dbs): Add netgrdb entry.
86522         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
86523         (verify_persistent_db): Handle netgrdb.
86524         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
86525         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
86526         GETFDNETGR.
86527         (netgroup_response_header): Define.
86528         (innetgroup_response_header): Define.
86529         (datahead): Add netgroup_response_header and innetgroup_response_header
86530         elements.
86531         * nscd/nscd.conf: Add entries for netgroup cache.
86532         * nscd/nscd.h (dbtype): Add netgrdb.
86533         (_PATH_NSCD_NETGROUP_DB): Define.
86534         (netgroup_iov_disabled): Declare.
86535         (xmalloc, xcalloc, xrealloc): Move declarations here.
86536         (cache_search): Adjust prototype.
86537         Add netgroup-related prototypes.
86538         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
86539         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
86540         (__nscd_innetgr): Declare.
86541         * nscd/selinux.c (perms): Use access_vector_t as element type and
86542         add netgroup-related initializers.
86543         * nscd/netgroupcache.c: New file.
86544         * nscd/nscd_netgroup.c: New file.
86545         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
86546         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
86547         For four parameters use innetgr.
86548         * nss/nss_files/files-init.c: Add definition and callback for netgr.
86549         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
86550         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
86551         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
86552
86553         * nscd/connections.c (register_traced_file): Don't register file
86554         for disabled databases.
86555
86556 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
86557
86558         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
86559
86560         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
86561         from tree and freeing node.
86562
86563 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
86564
86565         * nss/nsswitch.c (__nss_database_lookup): Handle
86566         nss_parse_service_list out of memory case.
86567
86568 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
86569
86570         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
86571         out of memory case.
86572
86573 2011-10-04  Andreas Schwab  <schwab@redhat.com>
86574
86575         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
86576         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
86577         pass it down.
86578         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
86579         elf_machine_rela, elf_machine_lazy_rel.
86580         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
86581         (ELF_DYNAMIC_DO_REL): Likewise.
86582         (ELF_DYNAMIC_DO_RELA): Likewise.
86583         (ELF_DYNAMIC_RELOCATE): Likewise.
86584         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
86585         to ELF_DYNAMIC_DO_REL.
86586         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
86587         (dl_main): In trace mode always set __RTLD_NOIFUNC.
86588         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
86589         elf_machine_rela.
86590         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
86591         skip_ifunc, don't call ifunc function if non-zero.
86592         (elf_machine_rela): Likewise.
86593         (elf_machine_lazy_rel): Likewise.
86594         (elf_machine_lazy_rela): Likewise.
86595         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
86596         (elf_machine_lazy_rel): Likewise.
86597         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
86598         Likewise.
86599         (elf_machine_lazy_rel): Likewise.
86600         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
86601         Likewise.
86602         (elf_machine_lazy_rel): Likewise.
86603         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
86604         (elf_machine_lazy_rel): Likewise.
86605         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
86606         (elf_machine_lazy_rel): Likewise.
86607         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
86608         (elf_machine_lazy_rel): Likewise.
86609         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
86610         (elf_machine_lazy_rel): Likewise.
86611         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
86612         (elf_machine_lazy_rel): Likewise.
86613         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
86614         (elf_machine_lazy_rel): Likewise.
86615
86616 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
86617
86618         * nss/nss_files/files-init.c (_nss_files_init): Use static
86619         initialization for all the *_traced_file variables.
86620
86621 2011-09-28  Andreas Schwab  <schwab@redhat.com>
86622
86623         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
86624
86625 2011-09-27  Roland McGrath  <roland@hack.frob.com>
86626
86627         [BZ #13226]
86628         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
86629
86630 2011-09-27  Andreas Schwab  <schwab@redhat.com>
86631
86632         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
86633         Reread the line before reparsing it.
86634
86635 2011-09-26  Andreas Schwab  <schwab@redhat.com>
86636
86637         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
86638
86639 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
86640             Maxim Kuvyrkov  <maxim@codesourcery.com>
86641             Joseph Myers  <joseph@codesourcery.com>
86642
86643         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
86644         if needed for __stack_chk_guard.
86645
86646 2011-09-19  Roland McGrath  <roland@hack.frob.com>
86647
86648         * sysdeps/posix/spawni.c (script_execute): Always define it.
86649         It will be optimized away if unused.
86650         (maybe_script_execute): New function.
86651         (__spawni): Call it.
86652
86653         * Makerules: Don't include tls.make.
86654         (config-tls): Always set to thread.
86655         * tls.make.c: File removed.
86656
86657 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
86658
86659         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
86660         * config.make.in (CPPFLAGS-config): New substituted variable.
86661
86662 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
86663
86664         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
86665
86666         [BZ #13192]
86667         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
86668         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
86669
86670 2011-09-15  Roland McGrath  <roland@hack.frob.com>
86671
86672         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
86673         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
86674         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
86675         (CALL_FAIL): Likewise.
86676         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
86677         (CALL_FAIL): Macro removed.
86678         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
86679
86680 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
86681
86682         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
86683         for __FINITE_MATH_ONLY__ == 1.
86684
86685 2011-09-15  Andreas Schwab  <schwab@redhat.com>
86686
86687         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
86688         __ieee754_sqrt instead of sqrt.
86689         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
86690         __ieee754_sqrtf instead of sqrtf.
86691         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
86692         __floorf instead of floorf.
86693         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
86694         __floorf, __truncf instead of floorf, truncf.
86695
86696 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
86697
86698         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
86699
86700         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
86701         __extern_always_inline.
86702         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
86703         32-bit.
86704
86705 2011-09-14  Andreas Schwab  <schwab@redhat.com>
86706
86707         * elf/rtld.c (dl_main): Also relocate in dependency order when
86708         doing symbol dependency testing.
86709
86710 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
86711
86712         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
86713         Always define `refsym'.
86714
86715 2011-09-13  Andreas Schwab  <schwab@redhat.com>
86716
86717         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
86718         (__FD_ELT): Renamed from __FDELT.
86719         * misc/bits/select2.h (__FD_ELT): Likewise.
86720         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
86721         __FD_MASK instead of __FDELT, __FDMASK.
86722         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
86723         Likewise.
86724         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
86725         Likewise.
86726
86727         * elf/Makefile (gen-ldd): Fix pattern.
86728
86729         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
86730         (init_tls): Likewise.
86731
86732 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
86733
86734         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
86735
86736 2011-09-12  Andreas Schwab  <schwab@redhat.com>
86737
86738         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
86739         `struct cmsghdr *' instead of `void *'.
86740         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
86741         Likewise.
86742
86743 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
86744
86745         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
86746         if non-absolute.
86747         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
86748         ldd_rewrite_script.
86749
86750 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
86751
86752         * configure.in: Remove --with-tls option.
86753         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
86754         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
86755         out in case it is missing.
86756         * sysdeps/ia64/elf/configure.in: Likewise.
86757         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
86758         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
86759         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
86760         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
86761         * sysdeps/sh/elf/configure.in: Likewise.
86762         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
86763         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
86764         * sysdeps/x86_64/elf/configure.in: Likewise.
86765         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
86766         * sysdeps/mach/hurd/tls.h: Likewise.
86767
86768         [BZ #13067]
86769         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
86770
86771         [BZ #13090]
86772         * configure.in: Fix use of AC_INIT.
86773
86774         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
86775
86776 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
86777
86778         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
86779         __set_errno.
86780         * malloc/hooks.c: Likewise.
86781
86782         [BZ #11929]
86783         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
86784         variables statically.
86785         (narenas): Initialize.
86786         (list_lock): Initialize.
86787         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
86788         initializtion of main_arena and list_lock.  Small cleanups.
86789         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
86790         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
86791         Add initializers to main_arena and mp_.
86792         (malloc_state): Remove pagesize member.  Change all users to use
86793         GLRO(dl_pagesize).
86794
86795         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
86796         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
86797         is always initialized.
86798
86799         * malloc/malloc.c: Removed unused configurations and dead code.
86800         * malloc/arena.c: Likewise.
86801         * malloc/hooks.c: Likewise.
86802         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
86803
86804         * include/tls.h: Removed.  USE___THREAD must always be defined.
86805         * bits/libc-tsd.h: Don't handle !USE___THREAD.
86806         * elf/dl-libc.c: Likewise.
86807         * elf/dl-tsd.c: Likewise.
86808         * include/errno.h: Likewise.
86809         * include/netdb.h: Likewise.
86810         * include/resolv.h: Likewise.
86811         * inet/herrno-loc.c: Likewise.
86812         * inet/herrno.c: Likewise.
86813         * malloc/arena.c: Likewise.
86814         * malloc/hooks.c: Likewise.
86815         * malloc/malloc.c: Likewise.
86816         * resolv/res-state.c: Likewise.
86817         * resolv/res_libc.c: Likewise.
86818         * sysdeps/i386/dl-machine.h: Likewise.
86819         * sysdeps/ia64/dl-machine.h: Likewise.
86820         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
86821         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
86822         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
86823         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
86824         * sysdeps/sh/dl-machine.h: Likewise.
86825         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
86826         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
86827         * sysdeps/unix/i386/sysdep.S: Likewise.
86828         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
86829         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
86830         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
86831         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
86832         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
86833         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
86834         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
86835         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
86836         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
86837         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
86838         * sysdeps/unix/x86_64/sysdep.S: Likewise.
86839         * sysdeps/x86_64/dl-machine.h: Likewise.
86840         * tls.make.c: Likewise.
86841
86842         * configure.in: Remove --with-__thread option.  Make tests for
86843         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
86844         tls_model attribute fail if no support is available.  Remove
86845         USE_IN_LIBIO.
86846         * Makeconfig: Adjust for dropped configure option.  All features are
86847         now mandatory.
86848         * Makerules: Likewise.
86849         * Versions.def: Likewise.
86850         * argp/argp-fmtstream.c: Likewise.
86851         * argp/argp-fmtstream.h: Likewise.
86852         * argp/argp-help.c: Likewise.
86853         * assert/assert.c: Likewise.
86854         * config.h.in: Likewise.
86855         * config.make.in: Likewise.
86856         * configure: Likewise.
86857         * configure.in: Likewise.
86858         * csu/Versions: Likewise.
86859         * csu/init.c: Likewise.
86860         * elf/tst-audit2.c: Likewise.
86861         * elf/tst-tls10.c: Likewise.
86862         * elf/tst-tls10.h: Likewise.
86863         * elf/tst-tls11.c: Likewise.
86864         * elf/tst-tls12.c: Likewise.
86865         * elf/tst-tls14.c: Likewise.
86866         * elf/tst-tlsmod11.c: Likewise.
86867         * elf/tst-tlsmod12.c: Likewise.
86868         * elf/tst-tlsmod13.c: Likewise.
86869         * elf/tst-tlsmod13a.c: Likewise.
86870         * elf/tst-tlsmod14a.c: Likewise.
86871         * elf/tst-tlsmod15b.c: Likewise.
86872         * elf/tst-tlsmod16a.c: Likewise.
86873         * elf/tst-tlsmod16b.c: Likewise.
86874         * elf/tst-tlsmod7.c: Likewise.
86875         * elf/tst-tlsmod8.c: Likewise.
86876         * elf/tst-tlsmod9.c: Likewise.
86877         * gmon/gmon.c: Likewise.
86878         * grp/fgetgrent_r.c: Likewise.
86879         * grp/putgrent.c: Likewise.
86880         * hurd/fopenport.c: Likewise.
86881         * include/libc-symbols.h: Likewise.
86882         * include/tls.h: Likewise.
86883         * intl/gettextP.h: Likewise.
86884         * intl/loadinfo.h: Likewise.
86885         * locale/global-locale.c: Likewise.
86886         * locale/localeinfo.h: Likewise.
86887         * mach/devstream.c: Likewise.
86888         * malloc/arena.c: Likewise.
86889         * malloc/set-freeres.c: Likewise.
86890         * misc/err.c: Likewise.
86891         * misc/getttyent.c: Likewise.
86892         * misc/mntent_r.c: Likewise.
86893         * posix/getopt.c: Likewise.
86894         * posix/wordexp.c: Likewise.
86895         * pwd/fgetpwent_r.c: Likewise.
86896         * resolv/Versions: Likewise.
86897         * resolv/res_hconf.c: Likewise.
86898         * shadow/fgetspent_r.c: Likewise.
86899         * shadow/putspent.c: Likewise.
86900         * stdio-common/printf_fphex.c: Likewise.
86901         * stdio-common/tmpfile.c: Likewise.
86902         * stdlib/abort.c: Likewise.
86903         * stdlib/fmtmsg.c: Likewise.
86904         * sunrpc/auth_unix.c: Likewise.
86905         * sunrpc/clnt_perr.c: Likewise.
86906         * sunrpc/clnt_tcp.c: Likewise.
86907         * sunrpc/clnt_udp.c: Likewise.
86908         * sunrpc/clnt_unix.c: Likewise.
86909         * sunrpc/openchild.c: Likewise.
86910         * sunrpc/svc_simple.c: Likewise.
86911         * sunrpc/svc_tcp.c: Likewise.
86912         * sunrpc/svc_udp.c: Likewise.
86913         * sunrpc/svc_unix.c: Likewise.
86914         * sunrpc/xdr.c: Likewise.
86915         * sunrpc/xdr_array.c: Likewise.
86916         * sunrpc/xdr_rec.c: Likewise.
86917         * sunrpc/xdr_ref.c: Likewise.
86918         * sunrpc/xdr_stdio.c: Likewise.
86919
86920 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
86921
86922         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
86923
86924 2011-07-03  Andreas Jaeger  <aj@suse.de>
86925
86926         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
86927         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
86928         regenerate with gen-libm-tests.pl.
86929
86930 2010-05-12  Petr Baudis  <pasky@suse.cz>
86931
86932         [BZ #11589]
86933         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
86934         around j0() zero points by switching to j1().
86935         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
86936         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
86937         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
86938         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
86939
86940 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
86941
86942         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
86943         instead of 0.
86944         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
86945         instead of 0.
86946         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
86947         Patch in part by Pavel Roskin <proski@gnu.org>.
86948
86949         [BZ #13138]
86950         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
86951         realloc.
86952         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
86953         Free memory block if necessary.
86954
86955         [BZ #12847]
86956         * libio/genops.c (INTDEF): For string streams the _lock pointer can
86957         be NULL.  Don't lock in this case.
86958
86959 2011-09-09  Roland McGrath  <roland@hack.frob.com>
86960
86961         * elf/elf.h (ELFOSABI_GNU): New macro.
86962         (ELFOSABI_LINUX): Define to that.
86963
86964 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
86965
86966         * string/strncat.c (strncat): Undef the symbol in case it has been
86967         defined in bits/string.h.
86968
86969 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
86970
86971         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
86972
86973         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
86974         link map.
86975
86976 2011-08-17  Andreas Jaeger  <aj@suse.de>
86977
86978         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
86979
86980 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
86981             Ian Lance Taylor  <iant@google.com>
86982
86983         * math/libm-test.inc (lround_test): New testcase.
86984         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
86985
86986 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
86987
86988         * Makefile: Remove support for automatic cvs check-ins.
86989         * Makerules: Likewise.
86990         * config.make.in: Likewise.
86991         * configure.in: Likewise.
86992         * intl/Makefile: Likewise.
86993         * locale/Makefile: Likewise.
86994         * po/Makefile: Likewise.
86995         * posix/Makefile: Likewise.
86996         * sysdeps/gnu/Makefile: Likewise.
86997         * sysdeps/mach/hurd/Makefile: Likewise.
86998         * sysdeps/sparc/sparc32/Makefile: Likewise.
86999
87000         [BZ #13118]
87001         * posix/Makefile (bug-regex32-ENV): Define.
87002         Patch by John Stanley <jpsinthemix@verizon.net>.
87003
87004         * misc/Makefile (headers): Add bits/select2.h.
87005         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
87006         * misc/bits/select2.h: New file.
87007         * include/bits/select2.h: New file.
87008         * debug/Makefile (routines): Add fdelt_chk.
87009         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
87010         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
87011         FD_ISSET.
87012         * debug/fdelt_chk.c: New file.
87013
87014         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
87015         * wcsmbs/test-wmemcmp.c: Likewise.
87016         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
87017         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
87018
87019 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
87020
87021         * string/Makefile (strop-tests): Add memcmp.
87022         * string/test-wmemcmp.c: New file.
87023         * string/test-memcmp.c: Add wmemcmp support.
87024
87025 2011-09-08  Roland McGrath  <roland@hack.frob.com>
87026
87027         [BZ #13153]
87028         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
87029         2011-07-19 change.
87030
87031         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
87032         garbage value in a __mach_port_mod_refs call in the cases of the
87033         task-self and thread-self ports.
87034
87035 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
87036
87037         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
87038
87039 2011-09-08  Andreas Schwab  <schwab@redhat.com>
87040
87041         * elf/dl-load.c (lose): Check for non-null L.
87042
87043 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
87044
87045         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
87046
87047         * elf/dl-libc.c (dlerror_run): Pass back error code from
87048         dl_catch_error.
87049
87050         [BZ #13123]
87051         * elf/dl-load.c (lose): Free l_origin if it is valid.
87052
87053         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
87054         names.
87055         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
87056         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
87057         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
87058         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
87059         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
87060         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
87061
87062 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
87063
87064         * sysdeps/powerpc/fpu/e_hypot.c: New file.
87065         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
87066         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
87067         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
87068         * sysdeps/powerpc/fpu/k_cosf.c: New file.
87069         * sysdeps/powerpc/fpu/k_sinf.c: New file.
87070         * sysdeps/powerpc/fpu/s_cosf.c: New file.
87071         * sysdeps/powerpc/fpu/s_sinf.c: New file.
87072         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
87073         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
87074
87075 2011-08-15  Alan Modra  <amodra@gmail.com>
87076
87077         [BZ #13092]
87078         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
87079         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
87080         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
87081         ppc_mcount to static-only-routines.
87082         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
87083         __mcount_internal.
87084         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
87085         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
87086
87087 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
87088
87089         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
87090         for finite and infinity parameters.
87091
87092 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
87093
87094         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
87095         and add nop instructions for throughput optimization.
87096         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
87097
87098 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
87099
87100         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
87101         aligned copy for power7 with vector-scalar instructions.
87102         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
87103
87104 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
87105
87106         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
87107         AVX check.
87108
87109 2011-09-07  Andreas Schwab  <schwab@redhat.com>
87110
87111         [BZ #13144]
87112         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
87113         last change.
87114
87115 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
87116
87117         * sysdeps/unix/sysv/linux/x86_64/init-first.c
87118         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
87119         syscall wrapper around clock_gettime in __vdso_clock_gettime.
87120         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
87121         clock_gettime.
87122
87123 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
87124
87125         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
87126         Forgot to demangle the pointer.
87127
87128         * sysdeps/i386/sysdep.h: Define atom_text_section.
87129         * sysdeps/x86_64/sysdep.h: Likewise.
87130         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
87131         section with atom_text_section.
87132         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
87133         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
87134         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
87135         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
87136         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
87137
87138         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
87139         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
87140         already be defined.  Change to take two parameters and don't assign
87141         result to variable.  Adjust all users.
87142         Define INTERNAL_GETTIME if not already defined.
87143         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
87144         call.
87145         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
87146         HAVE_CLOCK_GETTIME_VSYSCALL.
87147         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
87148
87149         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
87150         gettimeofday vsyscall, just use time.
87151
87152 2011-09-06  Andreas Schwab  <schwab@redhat.com>
87153
87154         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
87155         <errno.h>.
87156
87157 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
87158
87159         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
87160         syscall on x86-64.
87161         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
87162         syscall.
87163         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
87164         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
87165         syscall if possible.
87166
87167 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
87168
87169         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
87170         e_ident.  Don't pass to find_mapsXX.
87171         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
87172
87173 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
87174
87175         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
87176         strchr-sse2-no-bsf strrchr-sse2-no-bsf
87177         * sysdeps/x86_64/multiarch/strchr.S: Update.
87178         Check bit_slow_BSF bit.
87179         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
87180         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
87181         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
87182
87183 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
87184
87185         [BZ #13134]
87186         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
87187         before glibc 2.15.
87188         (tryshell): Define.
87189         (__spawni): Change last parameter to be flag.  Test
87190         SPAWN_XFLAGS_USE_PATH flag to use path or not.
87191         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
87192         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
87193         * posix/spawni.c: Likewise.
87194         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
87195         * posix/spawnp.c: Likewise.  Change normal version to use
87196         SPAWN_XFLAGS_USE_PATH.
87197         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
87198         SPAWN_XFLAGS_TRY_SHELL.
87199
87200         [BZ #13150]
87201         * posix/glob.h: Remove gcc 1.x support.
87202
87203         [BZ #13068]
87204         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
87205
87206 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
87207
87208         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
87209         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
87210         strrchr-sse2-bsf
87211         * sysdeps/i386/i686/multiarch/strchr.S: New file.
87212         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
87213         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
87214         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
87215         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
87216         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
87217
87218 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
87219
87220         * sysdeps/x86_64/wcscmp.S: New file.
87221
87222         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
87223         wcscmp-c wcscmp-sse2
87224         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
87225         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
87226         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
87227         * wcsmbs/wcscmp.c: Allow renaming.
87228
87229 2011-09-05  David S. Miller  <davem@davemloft.net>
87230
87231         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
87232         stack slot, rather than the struct return pointer slot.
87233         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
87234         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
87235         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
87236         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
87237
87238 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
87239
87240         * po/ja.po: Update from translation team.
87241
87242         [BZ #13144]
87243         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
87244         kernel in 64-bit binaries.
87245
87246 2011-09-01  David S. Miller  <davem@davemloft.net>
87247
87248         * elf/elf.h (HWCAP_SPARC_*): Move to..
87249         * sysdeps/sparc/sysdep.h: this new file and add new values.
87250         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
87251         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
87252         _DL_HWCAP_COUNT to 24.
87253         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
87254         entries.
87255         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
87256         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
87257         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
87258         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
87259         instead of magic constants.
87260         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
87261
87262 2011-08-31  David S. Miller  <davem@davemloft.net>
87263
87264         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
87265         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
87266         Reimplement to do errno handling inline.
87267         (SYSCALL_ERROR_HANDLER): New macro.
87268         (__SYSCALL_STRING): Do not do errno handling in asm.
87269         (__CLONE_SYSCALL_STRING): Delete.
87270         (__INTERNAL_SYSCALL_STRING): Delete.
87271         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
87272         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
87273         (PSEUDO): Reimplement to do errno handling inline.
87274         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
87275         (SYSCALL_ERROR_HANDLER): New macro.
87276         (__SYSCALL_STRING): Do not do errno handling in asm.
87277         (__CLONE_SYSCALL_STRING): Delete.
87278         (__INTERNAL_SYSCALL_STRING): Delete.
87279         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
87280         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
87281         i386.
87282         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
87283         (inline_syscall*): Add 'err' argument.
87284         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
87285         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
87286         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
87287         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
87288
87289         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
87290         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
87291
87292 2011-08-30  Andreas Schwab  <schwab@redhat.com>
87293
87294         * elf/rtld.c (dl_main): Relocate objects in dependency order.
87295
87296 2011-08-29  Jiri Olsa <jolsa@redhat.com>
87297
87298         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
87299         directive.
87300
87301 2011-08-24  David S. Miller  <davem@davemloft.net>
87302
87303         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
87304
87305 2011-08-24  Andreas Schwab  <schwab@redhat.com>
87306
87307         * elf/Makefile: Add rules to build and run unload8 test.
87308         * elf/unload8.c: New file.
87309         * elf/unload8mod1.c: New file.
87310         * elf/unload8mod1x.c: New file.
87311         * elf/unload8mod2.c: New file.
87312         * elf/unload8mod3.c: New file.
87313
87314         * elf/dl-close.c (_dl_close_worker): Reset private search list if
87315         it wasn't used.
87316
87317 2011-08-23  David S. Miller  <davem@davemloft.net>
87318
87319         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
87320         subtract stack bias.
87321         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
87322         %sp not %fp in calculations.
87323         (_JMPBUF_UNWINDS_ADJ): Likewise.
87324
87325         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
87326         (aio_suspend): Call it to force an exception region around the
87327         AIO_MISC_WAIT() invocation.
87328
87329 2011-08-23  Andreas Schwab  <schwab@redhat.com>
87330
87331         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
87332         backslash.
87333
87334 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
87335
87336         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
87337         protection macro.
87338         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
87339         and <dl-machine.h>.
87340         (Elf64_FuncDesc): Remove.
87341
87342 2011-08-22  David S. Miller  <davem@davemloft.net>
87343
87344         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
87345         sigaltstack check, add missing cfi directives.
87346         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
87347         missing cfi directives, and sigaltstack handling.
87348
87349 2011-08-16  Andreas Schwab  <schwab@redhat.com>
87350
87351         [BZ #11724]
87352         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
87353         object is seen twice.
87354         * elf/dl-fini.c (_dl_sort_fini): Likewise.
87355
87356         * elf/Makefile (distribute): Add tst-initorder2.c.
87357         (tests): Add tst-initorder2.
87358         (modules-names): Add tst-initorder2a tst-initorder2b
87359         tst-initorder2c tst-initorder2d.  Add rules to build them.
87360         ($(objpfx)tst-initorder2.out): New rule.
87361         * elf/tst-initorder2.c: New file.
87362         * elf/tst-initorder2.exp: New file.
87363
87364 2011-08-22  Andreas Schwab  <schwab@redhat.com>
87365
87366         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
87367
87368         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
87369         dependencies back to end of function.
87370
87371         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
87372         $(elfobjdir)/ld.so.
87373
87374 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
87375
87376         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
87377         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
87378         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
87379         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
87380         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
87381         of __vdso_gettimeofday.
87382         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
87383         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
87384         attribute_hidden.
87385         (_libc_vdso_platform_setup): Remove initialization of
87386         __vdso_gettimeofday and __vdso_time.
87387
87388 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
87389
87390         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
87391         and fgetc_unlocked.
87392         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
87393         getc_unlocked.
87394
87395         * elf/dl-open.c (add_to_global): Report additions to the global scope
87396         for LD_DEBUG=scopes.
87397         (dl_open_worker): Also print scope of newly loaded dependencies.
87398         (_dl_show_scope): Indicate if there is no scope.
87399
87400         [BZ #13114]
87401         * stdio-common/Makefile (tests): Add bug24.
87402         * stdio-common/bug24.c: New file.
87403
87404 2011-08-19  Andreas Jaeger  <aj@suse.de>
87405
87406         [BZ #13114]
87407         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
87408         non-existant file when using close-on-exec mode.
87409
87410 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
87411
87412         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
87413         the very first instruction.
87414
87415         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
87416         the CFI state in the end.
87417         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
87418         inclusion of dl-trampoline.h.
87419         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
87420
87421 2011-08-19  Andreas Schwab  <schwab@redhat.com>
87422
87423         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
87424         expectations for long double.
87425
87426         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
87427         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
87428
87429 2011-08-14  David S. Miller  <davem@davemloft.net>
87430
87431         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
87432         artificual limit depends upon the system page size.
87433
87434 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
87435
87436         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
87437         * resolv/Makefile: Define CFLAGS-libresolv.
87438
87439 2011-08-17  Andreas Schwab  <schwab@redhat.com>
87440
87441         * nss/makedb.c (compute_tables): Make variables used in nested
87442         function static.
87443
87444 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
87445
87446         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
87447         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
87448         if buffer was too small.
87449
87450         * elf/pldd.c (main): Attach to all threads in the process.
87451         Rewrite /proc handling to use *at functions.
87452
87453 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
87454
87455         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
87456         specifies first scope to show.
87457         (dl_open_worker): Update callers.  Move printing scope of new
87458         object to before the relocation.
87459         * elf/rtld.c (dl_main): Update _dl_show_scope call.
87460         * sysdeps/generic/ldsodefs.h: Update declaration.
87461
87462         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
87463         string for the scope number.
87464
87465 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
87466
87467         * nscd/servicescache.c (cache_addserv): Make sure written is always
87468         initialized.
87469
87470 2011-08-14  Roland McGrath  <roland@hack.frob.com>
87471
87472         * sysdeps/i386/i486/bits/atomic.h
87473         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
87474         statement expression, so as to suppress "set but not used" warning.
87475         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
87476
87477         * string/strncat.c (STRNCAT): Use prototype definition.
87478
87479         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
87480         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
87481         -Iprograms here.
87482         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
87483         (localedef-modules): Add localedef.
87484         (locale-modules): Add locale.
87485
87486         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
87487         * elf/rtld.c (dl_main): Invert order of assignment in last change,
87488         to avoid a warning.
87489
87490 2011-08-14  David S. Miller  <davem@davemloft.net>
87491
87492         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
87493         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
87494
87495 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
87496
87497         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
87498         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
87499         * elf/rtld.c (dl_main): Set l_name of vDSO.
87500         Call _dl_show_scope when DL_DEBUG_SCOPES.
87501         (process_dl_debug): Recognize scopes flag and also set it for all.
87502         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
87503         Declare _dl_show_scope.
87504
87505         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
87506         (do_dlopen): Pass caller_dlopen to dl_open.
87507         (__libc_dlopen_mode): Initialize caller_dlopen.
87508
87509         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
87510         of libc.  Make tolower call locale-independent.  Optimize a bit by
87511         using isdigit instead of isalnum.
87512         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
87513
87514 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
87515
87516         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
87517         was a dependency or dynamically loaded.
87518
87519 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
87520
87521         * intl/l10nflist.c: Allow architecture-specific pop function.
87522         * sysdeps/x86_64/l10nflist.c: New file.
87523
87524         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
87525         classification.
87526
87527 2011-08-10  Andreas Schwab  <schwab@redhat.com>
87528
87529         * include/dirent.h: Add libc_hidden_proto for scandirat and
87530         scandirat64.  Don't declare __scandirat64.
87531         * dirent/scandirat.c: Add libc_hidden_def.
87532         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
87533         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
87534
87535 2011-08-10  David S. Miller  <davem@davemloft.net>
87536
87537         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
87538         enum.
87539         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
87540         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
87541         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
87542
87543 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
87544
87545         * Versions.def [libc]: Add GLIBC_2.15.
87546         * dirent/Makefile (routines): Add scandirat and scandirat64.
87547         * dirent/Versions [libc]: Export scandirat and scandirat64 for
87548         GLIBC_2.15.
87549         * dirent/dirent.h: Declare scandirat and scandirat64.
87550         * dirent/scandirat.c: New file.
87551         * dirent/scandirat64.c: New file.
87552         * sysdeps/wordsize-64/scandirat.c: New file.
87553         * sysdeps/wordsize-64/scandirat64.c: New file.
87554         * dirent/opendir.c: Define opendirat.
87555         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
87556         using scandirat.
87557         * dirent/scandir64.c: Adjust for scandir.c change.
87558         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
87559         __scandirat64, and __scandir_cancel_handler.
87560         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
87561         additional parameter and use openat instead of open (outside of ld.so).
87562         Add new __opendir as wrapper around __opendirat.
87563         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
87564         here without requiring old scandirat implementation.
87565
87566 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
87567
87568         * dirent/scandir.c (cancel_handler): Renamed to
87569         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
87570         defined.  Adjust users.
87571         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
87572         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
87573
87574 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
87575
87576         * string/test-string.h (IMPL): Use __STRING to expand name and then
87577         stringify it.
87578
87579         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
87580         of cleanups.
87581
87582 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
87583
87584         * string/Makefile: Update.
87585         (strop-tests): Append strncat.
87586         * string/test-wcscmp.c: New file.
87587         New comprehensive test for wcscmp.
87588         * string/test-strcmp.c: Update.
87589         (WIDE): New define.
87590
87591 2011-07-22  Andreas Schwab  <schwab@redhat.com>
87592
87593         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
87594         line.
87595
87596 2011-07-26  Andreas Schwab  <schwab@redhat.com>
87597
87598         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
87599         encoding to ACE if AI_IDN.
87600
87601 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
87602
87603         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
87604         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
87605
87606 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
87607
87608         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
87609         Fix overflow bug in strncat.
87610         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
87611
87612         * string/test-strncat.c: Update.
87613         Add new tests for checking overflow bugs.
87614
87615 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
87616
87617         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
87618         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
87619         * sysdeps/i386/i686/multiarch/strcat.S: New file.
87620         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
87621         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
87622         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
87623         * sysdeps/i386/i686/multiarch/strncat.S: New file.
87624         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
87625         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
87626
87627         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
87628         (USE_AS_STRCAT): Define.
87629         Add strcat and strncat support.
87630         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
87631
87632 2011-07-25  Andreas Schwab  <schwab@redhat.com>
87633
87634         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
87635         __n bigger than INT_MAX+1.
87636         (__strncmp_g): Likewise.
87637
87638 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
87639
87640         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
87641         * libio/stido.h: Likewise.
87642
87643         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
87644         (AF_NFC): Define.
87645         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
87646         (AF_NFC): Define.
87647
87648         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
87649         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
87650         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
87651         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
87652         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
87653
87654         [BZ #13021]
87655         * scripts/test-installation.pl: Don't expect libnss_test1 to be
87656         installed.
87657
87658         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
87659         typo.
87660         (_dl_x86_64_save_sse): Likewise.
87661
87662 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
87663
87664         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
87665         OSXSAVE.
87666         (_dl_x86_64_save_sse): Likewise.
87667
87668         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
87669
87670         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
87671
87672 2011-07-21  Andreas Schwab  <schwab@redhat.com>
87673
87674         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
87675         change.
87676         (_dl_x86_64_save_sse): Use correct AVX check.
87677
87678 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
87679
87680         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
87681         bug in strncpy/strncat.
87682         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
87683
87684 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
87685
87686         * string/tester.c (test_strcat): Add tests for different alignments
87687         of source and destination.
87688         (test_strncat): Likewise.
87689
87690 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
87691
87692         [BZ #12852]
87693         * posix/glob.c (glob): Check passed in values before using them in
87694         expressions to avoid some overflows.
87695         (glob_in_dir): Likewise.
87696
87697         [BZ #13007]
87698         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
87699         check for AVX enablement so that we don't crash with old kernels and
87700         new hardware.
87701         * elf/tst-audit4.c: Add same checks here.
87702         * elf/tst-audit6.c: Likewise.
87703
87704         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
87705
87706 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
87707
87708         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
87709
87710 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
87711
87712         * po/cs.po: Update from translation team.
87713         * po/bg.po: Likewise.
87714
87715 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
87716
87717         * misc/sys/cdefs.h: Add support for const attribute.
87718         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
87719         to gnu_dev_{major,minor,makedev} functions.
87720
87721 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
87722
87723         * intl/dcigettext.c (get_output_charset): Add missing bracket.
87724
87725 2011-07-20  Andreas Schwab  <schwab@redhat.com>
87726
87727         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
87728         strlen results.
87729
87730 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
87731
87732         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
87733         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
87734         register in order to avoid conflicts with the soft frame pointer
87735         being held in r11 when necessary.
87736         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
87737         (INTERNAL_VSYSCALL_NCS): Likewise.
87738
87739 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
87740
87741         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
87742         * elf/dl-fini.c (_dl_fini): Adjust caller.
87743         * elf/dl-close.c (_dl_close_worker): Likewise.
87744         * sysdeps/generic/ldsodefs.h: Adjust declaration.
87745
87746 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
87747
87748         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
87749         "aux_cache->nlibs < 0".
87750
87751         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
87752         in the reload-count case.
87753
87754 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
87755
87756         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
87757         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
87758         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
87759         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
87760         * sysdeps/x86_64/multiarch/strcat.S: New file.
87761         * sysdeps/x86_64/multiarch/strncat.S: New file.
87762         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
87763         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
87764         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
87765         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
87766         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
87767         (USE_AS_STRCAT): Define.
87768         Add strcat and strncat support.
87769         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
87770         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
87771         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
87772         * string/strncat.c: Update.
87773         (USE_AS_STRNCAT): Define.
87774         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
87775         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
87776         and i7.
87777         * sysdeps/x86_64/multiarch/init-arch.h
87778         (bit_Prefer_PMINUB_for_stringop): New.
87779         (index_Prefer_PMINUB_for_stringop): Likewise.
87780         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
87781         bit_Prefer_PMINUB_for_stringop.
87782
87783 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
87784
87785         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
87786         buffer64.
87787         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
87788         of casting of buffer.
87789         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
87790         buffer32 and buffer64.
87791         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
87792         writes instead of casting of buffer.
87793         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
87794         buffer32.
87795         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
87796         casting of buffer.
87797
87798 2011-07-19  Andreas Schwab  <schwab@redhat.com>
87799
87800         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
87801
87802 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
87803
87804         * nscd/nscd.c (termination_handler): Don't do anything for a database
87805         if it has not yet been initialized.
87806
87807 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
87808
87809         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
87810
87811 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
87812
87813         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
87814
87815 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
87816
87817         * po/nl.po: Update from translation team.
87818         * po/sv.po: Likewise.
87819
87820 2011-07-16  Roland McGrath  <roland@hack.frob.com>
87821
87822         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
87823         now disallowed by GCC.
87824
87825         * configure.in (use-default-link): Default to yes if a test -shared
87826         link meets our qualifications.
87827         * configure: Regenerated.
87828
87829         * config.make.in (output-format): New variable.
87830         * configure.in: Check for ld --print-output-format support.
87831         * configure: Regenerated.
87832         * Makerules ($(common-objpfx)format.lds)
87833         [$(output-format) != unknown]: Just use $(output-format),
87834         instead of the linker-script munging.
87835
87836 2011-07-14  Roland McGrath  <roland@hack.frob.com>
87837
87838         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
87839         of $(common-objpfx)shlib.lds.
87840         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
87841
87842         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
87843         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
87844
87845         * configure.in (-z relro check): Adjust test code to add a large
87846         writable data section after it.
87847         * configure: Regenerated.
87848
87849 2011-07-11  Roland McGrath  <roland@hack.frob.com>
87850
87851         * configure.in (-z relro check): Fix test code to make the variable
87852         truly const.
87853         * configure: Regenerated.
87854
87855 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
87856
87857         * nscd/nscd.h (struct traced_file): Define.
87858         (struct database_dyn): Remove inotify_descr, reset_res, and filename
87859         elements.  Add traced_files.
87860         (inotify_fd): Declare.
87861         (register_traced_file): Declare.
87862         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
87863         (inotify_fd): Export.
87864         (resolv_conf_descr): Remove.
87865         (nscd_init): Move inotify descriptor creation to main.
87866         Don't register files for notification here.
87867         (register_traced_file): New function.
87868         (invalidate_cache): Don't use reset_res to determine whether to call
87869         res_init, go through the list of registered files.
87870         (main_loop_poll): The inotify descriptors are now stored in the
87871         structures for the traced files.
87872         (main_loop_epoll): Likewise.
87873         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
87874         to __nss_disable_nscd.
87875         * nscd/cache.c (prune_cache): There is no single inotify descriptor
87876         for a database anymore.  Check the records for all the registered
87877         files instead.
87878         * nss/Makefile (libnss_files-routines): Add files-init.
87879         (libnss_db-routines): Add db-init.
87880         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
87881         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
87882         * nss/nss_db/db-init.c: New file.
87883         * nss/nss_files/files-init.c: New file.
87884         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
87885         __nss_lookup_function.
87886         (__nss_lookup_function): Call nss_load_library.
87887         (nss_load_all_libraries): New function.
87888         (__nss_disable_nscd): Take parameter with callback function for files
87889         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
87890         used for the cached services.
87891         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
87892         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
87893         options for features to all the files in nscd.
87894
87895         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
87896
87897 2011-07-10  Roland McGrath  <roland@hack.frob.com>
87898
87899         * csu/elf-init.c (__libc_csu_init): Comment typo.
87900
87901 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
87902
87903         * po/pl.po: Update from translation team.
87904         * po/ja.po: Likewise.
87905         * po/ru.po: Likewise.
87906         * po/ko.po: Likewise.
87907         * po/fr.po: Likewise.
87908
87909 2011-07-09  Roland McGrath  <roland@hack.frob.com>
87910
87911         * configure.in (.ctors/.dtors header and trailer check):
87912         Use an empirical test on a built program.
87913         * configure: Regenerated.
87914
87915         * configure.in (-z relro check): Use an empirical test on a built DSO.
87916         Detect, but do not require, on ia64.
87917         * configure: Regenerated.
87918
87919         * configure.in (READELF): Find it with AC_CHECK_TOOL.
87920         Update tests that use readelf to use $READELF instead.
87921         * configure: Regenerated.
87922
87923 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
87924
87925         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
87926         if the result is not used.
87927
87928 2011-07-05  Andreas Jaeger  <aj@suse.de>
87929
87930         [BZ #9696]
87931         * stdlib/tst-strtod.c: Add testcase.
87932
87933 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
87934
87935         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
87936         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
87937         The latter has a higher limit.  Take additional parameter to pass to
87938         the new function.
87939         (__pathconf): Pass file to __statfs_link_max.
87940         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
87941         __statfs_link_max.
87942         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
87943         __statfs_link_max.
87944
87945         [BZ #12868]
87946         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
87947         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
87948         Handle Lustre.
87949         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
87950         (__statfs_filesize_max): Likewise.
87951         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
87952
87953 2011-07-05  Andreas Jaeger  <aj@suse.de>
87954
87955         * resolv/res_comp.c (dn_skipname): Remove unused variable.
87956
87957 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
87958
87959         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
87960         `status' variable.
87961         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
87962         Likewise.
87963
87964 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
87965
87966         * Makefile (strop-tests): Add strncat.
87967         * string/test-strncat.c: New file.
87968
87969 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
87970
87971         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
87972
87973 2011-06-21  Andreas Jaeger  <aj@suse.de>
87974
87975         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
87976         Copy rule from iconvdata/Makefile.
87977
87978 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
87979
87980         [BZ #12922]
87981         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
87982         but no long options are defined, just return 'W'.
87983
87984 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
87985
87986         [BZ #9696]
87987         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
87988
87989 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
87990
87991         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
87992         netgroups to read.
87993         (innetgr): Likewise.
87994
87995 2011-07-05  Roland McGrath  <roland@hack.frob.com>
87996
87997         * config.make.in (install_root): Default to $(DESTDIR).
87998
87999 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
88000
88001         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
88002
88003 2011-07-02  Roland McGrath  <roland@hack.frob.com>
88004
88005         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
88006
88007         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
88008         containing directory rather than embedding absolute directory names.
88009
88010         * scripts/check-local-headers.sh: Rewritten using awk.
88011         Match by word, not by line.  Print error messages for matches.
88012         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
88013
88014         * Makerules [shlib-lds-flags empty]:
88015         ($(common-objpfx)libc_pic.opts): New target.
88016         ($(common-objpfx)libc_pic.os.clean): New target.
88017         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
88018
88019         * config.make.in (OBJCOPY): New variable.
88020         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
88021         * configure: Regenerated.
88022
88023         * config.make.in (use-default-link): New variable.
88024         * configure.in (use_default_link): Grok --with-default-link to set it.
88025         * configure: Regenerated.
88026         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
88027         (shlib-lds, shlib-lds-flags): Define to empty.
88028
88029         * Makerules (shlib-lds): New variable.
88030         (shlib-lds-flags): New variable.
88031         (build-shlib, build-moduile, build-module-asneeded): Use it.
88032         ($(common-objpfx)libc.so): Use $(shlib-lds).
88033         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
88034         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
88035
88036         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
88037         DT_FLAGS/DT_FLAGS_1 with zero flags.
88038
88039         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
88040         linker script munging.
88041
88042 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
88043
88044         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
88045         as 128-bit value.
88046         * crypt/sha512.c (sha512_process_block): Perform total addition using
88047         128-bit if possible.
88048         (__sha512_finish_ctx): Likewise.
88049         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
88050         as 64-bit value.
88051         * crypt/sha256.c (SWAP64): Define.
88052         (sha256_process_block): Perform total addition using 64-bit if
88053         possible.
88054         (__sha256_finish_ctx): Likewise.
88055
88056 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
88057
88058         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
88059         * nscd/initgrcache.c (addinitgroupsX): Likewise.
88060         * nscd/hstcache.c (cache_addhst): Likewise.
88061         * nscd/grpcache.c (cache_addgr): Likewise.
88062         * nscd/aicache.c (addhstaiX): Likewise.
88063         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
88064
88065 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
88066
88067         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
88068         * nscd/initgrcache.c (addinitgroupsX): Likewise.
88069         * nscd/hstcache.c (cache_addhst): Likewise.
88070         * nscd/grpcache.c (cache_addgr): Likewise.
88071         * nscd/aicache.c (addhstaiX): Likewise.
88072
88073 2011-07-01  Andreas Schwab  <schwab@redhat.com>
88074
88075         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
88076         domain only when needed.
88077
88078 2011-06-30  Andreas Schwab  <schwab@redhat.com>
88079
88080         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
88081         is always restored.
88082
88083 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
88084
88085         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
88086         are re-adding the entry.
88087         * nscd/servicescache.c (cache_addserv): Likewise.
88088
88089 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
88090
88091         * sysdeps/generic/dl-irel.h: fix protection against multiple
88092         inclusions.
88093         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
88094
88095 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
88096
88097         [BZ #12935]
88098         * malloc/memusage.sh: Fix quoting in message.
88099         * debug/xtrace.sh: Likewise.
88100
88101         * configure.in: Remove support for --experimental-malloc option, make
88102         it the default.
88103         * config.make.in: Likewise.
88104         * malloc/Makefile: Likewise.
88105
88106 2011-06-27  Andreas Schwab  <schwab@redhat.com>
88107
88108         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
88109         two-byte characters.
88110
88111 2011-06-27  Roland McGrath  <roland@hack.frob.com>
88112
88113         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
88114         AC_CACHE_CHECK invocation.
88115         * configure: Regenerated.
88116
88117         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
88118
88119 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
88120
88121         [BZ #12350]
88122         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
88123         bit from old_res_options.
88124
88125         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
88126
88127         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
88128         value type for setfct.
88129
88130 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
88131
88132         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
88133         __gettimeofday instead of gettimeofday.
88134
88135 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
88136
88137         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
88138
88139 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
88140
88141         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
88142
88143         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
88144         info.
88145
88146 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
88147
88148         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
88149         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
88150         strcpy-sse2-unaligned strncpy-sse2-unaligned
88151         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
88152         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
88153         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
88154         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
88155         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
88156         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
88157         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
88158         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
88159         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
88160         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
88161         (STRCPY): Support SSE2 and SSSE3 versions.
88162
88163 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
88164
88165         [BZ #12874]
88166         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
88167         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
88168         kernels which artificially limit size of requests.
88169
88170 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
88171
88172         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
88173         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
88174         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
88175         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
88176         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
88177         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
88178         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
88179         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
88180         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
88181         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
88182         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
88183         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
88184         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
88185         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
88186         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
88187         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
88188         Enable unaligned load optimization for Intel Core i3, i5 and i7
88189         processors.
88190         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
88191         Define.
88192         (index_Fast_Unaligned_Load): Define.
88193         (HAS_FAST_UNALIGNED_LOAD): Define.
88194
88195 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
88196
88197         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
88198
88199 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
88200
88201         [BZ #12907]
88202         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
88203         until it is clear that the information is realy needed.
88204         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
88205
88206 2011-06-22  Andreas Schwab  <schwab@redhat.com>
88207
88208         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
88209
88210 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
88211
88212         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
88213         /sys/devices/system/cpu/online if it is usable.
88214
88215         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
88216         reading the information from the /proc filesystem to once a second.
88217
88218 2011-06-21  Andreas Jaeger  <aj@suse.de>
88219
88220         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
88221         NULL after inclusion of kernel headers.
88222
88223 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
88224
88225         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
88226         calls to internal_setent.
88227
88228         [BZ #12885]
88229         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
88230         addresses using gethostbyname4_r ignore IPv4 addresses.
88231
88232         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
88233         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
88234
88235         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
88236
88237 2011-06-20  David S. Miller  <davem@davemloft.net>
88238
88239         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
88240         inclusions.
88241         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
88242
88243         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
88244         (elf_irel): Use it.
88245         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
88246         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
88247         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
88248         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
88249         * sysdeps/x86_64/dl-irel.h: Likewise.
88250
88251         * elf/dl-runtime.c: Use elf_ifunc_invoke.
88252         * elf/dl-sym.c: Likewise.
88253
88254 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
88255
88256         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
88257         need to dereference resplen2.
88258
88259 2011-06-14  Andreas Schwab  <schwab@redhat.com>
88260
88261         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
88262
88263 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
88264
88265         * Makeconfig: Define vardbdir and inst_vardbdir.
88266         * nss/Makefile: Add rules to install db-Makefile.
88267
88268         * nss/nss_db/db-XXX.c: Cleanup.
88269
88270         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
88271         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
88272         GLIBC_PRIVATE.
88273         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
88274         * nss/makedb.c: Implement -g option to specify that value strings
88275         are generated and should not be added to table iterated over for
88276         get*ent calls.
88277         * nss/nss_db/db-initgroups.c: New file.
88278
88279         * nss/getent.c: Add support for initgroups lookups through getgrouplist
88280         interface.
88281
88282         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
88283         (internal_getgrouplist): Adjust to name change.
88284         Update use_initgroups_entry if this is not the first call.
88285         * nss/databases.def: Add initgroups entry.
88286
88287         * nss/makedb.c (compute_tables): Check result of multiple hash table
88288         sizes to minimize maximum chain length.
88289
88290 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
88291
88292         * Versions.def: Add entry for libnss_db.
88293         * shlib-versions: Likewise.
88294         * nss/Makefile: Add rules to build libnss_db.
88295         * nss/Versions: Add libnss_db information.  Organize libnss_files
88296         entries better.
88297         * nss/db-Makefile: Add gshadow support.  Change rules for the new
88298         makedb progra.  Some minor improvements to generate smaller files.
88299         * nss/nss_db/nss_db.h: Move NSS database header data structures to
88300         here from...
88301         * nss/makedb.c: ...here.
88302         Improve database format to be smaller and require less memory at
88303         runtime.
88304         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
88305         db anymore.
88306         * nss/nss_db/db-netgrp.c: Likewise.
88307         * nss/nss_db/db-open.c: Likewise.
88308         * nss/nss_files/flies-XXX.x: Adjust comments.
88309         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
88310         * nss/nss_files/files-grp.c: Likewise.
88311         * nss/nss_files/files-hosts.c: Likewise.
88312         * nss/nss_files/files-network.c: Likewise.
88313         * nss/nss_files/files-proto.c: Likewise.
88314         * nss/nss_files/files-pwd.c: Likewise.
88315         * nss/nss_files/files-rpc.c: Likewise.
88316         * nss/nss_files/files-service.c: Likewise.
88317         * nss/nss_files/files-sgrp.c: Likewise.
88318         * nss/nss_files/files-spwd.c: Likewise.
88319         * nss/nss_db/db-alias.c: Removed.
88320         * nss/nss_db/dummy-db.h: Removed.
88321
88322 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
88323
88324         * nss/makedb.c: Rewritten to not use database library.
88325         * nss/Makefile: Update to build new makedb program.
88326
88327 2011-06-14  Andreas Jaeger  <aj@suse.de>
88328
88329         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
88330         memset declaration.
88331
88332 2011-06-10  Andreas Schwab  <schwab@redhat.com>
88333
88334         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
88335         tmpbuf.
88336
88337 2011-06-10  Roland McGrath  <roland@hack.frob.com>
88338
88339         * Makerules (shlib.lds): Fail if the linker script comes out empty.
88340         * elf/Makefile ($(objpfx)ld.so): Likewise.
88341
88342         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
88343         Don't list ld.so twice in dependencies.
88344
88345         * posix/bug-regex31.c: Include <stdlib.h>.
88346
88347         * nscd/hstcache.c (cache_addhst): Remove unused variable.
88348
88349         * nis/nss_compat/compat-spwd.c
88350         (getspent_next_nss_netgr): Remove unused variable.
88351         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
88352
88353         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
88354         nonmembers" output to use the right array.
88355
88356         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
88357
88358         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
88359
88360         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
88361         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
88362         * catgets/gencat.c (read_input_file): Likewise.
88363         * locale/programs/locarchive.c (enlarge_archive): Likewise.
88364
88365         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
88366         variable definition inside #if's controlling its use.
88367
88368         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
88369
88370         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
88371
88372         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
88373
88374         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
88375         unreachable code.
88376
88377         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
88378
88379         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
88380         * configure: Regenerated.
88381
88382         * Makerules: Revert last change.
88383         * elf/Makefile: Likewise.
88384
88385 2011-06-09  Roland McGrath  <roland@hack.frob.com>
88386
88387         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
88388         * elf/Makefile ($(objpfx)librtld.os): Likewise.
88389         (reloc-link): Likewise.
88390
88391 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
88392
88393         * elf/Makefile: Add rules to build pldd.
88394         * elf/pldd.c: New file.
88395         * elf/pldd-xx.c: New file.
88396
88397 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
88398
88399         * version.h: Update for 2.15 development version.
88400
88401 2011-06-07  David S. Miller  <davem@davemloft.net>
88402
88403         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
88404         ifuncs.
88405         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
88406         elf_machine_lazy_rel): Likewise.
88407         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
88408         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
88409         elf_machine_lazy_rel): Likewise.
88410         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
88411         dl_hwcap via passed in argument.
88412         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
88413         Likewise.
88414
88415 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
88416
88417         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
88418
88419 2011-06-06  Roland McGrath  <roland@hack.frob.com>
88420
88421         [BZ #12849]
88422         * manual/fdl-1.1.texi: New file, verbatim from:
88423         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
88424         * manual/lgpl-2.1.texi: New file, verbatim from:
88425         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
88426         * manual/Makefile (licenses): New variable, list those new file names.
88427         (texis): Use it.
88428         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
88429
88430         * manual/fdl.texi: File removed.
88431         * manual/lesser.texi: File removed.
88432         * manual/libc.texinfo (Copying, Documentation License):
88433         Use new @include file names, put @appendix directive before @include.
88434
88435 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
88436
88437         [BZ #12841]
88438         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
88439         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
88440         (mq_open): Add __NTH.
88441
88442 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
88443
88444         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
88445         Assume Intel Core i3/i5/i7 processor if AVX is available.
88446
88447 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
88448
88449         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
88450         typo.
88451
88452 2011-05-31  Andreas Schwab  <schwab@redhat.com>
88453
88454         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
88455         memory.  Use alloca_account.  Fix memory leak when retrying.
88456
88457 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
88458
88459         * version.h (RELEASE): Bump for 2.14 release.
88460         * include/features.h (__GLIBC_MINOR__): Bump to 14.
88461
88462         * config.make.in (RANLIB): Remove entry.
88463
88464 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
88465
88466         * po/Makefile (po-sed-cmd): Add ksh to extensions.
88467         (libc.pot): Work around missing support for .ksh extension in xgettext.
88468
88469         [BZ #12684]
88470         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
88471         if both request failed.
88472         (send_dg): In case of server errors clear resplen or *resplen2.
88473
88474         [BZ #12454]
88475         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
88476         when there are multiple maps.
88477         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
88478         (_dl_fini): Remove test here.
88479
88480         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
88481
88482 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
88483
88484         [BZ #12350]
88485         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
88486         bit from old_res_options.
88487         (gaih_inet): Likewise.
88488
88489         [BZ #11099]
88490         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
88491         as signed.
88492
88493         * resolv/res_init.c (res_setoptions): Make the code more compact.
88494
88495         [BZ #11558]
88496         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
88497         set RES_USEVC.
88498
88499         [BZ #11634]
88500         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
88501
88502         * malloc/malloc.h: Mark malloc hook variables as deprecated.
88503
88504         [BZ #11781]
88505         * malloc/malloc.h: Declare malloc hook variables as volatile.
88506
88507         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
88508         in last patch.
88509
88510         [BZ #11799]
88511         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
88512         raise in the comment.
88513         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
88514         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
88515         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
88516
88517 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
88518
88519         [BZ #12811]
88520         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
88521         grow the buffers more if it already has to be sufficient.
88522         (build_wcs_upper_buffer): Likewise.
88523         * posix/regexec.c (check_matching): Likewise.
88524         (clean_state_log_if_needed): Likewise.
88525         (extend_buffers): Don't enlarge buffers beyond size of the input
88526         buffer.
88527         Patches mostly by Emil Wojak <emil@wojak.eu>.
88528         * posix/bug-regex32.c: New file.
88529         * posix/Makefile (tests): Add bug-regex32.
88530
88531         * locale/findlocale.c (_nl_find_locale): Return right away if
88532         _nl_explode_name failed.
88533         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
88534
88535         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
88536
88537         * debug/xtrace.sh: Unify messages.
88538         * malloc/memusage.sh: Likewise.
88539
88540         [BZ #12813]
88541         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
88542         time symbol from vDSO.  Substitute with vsyscall if not available.
88543         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
88544         __vdso_time.
88545
88546         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
88547         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
88548         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
88549         Add sendmmsg and internal_sendmmsg.
88550         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
88551         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
88552         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
88553
88554         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
88555         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
88556         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
88557
88558 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
88559
88560         [BZ #12813]
88561         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
88562         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
88563         available.
88564         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
88565         __vdso_getcpu.
88566
88567         [BZ #12814]
88568         * iconvdata/Makefile (tests): Add bug-iconv9.
88569         * iconvdata/bug-iconv9.c: New file.
88570
88571 2011-05-27  Andreas Schwab  <schwab@redhat.com>
88572
88573         [BZ #12814]
88574         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
88575
88576 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
88577
88578         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
88579         (struct user_regs_struct): Change intcs field back to cs.
88580
88581 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
88582
88583         * po/ja.po: Update from translation team.
88584
88585 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
88586
88587         [BZ #12795]
88588         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
88589         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
88590
88591 2011-05-20  Andreas Schwab  <schwab@redhat.com>
88592
88593         * stdlib/longlong.h: Update from GCC.
88594
88595 2011-05-23  Andreas Schwab  <schwab@redhat.com>
88596
88597         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
88598         parameter name.
88599         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
88600         Add parameter name.
88601         (__sysconf): Pass it down.
88602
88603 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
88604
88605         [BZ #12671]
88606         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
88607         some situations.
88608         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
88609         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
88610         add in in __libc_use_alloca calls.  Adjust callers.
88611         (glob): Use malloc in some situations.
88612
88613         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
88614         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
88615         pltexit.
88616
88617 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
88618
88619         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
88620         and CLOCK_BOOTTIME_ALARM.
88621
88622         [BZ #12782]
88623         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
88624         is returned.
88625
88626         * string/_strerror.c (__strerror_r): Print negative errors as signed
88627         numbers.
88628
88629         [BZ #12777]
88630         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
88631         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
88632         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
88633
88634         * configure.in: Fix typo in redirection and correct removal of test
88635         files in two cases.
88636
88637         [BZ #12788]
88638         * locale/setlocale.c (new_composite_name): Fix test to check for
88639         identical name of all categories.
88640
88641         [BZ #12792]
88642         * libio/filedoalloc.c (local_isatty): New function.
88643         (_IO_file_doallocate): Use local_isatty.
88644         * stdio-common/perror.c (perror): In case a new stream is used
88645         forward the stream error.
88646         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
88647         error flag.
88648
88649 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
88650
88651         [BZ #11884]
88652         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
88653         alloca.
88654         * include/alloca.h (extend_alloca_account): Define.
88655
88656         [BZ #11857]
88657         * posix/regex.h: Fix comments with documentation of user-accessible
88658         fields after compilation and describe correct free'ing of pattern
88659         after re_compile_pattern.
88660         Patch by Reuben Thomas <rrt@sc3d.org>.
88661
88662 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
88663
88664         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
88665         and -mno-altivec to prevent the compiler from using Altivec and/or
88666         VSX instructions when the corresponding registers are not available.
88667
88668 2011-05-19  Andreas Schwab  <schwab@redhat.com>
88669
88670         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
88671
88672 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
88673
88674         * libio/freopen.c (freopen): Use __dup2, not dup2.
88675         * libio/freopen64.c (freopen64): Likewise.
88676
88677 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
88678
88679         [BZ #12775]
88680         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
88681         * math/Makefile (tests): Add test-powl.
88682         (CFLAGS-test-powl.c): Define.
88683         * math/test-powl.c: New file.
88684
88685 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
88686
88687         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
88688
88689 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
88690
88691         [BZ #11837]
88692         * iconvdata/gb18030.c: Update to GB18020-2005.
88693
88694 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
88695
88696         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
88697         RE_SYNTAX_POSIX_AWK): Update to match recent development.
88698         Patch by Aharon Robbins <arnold@skeeve.com>.
88699
88700         [BZ #11892]
88701         * stdlib/putenv.c (putenv): Don't always create copy of the variable
88702         on the stack.
88703
88704         [BZ #11895]
88705         * misc/pselect.c (__pselect): Handle timeout value errors hidden
88706         through underflows.
88707
88708         [BZ #12766]
88709         * misc/error.c (error_at_line): Ensure file_name and old_file_name
88710         point to strings before performing equality test for error_one_per_line
88711         mode.
88712
88713         [BZ #11697]
88714         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
88715
88716         [BZ #11820]
88717         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
88718         (struct user_fpregs_struct): Avoid __uint*_t types.
88719
88720         [BZ #6420]
88721         * malloc/mtrace.c (tr_where): Add additional parameter to point to
88722         symbol info.  Use it instead of calling _dl_addr locally.
88723         (lock_and_info): New function.
88724         (tr_freehook): Call lock_and_info and pass symbol info as additional
88725         parameter to tr_where.
88726         (tr_mallochook): Likewise.
88727         (tr_reallochook): Likewise.
88728         (tr_memalignhook): Likewise.
88729
88730         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
88731         used and couldn't be at all thread-safe.
88732
88733 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
88734
88735         * libio/freopen.c (freopen): Don't close old file descriptor
88736         before the new one is opened.  Instead dup the new file descriptor
88737         to the old one after the new stream is created.
88738         * libio/freopen64.c (freopen64): Likewise.
88739         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
88740         * libio/fileops.c (_IO_new_file_close_it): Handle new
88741         _IO_FLAGS2_NOCLOSE flag.
88742         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
88743         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
88744         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
88745         _IO_FLAGS2_NOCLOSE flag.
88746         * include/unistd.h: Add hidden_proto for dup3.
88747         Define __have_dup3.
88748         * io/dup3.c: Define hidden symbol.
88749         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
88750
88751         [BZ #7101]
88752         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
88753         when an incomplete long option is used.
88754         * posix/tst-getopt_long1.c: New file.
88755         * posix/Makefile (tests): Add tst-getopt_long1.
88756
88757         [BZ #10138]
88758         * scripts/config.guess: Update from autoconf-2.68.
88759         * scripts/config.sub: Likewise.
88760
88761         [BZ #10157]
88762         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
88763         tests into ...
88764         (has_cpuclock): ...this.  New function.
88765         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
88766         macro here based on has_cpuclock code.
88767
88768         [BZ #10149]
88769         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
88770         First byte (not low byte) is now always NUL.
88771         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
88772
88773         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
88774         Use non-cancelable interfaces.
88775
88776         [BZ #9809]
88777         * locale/iso-639.def: Add entry for Sorani.
88778
88779         [BZ #11901]
88780         * include/stdlib.h: Move include protection to the right place.
88781         Define abort_msg_s.  Declare __abort_msg with it.
88782         * stdlib/abort.c (__abort_msg): Adjust type.
88783         * assert/assert.c (__assert_fail_base): New function.  Majority
88784         of code from __assert_fail.  Allocate memory for __abort_msg with
88785         mmap.
88786         (__assert_fail): Now call __assert_fail_base.
88787         * assert/assert-perr.c: Remove bulk of implementation.  Use
88788         __assert_fail_base.
88789         * include/assert.hL Declare __assert_fail_base.
88790         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
88791         mmap.
88792         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
88793
88794 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
88795
88796         [BZ #11952]
88797         [BZ #12453]
88798         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
88799         until all modules are registered in the DTV.
88800         * elf/Makefile: Add rules to build and run tst-tls19.
88801         * elf/tst-tls19.c: New file.
88802         * elf/tst-tls19mod1.c: New file.
88803         * elf/tst-tls19mod2.c: New file.
88804         * elf/tst-tls19mod3.c: New file.
88805         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
88806
88807         [BZ #12083]
88808         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
88809         correctly.
88810
88811         [BZ #12601]
88812         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
88813         two-byte sequence errors.
88814         * iconvdata/Makefile (tests): Add bug-iconv8.
88815         * iconvdata/bug-iconv8.c: New file.
88816
88817         [BZ #12626]
88818         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
88819         buf2 definition.
88820
88821         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
88822
88823         [BZ #12432]
88824         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
88825         (dummy_getcfa): New function.
88826         (init): Get _Unwind_GetCFA address, use dummy if not found.
88827         (backtrace_helper): In recursion check, also check whether CFA changes.
88828         (__backtrace): Completely initialize arg.
88829
88830         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
88831         storing incomplete byte sequence in state object.  Avoid testing for
88832         guaranteed too small input if we know there is enough data available.
88833
88834 2011-05-11  Andreas Schwab  <schwab@redhat.com>
88835
88836         * Makeconfig (+link-pie): Indent.
88837         * Rules (binaries-pie): Define if $(have-fpie) and
88838         $(build-shared).
88839         (binaries-shared): Also filter out $(binaries-pie).
88840         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
88841         * nscd/Makefile (others-pie): Add nscd.
88842         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
88843         ($(objpfx)nscd): Remove command override.
88844         * login/Makefile (others-pie): Add pt_chown.
88845         ($(objpfx)pt_chown): Remove command override.
88846         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
88847         remove command overrides.
88848
88849 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
88850
88851         * libio/tst_putwc.c: Fix error messages.
88852
88853         [BZ #12724]
88854         * libio/fileops.c (_IO_new_file_close_it): Always flush when
88855         currently writing and seek to current position when not.
88856         * libio/Makefile (tests): Add bug-fclose1.
88857         * libio/bug-fclose1.c: New file.
88858
88859 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
88860
88861         [BZ #12511]
88862         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
88863         don't set DF_1_NODELETE here.
88864         (do_lookup_x): When entering new entry test for copy relocation
88865         and if necessary set DF_1_NODELETE flag.
88866         * elf/tst-unique4.cc: New file.
88867         * elf/tst-unique4.h: New file.
88868         * elf/tst-unique4lib.cc: New file.
88869         * elf/Makefile: Add rules to build and run tst-unique4.
88870         Patch by Piotr Bury <pbury@goahead.com>.
88871
88872 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
88873
88874         [BZ #12052]
88875         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
88876
88877         [BZ #12625]
88878         * misc/mntent_r.c (addmntent): Flush the stream after the output
88879
88880         [BZ #12393]
88881         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
88882         (is_trusted_path_normalize): Skip initial colon.  Append slash
88883         to empty buffer.  Duplicate is_trusted_path code but allow
88884         constructed patch to be prefix.
88885         (is_dst): Allow $ORIGIN followed by /.
88886         (_dl_dst_substitute): Correct clearing of check_for_trusted.
88887         Correct testing of result of is_trusted_path_normalize
88888         (decompose_rpath): Fix warning.
88889
88890 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
88891
88892         [BZ #11257]
88893         * grp/initgroups.c (internal_getgrouplist): When we found the service
88894         list through the initgroups entry in nsswitch.conf do not always
88895         continue on a successful lookup.  Don't always use the
88896         __nss_group_database value if it is set.
88897         * nss/nsswitch.conf (initgroups): Change action for successful db
88898         lookup to continue for compatibility.
88899
88900 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
88901
88902         [BZ #11532]
88903         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
88904         and CP774 modules.
88905         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
88906         and CP774 modules.
88907         * iconvdata/tst-tables.sh: Likewise.
88908         * iconvdata/cp770.c: New file.
88909         * iconvdata/cp771.c: New file.
88910         * iconvdata/cp772.c: New file.
88911         * iconvdata/cp773.c: New file.
88912         * iconvdata/cp774.c: New file.
88913         * iconvdata/testdata/CP770: New file.
88914         * iconvdata/testdata/CP770..UTF8: New file.
88915         * iconvdata/testdata/CP771: New file.
88916         * iconvdata/testdata/CP771..UTF8: New file.
88917         * iconvdata/testdata/CP772: New file.
88918         * iconvdata/testdata/CP772..UTF8: New file.
88919         * iconvdata/testdata/CP773: New file.
88920         * iconvdata/testdata/CP773..UTF8: New file.
88921         * iconvdata/testdata/CP774: New file.
88922         * iconvdata/testdata/CP774..UTF8: New file.
88923
88924         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
88925         END CHARMAP line.
88926         * iconvdata/gen-8bit-gap.sh: Likewise.
88927         * iconvdata/gen-8bit.sh: Likewise.
88928
88929         * locale/iso-639.def: Add ary entry.
88930
88931         [BZ #11258]
88932         * locale/C-translit.h.in: Add U20A1 transliteration.
88933
88934         [BZ #12178]
88935         * locale/iso-639.def: Add wae entry.
88936         Patch by Kevin Bortis <bortis@translate-wae.ch>.
88937
88938         [BZ #12545]
88939         * locale/programs/localedef.c (construct_output_path): Use ssize_t
88940         for n.
88941
88942         [BZ #12711]
88943         * locale/C-translit.h.in: Add entry for U20B9.
88944         Patch by pravin.d.s@gmail.com.
88945
88946 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
88947
88948         [BZ #12713]
88949         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
88950         ENAMETOOLONG use generic getcwd.
88951         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
88952         in rtld.  Use *stat64.
88953         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
88954         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
88955         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
88956         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
88957         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
88958         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
88959         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
88960         __fstatat64 macros.
88961         * include/dirent.h: Add libc_hidden_proto for rewinddir.
88962         * dirent/rewinddir.c: Add libc_hidden_def.
88963         * sysdeps/mach/hurd/rewinddir.c: Likewise.
88964         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
88965
88966         * include/dirent.h (__alloc_dir): Add flags parameter.
88967         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
88968         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
88969         __alloc_dir.
88970         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
88971         from fdopendir if O_CLOEXEC is already set.
88972
88973 2011-03-15  Alan Modra  <amodra@gmail.com>
88974
88975         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
88976         l_tls_firstbyte_offset non-zero.  Save padding offset in
88977         l_tls_firstbyte_offset for later use.
88978         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
88979         freeing static tls block.
88980
88981 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
88982
88983         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
88984         where #ifdef was intended.  The intent is to prevent ARG_MAX from
88985         being defined by the kernel headers.
88986
88987 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
88988
88989         [BZ #12734]
88990         * resolv/resolv.h: Define RES_NOTLDQUERY.
88991         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
88992         no-tld-query and set RES_NOTLDQUERY.
88993         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
88994         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
88995         modern BIND to search name as TLD unless forbidden.
88996
88997 2011-05-07  Petr Baudis  <pasky@suse.cz>
88998             Ulrich Drepper  <drepper@gmail.com>
88999
89000         [BZ #12393]
89001         * elf/dl-load.c (fillin_rpath): Move trusted path check...
89002         (is_trusted_path): ...to here.
89003         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
89004         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
89005         using is_trusted_path_normalize() in setuid scripts.
89006
89007 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
89008
89009         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
89010         __BEGIN/__END_DECLS.
89011
89012 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
89013
89014         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
89015         NSS_STATUS_NOTFOUND if no record was found.
89016
89017 2011-05-05  Andreas Schwab  <schwab@redhat.com>
89018
89019         * sunrpc/Makefile (headers): Add rpc/netdb.h.
89020         (headers-not-in-tirpc): Remove rpc/netdb.h
89021         * resolv/netdb.h: Revert last change.
89022
89023 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
89024
89025         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
89026         circular dependency between libgcc.a and libc.a.
89027
89028 2011-05-05  Andreas Schwab  <schwab@redhat.com>
89029
89030         * resolv/netdb.h: Don't include <rpc/netdb.h>.
89031         * nis/Makefile: Don't install rpcsvc/*.
89032         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
89033         instead of <rpc/types.h>.
89034         (MAXHOSTNAMELEN): Define.
89035
89036 2011-05-03  Andreas Schwab  <schwab@redhat.com>
89037
89038         * elf/ldconfig.c (add_dir): Don't crash on empty path.
89039
89040 2011-04-28  Maciej Babinski  <mbabinski@google.com>
89041
89042         [BZ #12714]
89043         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
89044         gethostbyname4_r when IPv6 results are possible.
89045
89046 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
89047
89048         [BZ #12723]
89049         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
89050         _PC_PIPE_BUF handling.
89051
89052 2011-04-30  Bruno Haible  <bruno@clisp.org>
89053
89054         [BZ #12717]
89055         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
89056         * resolv/netdb.h (getnameinfo): Change type of flags parameter
89057         to 'int'.
89058         * inet/getnameinfo.c (getnameinfo): Likewise.
89059
89060 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
89061
89062         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
89063         to groups setting in database lookup.
89064         * nss/nsswitch.conf: Add initgroups entry.
89065
89066 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
89067
89068         [BZ #12685]
89069         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
89070         mode string.
89071         Patch by Eric Blake <eblake@redhat.com>.
89072
89073 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
89074
89075         * sunrpc/Makefile (need-export-routines): Add svc_run.
89076         (routines): Remove svc_run.
89077         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
89078         * sunrpc/clnt_perr.c (clnt_perrno): Export.
89079         * sunrpc/svc_run.c (svc_run): Likewise.
89080         * sunrpc/svc_udp.c (svcudp_create): Likewise.
89081
89082 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
89083
89084         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
89085         problem in reallocation in last patch.
89086
89087 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
89088
89089         * sunrpc/Makefile: Move inclusion of Rules.
89090
89091 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
89092
89093         * nss/nss_files/files-initgroups.c: New file.
89094         * nss/Makefile (libnss_files-routines): Add files-initgroups.
89095         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
89096         _nss_files_initgroups_dyn.
89097
89098 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
89099
89100         * elf/elf.h (R_ARM_IRELATIVE): Define.
89101
89102 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
89103
89104         * po/ru.po: Update from translation team.
89105
89106 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
89107
89108         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
89109         dependencies.
89110
89111 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
89112
89113         [BZ #12653]
89114         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
89115         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
89116         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
89117         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
89118         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
89119
89120 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
89121
89122         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
89123         differing bytes.
89124         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
89125         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
89126         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
89127
89128 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
89129
89130         [BZ #12420]
89131         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
89132         storing it.
89133         * stdlib/bug-getcontext.c: New file.
89134         * stdlib/Makefile: Add rules to build and run bug-getcontext.
89135
89136 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
89137
89138         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
89139         instructions into .machine "z9-109".
89140         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
89141         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
89142
89143 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
89144
89145         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
89146         between environment variables and auxiliary vector.
89147
89148 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
89149
89150         * Makefile: Add rules to build linkobj/libc.so.
89151         * include/libc-symbols.h: Define libc_hidden_nolink.
89152         * include/rpc/auth.h: Mark functions which are to be hidden.
89153         * include/rpc/auth_des.h: Likewise.
89154         * include/rpc/auth_unix.h: Likewise.
89155         * include/rpc/clnt.h: Likewise.
89156         * include/rpc/des_crypt.h: Likewise.
89157         * include/rpc/key_prot.h: Likewise.
89158         * include/rpc/pmap_clnt.h: Likewise.
89159         * include/rpc/pmap_prot.h: Likewise.
89160         * include/rpc/pmap_rmt.h: Likewise.
89161         * include/rpc/rpc_msg.h: Likewise.
89162         * include/rpc/svc.h: Likewise.
89163         * include/rpc/svc_auth.h: Likewise.
89164         * include/rpc/xdr.h: Likewise.
89165         * nis/Makefile: Link all DSOs against linkobj/libc.so.
89166         * nss/Makefile: Likewise.
89167         * sunrpc/Makefile: Don't install headers.  Build library with normal
89168         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
89169         * sunrpc/auth_des.c: Hide exported symbols by default, export some
89170         for the compat linking library.  Remove use of INTDEF/INTUSE.
89171         * sunrpc/auth_none.c: Likewise.
89172         * sunrpc/auth_unix.c: Likewise.
89173         * sunrpc/authdes_prot.c: Likewise.
89174         * sunrpc/authuxprot.c: Likewise.
89175         * sunrpc/clnt_gen.c: Likewise.
89176         * sunrpc/clnt_perr.c: Likewise.
89177         * sunrpc/clnt_raw.c: Likewise.
89178         * sunrpc/clnt_simp.c: Likewise.
89179         * sunrpc/clnt_tcp.c: Likewise.
89180         * sunrpc/clnt_udp.c: Likewise.
89181         * sunrpc/clnt_unix.c: Likewise.
89182         * sunrpc/des_crypt.c: Likewise.
89183         * sunrpc/des_soft.c: Likewise.
89184         * sunrpc/get_myaddr.c: Likewise.
89185         * sunrpc/key_call.c: Likewise.
89186         * sunrpc/key_prot.c: Likewise.
89187         * sunrpc/netname.c: Likewise.
89188         * sunrpc/pm_getmaps.c: Likewise.
89189         * sunrpc/pm_getport.c: Likewise.
89190         * sunrpc/pmap_clnt.c: Likewise.
89191         * sunrpc/pmap_prot.c: Likewise.
89192         * sunrpc/pmap_prot2.c: Likewise.
89193         * sunrpc/pmap_rmt.c: Likewise.
89194         * sunrpc/publickey.c: Likewise.
89195         * sunrpc/rpc_cmsg.c: Likewise.
89196         * sunrpc/rpc_common.c: Likewise.
89197         * sunrpc/rpc_dtable.c: Likewise.
89198         * sunrpc/rpc_prot.c: Likewise.
89199         * sunrpc/rpc_thread.c: Likewise.
89200         * sunrpc/rtime.c: Likewise.
89201         * sunrpc/svc.c: Likewise.
89202         * sunrpc/svc_auth.c: Likewise.
89203         * sunrpc/svc_authux.c: Likewise.
89204         * sunrpc/svc_raw.c: Likewise.
89205         * sunrpc/svc_run.c: Likewise.
89206         * sunrpc/svc_simple.c: Likewise.
89207         * sunrpc/svc_tcp.c: Likewise.
89208         * sunrpc/svc_udp.c: Likewise.
89209         * sunrpc/svc_unix.c: Likewise.
89210         * sunrpc/svcauth_des.c: Likewise.
89211         * sunrpc/xcrypt.c: Likewise.
89212         * sunrpc/xdr.c: Likewise.
89213         * sunrpc/xdr_array.c: Likewise.
89214         * sunrpc/xdr_float.c: Likewise.
89215         * sunrpc/xdr_intXX_t.c: Likewise.
89216         * sunrpc/xdr_mem.c: Likewise.
89217         * sunrpc/xdr_rec.c: Likewise.
89218         * sunrpc/xdr_ref.c: Likewise.
89219         * sunrpc/xdr_sizeof.c: Likewise.
89220         * sunrpc/xdr_stdio.c: Likewise.
89221
89222 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
89223
89224         [BZ #12650]
89225         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
89226         * sysdeps/ia64/dl-tls.h: Likewise.
89227         * sysdeps/powerpc/dl-tls.h: Likewise.
89228         * sysdeps/s390/dl-tls.h: Likewise.
89229         * sysdeps/sh/dl-tls.h: Likewise.
89230         * sysdeps/sparc/dl-tls.h: Likewise.
89231         * sysdeps/x86_64/dl-tls.h: Likewise.
89232         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
89233
89234 2011-03-14  Andreas Schwab  <schwab@redhat.com>
89235
89236         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
89237         rpath element also skip the following colon.
89238         (expand_dynamic_string_token): Add is_path parameter and pass
89239         down to DL_DST_REQUIRED and _dl_dst_substitute.
89240         (decompose_rpath): Call expand_dynamic_string_token with
89241         non-zero is_path.  Ignore empty rpaths.
89242         (_dl_map_object_from_fd): Call expand_dynamic_string_token
89243         with zero is_path.
89244
89245 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
89246
89247         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
89248         Make cancelable.
89249
89250 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
89251
89252         [BZ #12655]
89253         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
89254         Patch by Filipe David Manana <fdmanana@apache.org>.
89255
89256 2011-04-07  Andreas Schwab  <schwab@redhat.com>
89257
89258         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
89259         Maintain aligned stack.
89260         (CHECK_RSP): Remove unused macro.
89261
89262 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
89263
89264         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
89265         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
89266
89267 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
89268
89269         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
89270
89271         * include/features.h: Mention __USE_XOPEN2K8 in comment.
89272
89273 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
89274
89275         [BZ #12518]
89276         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
89277         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
89278         * sysdeps/x86_64/memmove.c: New file.
89279         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
89280         (memcpy): Renamed to ...
89281         (__new_memcpy): This.
89282         (memcpy): Provide GLIBC_2_14 memcpy.
89283         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
89284         (memcpy): Provide GLIBC_2_2_5 memcpy.
89285
89286 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
89287
89288         [BZ #12631]
89289         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
89290
89291 2011-03-30  Andreas Schwab  <schwab@redhat.com>
89292
89293         * misc/syncfs.c: New file.
89294         * misc/Makefile (routines): Add syncfs.
89295         * posix/unistd.h: Declare syncfs.
89296         * sysdeps/unix/syscalls.list: Add syncfs.
89297
89298 2011-04-01  Andreas Schwab  <schwab@redhat.com>
89299
89300         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
89301         open_by_handle_at.
89302         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
89303         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
89304         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
89305         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
89306         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
89307         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
89308         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
89309
89310 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
89311
89312         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
89313         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
89314         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
89315         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
89316         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
89317         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
89318         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
89319
89320         * io/Makefile: Compile fallocate.c, fallocate64.c, and
89321         sync_file_range.c with -fexceptions.
89322         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
89323         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
89324         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
89325         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
89326         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
89327         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
89328         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
89329         sync_file_range as cancellation point
89330         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
89331         now a wrapper around __call_sync_file_range with cancellation handling.
89332         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
89333         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
89334         function name to __call_sync_file_range.
89335         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
89336         Add call_sync_file_range.
89337
89338 2011-04-01  Andreas Schwab  <schwab@redhat.com>
89339
89340         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
89341         bits/timex.h.
89342
89343 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
89344
89345         * iconv/iconv.h: Fix typo in comment.
89346         * io/fcntl.h: Likewise.
89347         * libio/stdio.h: Likewise.
89348         * posix/spawn.h: Likewise.
89349         * posix/unistd.h: Likewise.
89350         * stdlib/stdlib.h: Likewise.
89351         * time/time.h: Likewise.
89352         * wcsmbs/wchar.h: Likewise.
89353
89354         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
89355         open_by_handle): Add.
89356         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
89357         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
89358         Augment a few comments.
89359         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
89360         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
89361         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
89362         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
89363         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
89364         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
89365         open_by_handle.
89366
89367         * io/fcntl.h (AT_EMPTY_PATH): Define.
89368
89369 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
89370
89371         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
89372         * sysdeps/unix/sysv/linux/bits/time.h: New file.
89373         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
89374         to...
89375         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
89376         * Versions.def: Add GLIBC_2.14.
89377         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
89378         Export.
89379
89380 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
89381
89382         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
89383         round counter.
89384         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
89385
89386 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
89387
89388         [BZ #12597]
89389         * string/test-strncmp.c (do_page_test): New function.
89390         (check2): Likewise.
89391         (test_main): Call check2.
89392         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
89393
89394 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
89395
89396         [BZ #12587]
89397         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
89398         Handle cache information in CPU leaf 4.
89399         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
89400
89401 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
89402
89403         [BZ #12583]
89404         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
89405         character representation.
89406         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
89407
89408 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
89409
89410         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
89411         END(__isnan) to END(__isnanf) to match function entry point/label
89412         EALIGN(__isnanf,...).
89413
89414 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
89415
89416         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
89417
89418 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
89419
89420         [BZ #12510]
89421         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
89422         copy from the symbol referenced in the relocation to initialize the
89423         used variable.
89424         Patch by Piotr Bury <pbury@goahead.com>.
89425         * elf/Makefile: Add rules to build and tst-unique3.
89426         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
89427         * elf/tst-unique3.cc: New file.
89428         * elf/tst-unique3.h: New file.
89429         * elf/tst-unique3lib.cc: New file.
89430         * elf/tst-unique3lib2.cc: New file.
89431
89432         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
89433
89434 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
89435
89436         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
89437         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
89438         to _start.
89439
89440 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
89441
89442         * elf/dl-load.c (_dl_map_object): If we are looking for the first
89443         to-be-loaded object along a path to loader is ld.so.
89444
89445 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
89446             Ulrich Drepper  <drepper@gmail.com>
89447
89448         * sysdeps/x86_64/memset.S: After aligning destination, code
89449         branches to different locations depending on the value of
89450         misalignment, when multiarch is enabled. Fix this.
89451
89452 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
89453
89454         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
89455         Set _x86_64_preferred_memory_instruction for AMD processsors.
89456         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
89457         Set bit_Prefer_SSE_for_memop for AMD processors.
89458
89459 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
89460
89461         * libio/fmemopen.c (fmemopen): Optimize a bit.
89462
89463 2011-03-03  Andreas Schwab  <schwab@redhat.com>
89464
89465         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
89466
89467 2011-03-03  Roland McGrath  <roland@redhat.com>
89468
89469         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
89470
89471 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
89472
89473         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
89474         __bzero_ultra1 instead of __memset_ultra1.
89475
89476 2011-02-23  Andreas Schwab  <schwab@redhat.com>
89477             Ulrich Drepper  <drepper@gmail.com>
89478
89479         [BZ #12509]
89480         * include/link.h (struct link_map): Add l_orig_initfini.
89481         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
89482         returning unsuccessfully.
89483         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
89484         close of a file loaded at startup, restore the original l_initfini
89485         list.
89486         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
89487         list, store the pointer.
89488         * elf/Makefile ($(objpfx)noload-mem): New rule.
89489         (noload-ENV): Define.
89490         (tests): Add $(objpfx)noload-mem.
89491         * elf/noload.c: Include <memcheck.h>.
89492         (main): Call mtrace.  Close all opened handles.
89493
89494 2011-02-17  Andreas Schwab  <schwab@redhat.com>
89495
89496         [BZ #12454]
89497         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
89498         dependencies are missing.
89499
89500 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
89501
89502         Fix __if_freereq crash: Unlike the generic version which uses free,
89503         Hurd needs munmap.
89504         * sysdeps/mach/hurd/ifreq.h: New file.
89505
89506 2011-01-27  Petr Baudis  <pasky@suse.cz>
89507             Ulrich Drepper  <drepper@gmail.com>
89508
89509         [BZ 12445]#
89510         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
89511         to extend_alloca().
89512         * stdio-common/bug23.c: New file.
89513         * stdio-common/Makefile (tests): Add bug23.
89514
89515 2010-09-28  Andreas Schwab  <schwab@redhat.com>
89516             Ulrich Drepper  <drepper@gmail.com>
89517
89518         [BZ #12489]
89519         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
89520         before performing relro protection.  At old place add assertion
89521         to make sure nothing changed.
89522
89523 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
89524             Glauber de Oliveira Costa  <glommer@gmail.com>
89525
89526         * elf/elf.h: Add new ARM TLS relocs.
89527
89528 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
89529
89530         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
89531         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
89532         cast from r3.
89533         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
89534         'tests' variable.
89535         * sysdeps/wordsize-64/tst-writev.c: New file.
89536
89537 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
89538
89539         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
89540         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
89541         insns in _dl_start to prevent a TOC reference before relocs are
89542         resolved.
89543
89544 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
89545
89546         [BZ #12469]
89547         * Makeconfig: Remove RANLIB definition.
89548         * Makerules: Don't use RANLIB.
89549         * aclocal.m4: Remove ranlib test.
89550         * configure.in: No need to check for ranlib.
89551         * elf/rtld-Rules: Don't use RANLIB.
89552
89553 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
89554
89555         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
89556         protection macro.
89557         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
89558         inclusion protection macro.
89559
89560         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
89561         SIGRTMIN and SIGRTMAX and print information in that case only when
89562         SIGRTMIN is defined.
89563
89564 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
89565
89566         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
89567         arginfo fn returning -1.
89568
89569         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
89570         and thousands string is zero terminated.
89571
89572 2011-02-03  Andreas Schwab  <schwab@redhat.com>
89573
89574         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
89575         sysdeps/unix/sysv/linux/bits/socket.h.
89576
89577 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
89578
89579         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
89580         (__CPU_COUNT): Remove old macros.
89581         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
89582         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
89583         (__CPU_ALLOC, __CPU_FREE): Add macros.
89584         (__sched_cpualloc, __sched_cpufree): Add declarations.
89585
89586 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
89587
89588         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
89589         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
89590         * nscd/aicache.c (addhstaiX): Return timeout of added value.
89591         (readdhstai): Return value of addhstaiX call.
89592         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
89593         (addgrbyX): Return value returned by cache_addgr.
89594         (readdgrbyname): Return value returned by addgrbyX.
89595         (readdgrbygid): Likewise.
89596         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
89597         (addpwbyX): Return value returned by cache_addpw.
89598         (readdpwbyname): Return value returned by addhstbyX.
89599         (readdpwbyuid): Likewise.
89600         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
89601         (addservbyX): Return value returned by cache_addserv.
89602         (readdservbyname): Return value returned by addservbyX:
89603         (readdservbyport): Likewise.
89604         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
89605         (addhstbyX): Return value returned by cache_addhst.
89606         (readdhstbyname): Return value returned by addhstbyX.
89607         (readdhstbyaddr): Likewise.
89608         (readdhstbynamev6): Likewise.
89609         (readdhstbyaddrv6): Likewise.
89610         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
89611         (readdinitgroups): Return value returned by addinitgroupsX.
89612         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
89613         (prune_cache): Keep track of timeout value of re-added entries.
89614         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
89615         * nscd/nscd.h: Adjust prototypes of readd* functions.
89616
89617 2011-02-04  Roland McGrath  <roland@redhat.com>
89618
89619         * nis/nis_server.c (nis_servstate): Use the right name for 0.
89620         (nis_stats): Likewise.
89621         * nis/nis_modify.c (nis_modify): Likewise.
89622         * nis/nis_remove.c (nis_remove): Likewise.
89623         * nis/nis_add.c (nis_add): Likewise.
89624
89625         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
89626
89627         * posix/fnmatch_loop.c: Add some consts.
89628
89629         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
89630
89631 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
89632
89633         [BZ #12460]
89634         * config.make.in (config-cflags-novzeroupper): Define.
89635         * configure.in: Substitute libc_cv_cc_novzeroupper.
89636         * elf/Makefile (AVX-CFLAGS): Define.
89637         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
89638         (CFLAGS-tst-auditmod4a.c): Likewise.
89639         (CFLAGS-tst-auditmod4b.c): Likewise.
89640         (CFLAGS-tst-auditmod6b.c): Likewise.
89641         (CFLAGS-tst-auditmod6c.c): Likewise.
89642         (CFLAGS-tst-auditmod7b.c): Likewise.
89643         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
89644
89645 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
89646
89647         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
89648         function to the callback.
89649         Patch partly by Jiri Olsa <jolsa@redhat.com>.
89650
89651 2011-02-02  Andreas Schwab  <schwab@redhat.com>
89652
89653         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
89654         of errno.
89655
89656 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
89657
89658         [BZ #11724]
89659         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
89660         of constructors.
89661         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
89662         of destructors.
89663         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
89664
89665         [BZ #11724]
89666         * elf/Makefile: Add rules to build and run new test.
89667         * elf/tst-initorder.c: New file.
89668         * elf/tst-initorder.exp: New file.
89669         * elf/tst-initordera1.c: New file.
89670         * elf/tst-initordera2.c: New file.
89671         * elf/tst-initordera3.c: New file.
89672         * elf/tst-initordera4.c: New file.
89673         * elf/tst-initorderb1.c: New file.
89674         * elf/tst-initorderb2.c: New file.
89675         * elf/tst-order-a1.c: New file.
89676         * elf/tst-order-a2.c: New file.
89677         * elf/tst-order-a3.c: New file.
89678         * elf/tst-order-a4.c: New file.
89679         * elf/tst-order-b1.c: New file.
89680         * elf/tst-order-b2.c: New file.
89681         * elf/tst-order-main.c: New file.
89682         New test case by George Gensure <werkt0@gmail.com>.
89683
89684 2010-10-01  Andreas Schwab  <schwab@redhat.com>
89685
89686         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
89687         decoding ACE if AI_CANONIDN.
89688
89689 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
89690
89691         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
89692
89693 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
89694
89695         * version.h (RELEASE): Bump for 2.13 release.
89696         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
89697
89698         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
89699
89700         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
89701         MADV_NOHUGEPAGE.
89702         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
89703         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
89704         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
89705         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
89706         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
89707         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
89708
89709         * posix/getconf.c: Update copyright year.
89710         * catgets/gencat.c: Likewise.
89711         * csu/version.c: Likewise.
89712         * debug/catchsegv.sh: Likewise.
89713         * debug/xtrace.sh: Likewise.
89714         * elf/ldconfig.c: Likewise.
89715         * elf/ldd.bash.in: Likewise.
89716         * elf/sprof.c (print_version): Likewise.
89717         * iconv/iconv_prog.c: Likewise.
89718         * iconv/iconvconfig.c: Likewise.
89719         * locale/programs/locale.c: Likewise.
89720         * locale/programs/localedef.c: Likewise.
89721         * malloc/memusage.sh: Likewise.
89722         * malloc/mtrace.pl: Likewise.
89723         * nscd/nscd.c (print_version): Likewise.
89724         * nss/getent.c: Likewise.
89725
89726         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
89727         PF_CAIF, and PF_ALG.
89728         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
89729
89730 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
89731
89732         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
89733         (modules-names): Use them.
89734         (ifunc-test-modules, ifunc-pie-tests): Define.
89735         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
89736         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
89737         (test-extras): Likewise.
89738         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
89739         $(compile-command.c).
89740         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
89741         (all-built-dso): Define.
89742         (check-textrel.out, check-execstack.out): Depend on it.
89743
89744         * configure.in: Don't override --enable-multi-arch.
89745
89746 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
89747
89748         [BZ #6812]
89749         * nscd/hstcache.c (tryagain): Define.
89750         (cache_addhst): Return tryagain not notfound for temporary errors.
89751         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
89752         failed.
89753
89754 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
89755
89756         [BZ #10563]
89757         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
89758         to make the syscall.
89759         * sysdeps/unix/sysv/linux/setgroups.c: New file.
89760
89761         [BZ #12378]
89762         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
89763         and fall back to matching as normal character if the string ends before
89764         the matching ']' is found.  This is what POSIX requires.
89765         * posix/testfnm.c: Adjust test result.
89766         * posix/globtest.sh: Adjust test result.  Add new test.
89767         * posix/tst-fnmatch.input: Likewise.
89768         * posix/tst-fnmatch2.c: Add new test.
89769
89770 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
89771
89772         * elf/Makefile (check-execstack): Revert last change.  Depend on
89773         check-execstack.h.
89774         (check-execstack.h): New target.
89775         (generated): Add check-execstack.h.
89776         * elf/check-execstack.c: Include "check-execstack.h".
89777         (main): Revert last change.
89778         (handle_file): Return zero if GNU_STACK is absent and
89779         DEFAULT_STACK_PERMS doesn't include PF_X.
89780
89781 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
89782
89783         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
89784         in child fails because the descriptor is already closed.
89785         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
89786         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
89787         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
89788
89789         [BZ #12397]
89790         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
89791         syscall.
89792
89793         [BZ #10484]
89794         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
89795         temporary buffer used to handle multi lookups locally.
89796         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
89797
89798 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
89799
89800         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
89801         loader is ld.so.
89802
89803 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
89804
89805         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
89806         alignment for SSE2.
89807
89808 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
89809
89810         [BZ #12394]
89811         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
89812         characters.  When rounding increased number of integer digits recompute
89813         number of groups.
89814         * stdio-common/tst-grouping.c: New file.
89815         * stdio-common/Makefile: Add rules to build and run tst-grouping.
89816
89817 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
89818
89819         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
89820         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
89821
89822         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
89823         void.
89824         * bits/select.h: Likewise.
89825
89826 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
89827
89828         * po/ja.po: Update from translation team.
89829
89830 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
89831
89832         [BZ #11155]
89833         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
89834         implementation just like for lxstat, fxstatat, et al.
89835
89836 2010-12-27  Jim Meyering  <meyering@redhat.com>
89837
89838         [BZ #12348]
89839         * posix/regexec.c (build_trtable): Return failure indication upon
89840         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
89841
89842 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
89843
89844         [BZ #12201]
89845         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
89846         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
89847         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
89848         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
89849
89850         [BZ #12207]
89851         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
89852
89853         [BZ #12204]
89854         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
89855         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
89856
89857 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
89858
89859         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
89860         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
89861         script has SORT_BY_INIT_PRIORITY.
89862         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
89863         NO_CTORS_DTORS_SECTIONS is defined.
89864         * elf/soinit.c: Likewise.
89865         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
89866         NO_CTORS_DTORS_SECTIONS is defined.
89867         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
89868         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
89869         * sysdeps/sh/init-first.c: Likewise.
89870         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
89871
89872 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
89873
89874         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
89875         always use the slow path.
89876
89877 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
89878
89879         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
89880         similar rule which adds the sysdep directories to the header search in
89881         order to pick up the correct platform stackinfo.h.
89882         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
89883         perform test if it is, otherwise return successfully without testing.
89884         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
89885         DEFAULT_STACK_PERMS define in stackinfo.h.
89886         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
89887         defined in stackinfo.h.
89888         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
89889         DEFAULT_STACK_PERMS defined in stackinfo.h.
89890         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
89891         * sysdeps/ia64/stackinfo.h: Likewise.
89892         * sysdeps/s390/stackinfo.h: Likewise.
89893         * sysdeps/sh/stackinfo.h: Likewise.
89894         * sysdeps/sparc/stackinfo.h: Likewise.
89895         * sysdeps/x86_64/stackinfo.h: Likewise.
89896         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
89897         PF_X for powerpc64.  Retain PF_X for powerpc32.
89898
89899 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
89900
89901         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
89902         accurately.
89903         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
89904         GETDENTS_64BIT_ALIGNED.
89905
89906 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
89907
89908         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
89909
89910 2010-12-10  Andreas Schwab  <schwab@redhat.com>
89911
89912         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
89913         _GNU_SOURCE.
89914
89915         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
89916         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
89917         Remove __restrict.
89918         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
89919         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
89920
89921 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
89922
89923         [BZ #11655]
89924         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
89925         are initialized.
89926
89927 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
89928
89929         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
89930
89931 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
89932
89933         * po/it.po: Update from translation team.
89934
89935 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
89936
89937         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
89938         unused codes.
89939
89940 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
89941
89942         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
89943
89944 2010-11-24  Andreas Schwab  <schwab@redhat.com>
89945
89946         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
89947         specially.
89948         (gaih_getanswer_slice): Likewise.
89949
89950 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
89951
89952         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
89953
89954 2010-05-31  Petr Baudis  <pasky@suse.cz>
89955
89956         [BZ #11149]
89957         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
89958         silently even in the chroot mode.
89959
89960 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
89961
89962         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
89963         last patch a bit.  Pretty printing
89964
89965 2010-05-31  Petr Baudis <pasky@suse.cz>
89966
89967         [BZ #10085]
89968         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
89969         initialization of skip_initgroups_dyn.
89970
89971 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
89972
89973         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
89974         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
89975
89976 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
89977
89978         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
89979
89980 2010-11-11  Andreas Schwab  <schwab@redhat.com>
89981
89982         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
89983         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
89984         (tst-fnmatch-ENV): Set MALLOC_TRACE.
89985         ($(objpfx)tst-fnmatch-mem): New rule.
89986         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
89987         * posix/tst-fnmatch.c (main): Call mtrace.
89988
89989 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
89990
89991         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
89992         Support Intel processor model 6 and model 0x2c.
89993
89994 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
89995
89996         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
89997           signed comparison.
89998
89999 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
90000
90001         [BZ #12205]
90002         * string/test-strncasecmp.c (check_result): New function.
90003         (do_one_test): Use it.
90004         (check1): New function.
90005         (test_main): Use it.
90006         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
90007         Support strcasecmp and strncasecmp.
90008
90009 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
90010
90011         [BZ #12194]
90012         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
90013         * sysdeps/x86_64/bits/byteswap.h: Likewise.
90014
90015 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
90016
90017         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
90018         IFUNC support.
90019         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
90020         memset-x86-64.
90021         * sysdeps/x86_64/multiarch/bzero.S: New file.
90022         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
90023         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
90024         * sysdeps/x86_64/multiarch/memset.S: New file.
90025         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
90026         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
90027         Set bit_Prefer_SSE_for_memop for Intel processors.
90028         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
90029         Define.
90030         (index_Prefer_SSE_for_memop): Define.
90031         (HAS_PREFER_SSE_FOR_MEMOP): Define.
90032
90033 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
90034
90035         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
90036         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
90037
90038 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
90039
90040         [BZ #12191]
90041         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
90042         (__x86_64_raw_data_cache_size_half): Likewise.
90043         (__x86_64_raw_shared_cache_size): Likewise.
90044         (__x86_64_raw_shared_cache_size_half): Likewise.
90045
90046         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
90047         (__x86_64_raw_data_cache_size_half): Likewise.
90048         (__x86_64_raw_shared_cache_size): Likewise.
90049         (__x86_64_raw_shared_cache_size_half): Likewise.
90050         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
90051         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
90052         and __x86_64_raw_shared_cache_size_half.  Round
90053         __x86_64_data_cache_size_half, __x86_64_data_cache_size
90054         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
90055         to multiple of 256 bytes.
90056
90057 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
90058
90059         [BZ #12167]
90060         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
90061         of inacessible symlinks.  Verify result of symlink before returning it.
90062         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
90063         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
90064
90065 2010-10-28  Erich Ritz  <erichritz@gmail.com>
90066
90067         * math/math.h (isinf): Fix typo in comment.
90068
90069 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
90070
90071         * po/da.po: Update from translation team.
90072
90073 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
90074
90075         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
90076         is added to the list.
90077
90078 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
90079             Ulrich Drepper  <drepper@gmail.com>
90080
90081         * elf/dl-object.c (_dl_new_object): Don't append the new object to
90082         the global list here.  Move code to...
90083         (_dl_add_to_namespace_list): ...here.  New function.
90084         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
90085         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
90086         * elf/dl-load.c (lose): Don't remove the element from the list.
90087         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
90088         (_dl_map_object): Likewise.
90089
90090 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
90091
90092         [BZ #12159]
90093         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
90094         into all bytes of SSE register.
90095         Patch by Richard Li <richardpku@gmail.com>.
90096
90097 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
90098
90099         [BZ #12140]
90100         * malloc/malloc.c (_int_free): Fill correct number of bytes when
90101         perturbing.
90102
90103 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
90104
90105         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
90106         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
90107         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
90108         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
90109         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
90110         submachine.
90111         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
90112
90113 2010-10-22  Andreas Schwab  <schwab@redhat.com>
90114
90115         * include/dlfcn.h (__RTLD_SECURE): Define.
90116         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
90117         mode & __RTLD_SECURE instead.
90118         (open_path): Rename preloaded parameter to secure.
90119         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
90120         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
90121         * elf/dl-deps.c (openaux): Likewise.
90122         * elf/rtld.c (struct map_args): Remove is_preloaded.
90123         (map_doit): Don't use it.
90124         (dl_main): Likewise.
90125         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
90126         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
90127
90128 2010-09-09  Andreas Schwab  <schwab@redhat.com>
90129
90130         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
90131         (sysd-rules-targets): Remove duplicates.
90132         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
90133         rtld-%.$o dependency.
90134
90135 2010-10-18  Andreas Schwab  <schwab@redhat.com>
90136
90137         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
90138         _dl_map_object do it.
90139
90140 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
90141
90142         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
90143         fast fma builtins, define the macros in the C99 standard.
90144         (FP_FAST_FMAF): Likewise.
90145         (FP_FAST_FMAL): Likewise.
90146         * sysdeps/x86_64/bits/mathdef.h: Likewise.
90147
90148         * bits/mathdef.h: Update copyright year.
90149         * sysdeps/powerpc/bits/mathdef.h: Likewise.
90150
90151 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
90152
90153         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
90154         builtins, define the macros in the C99 standard.
90155         (FP_FAST_FMAF): Likewise.
90156         (FP_FAST_FMAL): Likewise.
90157         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
90158         multiply/add.
90159         (FP_FAST_FMAF): Likewise.
90160
90161 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
90162
90163         [BZ #3268]
90164         * math/libm-test.inc (fma_test): Some new testcases.
90165         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
90166         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
90167         y and infinite z.  Do multiplication by C already in long double.
90168         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
90169         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
90170         y and infinite z.  Do bitwise or of inexact bit into u.d.
90171         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
90172         * sysdeps/i386/fpu/s_fmaf.S: Removed.
90173         * sysdeps/i386/fpu/s_fma.S: Removed.
90174         * sysdeps/i386/fpu/s_fmal.S: Removed.
90175
90176 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
90177
90178         [BZ #3268]
90179         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
90180         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
90181         computation is not scheduled after fetestexcept.  Fix value
90182         of minimum denormal long double.
90183
90184 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
90185
90186         [BZ #3268]
90187         * math/libm-test.inc (fma_test): Add some more tests.
90188         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
90189         correctly.
90190
90191 2010-10-15  Andreas Schwab  <schwab@redhat.com>
90192
90193         * scripts/data/localplt-s390-linux-gnu.data: New file.
90194         * scripts/data/localplt-s390x-linux-gnu.data: New file.
90195
90196 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
90197
90198         [BZ #3268]
90199         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
90200         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
90201         instead of dbl-64.
90202         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
90203         inlines.
90204         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
90205         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
90206         if one of x and y is very large and the other is subnormal.
90207         * sysdeps/s390/fpu/s_fmaf.c: New file.
90208         * sysdeps/s390/fpu/s_fma.c: New file.
90209         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
90210         * sysdeps/powerpc/fpu/s_fma.S: New file.
90211         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
90212         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
90213         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
90214
90215 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
90216
90217         [BZ #3268]
90218         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
90219         fma tests.
90220         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
90221         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
90222         * sysdeps/i386/i686/multiarch/s_fma.c: Include
90223         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
90224         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
90225         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
90226         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
90227
90228 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
90229
90230         [BZ #12078]
90231         * posix/regcomp.c (parse_branch): One more memory leak plugged.
90232         * posix/bug-regex31.input: Add test case.
90233
90234 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
90235
90236         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
90237         * posix/bug-regex31.input: New file.
90238
90239         [BZ #12078]
90240         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
90241         (parse_sub_exp): Fix last change, use postorder.
90242
90243         * posix/bug-regex31.c: New file.
90244         * posix/Makefile: Add rules to build and run bug-regex31.
90245
90246         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
90247
90248         [BZ #12078]
90249         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
90250
90251         [BZ #12108]
90252         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
90253         to have entries in sys_siglist.
90254
90255         [BZ #12093]
90256         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
90257         be NULL.
90258
90259 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
90260
90261         [BZ #3268]
90262         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
90263         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
90264         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
90265         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
90266         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
90267         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
90268         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
90269         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
90270         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
90271         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
90272         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
90273         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
90274         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
90275         * math/ftestexcept.c (fetestexcept): Likewise.
90276         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
90277         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
90278         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
90279         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
90280         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
90281         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
90282         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
90283
90284 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
90285
90286         [BZ #12107]
90287         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
90288         newline.
90289
90290 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
90291
90292         * string/bug-strstr1.c: New file.
90293         * string/Makefile: Add rules to build and run bug-strstr1.
90294
90295 2010-10-05  Eric Blake  <eblake@redhat.com>
90296
90297         [BZ #12092]
90298         * string/str-two-way.h (two_way_long_needle): Always clear memory
90299         when skipping input due to the shift table.
90300
90301 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
90302
90303         [BZ #12005]
90304         * malloc/mcheck.c: Handle large requests.
90305
90306         [BZ #12077]
90307         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
90308         for strncmp and strncasecmp.
90309         * string/stratcliff.c: Add tests for strcmp and strncmp.
90310         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
90311
90312 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
90313
90314         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
90315         __set_fpscr.
90316
90317 2010-09-30  Andreas Jaeger  <aj@suse.de>
90318
90319         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
90320         (CGROUP_SUPER_MAGIC): Define.
90321         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
90322         Handle btrfs and cgroup file systems.
90323         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
90324         Likewise.
90325
90326 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
90327
90328         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
90329         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
90330
90331 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
90332
90333         [BZ #12067]
90334         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
90335         trying to locate the ELF header.
90336
90337 2010-09-27  Andreas Schwab  <schwab@redhat.com>
90338
90339         [BZ #11611]
90340         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
90341         Mask out sign-bit copies when constructing f_fsid.
90342
90343 2010-09-24  Petr Baudis <pasky@suse.cz>
90344
90345         * debug/stack_chk_fail_local.c: Add missing licence exception.
90346         * debug/warning-nop.c: Likewise.
90347
90348 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
90349
90350         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
90351         implementing getdents64 using getdents syscall, set d_type if
90352         __ASSUME_GETDENTS32_D_TYPE.
90353
90354 2010-09-16  Andreas Schwab  <schwab@redhat.com>
90355
90356         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
90357         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
90358
90359 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
90360
90361         [BZ #12037]
90362         * posix/unistd.h: Undo change of feature selection for ftruncate from
90363         2010-01-11.
90364
90365 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
90366
90367         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
90368         detection.
90369
90370 2010-09-20  Andreas Schwab  <schwab@redhat.com>
90371
90372         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
90373         fanotify_mark.
90374         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
90375
90376 2010-09-14  Andreas Schwab  <schwab@redhat.com>
90377
90378         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
90379         variables after CHECK_SP call.
90380         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
90381
90382 2010-09-13  Andreas Schwab  <schwab@redhat.com>
90383             Ulrich Drepper  <drepper@redhat.com>
90384
90385         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
90386         re-relocationg ld.so.
90387         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
90388         _dl_init_paths call.
90389         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
90390         here anymore.
90391
90392 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
90393
90394         * resolv/res_init.c (__res_vinit): Count the default server we added.
90395
90396 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
90397             Ulrich Drepper  <drepper@redhat.com>
90398
90399         [BZ #11968]
90400         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
90401         (____longjmp_chk): Use %ebx for saving value across system call.
90402         Add unwind info.
90403
90404 2010-09-06  Andreas Schwab  <schwab@redhat.com>
90405
90406         * manual/Makefile: Don't mix pattern rules with normal rules.
90407
90408 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
90409
90410         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
90411         operation.
90412         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
90413         * libio/iofopncook.c (_IO_cookie_init): Likewise.
90414         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
90415         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
90416         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
90417         Likewise.
90418
90419 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
90420
90421         [BZ #11979]
90422         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
90423         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
90424
90425 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
90426
90427         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
90428         * sysdeps/x86_64/addmul_1.S: Likewise.
90429         * sysdeps/x86_64/lshift.S: Likewise.
90430         * sysdeps/x86_64/mul_1.S: Likewise.
90431         * sysdeps/x86_64/rshift.S: Likewise.
90432         * sysdeps/x86_64/sub_n.S: Likewise.
90433         * sysdeps/x86_64/submul_1.S: Likewise.
90434
90435 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
90436
90437         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
90438         Define __sched_param instead of SCHED_* and sched_param when
90439         <bits/sched.h> is included with __need_schedparam defined.
90440         * bits/sched.h [__need_schedparam]
90441         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
90442         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
90443         (__defined_schedparam): Define to 1.
90444         (__sched_param): New structure, identical to sched_param.
90445         (__need_schedparam): Undefine.
90446
90447 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
90448
90449         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
90450         (epoll_create1): Declare.
90451
90452         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
90453
90454 2010-08-31  Andreas Schwab  <schwab@redhat.com>
90455
90456         [BZ #7066]
90457         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
90458         shifting retval into place.
90459
90460 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
90461
90462         * nis/rpcsvc/nis.h: Update copyright notice.
90463         * nis/rpcsvc/nis.x: Likewise.
90464         * nis/rpcsvc/nis_callback.h: Likewise.
90465         * nis/rpcsvc/nis_callback.x: Likewise.
90466         * nis/rpcsvc/nis_object.x: Likewise.
90467         * nis/rpcsvc/nis_tags.h: Likewise.
90468         * nis/rpcsvc/yp.h: Likewise.
90469         * nis/rpcsvc/yp.x: Likewise.
90470         * nis/rpcsvc/ypupd.h: Likewise.
90471         * nis/yp_xdr.c: Likewise.
90472         * nis/ypupdate_xdr.c: Likewise.
90473
90474         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
90475         mainly the body of pmap_getport.  Add parameters to specify timeouts.
90476         (pmap_getport): Use __libc_rpc_getport.
90477         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
90478         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
90479         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
90480
90481 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
90482
90483         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
90484         fanotify_mark.
90485
90486 2010-08-27  Roland McGrath  <roland@redhat.com>
90487
90488         * sysdeps/i386/i686/multiarch/Makefile
90489         (CFLAGS-varshift.c): New variable.
90490
90491 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
90492
90493         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
90494         * sysdeps/i386/i686/multiarch/varshift.c: New file.
90495
90496         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
90497
90498         * sysdeps/x86_64/strlen.S: Minimal code improvement.
90499
90500 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
90501
90502         * sysdeps/x86_64/strlen.S: Unroll the loop.
90503         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
90504         strlen-sse2 strlen-sse2-bsf.
90505         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
90506         __strlen_no_bsf if bit_Slow_BSF is set.
90507         (__strlen_sse42): Removed.
90508         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
90509         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
90510
90511 2010-08-25  Roland McGrath  <roland@redhat.com>
90512
90513         * sysdeps/x86_64/multiarch/varshift.S: File removed.
90514         * sysdeps/x86_64/multiarch/varshift.c: New file.
90515         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
90516         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
90517         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
90518         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
90519
90520 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
90521
90522         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
90523         strlen-sse2 strlen-sse2-bsf.
90524         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
90525         __strlen_sse2_bsf if bit_Slow_BSF is unset.
90526         (__strlen_sse2): Removed.
90527         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
90528         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
90529         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
90530         bit_Slow_BSF for Atom.
90531         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
90532         (index_Slow_BSF): Define.
90533         (HAS_SLOW_BSF): Define.
90534
90535 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
90536
90537         [BZ #10851]
90538         * resolv/res_init.c (__res_vinit): When no server address at all
90539         is given default to loopback.
90540
90541 2010-08-24  Roland McGrath  <roland@redhat.com>
90542
90543         * configure.in: Remove config-name.h generation.
90544         * configure: Regenerated.
90545         * config-name.in: File removed.
90546         * scripts/config-uname.sh: New file.
90547         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
90548         ($(objdir)config-name.h): New target.
90549
90550         * sunrpc/rpc_parse.h: Avoid nested comment.
90551
90552 2010-08-24  Richard Henderson  <rth@redhat.com>
90553             Ulrich Drepper  <drepper@redhat.com>
90554             H.J. Lu  <hongjiu.lu@intel.com>
90555
90556         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
90557         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
90558         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
90559         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
90560         _mm_alignr_epi8 with _mm_loadu_si128.
90561         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
90562         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
90563         (__m128i_shift_right): Removed.
90564         * sysdeps/i386/i686/multiarch/varshift.h: New file.
90565         * sysdeps/i386/i686/multiarch/varshift.S: New file.
90566         * sysdeps/x86_64/multiarch/varshift.h: New file.
90567         * sysdeps/x86_64/multiarch/varshift.S: New file.
90568
90569 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
90570
90571         * configure.in: Move assembler checks to before sysdep dir checking.
90572
90573 2010-08-20  Petr Baudis  <pasky@suse.cz>
90574
90575         * LICENSES: Sync the sunrpc license.
90576
90577 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
90578
90579         * sunrpc/auth_des.c: Update copyright notice once again.
90580         * sunrpc/auth_none.c: Likewise.
90581         * sunrpc/auth_unix.c: Likewise.
90582         * sunrpc/authdes_prot.c: Likewise.
90583         * sunrpc/authuxprot.c: Likewise.
90584         * sunrpc/bindrsvprt.c: Likewise.
90585         * sunrpc/clnt_gen.c: Likewise.
90586         * sunrpc/clnt_perr.c: Likewise.
90587         * sunrpc/clnt_raw.c: Likewise.
90588         * sunrpc/clnt_simp.c: Likewise.
90589         * sunrpc/clnt_tcp.c: Likewise.
90590         * sunrpc/clnt_udp.c: Likewise.
90591         * sunrpc/clnt_unix.c: Likewise.
90592         * sunrpc/des_crypt.c: Likewise.
90593         * sunrpc/des_soft.c: Likewise.
90594         * sunrpc/get_myaddr.c: Likewise.
90595         * sunrpc/getrpcport.c: Likewise.
90596         * sunrpc/key_call.c: Likewise.
90597         * sunrpc/key_prot.c: Likewise.
90598         * sunrpc/openchild.c: Likewise.
90599         * sunrpc/pm_getmaps.c: Likewise.
90600         * sunrpc/pm_getport.c: Likewise.
90601         * sunrpc/pmap_clnt.c: Likewise.
90602         * sunrpc/pmap_prot.c: Likewise.
90603         * sunrpc/pmap_prot2.c: Likewise.
90604         * sunrpc/pmap_rmt.c: Likewise.
90605         * sunrpc/rpc/auth.h: Likewise.
90606         * sunrpc/rpc/auth_unix.h: Likewise.
90607         * sunrpc/rpc/clnt.h: Likewise.
90608         * sunrpc/rpc/des_crypt.h: Likewise.
90609         * sunrpc/rpc/key_prot.h: Likewise.
90610         * sunrpc/rpc/netdb.h: Likewise.
90611         * sunrpc/rpc/pmap_clnt.h: Likewise.
90612         * sunrpc/rpc/pmap_prot.h: Likewise.
90613         * sunrpc/rpc/pmap_rmt.h: Likewise.
90614         * sunrpc/rpc/rpc.h: Likewise.
90615         * sunrpc/rpc/rpc_des.h: Likewise.
90616         * sunrpc/rpc/rpc_msg.h: Likewise.
90617         * sunrpc/rpc/svc.h: Likewise.
90618         * sunrpc/rpc/svc_auth.h: Likewise.
90619         * sunrpc/rpc/types.h: Likewise.
90620         * sunrpc/rpc/xdr.h: Likewise.
90621         * sunrpc/rpc_clntout.c: Likewise.
90622         * sunrpc/rpc_cmsg.c: Likewise.
90623         * sunrpc/rpc_common.c: Likewise.
90624         * sunrpc/rpc_cout.c: Likewise.
90625         * sunrpc/rpc_dtable.c: Likewise.
90626         * sunrpc/rpc_hout.c: Likewise.
90627         * sunrpc/rpc_main.c: Likewise.
90628         * sunrpc/rpc_parse.c: Likewise.
90629         * sunrpc/rpc_parse.h: Likewise.
90630         * sunrpc/rpc_prot.c: Likewise.
90631         * sunrpc/rpc_sample.c: Likewise.
90632         * sunrpc/rpc_scan.c: Likewise.
90633         * sunrpc/rpc_scan.h: Likewise.
90634         * sunrpc/rpc_svcout.c: Likewise.
90635         * sunrpc/rpc_tblout.c: Likewise.
90636         * sunrpc/rpc_util.c: Likewise.
90637         * sunrpc/rpc_util.h: Likewise.
90638         * sunrpc/rpcinfo.c: Likewise.
90639         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
90640         * sunrpc/rpcsvc/key_prot.x: Likewise.
90641         * sunrpc/rpcsvc/klm_prot.x: Likewise.
90642         * sunrpc/rpcsvc/mount.x: Likewise.
90643         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
90644         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
90645         * sunrpc/rpcsvc/rex.x: Likewise.
90646         * sunrpc/rpcsvc/rstat.x: Likewise.
90647         * sunrpc/rpcsvc/rusers.x: Likewise.
90648         * sunrpc/rpcsvc/sm_inter.x: Likewise.
90649         * sunrpc/rpcsvc/spray.x: Likewise.
90650         * sunrpc/rpcsvc/yppasswd.x: Likewise.
90651         * sunrpc/rtime.c: Likewise.
90652         * sunrpc/svc.c: Likewise.
90653         * sunrpc/svc_auth.c: Likewise.
90654         * sunrpc/svc_authux.c: Likewise.
90655         * sunrpc/svc_raw.c: Likewise.
90656         * sunrpc/svc_run.c: Likewise.
90657         * sunrpc/svc_simple.c: Likewise.
90658         * sunrpc/svc_tcp.c: Likewise.
90659         * sunrpc/svc_udp.c: Likewise.
90660         * sunrpc/svc_unix.c: Likewise.
90661         * sunrpc/svcauth_des.c: Likewise.
90662         * sunrpc/xcrypt.c: Likewise.
90663         * sunrpc/xdr.c: Likewise.
90664         * sunrpc/xdr_array.c: Likewise.
90665         * sunrpc/xdr_float.c: Likewise.
90666         * sunrpc/xdr_mem.c: Likewise.
90667         * sunrpc/xdr_rec.c: Likewise.
90668         * sunrpc/xdr_ref.c: Likewise.
90669         * sunrpc/xdr_sizeof.c: Likewise.
90670         * sunrpc/xdr_stdio.c: Likewise.
90671
90672         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
90673         handling.
90674
90675 2010-08-19  Andreas Schwab  <schwab@redhat.com>
90676
90677         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
90678
90679 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
90680
90681         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
90682         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
90683         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
90684         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
90685         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
90686         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
90687         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
90688         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
90689         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
90690         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
90691         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
90692         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
90693         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
90694         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
90695
90696 2010-07-26  Anton Blanchard  <anton@samba.org>
90697
90698         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
90699         * malloc/arena.c (heap_trim): Likewise.
90700
90701 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
90702
90703         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
90704         here.  Not...
90705         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
90706         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
90707
90708 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
90709
90710         * sysdeps/i386/elf/Makefile: New file.
90711
90712 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
90713
90714         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
90715         from fanotify_init.
90716         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
90717         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
90718
90719 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
90720
90721         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
90722         of strncasecmp_l.
90723         * sysdeps/multiarch/strcmp.S: Likewise.
90724
90725 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
90726
90727         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
90728         strncase_l-nonascii.
90729         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
90730         Add strncase_l-ssse3.
90731         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
90732         * sysdeps/x86_64/strcmp.S: Likewise.
90733         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
90734         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
90735         * sysdeps/x86_64/strncase.S: New file.
90736         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
90737         * sysdeps/x86_64/strncase_l.S: New file.
90738         * string/Makefile (strop-tests): Add strncasecmp.
90739         * string/test-strncasecmp.c: New file.
90740
90741         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
90742         warning.
90743
90744         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
90745         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
90746
90747 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
90748
90749         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
90750
90751 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
90752
90753         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
90754         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
90755         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
90756
90757 2010-05-01  Alan Modra  <amodra@gmail.com>
90758
90759         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
90760         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
90761         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
90762         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
90763         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
90764         tidying.  Don't tail-call __sigjmp_save for static lib.
90765         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
90766         save location.
90767         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
90768         (CALL_MCOUNT): Add eh info, and nop after bl.
90769         (TAIL_CALL_SYSCALL_ERROR): New macro.
90770         (PSEUDO_RET): Use it.
90771         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
90772         Correct save location of integer regs and cr.
90773         (_dl_profile_resolve): Correct cr save location.  Delete nops
90774         after bl when SHARED.  Reduce cfi size a little by better
90775         placement of cfi directives.
90776         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
90777         make a stack frame.  Instead use parm save area as a temp.
90778         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
90779         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
90780         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
90781         Don't make a stack frame for parent, use parm save area.
90782         Increase child stack frame to 112 bytes.  Don't save unused reg,
90783         and adjust reg usage.  Set up cfi on error recovery and
90784         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
90785         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
90786         (__makecontext): Add dummy nop after jump to exit.
90787         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
90788         Use correct parm save area and cr save, reduce stack frame.
90789         Correct cfi for possible PSEUDO_RET frame setup.
90790         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
90791         Branch to local label emitted by PSEUDO_RET rather than
90792         __syscall_error.
90793
90794 2010-08-12  Andreas Schwab  <schwab@redhat.com>
90795
90796         [BZ #11904]
90797         * locale/programs/locale.c (print_assignment): New function.
90798         (show_locale_vars): Use it.
90799
90800 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
90801
90802         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
90803         field.
90804         (struct statfs64): Likewise.
90805         (_STATFS_F_FLAGS): Define.
90806         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
90807         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
90808         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
90809         (ST_VALID): Define locally.
90810         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
90811         __statvfs_getflags, use the provided value.
90812         * sysdeps/unix/sysv/linux/kernel-features.h: Define
90813         __ASSUME_STATFS_F_FLAGS.
90814
90815         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
90816
90817         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
90818         Add sys/fanotify.h.
90819         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
90820         fanotify_mask for GLIBC_2.13.
90821         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
90822         fanotify_init and fanotify_mark.
90823         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
90824         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
90825
90826         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
90827         Add prlimit.
90828         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
90829         prlimit64 for GLIBC_2.13.
90830         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
90831         prlimit64.
90832         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
90833         syscall.
90834         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
90835         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
90836         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
90837         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
90838         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
90839         add prlimit alias.
90840         * sysdeps/unix/sysv/linux/prlimit.c: New file.
90841
90842         [BZ #11903]
90843         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
90844         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
90845
90846         * nss/Makefile: Add rules to build and run tst-nss-test1.
90847         * shlib-versions: Add entry for libnss_test1.
90848         * nss/nss_test1.c: New file.
90849         * nss/tst-nss-test1.c: New file.
90850
90851         * nss/nsswitch.c (__nss_database_custom): Define new variable.
90852         (__nss_configure_lookup): Set appropriate entry in
90853         __nss_configure_lookup to true.
90854         * nss/nsswitch.h: Define enum with indeces of databases in
90855         databases and __nss_database_custom arrays.  Declare
90856         __nss_database_custom.
90857         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
90858         to avoid using nscd when custom rules are installed.
90859         * nss/getXXbyYY_r.c: Likewise.
90860         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
90861
90862         * nss/nss_files/files-parse.c: Whitespace fixes.
90863
90864 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
90865
90866         [BZ #11883]
90867         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
90868         * posix/fnmatch_loop.c: Likewise.
90869
90870 2010-07-17  Andi Kleen  <ak@linux.intel.com>
90871
90872         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
90873         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
90874         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
90875         * Versions.def [GLIBC_2.13]: Add.
90876
90877 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
90878
90879         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
90880         Also fail if tpwd after pwuid call is NULL.
90881
90882 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
90883
90884         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
90885         when converting to ms.
90886
90887 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
90888
90889         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
90890         EOPNOTSUPP errors with ENOTTY.
90891         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
90892         EOPNOTSUPP errors with ENOTTY.
90893
90894 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
90895
90896         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
90897         Add strcasecmp_l-ssse3.
90898         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
90899         strcasecmp.
90900         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
90901         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
90902         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
90903
90904 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
90905
90906         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
90907
90908         * string/Makefile (strop-tests): Add strcasecmp.
90909         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
90910         strcasecmp_l-nonascii.
90911         (gen-as-const-headers): Add locale-defines.sym.
90912         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
90913         * sysdeps/x86_64/strcasecmp.S: New file.
90914         * sysdeps/x86_64/strcasecmp_l.S: New file.
90915         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
90916         * sysdeps/x86_64/locale-defines.sym: New file.
90917         * string/test-strcasecmp.c: New file.
90918
90919         * string/test-strcasestr.c: Test both ends of the range of characters.
90920         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
90921
90922 2010-07-29  Roland McGrath  <roland@redhat.com>
90923
90924         [BZ #11856]
90925         * manual/locale.texi (Yes-or-No Questions): Fix example code.
90926
90927 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
90928
90929         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
90930         for ld.so.
90931
90932 2010-07-27  Andreas Schwab  <schwab@redhat.com>
90933
90934         * manual/memory.texi (Malloc Tunable Parameters): Document
90935         M_PERTURB.
90936
90937 2010-07-26  Roland McGrath  <roland@redhat.com>
90938
90939         [BZ #11840]
90940         * configure.in (-fgnu89-inline check): Set and substitute
90941         gnu89_inline, not libc_cv_gnu89_inline.
90942         * configure: Regenerated.
90943         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
90944
90945 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
90946
90947         * string/test-strnlen.c: New file.
90948         * string/Makefile (strop-tests): Add strnlen.
90949         * string/tester.c (test_strnlen): Add a few more test cases.
90950         * string/tst-strlen.c: Better error reporting.
90951
90952         * sysdeps/x86_64/strnlen.S: New file.
90953
90954 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
90955
90956         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
90957         lower-latency instructions.
90958
90959 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
90960
90961         * string/test-strcasestr.c: New file.
90962         * string/test-strstr.c: New file.
90963         * string/Makefile (strop-tests): Add strstr and strcasestr.
90964         * string/str-two-way.h: Don't undefine MAX.
90965         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
90966
90967 2010-07-21  Andreas Schwab  <schwab@redhat.com>
90968
90969         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
90970         strcasestr-nonascii.
90971         (CFLAGS-strcasestr-nonascii.c): Define.
90972         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
90973         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
90974         Remove unused attribute.
90975
90976 2010-07-20  Roland McGrath  <roland@redhat.com>
90977
90978         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
90979         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
90980         ld.so.cache was broken.  With it, there is no way to disable dsocaps
90981         like LD_HWCAP_MASK can disable hwcaps.
90982
90983 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
90984
90985         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
90986
90987 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
90988
90989         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
90990         call in strcasestr.
90991         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
90992         __strcasestr_sse42_nonascii.
90993         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
90994         strcasestr-nonascii.c.
90995         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
90996
90997 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
90998
90999         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
91000         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
91001         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
91002         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
91003
91004 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
91005
91006         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
91007         fcntl.
91008
91009 2010-07-06  Andreas Schwab  <schwab@redhat.com>
91010
91011         [BZ #11577]
91012         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
91013         dl_signal_cerror.
91014
91015 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
91016
91017         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
91018         _PC_PIPE_BUF using F_GETPIPE_SZ.
91019
91020 2010-07-05  Roland McGrath  <roland@redhat.com>
91021
91022         * manual/arith.texi (Rounding Functions): Fix rint description
91023         implicit in round description.
91024
91025 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
91026
91027         * elf/Makefile: Fix linking for a few tests to make recent linker
91028         happy.
91029
91030 2010-06-30  Andreas Schwab  <schwab@redhat.com>
91031
91032         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
91033         $(common-objpfx)libc_nonshared.a.
91034
91035 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
91036
91037         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
91038         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
91039         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
91040         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
91041         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
91042         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
91043         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
91044         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
91045         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
91046         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
91047         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
91048         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
91049         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
91050         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
91051         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
91052         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
91053         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
91054         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
91055         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
91056         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
91057         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
91058         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
91059         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
91060         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
91061         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
91062         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
91063         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
91064         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
91065         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
91066         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
91067         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
91068         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
91069         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
91070         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
91071         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
91072         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
91073         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
91074         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
91075         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
91076         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
91077         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
91078         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
91079         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
91080         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
91081         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
91082         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
91083         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
91084         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
91085
91086 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
91087
91088         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
91089         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
91090         * string/memmove.c (memmove): Renamed to ...
91091         (MEMMOVE): ...this.  Default to memmove.
91092         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
91093         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
91094         (END_CHK): Define.
91095         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
91096         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
91097         mempcpy-ssse3-back memmove-ssse3-back.
91098         * sysdeps/x86_64/multiarch/bcopy.S: New file .
91099         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
91100         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
91101         * sysdeps/x86_64/multiarch/memcpy.S: New file.
91102         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
91103         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
91104         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
91105         * sysdeps/x86_64/multiarch/memmove.c: New file.
91106         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
91107         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
91108         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
91109         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
91110         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
91111         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
91112         Define.
91113         (index_Fast_Copy_Backward): Define.
91114         (HAS_ARCH_FEATURE): Define.
91115         (HAS_FAST_REP_STRING): Define.
91116         (HAS_FAST_COPY_BACKWARD): Define.
91117
91118 2010-06-21  Andreas Schwab  <schwab@redhat.com>
91119
91120         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
91121         Restore proper fallback handling.
91122
91123 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
91124
91125         [BZ #11701]
91126         * posix/group_member.c (__group_member): Correct checking loop.
91127
91128         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
91129         OOM in getpwuid_r correctly.  Return error number when the caller
91130         should return, otherwise -1.
91131         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
91132         call returning > 0 value.
91133         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
91134
91135 2010-06-07  Andreas Schwab  <schwab@redhat.com>
91136
91137         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
91138         libc_nonshared.a from targets in modules-names.
91139
91140 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
91141
91142         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
91143         requires it.
91144
91145 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
91146
91147         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
91148         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
91149         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
91150         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
91151
91152 2010-06-02  Andreas Schwab  <schwab@redhat.com>
91153
91154         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
91155
91156 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
91157
91158         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
91159         and F_GETPIPE_SZ.
91160         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
91161         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
91162         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
91163         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
91164         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
91165         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
91166
91167 2010-06-14  Roland McGrath  <roland@redhat.com>
91168
91169         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
91170
91171 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
91172
91173         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
91174         __REDIRECT followed by __THROW.
91175         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
91176         * posix/getopt.h (getopt): Likewise.
91177
91178 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
91179
91180         * hurd/lookup-at.c (__file_name_lookup_at): Accept
91181         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
91182         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
91183         in AT_FLAGS.
91184         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
91185         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
91186
91187 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
91188
91189         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
91190
91191 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
91192
91193         [BZ #11640]
91194         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
91195         Properly check family and model.
91196
91197 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
91198
91199         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
91200
91201 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
91202
91203         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
91204
91205 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
91206
91207         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
91208         symbol reference.
91209
91210 2010-05-19  Andreas Schwab  <schwab@redhat.com>
91211
91212         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
91213         symbol reference.
91214
91215 2010-05-21  Andreas Schwab  <schwab@redhat.com>
91216
91217         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
91218         and internal_recvmmsg.
91219         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
91220         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
91221         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
91222         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
91223
91224         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
91225         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
91226         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
91227
91228 2010-05-20  Andreas Schwab  <schwab@redhat.com>
91229
91230         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
91231
91232 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
91233
91234         POWER7 optimizations.
91235         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
91236         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
91237
91238 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
91239
91240         * version.h: Update for 2.13 development version.
91241
91242 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
91243
91244         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
91245         exceptions.  Return 0.
91246
91247 2010-05-07  Roland McGrath  <roland@redhat.com>
91248
91249         * elf/ldconfig.c (main): Add a const.
91250
91251 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
91252
91253         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
91254         (args_options): Add no-idn option.
91255         (ahosts_keys_int): Add idn_flags to ai_flags.
91256         (parse_option): Handle 'i' option to clear idn_flags.
91257
91258         * malloc/malloc.c (_int_free): Possible race in the most recently
91259         added check.  Only act on the data if no current modification
91260         happened.
91261
91262 See ChangeLog.17 for earlier changes.